Use an ARM64 Debian rootfs bootstrap because the original source-built userspace path depends on native x86_64 host runtime libraries.
2.5 KiB
ForgeOS ARM64 Architecture
Goal
ForgeOS ARM64 is the AArch64 flavor of ForgeOS. It targets 64-bit ARM systems with UEFI firmware and keeps the ForgeOS image builder, boot layout, kernel configuration style, default user setup, and Nix integration.
The original x86_64 ForgeOS source-built userspace path depends on native host
runtime libraries for PAM, systemd, D-Bus, and BusyBox. This ARM64 flavor uses a
Debian arm64 rootfs bootstrap instead, which gives the architecture flavor a
real ARM64 userspace while the source-built cross-sysroot work remains future
work.
Boot Model
- The disk image contains a GPT.
- Partition 1 is a FAT32 EFI System Partition labeled
FORGE_EFI. out/BOOTAA64.EFIis a standalone GRUB UEFI fallback loader built forarm64-efi.- The ARM64 Linux
Imagewith EFI stub support is copied toEFI/BOOT/FORGEOS.EFI. - UEFI firmware executes GRUB from
EFI/BOOT/BOOTAA64.EFI. - GRUB starts the kernel with
root=PARTLABEL=root. - systemd starts from the ARM64 rootfs and launches console login on
tty1and serial login onttyAMA0.
Root Filesystem Model
The default rootfs is assembled in staging/rootfs from:
- Debian
trixieARM64 packages - ForgeOS identity, user, network, and systemd defaults
- kernel modules from the ARM64 kernel build
- the official Nix
aarch64-linuxbinary tarball staged into/nix/store
The default package set is intentionally console-focused. It includes systemd,
D-Bus, sudo, locales, CA certificates, kmod, iproute2, ping, procps, resolved,
and timesyncd. The optional DESKTOP=gnome flavor uses the same ARM64 kernel and
image flow with a larger Debian GNOME rootfs.
QEMU Model
The run scripts use qemu-system-aarch64 with:
-machine virt-cpu max- PL011 serial console through
ttyAMA0 - AAVMF firmware for UEFI image boots
- virtio block, network, rng, and GPU devices where appropriate
Known Gaps
- Source-built ARM64 systemd/PAM/D-Bus userspace.
- Board-specific kernel profiles beyond QEMU
virt. - Microsoft/shim-signed Secure Boot chain.
- Declarative NixOS-style system rebuilds and rollback management.
- In-OS guided installer and update system.
Suggested Next Steps
- Add a cross-built ARM64 sysroot for source-built systemd, PAM, D-Bus, and BusyBox.
- Add hardware profiles for common ARM64 laptops, SBCs, and servers.
- Add CI that builds
make kernel,make rootfs, andmake imageon an x86_64 host with the AArch64 cross toolchain. - Add an ARM64 Secure Boot/shim story for real hardware deployment.