I'm trying to chroot
into a Arch Linux ARM
filesystem from x86_64
.
I've seen that it's possible to do using static qemu
by copying the binary into the chroot system:
$ cp /usr/bin/qemu-arm archarm-chroot/usr/bin
But despite this I always get the following error:
chroot: failed to run command ‘/bin/bash’: Exec format error
I know this means that the architectures differ. Am I doing something wrong?
binfmt
first, have a look at wiki.debian.org/QemuUserEmulation for a quiet short introduction. An example for configuring binfmt_misc can be found at svn.kju-app.org/trunk/qemu/qemu/qemu-binfmt-conf.sh-static
to the linker options