Hobby OS implementation in Rust
-
Build OS binary to
./target
directory:docker run --rm -it -v $(pwd)/target:/builder/target $(docker build -q .)
-
Boot OS using QEMU:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-os/debug/bootimage-os.bin
-
Install dependencies
cargo install bootimage rustup component add rust-src --toolchain nightly-aarch64-unknown-linux-gnu rustup component add llvm-tools-preview
-
Build OS binary to
./target
directory:cargo bootimage
-
Boot OS using QEMU:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-os/debug/bootimage-os.bin
Run tests in Docker:
docker run --rm -it $(docker build -q .) cargo test
Run tests on host system:
cargo test