amitools icon indicating copy to clipboard operation
amitools copied to clipboard

Feature Request: Support for Linux binfmt

Open christianhujer opened this issue 1 year ago • 2 comments

It would be great to see packaged support for Linux binfmt. Using Linux binfmt, Amiga OS binaries could be directly run from a Linux shell using their name.

I managed to quickly get this running on Ubuntu 22.04 using these files:

File /usr/share/binfms/amiga-vamos:

package amiga-vamos
interpreter /home/christian.hujer/.local/bin/vamos
magic \x00\x00\x03\xf3

(The path in the file obviously would have to be set correctly by make install-binfmt or whatever would be used.)

Then I ran sudo update-binfmts --import amiga-vamos and sudo service binfmt-support force-reload. And voilà, I could run an Amiga-OS binary by making it executable chmod +x hello and then running it using ./hello.

christianhujer avatar Nov 19 '22 16:11 christianhujer