10 |
|
|
11 |
<!-- |
<!-- |
12 |
|
|
13 |
$Id: guestoses.html,v 1.124 2006/02/18 21:03:10 debug Exp $ |
$Id: guestoses.html,v 1.148 2006/06/23 20:23:40 debug Exp $ |
14 |
|
|
15 |
Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
16 |
|
|
48 |
<p> |
<p> |
49 |
<ul> |
<ul> |
50 |
<li><a href="#generalnotes">General notes on running "guest OSes"</a> |
<li><a href="#generalnotes">General notes on running "guest OSes"</a> |
51 |
<li><a href="#netbsdpmaxinstall">NetBSD/pmax</a> |
<li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0 or 1.6.2</a> |
52 |
<li><a href="#netbsdarcinstall">NetBSD/arc</a> |
<li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a> |
53 |
<li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a> |
<li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.0</a> |
54 |
<li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a> |
<li><a href="#netbsdcobaltinstall">NetBSD/cobalt 2.1</a> |
55 |
<li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a> |
<li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 2.1</a> |
56 |
<li><a href="#netbsdsgimips">NetBSD/sgimips</a> |
<li><a href="#netbsdsgimips">NetBSD/sgimips 3.0</a> |
57 |
<li><a href="#netbsdcatsinstall">NetBSD/cats</a> |
<li><a href="#netbsdcatsinstall">NetBSD/cats 3.0</a> |
58 |
<li><a href="#netbsdevbarminstall">NetBSD/evbarm</a> |
<li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a> |
59 |
<li><a href="#netbsdprepinstall">NetBSD/prep</a> |
<li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a> |
60 |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax</a> |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a> |
61 |
<li><a href="#openbsdcatsinstall">OpenBSD/cats</a> |
<li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a> |
62 |
<li><a href="#ultrixinstall">Ultrix/RISC</a> |
<li><a href="#ultrixinstall">Ultrix/RISC 4.5</a> |
63 |
<li><a href="#sprite">Sprite for DECstation</a> |
<li><a href="#sprite">Sprite for DECstation</a> |
64 |
<li><a href="#declinux">Debian GNU/Linux for DECstation</a> |
<li><a href="#declinux">Debian GNU/Linux for DECstation</a> |
65 |
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
66 |
</ul> |
</ul> |
67 |
|
|
|
<p>In addition to the "working" guest operating systems listed above, |
|
|
you might find the following information interesting: |
|
|
<ul> |
|
|
<li><a href="#mach">Mach/PMAX</a> |
|
|
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
|
|
<li><a href="#openbsdarcinstall">OpenBSD/arc</a> |
|
|
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
|
|
<li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a> |
|
|
</ul> |
|
|
|
|
68 |
|
|
69 |
|
|
70 |
|
|
75 |
<h3>General notes on running "guest OSes":</h3> |
<h3>General notes on running "guest OSes":</h3> |
76 |
|
|
77 |
The emulator works well enough to run complete operating systems. These |
The emulator works well enough to run complete operating systems. These |
78 |
are often refered to as "guest" operating systems. |
are often refered to as <i>guest</i> operating systems, in contrast to the |
79 |
|
<i>host</i> operating system which the emulator is running under. |
80 |
|
|
81 |
<p> |
<p>Although it is possible to let a guest OS access real hardware, such as |
82 |
Although it is possible to let a guest OS access real hardware, such as |
harddisks, it is much more flexible and attractive to simulate harddisks |
83 |
harddisks, it is much more flexible and attractive to simulate harddisks |
using files residing in the host's filesystem. On Unix-like systems, files |
84 |
using files residing in the host's filesystem. On Unix-like systems, files |
may contain holes, which makes this really simple. To the guest operating |
|
may contain holes, which makes this really simple. To the guest operating |
|
85 |
system, the harddisk image looks and acts like a real disk. |
system, the harddisk image looks and acts like a real disk. |
86 |
|
|
87 |
|
<p>The version numbers of the various operating systems were the latest |
88 |
|
versions that worked satisfactory with GXemul at the time this page was |
89 |
|
updated; if new versions have been released since then, they might work as |
90 |
|
well. |
91 |
|
|
92 |
|
<p>In addition to the "working" guest operating systems listed above, |
93 |
|
you might find the following information interesting: (Some of these might |
94 |
|
not be relevant for this specific release of GXemul.) |
95 |
|
|
96 |
|
<ul> |
97 |
|
<li><a href="#mach">Mach/PMAX</a> |
98 |
|
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
99 |
|
<li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a> |
100 |
|
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
101 |
|
<li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a> |
102 |
|
<li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a> |
103 |
|
</ul> |
104 |
|
|
105 |
|
<p>Some operating systems are listed with a version number <i>less</i> |
106 |
|
than what was available at the time of this GXemul release (e.g. |
107 |
|
NetBSD/prep). The reasons for this is because of incompleteness in |
108 |
|
GXemul's machine, device, and/or processor implementations. |
109 |
|
|
110 |
|
|
111 |
|
|
117 |
<a name="netbsdpmaxinstall"></a> |
<a name="netbsdpmaxinstall"></a> |
118 |
<h3>NetBSD/pmax:</h3> |
<h3>NetBSD/pmax:</h3> |
119 |
|
|
120 |
<p> |
<p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the |
121 |
|
first guest OS that could be installed onto a disk image in GXemul. The |
122 |
|
device emulation of the DECstation 5000/200 is reasonably complete; it |
123 |
|
should be enough to emulate a networked X-windows-capable workstation. |
124 |
|
|
125 |
|
<p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately, |
126 |
|
newer NetBSD releases have changed slightly, and nowadays X does not |
127 |
|
work straight away. (It seems that this has to do with NetBSD switching |
128 |
|
console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had |
129 |
|
time to figure out how to make it work; at worst it might require a kernel |
130 |
|
recompilation.) What this means is that if you want to use emulated X11, |
131 |
|
then you need to run NetBSD 1.6.2. If you feel that you only need |
132 |
|
serial-console emulation, then choose the latest NetBSD version available. |
133 |
|
|
134 |
|
<p> |
135 |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
136 |
|
|
137 |
<p>To install <a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> |
<p>To install NetBSD/pmax onto a harddisk image in the emulator, |
138 |
onto a harddisk image in the emulator, follow these instructions: |
follow these instructions: |
139 |
|
|
140 |
<p><ol start="1"> |
<p><ol start="1"> |
141 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
142 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
143 |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b> |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=1900000</b> |
144 |
|
|
145 |
</pre> |
</pre> |
146 |
</ol> |
</ol> |
155 |
<ol start="2"> |
<ol start="2"> |
156 |
|
|
157 |
<li>Download a NetBSD CD-ROM iso image:<pre> |
<li>Download a NetBSD CD-ROM iso image:<pre> |
158 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a> |
159 |
or |
or |
160 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso</a> |
161 |
|
|
162 |
</pre> |
</pre> |
163 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
164 |
<b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b> |
<b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b> |
165 |
(or <b>pmaxcd.iso</b>) |
(or <b>pmaxcd.iso</b>) |
166 |
</pre> |
</pre> |
167 |
and proceed like you would do if you were installing NetBSD on a real |
and proceed like you would do if you were installing NetBSD on a real |
174 |
<ol start="2"> |
<ol start="2"> |
175 |
|
|
176 |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
177 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
178 |
or |
or |
179 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
180 |
|
|
181 |
</pre> |
</pre> |
182 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
183 |
<b>gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gz</b> |
<b>gxemul -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz</b> |
184 |
</pre> |
</pre> |
185 |
and proceed like you would do if you were installing NetBSD on a real |
and proceed like you would do if you were installing NetBSD on a real |
186 |
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
210 |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
211 |
</pre> |
</pre> |
212 |
|
|
213 |
<p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x and 3.x |
<p>If you installed NetBSD/pmax 1.6.2, then try the following to start |
214 |
do not work with X out-of-the-box on pmax. It seems that this has to do |
with a framebuffer:<pre> |
|
with NetBSD switching console system to "WSCONS" somewhere between 1.6.2 |
|
|
and 2.0. For now, if you want X, then try NetBSD 1.6.2. |
|
|
|
|
|
<p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre> |
|
215 |
<b>gxemul -X -e 3max -d nbsd_pmax.img</b> |
<b>gxemul -X -e 3max -d nbsd_pmax.img</b> |
216 |
</pre> |
</pre> |
217 |
and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows. |
and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows. |
227 |
<a name="netbsdarcinstall"></a> |
<a name="netbsdarcinstall"></a> |
228 |
<h3>NetBSD/arc:</h3> |
<h3>NetBSD/arc:</h3> |
229 |
|
|
230 |
It is possible to install and run <a |
It is possible to install and run an old version of <a |
231 |
href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a> |
href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a> |
232 |
on an emulated Acer PICA-61 in the emulator. |
on an emulated Acer PICA-61 in the emulator. |
233 |
|
|
236 |
<a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a> |
<a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a> |
237 |
|
|
238 |
<p> |
<p> |
239 |
To install NetBSD/arc from a CDROM image onto an emulated harddisk image, |
To install NetBSD/arc 1.6.2 from a CDROM image onto an emulated |
240 |
follow these instructions: |
harddisk image, follow these instructions: |
241 |
|
|
242 |
<p> |
<p> |
243 |
<ol start="1"> |
<ol start="1"> |
248 |
</pre> |
</pre> |
249 |
<li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc |
<li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc |
250 |
kernel:<pre> |
kernel:<pre> |
251 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso</a> |
252 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a> |
253 |
|
|
254 |
</pre> |
</pre> |
255 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
260 |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
261 |
<p> |
<p> |
262 |
<li>From now on, you have to use your imagination, as there is no |
<li>From now on, you have to use your imagination, as there is no |
263 |
automatic installation program for NetBSD/arc. Here are some tips |
automatic installation program for NetBSD/arc 1.6.2. Here are |
264 |
and hints on how you can proceed with the install: |
some tips and hints on how you can proceed with the install: |
265 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
266 |
<b>mount /dev/cd0a /mnt2 |
<b>mount /dev/cd0a /mnt2 |
267 |
disklabel -i -I sd0</b> (for example 'a', '4.2BSD', '1c', |
disklabel -i -I sd0</b> (for example 'a', '4.2BSD', '1c', |
275 |
cat > /mnt/etc/fstab |
cat > /mnt/etc/fstab |
276 |
/dev/sd0a / ffs rw 1 1 |
/dev/sd0a / ffs rw 1 1 |
277 |
/dev/sd0b none swap sw 0 0 |
/dev/sd0b none swap sw 0 0 |
278 |
</b>(press ctrl-d)<b> |
</b>(press ctrl-d) |
279 |
<b>cd /; umount /mnt; umount /mnt2 |
<b>cd /; umount /mnt; umount /mnt2 |
280 |
halt</b> |
halt</b> |
281 |
</pre></td></tr></table> |
</pre></td></tr></table> |
349 |
</table> |
</table> |
350 |
|
|
351 |
<p> |
<p> |
352 |
(<super>*</super>) = not aligned at a 4 KB boundary, so it will not work |
(<super>*</super>) = not aligned at a page boundary, so it will not work |
353 |
efficiently with the current bintrans system. Using this mode will still |
efficiently with the current dyntrans system. Using this mode will still |
354 |
work, but each load and store will be emulated much more slowly than is |
work, but each load and store will be emulated much more slowly than is |
355 |
possible with an aligned framebuffer. |
possible with an aligned framebuffer. |
356 |
|
|
383 |
</pre> |
</pre> |
384 |
<p> |
<p> |
385 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
386 |
<b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img \ |
<b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img \ |
387 |
-d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b> |
-d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b> |
388 |
|
|
389 |
</pre> |
</pre> |
421 |
|
|
422 |
<a href="http://www.netbsd.org/Ports/cobalt/">NetBSD/cobalt</a> is tricky |
<a href="http://www.netbsd.org/Ports/cobalt/">NetBSD/cobalt</a> is tricky |
423 |
to install, because the Cobalt machines were designed for Linux, and not |
to install, because the Cobalt machines were designed for Linux, and not |
424 |
very flexible. There is no INSTALL kernel for NetBSD/cobalt. One way to |
very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt. |
425 |
install the NetBSD/cobalt distribution onto a disk image is to do it from |
One way to install the NetBSD/cobalt distribution onto a disk image is to |
426 |
another (emulated) machine. |
do it from another (emulated) machine. |
427 |
|
|
428 |
<p> |
<p> |
429 |
|
|
450 |
<a href="#netbsdpmaxinstall">further up on this page</a>. |
<a href="#netbsdpmaxinstall">further up on this page</a>. |
451 |
<p> |
<p> |
452 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Start NetBSD/pmax like this:<pre> |
453 |
<b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b> |
<b>gxemul -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b> |
454 |
|
|
455 |
</pre> |
</pre> |
456 |
<li>Log in as root (on the emulated 3MAX machine), and execute the |
<li>Log in as root (on the emulated 3MAX machine), and execute the |
526 |
</pre> |
</pre> |
527 |
<p> |
<p> |
528 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Start NetBSD/pmax like this:<pre> |
529 |
<b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b> |
<b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b> |
530 |
|
|
531 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre>and execute the following commands as <tt>root</tt>: |
532 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
552 |
2.1, however, there will be little or no difference in functionality, as |
2.1, however, there will be little or no difference in functionality, as |
553 |
NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things |
NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things |
554 |
that differ:<ol> |
that differ:<ol> |
555 |
<li>GXemul's binary translation subsystem might run a bit faster |
<li>The dynamic translation core runs faster when emulating 32-bit |
556 |
in 32-bit mode (because there are some optimizations that don't |
processors, so <tt><b>-C 4Kc</b></tt> might make things go faster. |
|
work with 64-bit emulation) |
|
557 |
<li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc |
<li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc |
558 |
slower. |
emulation slower in general, because there are more TLB misses. |
559 |
</ol> |
</ol> |
560 |
|
|
561 |
<p>The installation instructions above create a filesystem |
<p>The installation instructions above create a filesystem |
580 |
|
|
581 |
<p> |
<p> |
582 |
|
|
583 |
<a href="20050626-netbsd-sgimips-netboot.png"><img src="20050626-netbsd-sgimips-netboot_small.png"></a> |
<a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a> |
584 |
|
|
585 |
<p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run |
<p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run |
586 |
in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet |
in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet |
588 |
several times, asking for documentation, but never received any reply.) |
several times, asking for documentation, but never received any reply.) |
589 |
NetBSD can still run in the emulator, as long as it doesn't use SCSI. |
NetBSD can still run in the emulator, as long as it doesn't use SCSI. |
590 |
|
|
591 |
<p>For a simple test with the 2.1 ramdisk (install) kernel, try |
<p>For a simple test with the ramdisk/install kernel, try |
592 |
dowloading<pre> |
dowloading<pre> |
593 |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
594 |
|
|
595 |
</pre>and run <b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>. |
</pre>and run <b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>. |
596 |
|
|
597 |
<p>It is possible to set up an environment for netbooting the emulated SGI |
<p>It is possible to set up an environment for netbooting the emulated SGI |
598 |
machine off of another emulated machine. Performing this setup is quite |
machine off of another emulated machine. Performing this setup is quite |
607 |
<p> |
<p> |
608 |
<li>Configure the nfs server machine to act as an nfs server. |
<li>Configure the nfs server machine to act as an nfs server. |
609 |
Start up the emulated DECstation:<pre> |
Start up the emulated DECstation:<pre> |
610 |
<b>gxemul -e 3max -A -d nbsd_pmax.img</b> |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
611 |
</pre>and enter the following commands as <tt>root</tt> |
</pre>and enter the following commands as <tt>root</tt> |
612 |
inside the emulator: |
inside the emulator: |
613 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
639 |
NetBSD/sgimips distribution sets:<br>(NOTE: This |
NetBSD/sgimips distribution sets:<br>(NOTE: This |
640 |
takes quite some time, even if you have a fast network connection.) |
takes quite some time, even if you have a fast network connection.) |
641 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
642 |
<b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b> |
<b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b> |
643 |
(log in as anonymous...) |
(log in as anonymous...) |
644 |
<b>cd /pub/NetBSD/NetBSD-2.1/sgimips/binary/sets |
<b>cd /pub/NetBSD/NetBSD-3.0/sgimips/binary/sets |
645 |
mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz |
mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz |
646 |
quit |
quit |
647 |
sh |
sh |
652 |
halt</b> |
halt</b> |
653 |
</pre></td></tr></table> |
</pre></td></tr></table> |
654 |
<li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre> |
<li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre> |
655 |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a> |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a> |
656 |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
657 |
|
|
658 |
</pre> |
</pre> |
659 |
<li>Create a configuration file called <tt>config_client</tt>: |
<li>Create a configuration file called <tt>config_client</tt>: |
660 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
661 |
<font color="#2020cf">!!gxemul |
<font color="#2020cf">! Configuration file for running NetBSD/sgimips diskless with |
|
! |
|
|
! Configuration file for running NetBSD/sgimips diskless with |
|
662 |
! a NetBSD/pmax machine as the nfs server.</font> |
! a NetBSD/pmax machine as the nfs server.</font> |
663 |
|
|
664 |
<b>emul( |
<b> net( |
|
net( |
|
665 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
666 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
667 |
) |
) |
676 |
load("netbsd-INSTALL32_IP3x.gz")</b> |
load("netbsd-INSTALL32_IP3x.gz")</b> |
677 |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
678 |
) |
) |
679 |
)</b> |
</b> |
680 |
</pre></td></tr></table> |
</pre></td></tr></table> |
681 |
... and another configuration file for the server, |
... and another configuration file for the server, |
682 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
683 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
684 |
<font color="#2020cf">!!gxemul</font> |
<b> net( |
|
<b>emul( |
|
|
net( |
|
685 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
686 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
687 |
) |
) |
695 |
|
|
696 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
697 |
) |
) |
698 |
)</b> |
</b> |
699 |
</pre></td></tr></table> |
</pre></td></tr></table> |
700 |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
701 |
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
885 |
<h3>NetBSD/prep:</h3> |
<h3>NetBSD/prep:</h3> |
886 |
|
|
887 |
It is possible to install and run |
It is possible to install and run |
888 |
<a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul |
<a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul |
889 |
on an emulated IBM 6050 (PowerPC) machine. |
on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc |
890 |
|
controller in a way which isn't implemented in GXemul yet.) |
891 |
|
|
892 |
<p> |
<p> |
893 |
<a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a> |
<a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a> |
1024 |
already have <tt>mkisofs</tt> installed on your system, you need |
already have <tt>mkisofs</tt> installed on your system, you need |
1025 |
to install it in order to do this.)<pre> |
to install it in order to do this.)<pre> |
1026 |
<b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b> |
<b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b> |
1027 |
|
<b>rm -rf ftp.se.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
1028 |
|
|
1029 |
</pre> |
</pre> |
1030 |
<li>Start the emulator with all three (!) disk images:<pre> |
<li>Start the emulator with all three (!) disk images:<pre> |
1031 |
<b>gxemul -e 3max -A -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b> |
<b>gxemul -e 3max -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b> |
1032 |
|
|
1033 |
</pre> |
</pre> |
1034 |
(If you add <tt>-X</tt>, you will run with the graphical |
(If you add <tt>-X</tt>, you will run with the graphical |
1063 |
password! The first time you boot up OpenBSD after the install, you |
password! The first time you boot up OpenBSD after the install, you |
1064 |
need to go into single user mode and run <b>passwd root</b> to set |
need to go into single user mode and run <b>passwd root</b> to set |
1065 |
the root password, or you will not be able to log in at all!<pre> |
the root password, or you will not be able to log in at all!<pre> |
1066 |
<b>gxemul -e 3max -A -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b> |
<b>gxemul -e 3max -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b> |
1067 |
</pre> |
</pre> |
1068 |
While you are at it, you might want to extract the X11 install sets |
While you are at it, you might want to extract the X11 install sets |
1069 |
as well, as the installer seems to ignore them too. (Perhaps due to a bug |
as well, as the installer seems to ignore them too. (Perhaps due to a bug |
1140 |
|
|
1141 |
</pre> |
</pre> |
1142 |
<li>Download the entire cats directory from the ftp server:<pre> |
<li>Download the entire cats directory from the ftp server:<pre> |
1143 |
<b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/</a></b> |
<b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/</a></b> |
1144 |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd .</b> |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .</b> |
1145 |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd.rd .</b> |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .</b> |
1146 |
|
|
1147 |
</pre> |
</pre> |
1148 |
|
(Replace ftp.openbsd.org with a server closer to you, for |
1149 |
|
increased download speed.) |
1150 |
|
<p> |
1151 |
<li>You now need to make an ISO image of the entire directory you downloaded. |
<li>You now need to make an ISO image of the entire directory you downloaded. |
1152 |
(I recommend using <tt>mkisofs</tt> for that purpose. If you don't |
(I recommend using <tt>mkisofs</tt> for that purpose. If you don't |
1153 |
already have <tt>mkisofs</tt> installed on your system, you need |
already have <tt>mkisofs</tt> installed on your system, you need |
1154 |
to install it in order to do this.)<pre> |
to install it in order to do this.)<pre> |
1155 |
<b>mkisofs -allow-lowercase -o openbsd_cats_3.8.iso ftp.openbsd.org/pub/OpenBSD/</b> |
<b>mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/</b> |
1156 |
|
<b>rm -rf ftp.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
1157 |
|
|
1158 |
</pre> |
</pre> |
1159 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
1160 |
<b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.8.iso bsd.rd</b> |
<b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd</b> |
1161 |
|
|
1162 |
</pre> |
</pre> |
1163 |
and proceed like you would do if you were installing OpenBSD |
and proceed like you would do if you were installing OpenBSD |
1198 |
|
|
1199 |
<p> |
<p> |
1200 |
|
|
1201 |
<a href="20040504-ultrix45-boot1.png"><img src="20040504-ultrix45-boot1_small.gif"></a> |
<a href="20040504-ultrix45-boot1.png"><img src="20040504-ultrix45-boot1_small.png"></a> |
1202 |
|
|
1203 |
<a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.gif"></a> |
<a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.png"></a> |
1204 |
|
|
1205 |
|
<p><font color="#f00000"><b>NOTE:</b> This specific release of the |
1206 |
|
emulator is not very stable yet (because the MIPS emulation mode has been |
1207 |
|
completely rewritten, and I did not have much time over for debugging). |
1208 |
|
Ultrix 4.5 in R3000 mode has problems with interrupts. Ultrix 4.2 should |
1209 |
|
work, however, and Ultrix 4.5 with <tt>-C R4400</tt>.</font> |
1210 |
|
|
1211 |
<p> |
<p> |
1212 |
The following instructions should let you install Ultrix onto a disk image: |
The following instructions should let you install Ultrix onto a disk image: |
1221 |
(On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>. |
(On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>. |
1222 |
Replace that with the name of your CDROM drive, or the name of a |
Replace that with the name of your CDROM drive, or the name of a |
1223 |
.iso image file.) Then, start the emulator like this:<pre> |
.iso image file.) Then, start the emulator like this:<pre> |
1224 |
<b>gxemul -X -A -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b> |
<b>gxemul -X -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b> |
1225 |
|
|
1226 |
</pre> |
</pre> |
1227 |
<li>Once the first stage of the installation is done (restoring the root |
<li>Once the first stage of the installation is done (restoring the root |
1229 |
new rootdisk, to continue the installation process. |
new rootdisk, to continue the installation process. |
1230 |
This is done by removing the bootflag ('<tt>b</tt>') from the second |
This is done by removing the bootflag ('<tt>b</tt>') from the second |
1231 |
diskimage argument:<pre> |
diskimage argument:<pre> |
1232 |
<b>gxemul -X -A -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b> |
<b>gxemul -X -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b> |
1233 |
|
|
1234 |
</pre> |
</pre> |
1235 |
</ol> |
</ol> |
1237 |
<p> |
<p> |
1238 |
When the installation is completed, the following command should start |
When the installation is completed, the following command should start |
1239 |
Ultrix from the harddisk image:<pre> |
Ultrix from the harddisk image:<pre> |
1240 |
<b>gxemul -X -A -e 3max -j vmunix -d rootdisk.img</b> |
<b>gxemul -X -e 3max -j vmunix -d rootdisk.img</b> |
1241 |
</pre> |
</pre> |
1242 |
|
|
1243 |
<p>Ultrix mostly seems to work with dynamic binary translation (which can |
<p>If you have a very fast host machine, you might experience a weird |
|
be disabled by the <b><tt>-B</tt></b> command line option). If you have a |
|
|
very fast host machine, and use bintrans, you might experience a weird |
|
1244 |
timer related bug, which makes it impossible to logon to the system. It is |
timer related bug, which makes it impossible to logon to the system. It is |
1245 |
triggered when the emulation goes faster than any real DECstation machine |
triggered when the emulation goes faster than any real DECstation machine |
1246 |
was capable of running. A temporary workaround is to add |
was capable of running. A temporary workaround is to add |
1257 |
displays to use. The following example starts Ultrix on an emulated |
displays to use. The following example starts Ultrix on an emulated |
1258 |
tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>, |
tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>, |
1259 |
<tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre> |
<tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre> |
1260 |
<b>gxemul -A -N -e 3max -jgenvmunix -d rootdisk.img \ |
<b>gxemul -N -e 3max -jgenvmunix -d rootdisk.img \ |
1261 |
-XZ3 -z remote1:0.0 -z localhost:0.0 -z remote2:0.0</b> |
-XZ3 -z remote1:0.0 -z localhost:0.0 -z remote2:0.0</b> |
1262 |
</pre> |
</pre> |
1263 |
|
|
1368 |
on an emulated 5000/200 ("3max"). Although the Debian project has released |
on an emulated 5000/200 ("3max"). Although the Debian project has released |
1369 |
install ramdisk kernels for this purpose, these do not always work: |
install ramdisk kernels for this purpose, these do not always work: |
1370 |
<ul> |
<ul> |
1371 |
<li>Serial console output doesn't work too well in GXemul. There are |
<li>Serial console output doesn't work too well in GXemul. Linux |
1372 |
random oopses, which may be due to bugs in GXemul, but may |
oopses randomly, which may be due to bugs in GXemul, but may |
1373 |
also be due to bugs in the serial controller code in Linux. |
also be due to bugs in the serial controller code in Linux. |
1374 |
(The speed at which serial interrupts are generated can be |
(The speed at which serial interrupts are generated can be |
1375 |
lowered with the <tt>-U</tt> command line option, but it only |
lowered with the <tt>-U</tt> command line option, but it only |
1403 |
</pre> |
</pre> |
1404 |
<p> |
<p> |
1405 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
1406 |
<b>gxemul -XAe3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b> |
<b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b> |
|
|
|
1407 |
</pre> |
</pre> |
1408 |
Everything is <i>really</i> slow, for several reasons (framebuffer is |
|
1409 |
always slower than serial console, and Debian's install seems to be |
<p>If everything goes well, you will see Linux' boot messages, and then |
1410 |
made up of scripts that run a lot slower in the emulator than pure |
arrive at the language chooser. |
1411 |
C code would). |
|
1412 |
<p> |
<p> |
1413 |
There will be a <font color="#d00000">warning</font> about "Select |
<a href="debian-1.png"><img src="debian-1-small.png"></a> |
1414 |
keyboard layout". Don't mind this. Continue by selecting "Detect and |
<a href="debian-2.png"><img src="debian-2-small.png"></a> |
1415 |
mount CD-ROM". |
<a href="debian-3.png"><img src="debian-3-small.png"></a> |
1416 |
|
<a href="debian-4.png"><img src="debian-4-small.png"></a> |
1417 |
|
|
1418 |
|
<p>There will be a warning about the keyboard |
1419 |
|
layout. Don't mind this. Continue, and then select <b>Detect |
1420 |
|
and mount CD-ROM</b> in the next menu. |
1421 |
|
|
1422 |
|
<p> |
1423 |
|
<a href="debian-5.png"><img src="debian-5-small.png"></a> |
1424 |
|
<a href="debian-6.png"><img src="debian-6-small.png"></a> |
1425 |
|
<a href="debian-7.png"><img src="debian-7-small.png"></a> |
1426 |
|
<a href="debian-8.png"><img src="debian-8-small.png"></a> |
1427 |
|
|
1428 |
<p> |
<p> |
1429 |
There will also be a <font color="#d00000">warning</font> about lack |
There will also be a warning about lack of loadable modules. Don't |
1430 |
of loadable modules. Don't mind this, continue anyway. |
mind this either, continue anyway by choosing <b>Yes</b>. |
1431 |
<p> |
<p> |
1432 |
You need to enter some values during the installation procedure, for |
When you reach the network configuration part of the install, choose |
1433 |
example network settings. The following should work:<pre> |
<b>Configure network manually</b> and enter the following values:<pre> |
|
DHCP: No, choose "<b>Configure network manually</b>" |
|
1434 |
IP address: <b>10.0.0.1</b> |
IP address: <b>10.0.0.1</b> |
1435 |
Netmask: <b>255.0.0.0</b> |
Netmask: <b>255.0.0.0</b> |
1436 |
Gateway: <b>10.0.0.254</b> |
Gateway: <b>10.0.0.254</b> |
1437 |
Name server addresses: <b>10.0.0.254</b> |
Name server addresses: <b>10.0.0.254</b> |
1438 |
|
|
1439 |
</pre> |
</pre> |
1440 |
<li>Once the first phase of the install has finished, the following command |
<p>Choose <b>Erase entire disk</b> in the partitioner. |
1441 |
should let you boot into Debian, and perform post-install |
|
1442 |
configuration:<pre> |
<p>Wait for the base system to be installed. This takes almost forever, |
1443 |
<b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b> |
so you can go fetch several <a href="http://en.wikipedia.org/wiki/Jolt_Cola">Jolts</a> |
1444 |
|
or cups of coffee in the meanwhile. |
1445 |
|
|
1446 |
|
<p> |
1447 |
|
<a href="debian-9.png"><img src="debian-9-small.png"></a> |
1448 |
|
<a href="debian-10.png"><img src="debian-10-small.png"></a> |
1449 |
|
<a href="debian-11.png"><img src="debian-11-small.png"></a> |
1450 |
|
<a href="debian-12.png"><img src="debian-12-small.png"></a> |
1451 |
|
|
1452 |
|
<p>Congratulations! The first phase of the installation is now completed. |
1453 |
|
Reboot using the following command line:<pre> |
1454 |
|
<b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b> |
1455 |
|
|
1456 |
|
</pre> |
1457 |
|
<p>The post-install step takes quite some time as well. A perfect opportunity |
1458 |
|
for more coffee. |
1459 |
|
|
1460 |
|
<p>When asked about "Apt configuration", choose <b>http</b> as the method |
1461 |
|
to use for accessing the Debian archive. |
1462 |
|
|
1463 |
|
<p> |
1464 |
|
<a href="debian-13.png"><img src="debian-13-small.png"></a> |
1465 |
|
<a href="debian-14.png"><img src="debian-14-small.png"></a> |
1466 |
|
<a href="debian-15.png"><img src="debian-15-small.png"></a> |
1467 |
|
|
1468 |
|
<p>Downloading the packages takes almost forever. Be patient. |
1469 |
|
|
1470 |
|
<p>Congratulations (again)! You are now fully done with the installation. |
1471 |
|
|
|
</pre>The post-install step takes quite some time. |
|
1472 |
</ol> |
</ol> |
1473 |
|
|
1474 |
<p>Debian GNU/Linux for DECstation should now be installed. Use this command |
<p><br>Debian GNU/Linux for DECstation is now installed and ready to be used. |
1475 |
to boot from the installed disk image:<pre> |
Use this command to boot from the installed disk image:<pre> |
1476 |
<b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b> |
<b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b> |
1477 |
|
|
1478 |
</pre> |
</pre> |
1479 |
|
|
1497 |
|
|
1498 |
<p> |
<p> |
1499 |
<ol> |
<ol> |
1500 |
<li>Download a kernel. David Muse' Debian-install kernel works fine, also with Redhat:<pre> |
<li>Download a kernel. David Muse' Debian-install kernel works fine:<pre> |
1501 |
<a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a> |
<a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a> |
1502 |
|
|
1503 |
</pre> |
</pre> |
1514 |
<li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS |
<li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS |
1515 |
(!) partition table, and then an ext2 partition. This is what Linux |
(!) partition table, and then an ext2 partition. This is what Linux |
1516 |
will then see as /dev/sda1. |
will then see as /dev/sda1. |
1517 |
<p>On a Linux host, you could use a loopback mount, or similar. Otherwise, |
<p>I recommend you run fdisk and mke2fs and untar the archive from within |
|
I recommend you run fdisk and mke2fs and untar the archive from within |
|
1518 |
Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running |
Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running |
1519 |
inside the emulator. Use your imagination. |
inside the emulator. (Alternatively, if you are on a Linux host, |
1520 |
|
you could use a loopback mount, or similar. This might require |
1521 |
|
root access. See e.g. |
1522 |
|
<a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.) |
1523 |
<p> |
<p> |
1524 |
In order to actually boot the system you need to modify /etc/fstab. |
In order to actually boot the system you need to modify /etc/fstab. |
1525 |
Change<pre> |
Change<pre> |
1538 |
</ol> |
</ol> |
1539 |
|
|
1540 |
<p>To boot Redhat linux from the disk image, use the following command line:<pre> |
<p>To boot Redhat linux from the disk image, use the following command line:<pre> |
1541 |
<b>gxemul -XAe3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b> |
<b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b> |
1542 |
|
|
1543 |
</pre> |
</pre> |
1544 |
If you need to boot into single user mode, change options to |
If you need to boot into single user mode, change options to |
1647 |
mailed Adaptec several times, asking for documentation, but never received |
mailed Adaptec several times, asking for documentation, but never received |
1648 |
any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't |
any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't |
1649 |
use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre> |
use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre> |
1650 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">bsd.rd</a> |
1651 |
|
|
1652 |
</pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>. |
</pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>. |
1653 |
|
|
1654 |
<p>It might also be possible to netboot. Another emulated machine must |
<p>It might also be possible to netboot. Another emulated machine must |
1655 |
then be used as the nfs root server, and the emulated O2 machine must boot |
then be used as the nfs root server, and the emulated O2 machine must boot |
1665 |
<p> |
<p> |
1666 |
<li>Configure the nfs server machine to act as an nfs server. |
<li>Configure the nfs server machine to act as an nfs server. |
1667 |
Start up the emulated DECstation:<pre> |
Start up the emulated DECstation:<pre> |
1668 |
<b>gxemul -e 3max -A -d nbsd_pmax.img</b> |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
1669 |
</pre>and enter the following commands as <tt>root</tt> |
</pre>and enter the following commands as <tt>root</tt> |
1670 |
inside the emulator: |
inside the emulator: |
1671 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1689 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1690 |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
1691 |
(log in as anonymous...) |
(log in as anonymous...) |
1692 |
<b>cd pub/OpenBSD/3.7/sgi |
<b>cd pub/OpenBSD/3.9/sgi |
1693 |
mget b*tgz c* e* g* m* |
mget b*tgz c*tgz e* g* m* |
1694 |
quit |
quit |
1695 |
sh |
sh |
1696 |
for a in *.tgz; do echo $a; tar zxfp $a; done |
for a in *.tgz; do echo $a; tar zxfp $a; done |
1700 |
halt</b> |
halt</b> |
1701 |
</pre></td></tr></table> |
</pre></td></tr></table> |
1702 |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
1703 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd</a> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd</a> |
1704 |
MD5 (bsd) = f16eaf3dcbd51876db7c25f70e6d8a08 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd</a> |
|
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a> |
|
|
MD5 (bsd.rd) = 4843e6139d8dd04b03d5f0e33e9a4f7b |
|
1705 |
|
|
1706 |
</pre> |
</pre> |
1707 |
<li>Create a configuration file called <tt>config_client</tt>: |
<li>Create a configuration file called <tt>config_client</tt>: |
1708 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1709 |
<font color="#2020cf">!!gxemul |
<font color="#2020cf">! Configuration file for running OpenBSD/sgi diskless with |
|
! |
|
|
! Configuration file for running OpenBSD/sgi diskless with |
|
1710 |
! a NetBSD/pmax machine as the nfs server. |
! a NetBSD/pmax machine as the nfs server. |
1711 |
! |
! |
1712 |
! This config file is for the client.</font> |
! This config file is for the client.</font> |
1713 |
|
|
1714 |
<b>emul( |
<b> net( |
|
net( |
|
1715 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
1716 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
1717 |
) |
) |
1726 |
</b>! load("bsd")<b> |
</b>! load("bsd")<b> |
1727 |
load("bsd.rd") |
load("bsd.rd") |
1728 |
) |
) |
1729 |
)</b> |
</b> |
1730 |
</pre></td></tr></table> |
</pre></td></tr></table> |
1731 |
... and another configuration file for the server, |
... and another configuration file for the server, |
1732 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
1733 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1734 |
<font color="#2020cf">!!gxemul</font> |
<b> net( |
|
<b>emul( |
|
|
net( |
|
1735 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
1736 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
1737 |
) |
) |
1745 |
|
|
1746 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
1747 |
) |
) |
1748 |
)</b> |
</b> |
1749 |
</pre></td></tr></table> |
</pre></td></tr></table> |
1750 |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
1751 |
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
1862 |
|
|
1863 |
</pre> |
</pre> |
1864 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
1865 |
<b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b> |
<b>gxemul -e pica -X -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b> |
1866 |
|
|
1867 |
</pre> |
</pre> |
1868 |
and proceed like you would do if you were installing OpenBSD |
and proceed like you would do if you were installing OpenBSD |
1973 |
</pre> |
</pre> |
1974 |
<p> |
<p> |
1975 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Start NetBSD/pmax like this:<pre> |
1976 |
<b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b> |
<b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b> |
1977 |
|
|
1978 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre>and execute the following commands as <tt>root</tt>: |
1979 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
2013 |
|
|
2014 |
|
|
2015 |
|
|
2016 |
|
|
2017 |
|
|
2018 |
|
<p><br> |
2019 |
|
<a name="netbsdmacppcinstall"></a> |
2020 |
|
<h3>NetBSD/macppc:</h3> |
2021 |
|
|
2022 |
|
It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run |
2023 |
|
<a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul |
2024 |
|
on an emulated generic PowerPC machine. No specific Machintosh model |
2025 |
|
is emulated, but it is enough to for NetBSD to recognize it. |
2026 |
|
|
2027 |
|
<p>To install NetBSD/macppc onto a disk image, follow these instructions: |
2028 |
|
|
2029 |
|
<p> |
2030 |
|
<ol start="1"> |
2031 |
|
<li>Create an empty harddisk image, which will be the root disk |
2032 |
|
that you will install NetBSD/macppc onto:<pre> |
2033 |
|
<b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b> |
2034 |
|
|
2035 |
|
</pre> |
2036 |
|
<li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre> |
2037 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso</a> |
2038 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a> |
2039 |
|
|
2040 |
|
</pre> |
2041 |
|
<p> |
2042 |
|
<li>Start the installation like this:<pre> |
2043 |
|
<b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b> |
2044 |
|
|
2045 |
|
</pre> |
2046 |
|
</ol> |
2047 |
|
|
2048 |
|
<p>If everything worked, NetBSD/macppc should now be installed on the disk image. |
2049 |
|
|
2050 |
|
<p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation |
2051 |
|
succeeds, but it is not possible to start from the newly installed disk. |
2052 |
|
/sbin/init dies, so the following command doesn't really work yet: |
2053 |
|
|
2054 |
|
<p>Use the following command line to boot the emulated machine:<pre> |
2055 |
|
<b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b> |
2056 |
|
|
2057 |
|
</pre> |
2058 |
|
|
2059 |
|
|
2060 |
|
|
2061 |
|
|
2062 |
|
|
2063 |
</p> |
</p> |