From 97f91102c1f7fad5cc88a707ce91531d8be1b414 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Wed, 21 Jan 2026 01:29:13 +0100 Subject: [PATCH] rootfs: enable loong64 in qemu binfmt registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add loong64 to the list of architectures prepared by prepare_host_binfmt_qemu_cross(). This allows automatic registration and use of qemu-user emulation for LoongArch64 guests, enabling rootfs bootstrap and CI workflows targeting loong64. This aligns Armbian with Debian’s upcoming native loong64 support (Forky) and allows testing already via debian-ports and qemu-system-loongarch64. Signed-off-by: Igor Pecovnik --- lib/functions/rootfs/qemu-static.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/rootfs/qemu-static.sh b/lib/functions/rootfs/qemu-static.sh index efb159793f..b076d01b82 100644 --- a/lib/functions/rootfs/qemu-static.sh +++ b/lib/functions/rootfs/qemu-static.sh @@ -132,7 +132,7 @@ function prepare_host_binfmt_qemu_cross() { declare host_arch host_arch="$(arch)" - declare -a wanted_arches=("arm" "aarch64" "x86_64" "riscv64") + declare -a wanted_arches=("arm" "aarch64" "x86_64" "riscv64" "loongarch64") declare -A arch_aliases=(["aarch64"]="arm64" ["x86_64"]="amd64") display_alert "Preparing binfmts for arch" "binfmts: host '${host_arch}', wanted arches '${wanted_arches[*]}'" "debug" declare wanted_arch arch_alias