rust-osdev/bootloader — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Rust bootloader project for x86_64 that can take a minimal no_std kernel and turn it into bootable disk images for both BIOS and UEFI machines.

I want the kernel to have a simple entry point that receives boot information, uses the framebuffer if available, and proves it booted by showing a basic message on screen. Set up the workspace so the kernel builds for the right target, then have the main crate create the bootable images from the compiled kernel. Include clear commands for installing the needed nightly Rust components and targets, building everything, and running the result in QEMU if available.

Please keep it close to the Rust OS development style, using the bootloader API approach with an entry point macro and boot info. I don’t need a real operating system yet, just a clean working starting point that boots reliably on BIOS and UEFI and is easy to extend later. Look up current docs online if you need to.

Want more depth? Deep Reverse