• layman -a alexxy
  • build qemu-user with static use flag set
  • register arm binaries in binfmt_misc

run as root

echo ":arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm:" > /proc/sys/fs/binfmt_misc/register
  • copy /usr/bin/qemu-arm to usr/bin under chroot
  • mount proc and binfmt_misc for chroot
  • run qemu-arm -chroot /chrootdir /bin/bash