Host requirements

The first build requires network access.

Get the source

SSH

git clone --recurse-submodules \
  [email protected]:horizon2038/spencer.git spencer
cd spencer
git submodule status

HTTPS

git -c url."https://github.com/"[email protected]: \
  clone --recurse-submodules \
  https://github.com/horizon2038/spencer.git spencer
cd spencer
git submodule status

Build for x86_64

cargo xtask build \
  --arch x86-64 \
  --platform pc99 \
  --release
Kernelout/x86_64-pc99-release/a9n/kernel.elf
Loaderout/x86_64-pc99-release/a9nloader/a9nloader-rs.efi
Disk Imageout/x86_64-pc99-release/spencer.img

Run with QEMU

cargo xtask run \
  --arch x86-64 \
  --platform pc99 \
  --release

Serial 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 --release

Run 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