Skip to content

Commit 3d22176

Browse files
committed
added reference to helper scripts in README.md
1 parent e981733 commit 3d22176

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

README.md

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ only under linux (though BSD support would probably be feasable).
33

44
### compiling
55

6-
Configure QEMU for irix/solaris userland emulation and compile:
6+
Configure QEMU for irix/solaris userland emulation and compile (see the original
7+
QEMU README for further instructions):
78

89
```
910
configure --target-list=irix-linux-user,irixn32-linux-user,irix64-linux-user,solaris-linux-user
@@ -12,31 +13,10 @@ make && make install
1213

1314
### using
1415

15-
I recommend using binfmt. Prepare some wrapper scripts for each of the qemu
16-
binaries for irix/solaris using this template:
17-
18-
```
19-
#! /bin/sh
20-
21-
ex=$1; shift
22-
a0=$1; shift
23-
24-
export QEMU_RESERVED_VA=1G
25-
export QEMU_LD_PREFIX=<target rootfs>
26-
export QEMU_SET_ENV=LANG=C
27-
28-
exec <qemu binary> -0 $a0 $ex "$@"
29-
```
30-
31-
Install the binfmt (replace the QEMU* environment variables by the location of
32-
the wrapper scripts):
33-
34-
```
35-
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
36-
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
37-
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
38-
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
39-
```
16+
I recommend using binfmt. I have prepared some scripts for this which you can
17+
obtain from my qemu-irix-helpers repository at github. Adapt the wrapper scripts
18+
to your setup and install them somewhere in your executable path. Activate them
19+
with the binfmt install scripts.
4020

4121
Now you should be able to directly execute irix/solaris binaries from the shell.
4222
As a rather simple test, try:

0 commit comments

Comments
 (0)