Package Details: binfmt-qemu-static 20190112-4

Git Clone URL: https://aur.archlinux.org/binfmt-qemu-static.git (read-only, click to copy)
Package Base: binfmt-qemu-static
Description: Register qemu-static interpreters for various binary formats
Upstream URL: http://www.freedesktop.org/software/systemd/man/binfmt.d.html
Licenses: GPL
Submitter: net147
Maintainer: Stykers
Last Packager: Stykers
Votes: 25
Popularity: 0.067128
First Submitted: 2013-12-31 06:30
Last Updated: 2019-07-25 11:57

Dependencies (1)

Sources (1)

Latest Comments

gamezelda commented on 2020-03-05 16:35

Like I also posted in binfmt-qemu-static-all-arch, relative to the binaries in qemu-user-static-bin, those architectures files are still missing:

qemu-aarch64_be
qemu-hppa
qemu-microblazeel
qemu-mips64
qemu-mips64el
qemu-mipsn32
qemu-mipsn32el
qemu-nios2
qemu-or1k
qemu-ppc64le
qemu-riscv32
qemu-tilegx
qemu-xtensa
qemu-xtensaeb

It looks like definitions can be found here: https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh , except I didn't found qemu-nios2 and qemu-tilegx, but the rest should be there.

EDIT: I could generate a list of formats like this, however it looks like some of the existing binfmts have masks that are a bit different?! However this comes from the official qemu distribution so I guess it can be trusted?

rm -rf /tmp/qemubinfmts && mkdir -p /tmp/qemubinfmts && ./qemu-binfmt-conf.sh --systemd ALL --exportdir /tmp/qemubinfmts --qemu-path /usr/bin --qemu-suffix -static && for x in /tmp/qemubinfmts/*; do cat "$x" | sed 's/$/CF/'; done

SirCmpwn commented on 2019-07-31 11:50

Can you add ppc64le to this?

falstaff_ch commented on 2019-01-11 14:03

Can you also add the C and F flag at the end?

C: to determine new process credentials based on program file rather than interpreter file (see setuid); implies O flag. F: to make the kernel open the binary at configuration time instead of lazily at startup time, so that it is available inside other mount namespaces and chroots as well.

SamWhited commented on 2018-11-02 15:07

Please add riscv64:

:qemu-riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64-static:

(assuming https://wiki.debian.org/RISC-V is up to date)

Strit commented on 2018-10-09 18:13

Won't the interpretors need to be updated when the binaries get updated? I ask, because the binaries where updated in August and I have been having problems since that happened.

dariost commented on 2018-08-15 12:58

Could you add qemu-riscv32 and qemu-riscv64?

chungy commented on 2015-02-08 05:08

aarch64 can be enabled by uncommenting the arm64 line and replacing "arm64" with "aarch64". The existing magic and mask should be good.

rains commented on 2015-01-28 06:42

sudo update-binfmts --enable qemu-arm

i got this error when i run ./busybox-arm

% ./busybox-arm
zsh: exec format error: ./busybox-arm

sudo update-binfmts --display qemu-arm
qemu-arm (enabled):
package = package qemu-user-static
type = interpreter /usr/bin/qemu-arm-static
offset = credentials yes
magic = offset 0
mask = magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00
interpreter = mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
detector =

----------------------------------------
you can see that 'magic *' line doesn't aligned with 'magic =' line, the same issue can be seen on the type/offset/mask/interpreter lines.

chungy commented on 2014-05-29 10:40

Could the depends on qemu-static be dropped please, or at least changed to an optdepends=('qemu-static')?

I'm just wanting to use the binfmt conf to assist with creating a Debian SPARC chroot, and since Debian has its own qemu-user-static package, I don't really need to install one from AUR. Thanks :)