2026-06-17 12:16:09 -04:00
|
|
|
# ForgeOS ARM64
|
2026-06-16 14:07:52 -04:00
|
|
|
|
2026-06-17 12:55:11 -04:00
|
|
|
ForgeOS ARM64 is a 64-bit ARM/AArch64 OS image assembled by this repository.
|
|
|
|
|
The target now boots systemd as PID 1 and uses Nix as the core package manager.
|
|
|
|
|
BusyBox is retained as a static early-boot and rescue utility layer, not as the
|
|
|
|
|
init system.
|
2026-06-16 14:07:52 -04:00
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
As of `2026-06-17`, this flavor defaults to:
|
2026-06-16 14:07:52 -04:00
|
|
|
|
|
|
|
|
- Linux kernel `7.1`
|
2026-06-17 12:55:11 -04:00
|
|
|
- systemd `256`
|
|
|
|
|
- Nix `2.34.0` using the official `aarch64-linux` binary tarball
|
|
|
|
|
- BusyBox `1.36.1` as static rescue utilities
|
2026-06-17 12:16:09 -04:00
|
|
|
- ARM64 / AArch64 only
|
2026-06-16 14:07:52 -04:00
|
|
|
- 64-bit only
|
2026-06-17 12:16:09 -04:00
|
|
|
- UEFI boot through `EFI/BOOT/BOOTAA64.EFI`
|
2026-06-17 12:55:11 -04:00
|
|
|
- GPT disk image with an EFI system partition and ext4 root partition
|
2026-06-17 12:16:09 -04:00
|
|
|
- serial console on `ttyAMA0`
|
2026-06-16 14:07:52 -04:00
|
|
|
|
|
|
|
|
## What This Repository Produces
|
|
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
- a ForgeOS ARM64 build pipeline
|
2026-06-17 12:55:11 -04:00
|
|
|
- a systemd-managed root filesystem with:
|
|
|
|
|
- login prompts on `tty1` and `ttyAMA0`
|
|
|
|
|
- systemd-networkd DHCP networking
|
|
|
|
|
- systemd-resolved and systemd-timesyncd
|
|
|
|
|
- nix-daemon and a boot-time Nix store registration service
|
2026-06-16 14:07:52 -04:00
|
|
|
- a bootable GPT disk image with:
|
|
|
|
|
- an EFI system partition
|
|
|
|
|
- an ext4 root partition
|
2026-06-17 12:16:09 -04:00
|
|
|
- a direct QEMU smoke-test path using `qemu-system-aarch64`
|
2026-06-16 14:07:52 -04:00
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-06-17 12:16:09 -04:00
|
|
|
cd ForgeOS-ARM64
|
2026-06-16 15:21:12 -04:00
|
|
|
sudo scripts/install-deps.sh
|
2026-06-16 14:07:52 -04:00
|
|
|
make rootfs
|
|
|
|
|
make run
|
|
|
|
|
```
|
|
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
The default console accounts are `forge` and `root`; both use the password
|
2026-06-17 12:55:11 -04:00
|
|
|
`forge`.
|
2026-06-16 14:07:52 -04:00
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
To build a bootable ARM64 UEFI disk image:
|
2026-06-16 18:26:55 -04:00
|
|
|
|
|
|
|
|
```bash
|
2026-06-17 12:16:09 -04:00
|
|
|
cd ForgeOS-ARM64
|
2026-06-16 15:36:43 -04:00
|
|
|
sudo scripts/install-image-deps.sh
|
2026-06-16 14:07:52 -04:00
|
|
|
make image
|
|
|
|
|
make run-image
|
|
|
|
|
```
|
|
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
The disk image is written to `out/forgeos-arm64-7.1.img`.
|
2026-06-16 14:07:52 -04:00
|
|
|
|
|
|
|
|
## Build Notes
|
|
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
- The kernel is built with Linux `ARCH=arm64` and defaults to the ARM64
|
|
|
|
|
`defconfig` plus ForgeOS options for EFI, virtio, PL011 serial, ext4, vfat,
|
2026-06-17 12:55:11 -04:00
|
|
|
initramfs, framebuffer console, and common QEMU `virt` devices.
|
|
|
|
|
- On non-AArch64 hosts, the build defaults to
|
|
|
|
|
`CROSS_COMPILE=aarch64-linux-gnu-`.
|
|
|
|
|
- systemd is built with Meson/Ninja and installed into the target rootfs through
|
|
|
|
|
`DESTDIR`.
|
|
|
|
|
- Nix is staged from the official ARM64 binary tarball, then registered at first
|
|
|
|
|
boot by `forgeos-nix-bootstrap.service`.
|
|
|
|
|
- BusyBox is still built statically to provide `/bin/sh`, `switch_root`,
|
|
|
|
|
`getty`, diagnostics helpers, and rescue tools needed before Nix is available.
|
2026-06-17 12:16:09 -04:00
|
|
|
- GRUB is built for `arm64-efi` and installed at `EFI/BOOT/BOOTAA64.EFI`.
|
|
|
|
|
- The ARM64 Linux `Image` is also copied to `EFI/BOOT/FORGEOS.EFI` for GRUB to
|
|
|
|
|
load through the EFI stub.
|
|
|
|
|
- The default QEMU path uses `qemu-system-aarch64 -machine virt`.
|
2026-06-17 12:55:11 -04:00
|
|
|
|
|
|
|
|
## Systemd Build Requirements
|
|
|
|
|
|
|
|
|
|
The rootfs script can build systemd from upstream source, but systemd is not a
|
|
|
|
|
single static binary. The build needs ARM64 development libraries visible through
|
|
|
|
|
pkg-config and runtime libraries available for staging. Override these when
|
|
|
|
|
using a custom sysroot:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
SYSTEMD_PKG_CONFIG_LIBDIR=/path/to/sysroot/usr/lib/pkgconfig \
|
|
|
|
|
SYSTEMD_RUNTIME_LIB_DIRS=/path/to/sysroot/lib:/path/to/sysroot/usr/lib \
|
|
|
|
|
make rootfs
|
|
|
|
|
```
|
2026-06-16 14:07:52 -04:00
|
|
|
|
|
|
|
|
## Current Limits
|
|
|
|
|
|
2026-06-17 12:16:09 -04:00
|
|
|
- ARM64 UEFI only; BIOS and 32-bit ARM are not supported.
|
2026-06-17 12:55:11 -04:00
|
|
|
- No desktop environment or graphical login is built by this repository.
|
2026-06-17 12:16:09 -04:00
|
|
|
- Hardware support beyond the QEMU `virt` platform depends on kernel config work
|
|
|
|
|
for the target board or machine.
|
2026-06-17 12:55:11 -04:00
|
|
|
- Secure Boot still requires enrolling your generated local signing certificate.
|
2026-06-17 12:16:09 -04:00
|
|
|
|
|
|
|
|
More detail is in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
|
|
|
|
|
Installer usage is documented in [docs/INSTALLER.md](docs/INSTALLER.md).
|