This repository maintains a rust project that tries to create a simple kernel using rust. The kernel as of now can only print on screen using vga buffer and is not interactive.
- First, install rust's nightly version for your operating system.
- Then install rust-src, by running
rustup component add rust-src
. - Install llvm preview tools for rust,
rustup component add llvm-tools-preview
. - Now install bootimage to build image, run
cargo install bootimage
. - To build it, go to root directory and run
cargo build && cargo bootimage
. - This will create a
.bin
bootable image intarget/x86_64/debug/
.
- First, install QEMU/Virt-Manager on your machine, and then install sdl display for QEMU.
- Then reboot your machine to load all dependencies.
- Run
qemu-system-x86_64 -drive format=raw,file=<build-bin-location> -display sdl
.