Skip to main content

Prerequisites

Build host​

The reference build host is an x86_64 Linux machine. The reference environment is the container in misc-tools/build-env/, based on Ubuntu 22.04. It includes the aarch64 cross toolchain, QEMU user emulation and the filesystem and image tools the build needs.

The container is recommended because the build runs chroot into an aarch64 Alpine root filesystem and needs tools that are not installed by default on most hosts. The build scripts download the Alpine minirootfs with wget; make sure wget is available in the container or on the host.

RequirementDetails
Architecturex86_64
Operating systemLinux; the provided container is Ubuntu 22.04
Privilegesroot, or sudo inside the build environment
NetworkGitHub and the Alpine package mirrors used by the build
Dockerfor the recommended container workflow

Root access and devices​

The build creates loop devices and filesystems. Start the container with --privileged and mount /dev, as shown in Building NAOS. A native build needs the same access.

Choose a board​

Use one of the board names in Supported boards, for example mixtile-core3588e-nano. The value is passed to build.sh --board.

Keys​

The repository contains development keys so a first image can be built. Replace them before deploying a device.

KeyUsed forReplace at
Secure boot key pairSigns the FIT boot imagepackages/keys/
Filesystem encryption keyEncrypts the system and userdata imagestools/linux_securitydm/encrypted_key
SSH CA public keyAuthorizes SSH user certificatespackages/alpine/etc/ssh/ssh_ca_key.pub
USB offline upgrade keysSigns and encrypts USB update packagestools/upgrade_key/ and packages/alpine/etc/upgrade/

The commands to generate and install each key are in Replacing keys.

warning

Do not use the development keys for production. The SSH CA public key in the repository does not correspond to a private key you control, so replace it before building an image you need to log in to.

Optional: APK repository​

The full-image path does not need an APK repository. The package path and Image Generation do: genimage-tools downloads U-Boot, kernel and root filesystem APKs from a repository you host.

Next step​

Building NAOS