Also learning Rust at the same time
To setup machine:
- download and install rustup
- go inside the repo directory
- run
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu - run
cargo build - run
cargo install bootimage - run
rustup component add llvm-tools-preview - run
cargo bootimage
If facing any issues while cargo run or cargo build:
cargo update -p uart_16550 --precise 0.2.14cargo update -p x86_64 --precise 0.14.7
To run the OS image using qemu:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-rustos/debug/bootimage-rustos.bin
or
cargo run