Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
gentoo arm chroot cross build

Install qemu in host

Add this to make.conf:


Add this to package.use:

app-emulation/qemu static-user
emerge qemu --ask


Register ARM:

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

systemctl restart systemd-binfmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment