Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 878 Bytes

File metadata and controls

56 lines (38 loc) · 878 Bytes

Building and Running

Prerequisites

Install Rust nightly and required components:

rustup toolchain install nightly
rustup component add rust-src llvm-tools-preview --toolchain nightly
cargo install bootimage
rustup component add rustfmt clippy --toolchain nightly

Build the Kernel

Build the kernel for the custom target:

cargo build --target x86_64-zero.json

Create a Bootable Disk Image

cargo bootimage

The generated image will be located at:

target/x86_64-zero/debug/bootimage-zero.bin

Run in QEMU

qemu-system-x86_64 \
    -drive format=raw,file=target/x86_64-zero/debug/bootimage-zero.bin

Development Checks

Check the project:

cargo check \
    -Zbuild-std=core,alloc,compiler_builtins \
    -Zbuild-std-features=compiler-builtins-mem

Run tests:

cargo test