Skip to content

Commit 0326518

Browse files
committed
added readme
1 parent 2359700 commit 0326518

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
This QEMU patch introduces irix/solaris userland emulation. It currently runs
2+
only under linux (though BSD support would probably be feasable).
3+
4+
### compiling
5+
6+
Configure QEMU for irix/solaris userland emulation and compile:
7+
8+
> configure --target-list=irix-linux-user,irixn32-linux-user,irix64-linux-user,solaris-linux-user
9+
> make && make install
10+
11+
### using
12+
13+
I recommend using binfmt. Prepare some wrapper scripts for each of the qemu
14+
binaries for irix/solaris using this template:
15+
16+
> #! /bin/sh
17+
>
18+
> ex=$1; shift
19+
> a0=$1; shift
20+
>
21+
> export QEMU_RESERVED_VA=1G
22+
> export QEMU_LD_PREFIX=<target rootfs>
23+
> export QEMU_SET_ENV=LANG=C
24+
>
25+
> exec <qemu binary> -0 $a0 $ex "$@"
26+
27+
Install the binfmt (replace the QEMU* environment variables by the location of
28+
the wrapper scripts):
29+
30+
> echo :irix:M::'\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00':'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xef':${QEMUIRIX32}:P > /proc/sys/fs/binfmt_misc/register
31+
> echo :irixn32:M::'\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20':'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xef':${QEMUIRIXN32}:P > /proc/sys/fs/binfmt_misc/register
32+
> echo :irix64:M::'\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08':'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff':${QEMUIRIX64}:P > /proc/sys/fs/binfmt_misc/register
33+
> echo :solaris:M::'\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02':'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff':${QEMUSOLARIS32}:P > /proc/sys/fs/binfmt_misc/register
34+
35+
Now you should be able to directly execute irix/solaris binaries from the shell.
36+
As a rather simple test, try:
37+
38+
> <target rootfs>/bin/ls
39+
40+
41+
send bug reports, fixes etc to <[email protected]>
42+
Kai-Uwe Bloem

0 commit comments

Comments
 (0)