README.md (602B)
1 # qemu-wrapper 2 3 A simple wrapper for executing qemu in chroot builds. 4 With this, it is possible to pass arguments to qemu on chrooting, for example: 5 the cpu we wish to emulate. 6 7 ## Usage 8 Compile qemu-wrapper with the below command and place it in `chroot/usr/bin/` 9 ``` 10 gcc -static qemu-wrapper.c -Os -s -o qemu-wrapper 11 ``` 12 13 To let binfmt_misc use it, execute the following: 14 15 ``` 16 echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu-wrapper:' > /proc/sys/fs/binfmt_misc/register 17 ```