Skip to content

Instantly share code, notes, and snippets.

@mariogrip
Created July 16, 2017 01:11
Show Gist options
  • Save mariogrip/bcda7308a562c7f0df2463ce1e9ab3e1 to your computer and use it in GitHub Desktop.
Save mariogrip/bcda7308a562c7f0df2463ce1e9ab3e1 to your computer and use it in GitHub Desktop.
This allows you to run qemu-debootstrap armhf on arm64 systems that does not support armhf native.
```
update-binfmts --package qemu-user-static --install qemu-arm /usr/bin/qemu-arm-static --magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00" --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" --offset 0 --credential yes
```
Then run `qemu-debootstrap` as normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment