Build and boot A9N
Build A9N and the sample Nun Init with SPENCER, then boot them with QEMU.
Host requirements
- Git
- rustup/Cargo (nightly-2026-03-25 with rust-src)
- CMake 3.29 or later, Ninja
- LLVM 18 or later (Clang, Clang++, LLD, and llvm-config)
- NASM (x86_64)
- QEMU for the selected architecture
- Docker (when building AArch64 U-Boot from source)
The first build requires network access.
Get the source
SSH
git clone --recurse-submodules \
[email protected]:horizon2038/spencer.git spencer
cd spencer
git submodule statusHTTPS
git -c url."https://github.com/"[email protected]: \
clone --recurse-submodules \
https://github.com/horizon2038/spencer.git spencer
cd spencer
git submodule statusBuild for x86_64
cargo xtask build \
--arch x86-64 \
--platform pc99 \
--releaseKernel
out/x86_64-pc99-release/a9n/kernel.elfLoader
out/x86_64-pc99-release/a9nloader/a9nloader-rs.efiDisk Image
out/x86_64-pc99-release/spencer.imgRun with QEMU
cargo xtask run \
--arch x86-64 \
--platform pc99 \
--releaseSerial output
Nun - an operating system framework based on the A9N Microkernel
Configuring <init> ...
Configuring Initial IPC buffer to thread local storage...
Hello, world!
version: <kernel version>Add --accel off to use software emulation.
AArch64
cargo xtask build --arch aarch64 --platform qemu --release
cargo xtask run --arch aarch64 --platform qemu --releaseRun with multiple cores
Using two or more virtual CPUs requires --enable-smp.
cargo xtask run \
--arch x86-64 \
--platform pc99 \
--release \
--enable-smp \
--smp 4