Skip to content

JuozasVainauskas/os

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published