@@ -3,7 +3,8 @@ only under linux (though BSD support would probably be feasable).
3
3
4
4
### compiling
5
5
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):
7
8
8
9
```
9
10
configure --target-list=irix-linux-user,irixn32-linux-user,irix64-linux-user,solaris-linux-user
@@ -12,31 +13,10 @@ make && make install
12
13
13
14
### using
14
15
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.
40
20
41
21
Now you should be able to directly execute irix/solaris binaries from the shell.
42
22
As a rather simple test, try:
0 commit comments