Skip to content

Try it in two minutes

Everything here runs in QEMU on a Mac or a Linux machine. Each level needs a little more setup than the one before; stop at any level.

Level 1: HAVEN, the try bundle (about 15 s to run)

Section titled “Level 1: HAVEN, the try bundle (about 15 s to run)”

Needs qemu-system-aarch64 (9.2 or later), python3 and dtc (macOS: brew install qemu dtc; Debian and Ubuntu: sudo apt install qemu-system-arm python3 device-tree-compiler).

Download the release try-20261115.1 (built and tested by CI), check it and run it:

Terminal window
curl -LO https://github.com/NguyenTrongPhuc552003/haven/releases/download/try-20261115.1/haven-try-v0.6.0-425-g13dd128.tar.gz
curl -LO https://github.com/NguyenTrongPhuc552003/haven/releases/download/try-20261115.1/haven-try-v0.6.0-425-g13dd128.tar.gz.sha256
shasum -a 256 -c haven-try-v0.6.0-425-g13dd128.tar.gz.sha256
tar xzf haven-try-v0.6.0-425-g13dd128.tar.gz
cd haven-try-v0.6.0-425-g13dd128/
./try.sh

To build the same archive from a HAVEN checkout instead (this needs the ARM64 cross toolchain from Level 2): scripts/release/make-try-bundle.sh dist. elmos demo haven fetches the release for you.

You see two partitions on two CPUs, read-back reporting that the enforced state matches the grant, and then a seeded fault that both partitions’ own checks miss and only read-back reports.

Level 2: the same, and Linux with KDAL, through ELMOS

Section titled “Level 2: the same, and Linux with KDAL, through ELMOS”

With ELMOS built (task build in its repository):

Terminal window
elmos demo haven # level 1, downloaded and checked for you
elmos demo linux # Linux v6.18 arm64 + alpine:3; KDAL loads and prints
# the hardware it needs. Exit QEMU with Ctrl-A X.

Assets are checked against each release’s SHA256SUMS and cached in ~/.elmos/demo, so later runs work offline.

  • HAVEN from source: the HAVEN quick start.
  • A kernel, modules and a root file system on macOS: the ELMOS getting-started guide. Building Linux natively on macOS is experimental (upstream does not support macOS as a build host); ELMOS keeps it working for v6.18.

Running on the real board (Orange Pi 6 Plus, CIX P1) comes later in the thesis.