me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Document the signed ARM bootstrap and release applet guest checks

diviocity committed 5 days ago · 2a6600853df194e68a92dac2aaad5ee6ad656851 View patch
Unverified signature 2 files changed +53 -0
README.md +2 -0

@@ -81,6 +81,8 @@ a new initramfs with the installed package and a test probe. It boots the

8181package's `/sbin/init`, exercises `ash` and the applet symlinks, and compares

8282the BusyBox executable's SHA-256 inside the guest to the installed copy.

8383The serial transcript goes into `$work/guest/serial.log`.

84+The [AArch64 boot instructions](tests/busybox/README.md) cover the packaged

85+musl loader, UEFI firmware and full release applet checks.

8486

8587To try commands in the packaged shell, generate the interactive image and

8688attach QEMU's serial port to your terminal:

tests/busybox/README.md new file +51 -0

@@ -0,0 +1,51 @@

1+# Boot the packaged shell on AArch64 Vinix

2+

3+Install `musl` and `busybox-bootstrap` by name into a clean test root from a

4+signed aarch64 feed. The released AArch64 kernel uses 16 KiB pages. Use

5+`musl>=1.2.6-4` and its packaged GCC specs to build executables and shared

6+libraries. The sysroot test checks load-segment alignment and file-offset

7+congruence on the loader, a shared object and a dynamically linked program.

8+

9+On the x86-64 Linux builder, put an AArch64 musl GCC cross toolchain and

10+`qemu-system-aarch64` on `PATH`. Set `CROSS_COMPILE` to that compiler's

11+tool prefix and set `AARCH64_EFI_CODE` and `AARCH64_EFI_VARS` to a matching

12+non-secure-boot AAVMF firmware pair. The harness copies the variables template

13+to the new output directory.

14+

15+```sh

16+v -o "$work/boot-test" tests/busybox/boot.v

17+"$work/boot-test" "$installed_root" "$vinix_arm64_iso" "$work/arm-guest" --aarch64-musl

18+```

19+

20+The harness rebuilds the ISO with the supplied release's kernel and Limine

21+bootloader. It uses a diskless QEMU virt machine with GICv3. The probe

22+checks BusyBox init, shell arithmetic, applet links, `uname -o`, and the

23+Vinix allocator's `malloc_trim`. It compares the SHA-256 of the executable

24+and the dynamic loader printed in the guest with their installed files.

25+

26+For the full release applet check, install `busybox`, `busybox-init` and their

27+runtime dependencies into a separate root. The fixture checks the target

28+of every path in `/etc/busybox-paths.d/busybox` and executes a `run-parts`

29+hook.

30+

31+```sh

32+"$work/boot-test" "$release_root" "$vinix_arm64_iso" "$work/arm-release" \

33+ --aarch64-fixture tests/busybox/release.sh

34+```

35+

36+## Verified worker runs

37+

38+The 2026-11-30 AArch64 bootstrap used the 2026-11-28 Vinix release ISO,

39+the harness at `5e65700`, the musl recipe at `784ae32`, and the bootstrap

40+recipe at `6986ca6`. The serial log ends with `VPAC BUSYBOX GUEST PASS`.

41+Its SHA-256 is

42+`ef5efe3ac2c165bf5c7459cab4d57b383221c50029ac8471613cebf02e72d4d7`.

43+The complete image and digest manifest are in the private worker's

44+`arm/coverage/musl-r4/aarch64` directory. The operator's copy of the

45+serial log and manifest is in

46+`~/.local/state/vinix/ports/arm-bootstrap-wbSzWP/receipts/musl-r4/aarch64`.

47+

48+The x86-64 release guest from the same day verified 298 installed BusyBox

49+links and ran the hook. Its serial log SHA-256 is

50+`2adfdde432ff131e42dea57527fdd99946aa4608156d10887f1e5686d3bbfeb4`.

51+The corresponding worker directory is `arm/coverage/release-x86_64`.