r/archlinux•
clevarius

Qemu for aarch64 fails

Hello,

I try to create a chroot with an aarch64 installation with arch-bootstrap. It downloads all packages: ./arch-bootstrap -q -a aarch64 arch64. But it fails installing the packages with pacman.

My current analysis show that the downloaded packages can't be executed with qemu-aarch64-static. I downloaded busybox from a different source for aarch64 - and it can be executed. The only difference is:

file aarch64/bin/shaarch64/bin/sh: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped

file aarch64/bin/pacman aarch64/bin/pacman: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=1f620834d24a18f036fe7cace548b99951251e82, for GNU/Linux 3.7.0, stripped

The first one (/bin/sh) works but the second (/usr/bin/pacman) fails. The only difference is

ELF 64-bit LSB executable vs ELF 64-bit LSB pie executable

Looks like the second can't be executet with qemu-aarch54-static. Dou you know the difference?

Posted Dec 23, 2021, 5:27 PM UTC

01
Loading comments…