Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 977 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 977 Bytes

os

Hobby OS implementation in Rust

Local development

Docker

  1. Build OS binary to ./target directory:

    docker run --rm -it -v $(pwd)/target:/builder/target $(docker build -q .)
  2. Boot OS using QEMU:

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

Host system

  1. Install dependencies

    cargo install bootimage
    rustup component add rust-src --toolchain nightly-aarch64-unknown-linux-gnu
    rustup component add llvm-tools-preview
  2. Build OS binary to ./target directory:

    cargo bootimage
  3. Boot OS using QEMU:

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

Tests

Run tests in Docker:

docker run --rm -it $(docker build -q .) cargo test

Run tests on host system:

cargo test