3 ms·
binfmt_misc is awesome. Little known fact: on most distros, you can combine the power of binfmt and qemu to run binaries from another architecture: either in a
by Aissen 8y ago
binfmt_misc is awesome. Little known fact: on most distros, you can combine the power of binfmt and qemu to run binaries from another architecture: either in a chroot/container or directly in debian:
https://wiki.debian.org/QemuUserEmulation https://wiki.debian.org/QemuUserEmulation
https://npmccallum.gitlab.io/post/cross-architecture-roots-with-dnf/ https://npmccallum.gitlab.io/post/cross-architecture-roots-w...
This allows you to test your rasberry pi images/binaries directly on your x86 machine (and vice-versa), for example.
- aurelian15 8y agoI was once extremely confused by this black magic. For some reason, the binaries that I cross-compiled for an embedded ARM system ran on the host system! I forgot that I installed Qemu a while ago, and someone at Stack Overflow had to point me at binfmt_misc [1] [1] https://stackoverflow.com/questions/37912290/arm-linux-executable-mysteriously-runs-on-x86-64 https://stackoverflow.com/questions/37912290/arm-linux-execu...