This was created to learn about bare metal programming, the x86_64 architecture, and rust in general. Heavily inspired by this
Here are the required packages:
Rust:
- rust nightly compiler >=
v1.53.0(runrustup toolchain install nightly) rustup run nightly rustup component add llvm-tools-preview rust-srccargo install bootimage
Operating System:
qemu-system-x86_64cargorustup
rustup run nightly cargo build --releaseNow you will have the image under target/x86_64-test_os/debug/bootimage-test_os.bin.
To run in in qemu use this command:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-test_os/debug/bootimage-test_os.bin