Box86/Box64 as part of binfmt

Hey,

Currently binfmt runs everything in a qemu container – should we allow for a new flag/option to allow for box86 and 64 emulation for arm devices as well? AFAICT this is the only tool that allows for Linux ↔ Linux translations on binaries, so I don’t think I’ve seen this anywhere else.

I know it’s currently in nixpkgs but I’d like to get some opinions on exposing it via binfmt first before (potentially) working on it.

2 Likes

Use boot.binfmt.registrations instead of boot.binfmt.emulatedSystems. The documentation doesn’t state that the latter using qemu, which is bad. Also box86 and box64 can have their own modules.

2 Likes

Interesting, did not know that this was an option! I suppose that enabling box64/86 should conflict with the registered systems’ QEMU – I’ll try and get to it if I have time