Skip to content

RunuX v11.3.8 — real AArch64 boot, a third architecture from scratch, independently verified on GCP

Choose a tag to compare

@xaviercallens xaviercallens released this 27 Sep 12:20
· 47 commits to main since this release
74f21be

What's new

RunuX now boots on a third real architecture. examples/aarch64_qemu_harness
(#73) is genuinely new code -- no AArch64 support of any kind existed in
this repo before this release (unlike RISC-V, which already had working
boot code just undiscovered, and x86_64, which had a partial broken
scaffold). The entry code defensively handles all three possible
starting exception levels (EL3, EL2, EL1) since QEMU's virt machine
starts a -kernel-loaded image at EL2 by default with no secure
firmware; it drops through to EL1 before ever touching Rust, then --
like the x86_64 harness -- calls real kernel_types::SafePageFrame
logic (valid-pointer and null-rejection paths both exercised), and
shuts QEMU down cleanly via PSCI SYSTEM_OFF (exit code 0).

Independently re-verified on a machine that never touched this repo
before
(#74): a fresh GCP e2-micro VM (always-free tier, deleted
after use), cloned over HTTPS, installed qemu-system-arm via normal
apt-get, built and booted the harness without modification. Result:
PASS, then a 30-run benchmark -- 30/30 boots succeeded, mean 0.0392s,
95% CI [0.0388s, 0.0395s]. This is the fastest of the three harnesses
(0.062s riscv64, 0.552s x86_64) because it has the simplest boot path
-- direct ELF load, no firmware stage -- not because the code is
"better"; the telemetry doc says this explicitly. Full write-up:
docs/roadmap/AARCH64_BOOT_TELEMETRY.md.

No native ARM hardware was used anywhere in this verification --
QEMU TCG cross-emulation on an x86_64 host throughout, stated
explicitly rather than implied otherwise. Same as the other two
releases, no Linux comparison is made or implied.

What's still stub: no real GIC, no real page tables
(aarch64_pgtable_init still prints and returns), not wired into CI
yet (a PR adding it is prepared but blocked on a token-scope issue --
see the repo's CI status), no scheduler/drivers/filesystem/userspace.

RunuX has now independently, honestly verified a real boot on all
three architectures its README claims to support: x86_64, RISC-V, and
AArch64.

Try it yourself

Attached below: the exact aarch64_qemu_harness binary measured above
(aarch64-unknown-none, release profile) and the raw benchmark CSV.
Boots directly, no packaging needed:

qemu-system-aarch64 -machine virt -cpu cortex-a72 -nographic -nic none \
  -kernel aarch64-qemu-harness-v11.3.7

Or build and verify from source:

git clone https://github.com/xaviercallens/rust-linux-mini-kernel.git
cd rust-linux-mini-kernel
sudo apt-get install -y qemu-system-arm
rustup target add aarch64-unknown-none
bash scripts/aarch64_boot_test.sh
bash scripts/aarch64_boot_bench.sh --runs 30

PRs in this release

  • #73 -- Real AArch64 boot -- a third architecture, from scratch
  • #74 -- AArch64 boot telemetry: independent GCP verification, n=30 latency bench

Full multi-arch boot milestone (this release + v11.3.4/v11.3.6)

Arch Boot path Mean latency (n=30) Release
RISC-V OpenSBI -> S-mode, direct -kernel 0.0617s v11.3.4
x86_64 GRUB Multiboot2 -> 64-bit long mode 0.5518s v11.3.6
AArch64 Direct -kernel -> EL1, PSCI shutdown 0.0392s this release