Where sdX is the device name of your USB stick. Be careful to choose the correct device name, because everything on that device is overwritten.
Features
The bootloader crate can be configured through some cargo features:
vga_320x200: This feature switches the VGA hardware to mode 0x13, a graphics mode with resolution 320x200 and 256 colors per pixel. The framebuffer is linear and lives at address 0xa0000.
bootloader
An experimental x86 bootloader written in Rust and inline assembly.
Written for the second edition of the Writing an OS in Rust series.
Design
TODO
Build and Run
You need a nightly Rust compiler and cargo xbuild.
Then you can run the
builderexecutable with your kernel as argument:This will output a file named
bootimage.binin the../target/x86_64-bootloader/releasefolder.You can run this file using QEMU:
Or burn it to an USB drive:
Where sdX is the device name of your USB stick. Be careful to choose the correct device name, because everything on that device is overwritten.
Features
The bootloader crate can be configured through some cargo features:
vga_320x200: This feature switches the VGA hardware to mode 0x13, a graphics mode with resolution 320x200 and 256 colors per pixel. The framebuffer is linear and lives at address0xa0000.