Enable aarch64 cross-compilation for uConsole CM5 builds #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
To build and deploy NixOS configurations for the uConsole CM5 (ARM64/aarch64) from the x86_64 Hermes container, we need QEMU user-mode emulation with binfmt_misc support.
Problem
The Hermes Agent container runs on x86_64, but the uConsole CM5 uses an ARM64 processor. Cross-compilation requires:
Required Changes
Dockerfile (compose repo)
The following PRs add the necessary packages to the Hermes Agent image:
Full dependency chain:
All PRs are in: https://code.lazyworkhorse.net/gortium/compose/pulls/
Docker Compose Configuration
After merging the Dockerfile PRs, the compose stack needs to be rebuilt:
Verification
After deployment, verify cross-compilation works:
Deployment Order
Merge compose PRs (in order):
Rebuild Hermes container:
Verify cross-compilation:
Related
uConsole Configuration
Compose Dockerfile PRs
Notes
Hermes referenced this issue2026-05-03 08:58:30 +00:00