This project is a work in progress.
- Rust toolchain (nightly)
- https://www.rust-lang.org/tools/install
rustup toolchain install nightly
- cargo-make
- https://github.com/sagiegurari/cargo-make
cargo install cargo-make
- QEMU
- dosfstools
- macOS:
brew install dosfstools
- ubuntu:
apt install dosfstools
- macOS:
# riscv64 virt
makers -e BOARD="virt" build-riscv64-dev
# aarch64 raspi3b
makers -e BOARD="raspi3b" build-aarch64-dev
# riscv64 virt
makers -e BOARD="virt" build-riscv64
# aarch64 raspi3b
makers -e BOARD="raspi3b" build-aarch64
The compiled kernel binary is ./kernel.elf
.
# Debug mode
makers run-[riscv64 | aarch64]-dev # this requires QEMU
# Release mode
makers run-[riscv64 | aarch64] # this requires QEMU
makers debug-[riscv64 | aarch64]-dev # debug mode kernel
makers debug-[riscv64 | aarch64] # release mode kernel
rust-gdb -x tools/script.gdb
- virt (wip)
- raspi3b (wip)
- uefi (wip)