Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tai271828/bd0dbf4331ddbdf85429e4e2af08d222 to your computer and use it in GitHub Desktop.
Save tai271828/bd0dbf4331ddbdf85429e4e2af08d222 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