JAM, a.k.a. Just Another Microkernel, is a distributed operating fabric written in Rust for AArch64. It is built around the actor concurrency model and inspired by the resilience of Erlang. Dedicated to the memory of Joe Armstrong.
| Path | Purpose |
|---|---|
crates/foundation |
Shared types: addresses, causes, farewells, resource budgets, and the system call ABI. No unsafe; testable on the host. |
crates/kernel |
The microkernel, with architecture-specific code in architecture/aarch64 and board-specific code in platform/. |
crates/runtime |
Actor runtime support. |
services/ |
Userland actors: genesis, registry, observatory, distribution, and drivers. |
tools/xtask |
Build and run automation. |
documentation/ |
Architecture notes and decision records. |
tests/ |
Host and QEMU tests. |
Install the toolchain specified in rust-toolchain.toml, then:
rustup target add aarch64-unknown-none-softfloat
rustup component add llvm-tools
cargo install cargo-binutilscargo test # host-side tests
cargo xtask build # build every board
cargo xtask build --board virtual # build QEMU virtual board
cargo xtask build --board raspberry-pi-4 # build Raspberry Pi 4
cargo xtask build --release # build every board in release mode
cargo xtask run # boot QEMU virtual board with eight cores
cargo xtask run-raspberry-pi-4 # boot QEMU on Raspberry Pi 4 board
cargo xtask run --stress # boot QEMU virtual board with eight cores and run the stress test
cargo xtask run-raspberry-pi-4 --stress # boot QEMU on Raspberry Pi 4 board and run the stress testBuild output goes into target/<board>/.
The Raspberry Pi build automatically clones its firmware into
target/raspberry-pi-4/firmware and reuses that checkout on later builds.
The first build requires Git and an internet connection. QEMU virt does
not need a firmware checkout.
To boot a Raspberry Pi 4, copy kernel8.img, config.txt, start4.elf,
fixup4.dat, bcm2711-rpi-4-b.dtb, and overlays/ from
target/raspberry-pi-4/ to a FAT32 boot partition on an SD card.
The firmware/ checkout itself does not belong on the card.
See the contribution guidelines and code of conduct.