This document assumes that the host system is running Archlinux.
On your machine, you need binfmt
and qemu
static for the target architecture. You can install these packages:
binfmt-qemu-static-all-arch
qemu-user-static-bin
You need to download your system root from the official Archlinux ARM website. For example:
# mkdir sysroot
# wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
# bsdtar -xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz
# rm ArchLinuxARM-rpi-aarch64-latest.tar.gz
Before changing root, I've found that commenting CheckSpace
in sysroot/etc/pacman.conf
works better. Assuming binfmt
is configured, you can change root and update your systems with the following command:
(host) # arch-chroot sysroot/ /bin/bash
(chroot) # pacman-key --init
(chroot) # pacman-key --populate archlinuxarm
(chroot) # pacman-key -Syu --noconfirm
(chroot) # pacman-key -S --noconfirm base-devel <packages>