1 |
<html> |
<html><head><title>Gavare's eXperimental Emulator: Installing and running "guest OSes"</title> |
2 |
<head><title>GXemul documentation: Installing and running "guest OSes"</title> |
<meta name="robots" content="noarchive,nofollow,noindex"></head> |
|
<meta name="robots" content="noarchive,nofollow,noindex"> |
|
|
</head> |
|
3 |
<body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000"> |
<body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000"> |
4 |
<table border=0 width=100% bgcolor="#d0d0d0"><tr> |
<table border=0 width=100% bgcolor="#d0d0d0"><tr> |
5 |
<td width=100% align=center valign=center><table border=0 width=100%><tr> |
<td width=100% align=center valign=center><table border=0 width=100%><tr> |
6 |
<td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6"> |
<td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6"> |
7 |
<b>GXemul documentation:</b></font> |
<b>Gavare's eXperimental Emulator: </b></font> |
8 |
<font color="#000000" size="6"><b>Installing and running "guest OSes"</b> |
<font color="#000000" size="6"><b>Installing and running "guest OSes"</b> |
9 |
</font></td></tr></table></td></tr></table><p> |
</font></td></tr></table></td></tr></table><p> |
10 |
|
|
11 |
<!-- |
<!-- |
12 |
|
|
13 |
$Id: guestoses.html,v 1.50 2005/06/11 11:53:33 debug Exp $ |
$Id: guestoses.html,v 1.87 2005/08/16 09:16:25 debug Exp $ |
14 |
|
|
15 |
Copyright (C) 2003-2005 Anders Gavare. All rights reserved. |
Copyright (C) 2003-2005 Anders Gavare. All rights reserved. |
16 |
|
|
39 |
|
|
40 |
--> |
--> |
41 |
|
|
42 |
|
|
43 |
<a href="./">Back to the index</a> |
<a href="./">Back to the index</a> |
44 |
|
|
45 |
<p><br> |
<p><br> |
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="#netbsdinstall">Installing NetBSD/pmax in GXemul</a> |
<li><a href="#netbsdinstall">NetBSD/pmax</a> |
52 |
<li><a href="#netbsdarcinstall">Installing NetBSD/arc in GXemul</a> |
<li><a href="#netbsdarcinstall">NetBSD/arc</a> |
53 |
<li><a href="#netbsdhpcmipsinstall">Installing NetBSD/hpcmips in GXemul</a> |
<li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a> |
54 |
<li><a href="#netbsdcobaltinstall">Installing NetBSD/cobalt in GXemul</a> |
<li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a> |
55 |
<!-- |
<li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a> |
56 |
<li><a href="#netbsdsgimips">Running NetBSD/sgimips in GXemul</a> |
<li><a href="#netbsdsgimips">NetBSD/sgimips</a> |
57 |
--> |
<li><a href="#openbsdinstall">OpenBSD/pmax</a> |
58 |
<li><a href="#openbsdinstall">Installing OpenBSD/pmax in GXemul</a> |
<li><a href="#openbsdarcinstall">OpenBSD/arc</a> |
59 |
<li><a href="#openbsdarcinstall">Installing OpenBSD/arc in GXemul</a> |
<li><a href="#ultrixinstall">Ultrix/RISC</a> |
60 |
<!-- |
<li><a href="#sprite">Sprite for DECstation</a> |
61 |
<li><a href="#openbsdsgiinstall">Running OpenBSD/sgi in GXemul</a> |
<li><a href="#declinux">Debian GNU/Linux for DECstation</a> |
62 |
--> |
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
63 |
<li><a href="#ultrixinstall">Installing Ultrix/RISC in GXemul</a> |
</ul> |
64 |
<li><a href="#sprite">Running Sprite for DECstation in GXemul</a> |
|
65 |
<li><a href="#declinux">Installing Debian GNU/Linux for DECstation in GXemul</a> |
<p>In addition to the "working" guest operating systems listed above, |
66 |
<li><a href="#declinuxredhat">Running Redhat Linux for DECstation in GXemul</a> |
you might find the following information interesting: |
67 |
<li><a href="#mach">Running Mach/PMAX in GXemul</a> |
<ul> |
68 |
|
<li><a href="#mach">Mach/PMAX</a> |
69 |
|
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
70 |
</ul> |
</ul> |
71 |
|
|
72 |
|
|
97 |
|
|
98 |
<p><br> |
<p><br> |
99 |
<a name="netbsdinstall"></a> |
<a name="netbsdinstall"></a> |
100 |
<h3>Installing NetBSD/pmax in GXemul:</h3> |
<h3>NetBSD/pmax:</h3> |
101 |
|
|
102 |
<p> |
<p> |
103 |
|
|
104 |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
105 |
|
|
106 |
<p> |
<p>To install <a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> |
107 |
To install NetBSD/pmax onto a harddisk image in the emulator, follow these |
onto a harddisk image in the emulator, follow these instructions: |
|
instructions: |
|
108 |
|
|
109 |
<p> |
<p><ol start="1"> |
|
<ol start="1"> |
|
110 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
111 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
112 |
$ <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=1 count=512 seek=1900000000</b> |
113 |
|
|
114 |
</pre> |
</pre> |
115 |
</ol> |
</ol> |
126 |
<li>Download a NetBSD CD-ROM iso image:<pre> |
<li>Download a NetBSD CD-ROM iso image:<pre> |
127 |
<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/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a> |
128 |
or |
or |
129 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0/pmaxcd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso</a> |
130 |
|
|
131 |
</pre> |
</pre> |
132 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
133 |
$ <b>gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -d bc:pmaxcd.iso</b> |
<b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.iso</b> |
134 |
</pre> |
</pre> |
135 |
|
and proceed like you would do if you were installing NetBSD on a real |
136 |
|
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
137 |
|
type, and not <tt>rcons</tt>. |
138 |
</ol> |
</ol> |
139 |
<p> |
<p> |
140 |
For an ftp install, substitute steps 2 and 3 above with these: |
For an ftp install, substitute steps 2 and 3 above with these: |
141 |
<p> |
<p> |
142 |
<ol start="2"> |
<ol start="2"> |
143 |
|
|
144 |
<li>Download a NetBSD pmax INSTALL kernel, and gunzip it:<pre> |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
145 |
<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-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> |
146 |
or |
or |
147 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
|
|
|
|
$ <b>gunzip netbsd-INSTALL.gz</b> |
|
148 |
|
|
149 |
</pre> |
</pre> |
150 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
151 |
$ <b>gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -O netbsd-INSTALL</b> |
<b>gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gz</b> |
152 |
</pre> |
</pre> |
153 |
</ol> |
and proceed like you would do if you were installing NetBSD on a real |
154 |
|
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
155 |
<p> |
type, and not <tt>rcons</tt>. Suitable networking parameters are as |
156 |
(If you don't want to use a graphical framebuffer during the install, |
follows:<pre> |
|
you can remove <b>-X</b> from the command line, but then make sure you |
|
|
choose 'vt100' when prompted with which terminal type to use, and not |
|
|
'rcons'.) |
|
|
|
|
|
<p> |
|
|
Then proceed like you would do if you were installing NetBSD on a real |
|
|
DECstation. If you are installing from the network, then suitable networking |
|
|
parameters are as follows:<pre> |
|
157 |
Which device shall I use? [le0]: <b>le0</b> |
Which device shall I use? [le0]: <b>le0</b> |
158 |
.. |
.. |
159 |
Your DNS domain: <b>mydomain.com</b> |
Your DNS domain: <b>mydomain.com</b> |
163 |
IPv4 gateway: <b>10.0.0.254</b> |
IPv4 gateway: <b>10.0.0.254</b> |
164 |
IPv4 name server: <b>10.0.0.254</b> |
IPv4 name server: <b>10.0.0.254</b> |
165 |
</pre> |
</pre> |
166 |
|
(If using 10.0.0.254 as the nameserver fails, then try entering the |
167 |
|
IP number of a real-world nameserver instead.) |
168 |
|
</ol> |
169 |
|
|
170 |
<p> |
<p>If you want to use a graphical framebuffer during the install, you can |
171 |
(If using 10.0.0.254 as the nameserver fails, then try entering the |
add <b><tt>-X -Y2</tt></b> to the command line, and choose <tt>rcons</tt> |
172 |
IP number of a real-world nameserver instead.) |
instead of <tt>vt100</tt> when prompted with which terminal type to use. |
173 |
|
(By just using <tt><b>-X</b></tt>, you will get a full-size framebuffer |
174 |
|
window.) |
175 |
|
|
176 |
<p> |
<p>When the installation is finished, the following command should start |
|
When the installation is completed, the following command should start |
|
177 |
NetBSD from the harddisk image:<pre> |
NetBSD from the harddisk image:<pre> |
178 |
$ <b>gxemul -X -b -M64 -E dec -e 3max -d nbsd_pmax.img</b> |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
179 |
</pre> |
</pre> |
180 |
|
|
181 |
<p> |
<p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2 |
182 |
Use <b>startx</b> to start X windows. |
doesn't work with X out-of-the-box on pmax. It seems that this has to do |
183 |
|
with NetBSD switching console system to "WSCONS" somewhere between 1.6.2 |
184 |
|
and 2.0. For now, if you want X, then try NetBSD 1.6.2. |
185 |
|
|
186 |
<p> |
<p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre> |
187 |
<font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0 doesn't |
<b>gxemul -X -e 3max -d nbsd_pmax.img</b> |
|
work with X out-of-the-box on pmax. It seems that this has to do with a |
|
|
switch to WSCONS. For now, if you want X, then try NetBSD 1.6.2. |
|
|
|
|
|
<p> |
|
|
If you want to run without the X framebuffer, use this instead:<pre> |
|
|
$ <b>gxemul -E dec -e 3max -b -d nbsd_pmax.img</b> |
|
188 |
</pre> |
</pre> |
189 |
|
and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows. |
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
|
197 |
|
|
198 |
<p><br> |
<p><br> |
199 |
<a name="netbsdarcinstall"></a> |
<a name="netbsdarcinstall"></a> |
200 |
<h3>Installing NetBSD/arc in GXemul:</h3> |
<h3>NetBSD/arc:</h3> |
201 |
|
|
202 |
It is possible to run NetBSD/arc on an emulated Acer PICA-61 in the emulator. |
It is possible to run <a |
203 |
|
href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a> |
204 |
|
on an emulated Acer PICA-61 in the emulator. |
205 |
|
|
206 |
<p> |
<p> |
207 |
|
|
215 |
<ol start="1"> |
<ol start="1"> |
216 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
217 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
218 |
$ <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b> |
<b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b> |
219 |
|
|
220 |
</pre> |
</pre> |
221 |
<li>Download a NetBSD/arc 1.6.2 CDROM image from ftp:<pre> |
<li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc |
222 |
|
kernel:<pre> |
223 |
<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/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a> |
224 |
|
|
225 |
|
<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> |
226 |
</pre> |
</pre> |
227 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
228 |
$ <b>gxemul -E arc -e pica -x -b -d nbsd_arc.img -d bc:arccd.iso \ |
<b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \ |
229 |
-j arc/binary/kernel/netbsd.RAMDISK.gz</b> |
-j arc/binary/kernel/netbsd.RAMDISK.gz</b> |
230 |
|
|
231 |
</pre> |
</pre> |
233 |
<p> |
<p> |
234 |
<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 |
235 |
automatic installation program for NetBSD/arc. Here are some tips |
automatic installation program for NetBSD/arc. Here are some tips |
236 |
and hints on how you can proceed with the install:<pre> |
and hints on how you can proceed with the install: |
237 |
$ <b>mount /dev/cd0a /mnt2</b> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
238 |
$ <b>disklabel -i -I sd0</b> (for example 'a', '4.2BSD', '1c', |
<b>mount /dev/cd0a /mnt2 |
239 |
'700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') |
disklabel -i -I sd0</b> (for example 'a', '4.2BSD', '1c', |
240 |
$ <b>newfs /dev/sd0a</b> |
'700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') |
241 |
$ <b>mount /dev/sd0a /mnt</b> |
<b>newfs /dev/sd0a |
242 |
$ <b>cd /mnt</b> |
mount /dev/sd0a /mnt |
243 |
$ <b>for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done</b> |
cd /mnt |
244 |
$ <b>cd dev; sh MAKEDEV all</b> |
for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done |
245 |
$ <b>cd ../etc; echo "rc_configured=YES" >> rc.conf</b> |
cd dev; sh MAKEDEV all |
246 |
$ <b>cat > /mnt/etc/fstab</b> |
cd ../etc; echo "rc_configured=YES" >> rc.conf |
247 |
/dev/sd0a / ffs rw 1 1 |
cat > /mnt/etc/fstab |
248 |
/dev/sd0b none swap sw 0 0 |
/dev/sd0a / ffs rw 1 1 |
249 |
(ctrl-d) |
/dev/sd0b none swap sw 0 0 |
250 |
$ <b>cd /; umount /mnt; umount /mnt2</b> |
</b>(press ctrl-d)<b> |
251 |
$ <b>halt</b> |
<b>cd /; umount /mnt; umount /mnt2 |
252 |
|
halt</b> |
253 |
</pre> |
</pre></td></tr></table> |
|
<li>Download a generic NetBSD/arc kernel, |
|
|
and gunzip it:<pre> |
|
|
<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> |
|
|
|
|
|
</pre> |
|
254 |
</ol> |
</ol> |
255 |
|
|
256 |
<p> |
<p>You can now use the generic NetBSD/arc kernel to boot from the harddisk |
257 |
You can now use the generic NetBSD/arc kernel to boot from the harddisk |
image, using the following command:<pre> |
258 |
image, using the following command: |
<b>gxemul -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz</b> |
|
<p> |
|
|
<pre> |
|
|
$ <b>gxemul -E arc -e pica -xb -d nbsd_arc.img netbsd-GENERIC</b> |
|
259 |
|
|
260 |
</pre> |
</pre> |
261 |
|
|
262 |
|
<p>When asked for "<tt>root device: </tt>", enter <b><tt>sd0</tt></b>. |
263 |
|
|
264 |
|
|
265 |
|
|
269 |
|
|
270 |
<p><br> |
<p><br> |
271 |
<a name="netbsdhpcmipsinstall"></a> |
<a name="netbsdhpcmipsinstall"></a> |
272 |
<h3>Installing NetBSD/hpcmips in GXemul:</h3> |
<h3>NetBSD/hpcmips:</h3> |
273 |
|
|
274 |
It is possible to install NetBSD/hpcmips onto a disk image, on an an |
It is possible to install <a |
275 |
emulated MobilePro 770, 780, 800, or 880. The emulator treats the |
href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk |
276 |
different machine models as being almost identical; the most important |
image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator |
277 |
difference is regarding the framebuffer. |
treats the different machine models as being almost identical; the most |
278 |
|
important difference is regarding the framebuffer. |
279 |
|
|
280 |
<p> |
<p><table border="0"> |
|
<table border="0"> |
|
281 |
<tr> |
<tr> |
282 |
<td width="80"> </td> |
<td width="80"> </td> |
283 |
<td><u>Model:</u></td> |
<td><u>Model:</u></td> |
338 |
|
|
339 |
<p> |
<p> |
340 |
These instructions show an example of how to install |
These instructions show an example of how to install |
341 |
NetBSD/hpcmips on an emulated MobilePro 800: |
NetBSD/hpcmips on an emulated MobilePro 770: |
342 |
|
|
343 |
<p> |
<p> |
344 |
<ol start="1"> |
<ol start="1"> |
345 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
346 |
that you will install NetBSD/hpcmips onto:<pre> |
that you will install NetBSD/hpcmips onto:<pre> |
347 |
$ <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b> |
<b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b> |
348 |
|
|
349 |
</pre> |
</pre> |
350 |
<li>Download the NetBSD 2.0 for hpcmips ISO image:<pre> |
<li>Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:<pre> |
351 |
<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/">ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0</a>/<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/hpcmipscd.iso">hpcmipscd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso">hpcmipscd.iso</a> |
352 |
|
|
353 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a> |
354 |
|
|
355 |
</pre>(You may want to choose a mirror closer to you, if .se is slow.) |
</pre> |
356 |
<p> |
<p> |
357 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
358 |
$ <b>gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img \ |
<b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img \ |
359 |
-d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b> |
-d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b> |
360 |
|
|
361 |
</pre> |
</pre> |
362 |
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 |
363 |
MobilePro 800. (Install onto wd0, choose "Use entire disk" when |
MobilePro 770. (Install onto wd0, choose "Use entire disk" when |
364 |
doing the MBR partitioning, and choose wd1d (not cd0c) as the |
doing the MBR partitioning, and choose wd1d (not cd0c) as the |
365 |
CDROM device to install from.) |
CDROM device to install from.) |
366 |
</ol> |
</ol> |
367 |
|
|
368 |
<p> |
<p> |
369 |
If everything worked, NetBSD should now be installed on the disk image. |
If everything worked, NetBSD should now be installed on the disk image. |
370 |
GXemul does not (yet) support reading the kernel directly from the |
Use the following command line to boot the emulated hpcmips machine:<pre> |
371 |
disk image, so you need to download a generic kernel separately:<pre> |
<b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz</b> |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a> |
|
372 |
|
|
373 |
</pre> |
</pre> |
374 |
|
|
375 |
<p> |
<p>If you change your mind at this point regarding which machine type to |
376 |
Once you have gunziped the generic kernel, you can now use it to boot from |
emulate, you might for example prefer a MobilePro 800, then you can change |
377 |
the harddisk image, using the following command:<pre> |
that at any time. NetBSD/hpcmips is designed to be able to boot on many |
378 |
$ <b>gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img netbsd-GENERIC</b> |
types, without any need to change the kernel. |
|
|
|
|
</pre> |
|
379 |
|
|
380 |
<p> |
<p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to |
381 |
When you have logged in as root, you can use <b>startx</b> to start X |
start X Windows, but there is no mouse support yet so only keyboard input |
382 |
Windows. (Note: There is no mouse support yet; you can only use |
is available. This makes it a bit akward to use X. |
|
keyboard input.) |
|
383 |
|
|
384 |
|
|
385 |
|
|
390 |
|
|
391 |
<p><br> |
<p><br> |
392 |
<a name="netbsdcobaltinstall"></a> |
<a name="netbsdcobaltinstall"></a> |
393 |
<h3>Installing NetBSD/cobalt in GXemul:</h3> |
<h3>NetBSD/cobalt:</h3> |
394 |
|
|
395 |
<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 |
396 |
to install, because the Cobalt machines were designed for Linux, and not |
to install, because the Cobalt machines were designed for Linux, and not |
410 |
<ol> |
<ol> |
411 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
412 |
that you will install NetBSD/cobalt onto:<pre> |
that you will install NetBSD/cobalt onto:<pre> |
413 |
$ <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b> |
<b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b> |
414 |
|
|
415 |
</pre> |
</pre> |
416 |
<li>Download the generic kernel for Cobalt (and gunzip it) and |
<li>Download the generic kernel for Cobalt and the 2.0.2 ISO image:<pre> |
417 |
the 2.0 ISO image:<pre> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz</a> |
418 |
<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0/cobalt/binary/kernel/netbsd-GENERIC.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso</a> |
|
<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/cobaltcd.iso">ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/cobaltcd.iso</a> |
|
419 |
|
|
420 |
</pre>(You may want to choose a mirror closer to you, if .se is slow.) |
</pre> |
421 |
<p> |
<p> |
422 |
<li>Install NetBSD/pmax 2.0 according to instructions further up |
<li>Install NetBSD/pmax 2.0.2 according to instructions |
423 |
on this page. |
<a href="#netbsdinstall">further up on this page</a>. |
424 |
<p> |
<p> |
425 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Start NetBSD/pmax like this:<pre> |
426 |
$ <b>gxemul -b -Edec -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b> |
<b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b> |
427 |
|
|
428 |
</pre> |
</pre> |
429 |
<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 |
430 |
following commands: (adjust according to taste)<pre> |
following commands: (adjust according to taste) |
431 |
# <b>newfs /dev/sd1c</b> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
432 |
# <b>mount /dev/cd0c /mnt</b> |
<b>newfs /dev/sd1c |
433 |
# <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b> |
mount /dev/cd0c /mnt |
434 |
# <b>cd /mnt2; sh</b> |
mkdir /mnt2; mount /dev/sd1c /mnt2 |
435 |
# <b>for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b> |
cd /mnt2; sh |
436 |
# <b>exit</b> |
for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
437 |
# <b>cd dev; sh ./MAKEDEV all; cd ../etc</b> |
exit |
438 |
# <b>echo rc_configured=YES >> rc.conf</b> |
cd dev; sh ./MAKEDEV all; cd ../etc |
439 |
# <b>echo "/dev/wd0d / ffs rw 1 1" > fstab</b> |
echo rc_configured=YES >> rc.conf |
440 |
# <b>cd /; umount /mnt; umount /mnt2; halt</b> |
echo "/dev/wd0d / ffs rw 1 1" > fstab |
441 |
</pre> |
cd /; umount /mnt; umount /mnt2; halt</b> |
442 |
|
</pre></td></tr></table> |
443 |
</ol> |
</ol> |
444 |
|
|
445 |
<p> |
<p> |
446 |
You should now be able to boot NetBSD/cobalt like this:<pre> |
You should now be able to boot NetBSD/cobalt like this:<pre> |
447 |
$ <b>gxemul -b -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC</b> |
<b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b> |
448 |
</pre> |
</pre> |
449 |
|
|
450 |
Note that the installation instructions above create a filesystem |
Note that the installation instructions above create a filesystem |
463 |
|
|
464 |
|
|
465 |
|
|
|
<!-- |
|
|
|
|
466 |
<p><br> |
<p><br> |
467 |
<a name="netbsdsgimips"></a> |
<a name="netbsdevbmipsinstall"></a> |
468 |
<h3>Running NetBSD/sgimips in GXemul:</h3> |
<h3>NetBSD/evbmips:</h3> |
469 |
|
|
470 |
<a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> |
<a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run |
471 |
can theoretically run in GXemul on an emulated O2 (SGI-IP32) with root on nfs. |
in GXemul on an emulated Malta evaluation board (with a 5Kc or 4Kc CPU). |
472 |
|
|
473 |
<p> |
<p> |
474 |
<font color="#ff0000">NOTE: I haven't succeeded with this yet.</font> |
|
475 |
|
<a href="20050622-netbsd-evbmips-malta.png"><img src="20050622-netbsd-evbmips-malta_small.png"></a> |
476 |
|
|
477 |
|
<p>It is tricky to install, because there is (as far as I know) no INSTALL |
478 |
|
kernel. One way to install the NetBSD/evbmips distribution onto a disk |
479 |
|
image is to install the files is to do it using another (emulated) |
480 |
|
machine. |
481 |
|
|
482 |
<p> |
<p> |
483 |
See the section on <a href="#openbsdsgiinstall">how to run OpenBSD/sgi</a> |
The following instructions will let you install NetBSD/evbmips onto a disk |
484 |
for more information. |
image, from an emulated DECstation 3MAX machine: |
485 |
|
|
486 |
<p> |
<p> |
487 |
TODO... |
<ol> |
488 |
|
<li>Install NetBSD/pmax 2.0.2 according to instructions |
489 |
|
<a href="#netbsdinstall">further up on this page</a>. |
490 |
|
<p> |
491 |
|
<li>Create an empty harddisk image, which will be the disk image |
492 |
|
that you will install NetBSD onto:<pre> |
493 |
|
<b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b> |
494 |
|
|
495 |
<pre> |
</pre> |
496 |
cd /tftpboot; ftp -i ftp.se.netbsd.org |
<li>Download the generic kernel and the 2.0.2 ISO image:<pre> |
497 |
.. |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a> |
498 |
cd pub/NetBSD/NetBSD-2.0/sgimips/binary/sets |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso</a> |
499 |
mget *.tgz |
|
500 |
|
</pre> |
501 |
|
<p> |
502 |
|
<li>Start NetBSD/pmax like this:<pre> |
503 |
|
<b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b> |
504 |
|
|
505 |
|
</pre>and execute the following commands as <tt>root</tt>: |
506 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
507 |
|
<b>newfs /dev/sd1c |
508 |
|
mount /dev/cd0c /mnt |
509 |
|
mkdir /mnt2; mount /dev/sd1c /mnt2 |
510 |
|
cd /mnt2; sh |
511 |
|
for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
512 |
exit |
exit |
513 |
|
cd dev; sh ./MAKEDEV all; cd ../etc |
514 |
|
echo rc_configured=YES >> rc.conf |
515 |
|
echo "/dev/wd0c / ffs rw 1 1" > fstab |
516 |
|
cd /; umount /mnt; umount /mnt2; halt</b> |
517 |
|
</pre></td></tr></table> |
518 |
|
</ol> |
519 |
|
|
520 |
|
<p>You should now be able to boot NetBSD/evbmips using this command:<pre> |
521 |
|
<b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b> |
522 |
|
</pre> |
523 |
|
|
524 |
|
<p>Note 1: NetBSD detects a very fast CPU although the emulation isn't |
525 |
|
really that fast, so emulated delays are very slow. Even on a multi-GHz |
526 |
|
host, you will need a lot of patience. |
527 |
|
|
528 |
|
<p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc |
529 |
|
(MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD |
530 |
|
2.0.2, however, there will be little or no difference in functionality, as |
531 |
|
NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference |
532 |
|
it makes in practice is that GXemul's binary translation subsystem might |
533 |
|
run a bit faster (because there are some optimizations for 32-bit |
534 |
|
emulation that don't work with 64-bit emulation). |
535 |
|
|
536 |
|
<p>Note 3: The installation instructions above create a filesystem |
537 |
|
<i>without</i> a disklabel, so there is only one ffs partition and no |
538 |
|
swap. You will need to enter the following things when booting with the |
539 |
|
generic kernel:<pre> |
540 |
|
root device (default wd0a): <b>wd0c</b> |
541 |
|
dump device (default wd0b): <b>none</b> |
542 |
|
file system (default generic): <b>ffs</b> |
543 |
|
init path (default /sbin/init): <i>(just press enter here)</i> |
544 |
|
</pre> |
545 |
|
|
546 |
|
|
547 |
|
|
548 |
|
|
549 |
|
|
550 |
|
|
551 |
|
|
552 |
|
<p><br> |
553 |
|
<a name="netbsdsgimips"></a> |
554 |
|
<h3>NetBSD/sgimips:</h3> |
555 |
|
|
556 |
|
<p> |
557 |
|
|
558 |
|
<a href="20050626-netbsd-sgimips-netboot.png"><img src="20050626-netbsd-sgimips-netboot_small.png"></a> |
559 |
|
|
560 |
|
<p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run |
561 |
|
in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet |
562 |
|
emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec |
563 |
|
several times, asking for documentation, but never received any reply.) |
564 |
|
NetBSD can still run in the emulator, as long as it doesn't use SCSI. |
565 |
|
|
566 |
|
<p>For a simple test with the 2.0.2 ramdisk (install) kernel, try |
567 |
|
dowloading<pre> |
568 |
|
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
569 |
|
|
570 |
|
</pre>and run <b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>. |
571 |
|
|
572 |
|
<p>It is possible to set up an environment for netbooting the emulated SGI |
573 |
|
machine off of another emulated machine. Performing this setup is quite |
574 |
|
time consuming, but necessary: |
575 |
|
|
576 |
|
<p> |
577 |
|
<ol> |
578 |
|
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
579 |
|
This needs to have a 750 MB <tt>/tftpboot</tt> partition. |
580 |
|
<a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>. |
581 |
|
(Don't forget to add the extra partition!) |
582 |
|
<p> |
583 |
|
<li>Configure the nfs server machine to act as an nfs server. |
584 |
|
Start up the emulated DECstation:<pre> |
585 |
|
<b>gxemul -e 3max -A -d nbsd_pmax.img</b> |
586 |
|
</pre>and enter the following commands as <tt>root</tt> |
587 |
|
inside the emulator: |
588 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
589 |
|
<b>echo hostname=server >> /etc/rc.conf |
590 |
|
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
591 |
|
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
592 |
|
echo 10.0.0.254 > /etc/mygate |
593 |
|
echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports |
594 |
|
echo rpcbind=YES >> /etc/rc.conf |
595 |
|
echo nfs_server=YES >> /etc/rc.conf |
596 |
|
echo mountd=YES >> /etc/rc.conf |
597 |
|
echo bootparamd=YES >> /etc/rc.conf |
598 |
|
printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams |
599 |
|
echo "bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 4 -h 10.0.0.2" >> /etc/inetd.conf |
600 |
|
cat >> /etc/bootptab |
601 |
|
client:\ |
602 |
|
:ht=ether:\ |
603 |
|
:ha=102030000010:\ |
604 |
|
:sm=255.0.0.0:\ |
605 |
|
:lg=10.0.0.254:\ |
606 |
|
:ip=10.0.0.1:\ |
607 |
|
:rp=/tftpboot: |
608 |
|
</b>(press CTRL-D) |
609 |
|
<b>echo "10:20:30:00:00:10 client" > /etc/ethers |
610 |
|
echo 10.0.0.1 client > /etc/hosts |
611 |
|
reboot</b> |
612 |
|
</pre></td></tr></table> |
613 |
|
<li>Start the DECstation emulation again, and download the |
614 |
|
NetBSD/sgimips distribution sets:<br>(NOTE: This |
615 |
|
takes quite some time, even if you have a fast network connection.) |
616 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
617 |
|
<b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b> |
618 |
|
(log in as anonymous...) |
619 |
|
<b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets |
620 |
|
mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz |
621 |
|
quit |
622 |
sh |
sh |
623 |
for a in etc.tgz base.tgz comp.tgz; do tar zxvfp $a; done |
for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done |
624 |
|
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
625 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
626 |
|
dd if=/dev/zero of=swap bs=1024 count=32768 |
627 |
|
halt</b> |
628 |
|
</pre></td></tr></table> |
629 |
|
<li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre> |
630 |
|
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a> |
631 |
|
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
632 |
|
|
633 |
|
</pre> |
634 |
|
<li>Create a configuration file called <tt>config_client</tt>: |
635 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
636 |
|
<font color="#2020cf">!!gxemul |
637 |
|
! |
638 |
|
! Configuration file for running NetBSD/sgimips diskless with |
639 |
|
! a NetBSD/pmax machine as the nfs server.</font> |
640 |
|
|
641 |
|
<b>emul( |
642 |
|
net( |
643 |
|
add_remote("localhost:12444") </b>! the server<b> |
644 |
|
local_port(12445) </b>! the client<b> |
645 |
|
) |
646 |
|
|
647 |
|
machine( |
648 |
|
name("client machine") |
649 |
|
serial_nr(1) |
650 |
|
|
651 |
|
type("sgi") |
652 |
|
subtype("o2") |
653 |
|
|
654 |
|
load("netbsd-INSTALL32_IP3x.gz")</b> |
655 |
|
! load("netbsd-GENERIC32_IP3x.gz")<b> |
656 |
|
) |
657 |
|
)</b> |
658 |
|
</pre></td></tr></table> |
659 |
|
... and another configuration file for the server, |
660 |
|
<tt>config_server</tt>: |
661 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
662 |
|
<font color="#2020cf">!!gxemul</font> |
663 |
|
<b>emul( |
664 |
|
net( |
665 |
|
local_port(12444) </b>! the server<b> |
666 |
|
add_remote("localhost:12445") </b>! the client<b> |
667 |
|
) |
668 |
|
|
669 |
|
machine( |
670 |
|
name("nfs server") |
671 |
|
serial_nr(2) |
672 |
|
|
673 |
|
type("dec") |
674 |
|
subtype("5000/200") |
675 |
|
|
676 |
|
disk("nbsd_pmax.img") |
677 |
|
) |
678 |
|
)</b> |
679 |
|
</pre></td></tr></table> |
680 |
|
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
681 |
|
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
682 |
|
in one xterm: |
683 |
|
<b>gxemul @config_server</b> |
684 |
|
|
685 |
|
and then, in another xterm: |
686 |
|
<b>gxemul @config_client</b> |
687 |
|
|
688 |
|
</pre> |
689 |
|
<li>In the NetBSD/sgimips window, choose "<tt>x: Exit Install System</tt>" |
690 |
|
in the installer's main menu, and then type:<pre> |
691 |
|
<b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254</b> |
692 |
|
<b>mount -v 10.0.0.2:/tftpboot /mnt</b> |
693 |
|
<b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b> |
694 |
|
<b>halt</b> |
695 |
|
</pre>Then, once the client machine has halted, log in as <tt>root</tt> |
696 |
|
on the server machine and type <tt><b>reboot</b></tt>. |
697 |
|
<p> |
698 |
|
<li>Once everything has been set up correctly, change |
699 |
|
<tt>netbsd-INSTALL32_IP3x.gz</tt> in <tt>config_client</tt> to |
700 |
|
<tt>netbsd-GENERIC32_IP3x.gz</tt> (the GENERIC kernel). |
701 |
|
</ol> |
702 |
|
|
703 |
|
<p>You might want to log in as <tt>root</tt> on the server machine, and |
704 |
|
run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine |
705 |
|
actually does on the network. |
706 |
|
|
707 |
|
<p>It should now be possible to boot NetBSD/sgimips using the NetBSD/pmax |
708 |
|
nfs server, using the following commands: (NOTE! Execute these two |
709 |
|
commands in separate xterms!)<pre> |
710 |
|
<b>gxemul @config_server</b> |
711 |
|
<b>gxemul @config_client</b> |
712 |
|
</pre> |
713 |
|
|
714 |
|
<p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter |
715 |
|
the following values:<pre> |
716 |
|
root device: <b>mec0</b> |
717 |
|
dump device: <b>(leave blank)</b> |
718 |
|
file system (default generic): <b>(leave blank)</b> |
719 |
|
.. |
720 |
|
init path (default /sbin/init): <b>(leave blank)</b> |
721 |
|
Enter pathname of shell or RETURN for /bin/sh: <b>(leave blank)</b> |
722 |
|
Terminal type? [unknown] <b>xterm</b> |
723 |
|
.. |
724 |
|
# <b>exit</b> (to leave the single-user shell) |
725 |
</pre> |
</pre> |
726 |
|
|
727 |
--> |
<p>Note: Netbooting like this is very slow, so you need a lot of patience. |
728 |
|
For example, when NetBSD says "<tt>nfs_boot: trying DHCP/BOOTP</tt>", |
729 |
|
there will be a long pause, even on a very fast host machine. The reason |
730 |
|
for this is mostly because the emulator doesn't deal with timing issues |
731 |
|
very well, but also because NetBSD tries IPv6 first, before falling back |
732 |
|
to IPv4. |
733 |
|
|
734 |
|
|
735 |
|
|
739 |
|
|
740 |
<p><br> |
<p><br> |
741 |
<a name="openbsdinstall"></a> |
<a name="openbsdinstall"></a> |
742 |
<h3>Installing OpenBSD/pmax in GXemul:</h3> |
<h3>OpenBSD/pmax:</h3> |
743 |
|
|
744 |
Installing OpenBSD/pmax is a bit harder than installing NetBSD/pmax. |
Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is |
745 |
You should first read the section above on how to install NetBSD/pmax, |
a bit harder than installing NetBSD/pmax. You should first read the <a |
746 |
|
href="#netbsdinstall">section above</a> on how to install NetBSD/pmax, |
747 |
before continuing here. If you have never installed OpenBSD on any |
before continuing here. If you have never installed OpenBSD on any |
748 |
architecture, then you need a great deal of patience to do this. |
architecture, then you need a great deal of patience to do this. If, on |
749 |
If, on the other hand you are used to installing OpenBSD, then |
the other hand you are used to installing OpenBSD, then this should be no |
750 |
this should be no problem for you. |
problem for you. |
751 |
|
|
752 |
<p> |
<p> |
753 |
|
|
768 |
<ol> |
<ol> |
769 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
770 |
that OpenBSD installs itself onto:<pre> |
that OpenBSD installs itself onto:<pre> |
771 |
$ <b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b> |
<b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b> |
772 |
|
|
773 |
</pre> |
</pre> |
774 |
<li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre> |
<li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre> |
775 |
$ <b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b> |
<b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b> |
776 |
|
|
777 |
</pre> |
</pre> |
778 |
|
|
779 |
<li>Execute the following commands:<pre> |
<li>Execute the following commands: |
780 |
$ <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .</b> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
781 |
$ <b>gunzip simpleroot28.fs.gz</b> |
<b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz . |
782 |
$ <b>chmod +w simpleroot28.fs</b> <--- make sure |
gunzip simpleroot28.fs.gz |
783 |
|
chmod +w simpleroot28.fs</b> <--- make sure |
784 |
</pre> |
</pre></td></tr></table> |
785 |
<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. |
786 |
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 |
787 |
already have <tt>mkisofs</tt> installed on your system, you need |
already have <tt>mkisofs</tt> installed on your system, you need |
788 |
to install it in order to do this.<pre> |
to install it in order to do this.)<pre> |
789 |
$ <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> |
790 |
|
|
791 |
</pre> |
</pre> |
792 |
<li>Start the emulator with all three (!) disk images:<pre> |
<li>Start the emulator with all three (!) disk images:<pre> |
793 |
$ <b>gxemul -E dec -e 3max -b -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b> |
<b>gxemul -e 3max -A -M64 -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b> |
794 |
|
|
795 |
</pre> |
</pre> |
796 |
(If you add <tt><b>-X</b></tt>, you will run with the graphical |
(If you add <tt>-X</tt>, you will run with the graphical |
797 |
framebuffer. This is <i>REALLY</i> slow because the console has to |
framebuffer. This is <i>REALLY</i> slow because the console has to |
798 |
scroll a lot during the install. I don't recommend it.) |
scroll a lot during the install. I don't recommend it.) |
799 |
<p> |
<p> |
807 |
<li>When asked for the "<b>root device?</b>", enter <b>rz1</b>. |
<li>When asked for the "<b>root device?</b>", enter <b>rz1</b>. |
808 |
<li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter. |
<li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter. |
809 |
<li>At the # prompt, do the following:<pre> |
<li>At the # prompt, do the following:<pre> |
810 |
$ <b>fsck /dev/rz1a</b> (and mark the filesystem as clean) |
<b>fsck /dev/rz1a</b> (and mark the filesystem as clean) |
811 |
$ <b>mount /dev/rz1a /</b> |
<b>mount /dev/rz1a /</b> |
812 |
$ <b>mount -t kernfs kern kern</b> |
<b>mount -t kernfs kern kern</b> |
813 |
$ <b>./install</b> |
<b>./install</b> |
814 |
|
|
815 |
</pre> |
</pre> |
816 |
and proceed with the install. Good luck. :-) |
and proceed with the install. Good luck. :-) |
821 |
the directory containing the install sets. |
the directory containing the install sets. |
822 |
</ul> |
</ul> |
823 |
<p> |
<p> |
824 |
<li> |
<li>For some unknown reason, the install script does not set the root |
825 |
For some unknown reason, the install script does not set the root |
password! The first time you boot up OpenBSD after the install, you |
826 |
password! The first time you boot up OpenBSD after the install, you |
need to go into single user mode and run <b>passwd root</b> to set |
827 |
need to go into single user mode and run <b>passwd root</b> to set |
the root password, or you will not be able to log in at all!<pre> |
828 |
the root password, or you will not be able to log in at all! |
<b>gxemul -e 3max -A -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b> |
|
<pre> |
|
|
$ <b>gxemul -E dec -e 3max -b -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b> |
|
829 |
</pre> |
</pre> |
830 |
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 |
831 |
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 |
832 |
in the installer, perhaps because of the way I used mkisofs.) |
in the installer, perhaps because of the way I used mkisofs.) |
833 |
<p> |
<p> |
834 |
Execute the following commands in the emulator: |
Execute the following commands in the emulator: |
835 |
<pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
836 |
# <b>fsck /dev/rz0a</b> |
<b>fsck /dev/rz0a |
837 |
# <b>mount /</b> |
mount / |
838 |
# <b>passwd root</b> |
passwd root |
839 |
|
|
840 |
# <b>cd /; mount -t cd9660 /dev/rz2c /mnt; sh</b> |
cd /; mount -t cd9660 /dev/rz2c /mnt; sh |
841 |
# <b>for a in /mnt/[xX]*; do tar zxvf $a; done</b> |
for a in /mnt/[xX]*; do tar zxvf $a; done |
842 |
# <b>ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X</b> |
ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X |
843 |
# <b>ln -s /dev/fb0 /dev/mouse</b> |
ln -s /dev/fb0 /dev/mouse |
844 |
# <b>echo /usr/X11R6/lib >> /etc/ld.so.conf</b> |
echo /usr/X11R6/lib >> /etc/ld.so.conf |
845 |
# <b>ldconfig</b> |
ldconfig |
846 |
|
|
847 |
# <b>sync</b> |
sync |
848 |
# <b>halt</b> |
halt</b> |
849 |
</pre> |
</pre></td></tr></table> |
850 |
</ol> |
</ol> |
851 |
|
|
852 |
<p> |
<p> |
859 |
Once you have completed the installation procedure, the following command |
Once you have completed the installation procedure, the following command |
860 |
will let you boot from the new rootdisk image: |
will let you boot from the new rootdisk image: |
861 |
<pre> |
<pre> |
862 |
$ <b>gxemul -E dec -e 3max -b -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b> |
<b>gxemul -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b> |
863 |
</pre> |
</pre> |
864 |
|
|
865 |
<p> |
<p> |
877 |
|
|
878 |
|
|
879 |
|
|
880 |
|
|
881 |
<p><br> |
<p><br> |
882 |
<a name="openbsdarcinstall"></a> |
<a name="openbsdarcinstall"></a> |
883 |
<h3>Installing OpenBSD/arc in GXemul:</h3> |
<h3>OpenBSD/arc:</h3> |
884 |
|
|
885 |
It is possible to run OpenBSD/arc on an emulated Acer PICA-61 in the |
It is possible to run OpenBSD/arc on an emulated Acer PICA-61 in the |
886 |
emulator. |
emulator. |
904 |
<ol> |
<ol> |
905 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
906 |
that OpenBSD installs itself onto:<pre> |
that OpenBSD installs itself onto:<pre> |
907 |
$ <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b> |
<b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b> |
908 |
|
|
909 |
</pre> |
</pre> |
910 |
<li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre> |
<li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre> |
911 |
$ <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b> |
<b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b> |
912 |
|
|
913 |
</pre> |
</pre> |
914 |
|
|
915 |
<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. |
916 |
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 |
917 |
already have <tt>mkisofs</tt> installed on your system, you need |
already have <tt>mkisofs</tt> installed on your system, you need |
918 |
to install it in order to do this.<pre> |
to install it in order to do this.)<pre> |
919 |
$ <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
<b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
920 |
|
|
921 |
</pre> |
</pre> |
922 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
923 |
$ <b>gxemul -X -b -E arc -e pica -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b> |
<b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b> |
924 |
|
|
925 |
</pre> |
</pre> |
926 |
and proceed like you would do if you were installing OpenBSD |
and proceed like you would do if you were installing OpenBSD |
933 |
boot from the harddisk image: |
boot from the harddisk image: |
934 |
<p> |
<p> |
935 |
<pre> |
<pre> |
936 |
$ <b>gxemul -X -b -E arc -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b> |
<b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b> |
|
|
|
|
</pre> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
<p><br> |
|
|
<a name="openbsdsgiinstall"></a> |
|
|
<h3>Running OpenBSD/sgi in GXemul:</h3> |
|
|
|
|
|
<a href="http://www.openbsd.org/sgi.html">OpenBSD/sgi</a> |
|
|
can theoretically run in GXemul on an emulated O2 (SGI-IP32) with root on nfs. |
|
|
|
|
|
<p> |
|
|
<font color="#ff0000">NOTE: I haven't succeeded with this yet.</font> |
|
|
|
|
|
<p> |
|
|
GXemul does not yet emulate the AHC PCI SCSI controller in the O2, so |
|
|
another emulated machine must be used as the nfs root server, and the |
|
|
emulated O2 machine must boot as a |
|
|
<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&manpath=OpenBSD+Current&format=html">diskless</a> |
|
|
client. Performing this setup is very time consuming, but necessary. |
|
|
|
|
|
<p> |
|
|
<ol> |
|
|
<li><a href="#netbsdinstall">Install NetBSD/pmax 2.0 from CDROM</a> |
|
|
(or install some other similar OS) inside the emulator. This will |
|
|
be the "nfs server" machine. Create a 600 MB <tt>/tftpboot</tt> |
|
|
partition during the installation. |
|
|
<p> |
|
|
<li>Configure the nfs server machine to act as an nfs server.<pre> |
|
|
# <b>echo hostname=server >> /etc/rc.conf</b> |
|
|
# <b>echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf</b> |
|
|
# <b>echo nameserver 10.0.0.254 >> /etc/rc.conf</b> |
|
|
# <b>echo 10.0.0.254 > /etc/mygate</b> |
|
|
# <b>echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports</b> |
|
|
# <b>echo rpcbind=YES >> /etc/rc.conf</b> |
|
|
# <b>echo nfs_server=YES >> /etc/rc.conf</b> |
|
|
# <b>echo mountd=YES >> /etc/rc.conf</b> |
|
|
# <b>echo bootparamd=YES >> /etc/rc.conf</b> |
|
|
# <b>printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams</b> |
|
|
# <b>echo 10.0.0.1 client > /etc/hosts</b> |
|
|
|
|
|
Reboot. Then download the OpenBSD/sgi distribution: (NOTE: This |
|
|
takes quite some time, even if you have a fast network connection.) |
|
|
|
|
|
# <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
|
|
... |
|
|
<b>cd pub/OpenBSD/3.7/sgi</b> |
|
|
<b>mget *</b> |
|
|
|
|
|
# <b>sh</b> |
|
|
# <b>for a in base* etc* misc*; do tar vzxfp $a; done</b> |
|
|
# <b>dd if=/dev/zero of=swap bs=1024 count=16384</b> |
|
937 |
|
|
938 |
</pre> |
</pre> |
|
<p> |
|
|
<li>Create a configuration file along these lines:<pre> |
|
|
<font color="#2020cf">!!gxemul |
|
|
! |
|
|
! Configuration file for running OpenBSD/sgi diskless with |
|
|
! a NetBSD/pmax machine as the nfs server. |
|
|
! |
|
|
! Change the filenames to suit your setup.</font> |
|
|
|
|
|
<b>emul( |
|
|
net() |
|
|
|
|
|
machine( |
|
|
name("client machine") |
|
|
type("sgi") |
|
|
subtype("ip32") |
|
|
bintrans(yes) |
|
|
load("openbsd-sgi-20050202-bsd") |
|
|
start_paused(yes) |
|
|
) |
|
|
|
|
|
machine( |
|
|
name("nfs server") |
|
|
type("dec") |
|
|
subtype("5000/200") |
|
|
bintrans(yes) |
|
|
disk("nbsd_pmax.img") |
|
|
) |
|
|
)</b> |
|
|
|
|
|
</pre> |
|
|
<li>Boot the nfs server and the OpenBSD/sgi client machine like this:<pre> |
|
|
$ <b>gxemul @myconf</b> |
|
|
|
|
|
</pre> |
|
|
You might want to log in as root on the server machine, and |
|
|
run <b>tcpdump -lnvv</b> or similar, to see that what the client |
|
|
machine actually does on the network. |
|
|
<p> |
|
|
The OpenBSD box ("client machine") will be paused, so when you |
|
|
are ready to unpause it, press CTRL-C in the main GXemul |
|
|
window and use the <b>focus</b> and <b>pause</b> commands to |
|
|
unpause the main CPU in that machine, and then <b>continue</b> |
|
|
to resume execution. |
|
|
<p> |
|
|
When asked for "root device :", enter <b>mec0</b>. |
|
|
</ol> |
|
939 |
|
|
|
<p> |
|
|
TODO... |
|
940 |
|
|
|
--> |
|
941 |
|
|
942 |
|
|
943 |
|
|
945 |
|
|
946 |
<p><br> |
<p><br> |
947 |
<a name="ultrixinstall"></a> |
<a name="ultrixinstall"></a> |
948 |
<h3>Installing Ultrix/RISC in GXemul:</h3> |
<h3>Ultrix/RISC:</h3> |
949 |
|
|
950 |
Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200. |
Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200. |
951 |
|
(Ultrix was the native OS for these machines, but NetBSD/pmax is |
952 |
|
also usable.) |
953 |
|
|
954 |
<p> |
<p> |
955 |
|
|
963 |
<ol> |
<ol> |
964 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
965 |
that Ultrix installs itself onto:<pre> |
that Ultrix installs itself onto:<pre> |
966 |
$ <b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b> |
<b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b> |
967 |
|
|
968 |
</pre> |
</pre> |
969 |
<li>Place your Ultrix installation media in your CDROM drive. |
<li>Place your Ultrix installation media in your CDROM drive. |
970 |
(On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>. |
(On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>. |
971 |
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 |
972 |
.iso image file.) Then, start the emulator like this:<pre> |
.iso image file.) Then, start the emulator like this:<pre> |
973 |
$ <b>gxemul -X -b -M64 -E dec -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b> |
<b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b> |
974 |
|
|
975 |
</pre> |
</pre> |
976 |
<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 |
978 |
new rootdisk, to continue the installation process. |
new rootdisk, to continue the installation process. |
979 |
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 |
980 |
diskimage argument:<pre> |
diskimage argument:<pre> |
981 |
$ <b>gxemul -X -b -M64 -E dec -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b> |
<b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b> |
982 |
|
|
983 |
</pre> |
</pre> |
984 |
</ol> |
</ol> |
986 |
<p> |
<p> |
987 |
When the installation is completed, the following command should start |
When the installation is completed, the following command should start |
988 |
Ultrix from the harddisk image:<pre> |
Ultrix from the harddisk image:<pre> |
989 |
$ <b>gxemul -X -b -M64 -E dec -e 3max -j vmunix -d rootdisk.img</b> |
<b>gxemul -X -A -M64 -e 3max -j vmunix -d rootdisk.img</b> |
990 |
</pre> |
</pre> |
991 |
|
|
992 |
<p> |
<p>Ultrix mostly seems to work with dynamic binary translation (which can |
993 |
Ultrix mostly seems to work with dynamic binary translation (enabled by |
be disabled by the <b><tt>-B</tt></b> command line option). If you have a |
994 |
the <b><tt>-b</tt></b> command line option). If you have a very fast |
very fast host machine, and use bintrans, you might experience a weird |
995 |
host machine, and use bintrans, you might experience a weird timer related |
timer related bug, which makes it impossible to logon to the system. It is |
996 |
bug, which makes it impossible to logon to the system. It is triggered |
triggered when the emulation goes faster than any real DECstation machine |
997 |
when the emulation goes faster than any real DECstation machine was |
was capable of running. A temporary workaround is to add |
998 |
capable of running. A temporary workaround is to add <b><tt>-I33000000</tt></b> |
<b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million |
999 |
to fix the emulated clock speed to 33 million instructions per emulated |
instructions per emulated second. (When using <tt><b>-CR4400</b></tt>, |
1000 |
second. (When using <tt><b>-CR4400</b></tt>, <b><tt>-I16000000</tt></b> |
<b><tt>-I16000000</tt></b> should be used instead.) |
|
should be used instead.) |
|
1001 |
|
|
1002 |
<p> |
<p> |
1003 |
You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a |
You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a |
1008 |
displays to use. The following example starts Ultrix on an emulated |
displays to use. The following example starts Ultrix on an emulated |
1009 |
tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>, |
tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>, |
1010 |
<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> |
1011 |
$ <b>gxemul -M64 -bN -E dec -e 3max -jgenvmunix -d rootdisk.img \ |
<b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \ |
1012 |
-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> |
1013 |
</pre> |
</pre> |
1014 |
|
|
1049 |
|
|
1050 |
<p><br> |
<p><br> |
1051 |
<a name="sprite"></a> |
<a name="sprite"></a> |
1052 |
<h3>Running Sprite for DECstation in GXemul:</h3> |
<h3>Sprite for DECstation:</h3> |
1053 |
|
|
1054 |
Sprite was a research operating system at the University of Berkeley. |
Sprite was a research operating system at the University of Berkeley. |
1055 |
The Unix Heritage Society (TUHS, <a href="http://www.tuhs.org">www.tuhs.org</a>) |
The Unix Heritage Society (TUHS, <a href="http://www.tuhs.org">www.tuhs.org</a>) |
1069 |
|
|
1070 |
<p> |
<p> |
1071 |
<ol> |
<ol> |
1072 |
<li>Download the Sprite harddisk image using ftp or http:<pre> |
<li>Download the Sprite harddisk image:<pre> |
1073 |
<a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/">http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite</a>/<a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/ds5000.bt">ds5000.bt</a> |
<a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt</a> |
|
or <a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt</a> |
|
1074 |
83973120 bytes, MD5 = ec84eeeb20fe77b758370d5e312e4a5e |
83973120 bytes, MD5 = ec84eeeb20fe77b758370d5e312e4a5e |
1075 |
|
|
1076 |
</pre> |
</pre> |
1077 |
<li>Start the emulator with the following command line:<pre> |
<li>Start the emulator with the following command line:<pre> |
1078 |
$ <b>gxemul -X -b -E dec -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b> |
<b>gxemul -X -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b> |
1079 |
|
|
1080 |
</pre> |
</pre> |
1081 |
</ol> |
</ol> |
1087 |
<p> |
<p> |
1088 |
|
|
1089 |
<pre> |
<pre> |
1090 |
Your machine's Ethernet address: 10:20:30:40:50:60 |
Your machine's Ethernet address: 10:20:30:00:00:10 |
1091 |
Your machine's IP: 10.0.0.1 |
Your machine's IP: 10.0.0.1 |
1092 |
Subnet mask: 0xff000000 |
Subnet mask: 0xff000000 |
1093 |
Gateway's Ethernet address: 60:50:40:30:20:10 |
Gateway's Ethernet address: 60:50:40:30:20:10 |
1095 |
</pre> |
</pre> |
1096 |
|
|
1097 |
<p> |
<p> |
1098 |
Unfortunately, at the end of <a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/boot.txt"> |
Unfortunately, at the end of <a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/boot.txt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/boot.txt</a>, |
1099 |
http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/boot.txt</a>, the |
the following sad statement can be found: |
|
following sad statement can be found: |
|
1100 |
<pre> |
<pre> |
1101 |
The bootable Sprite image is meant to be a demonstration of Sprite, not |
The bootable Sprite image is meant to be a demonstration of Sprite, not |
1102 |
a robust Sprite system. There are several missing things, such as |
a robust Sprite system. There are several missing things, such as |
1103 |
floating point and network support. |
floating point and network support. |
1104 |
</pre> |
</pre> |
1105 |
|
|
1106 |
<p> |
<p>Once you are logged in as root, running <b><tt>xinit</tt></b> will |
1107 |
Once you are logged in as root, running <b>xinit</b> will start the X11 |
start the X11 environment. |
1108 |
environment. |
|
1109 |
|
|
1110 |
|
|
1111 |
|
|
1113 |
|
|
1114 |
<p><br> |
<p><br> |
1115 |
<a name="declinux"></a> |
<a name="declinux"></a> |
1116 |
<h3>Installing Debian GNU/Linux for DECstation in GXemul:</h3> |
<h3>Debian GNU/Linux for DECstation:</h3> |
1117 |
|
|
1118 |
<font color="#ef0000">NOTE: This is experimental, and <i>extremely</i> |
<font color="#ef0000">NOTE: This is experimental, and <i>extremely</i> |
1119 |
unstable. During my tests, even pressing the wrong key during the install |
unstable. During my tests, even pressing the wrong key during the install |
1120 |
(for example the wrong cursor key) can cause a kernel Oops. |
(for example the wrong cursor key) can cause a kernel Oops. My success |
1121 |
I <i>think</i> this has to do with interrupts from the serial controller. |
rate is probably around 50%.</font> |
1122 |
Hopefully using the <tt><b>-U</b></tt> command line option will reduce the |
|
1123 |
risk for such crashes. (I haven't had time to come up with a clean |
<p><font color="#ef0000">I <i>think</i> this has to do with interrupts |
1124 |
solution to this yet; it feels like a buffer overflow in Linux' serial |
from the serial controller. Hopefully using the <tt><b>-U</b></tt> command |
1125 |
driver for the 5000/200, but it is also likely that it is a bug in GXemul.) |
line option will reduce the risk for such crashes. (I haven't had time to |
1126 |
|
come up with a clean solution to this yet; it feels like a buffer overflow |
1127 |
|
in Linux' serial driver for the 5000/200, but it is also likely that it is |
1128 |
|
a bug in GXemul.)</font> |
1129 |
|
|
1130 |
|
<p><font color="#ef0000">Everything runs extremely slow. Even if you have |
1131 |
|
a very fast host machine, an install attempt can still take several hours! |
1132 |
</font> |
</font> |
1133 |
|
|
1134 |
<p> |
<p> |
1149 |
<ol> |
<ol> |
1150 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
1151 |
that Debian installs itself onto:<pre> |
that Debian installs itself onto:<pre> |
1152 |
$ <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=2000000</b> |
<b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=3000000</b> |
1153 |
|
|
1154 |
</pre> |
</pre> |
1155 |
<li>Download an install kernel:<pre> |
<li>Download an install kernel:<pre> |
1156 |
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://http.us.debian.org/debian/dists/testing/main/</a> |
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://ftp.egr.msu.edu/debian/dists/stable/main/</a> |
1157 |
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a> |
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a> |
|
or |
|
|
<a href="http://http.us.debian.org/debian/dists/unstable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://http.us.debian.org/debian/dists/unstable/main/</a> |
|
|
<a href="http://http.us.debian.org/debian/dists/unstable/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a> |
|
1158 |
|
|
1159 |
</pre> |
</pre> |
|
depending on whether you want to install Debian "Testing" or |
|
|
"Unstable". |
|
1160 |
<p> |
<p> |
1161 |
<li>For a text-mode installation, start the emulator like this:<pre> |
<li>For a text-mode installation, start the emulator like this:<pre> |
1162 |
$ <b>gxemul -E dec -e 3max -b -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b> |
<b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b> |
1163 |
|
|
1164 |
</pre> |
</pre> |
1165 |
</ol> |
(If you want to, you can try <b><tt>-X</tt></b> instead of |
1166 |
|
<b><tt>-o 'console=ttyS3'</tt></b> on the command line. This will |
1167 |
<p> |
cause Linux to use the graphical framebuffer. Unfortunately, Linux |
1168 |
Debian GNU/Linux on DECstation works reasonably fine with dynamic |
does not seem to have a driver for the DZ11 keyboard controller yet, |
1169 |
binary translation, enabled by the <b><tt>-b</tt></b> command line option. |
so you cannot interact with the system. You will see the penguin in |
1170 |
(Without this option, the emulator might be less buggy, but also too slow |
the upper lefthand corner while booting, and nicely rendered Unicode |
1171 |
to be useful when running Linux as a guest OS.) |
characters, but that's about it.) |
1172 |
|
<p> |
1173 |
<p> |
You need to enter some values during the installation procedure, for |
1174 |
(If you want to, you can try <b>-X</b> instead of <b>-o 'console=ttyS3'</b> on |
example network settings. The following should work:<pre> |
1175 |
the command line. This will cause Linux to use the graphical framebuffer. |
DHCP: No, choose "<b>Configure network manually</b>" |
1176 |
Unfortunately, Linux does not seem to have a driver for the DZ11 keyboard |
IP address: <b>10.0.0.1</b> |
1177 |
controller yet, so you cannot interact with the system. You will see the |
Netmask: <b>255.0.0.0</b> |
1178 |
penguin in the upper lefthand corner while booting, and nicely rendered Unicode |
Gateway: <b>10.0.0.254</b> |
1179 |
characters, but that's about it.) |
Name server addresses: <b>10.0.0.254</b> |
|
|
|
|
<p> |
|
|
You need to enter some values during the installation procedure, for example |
|
|
network settings. The following should work: |
|
|
<p> |
|
|
<pre> |
|
|
DHCP: No, choose "Configure network manually" |
|
|
IP address: 10.0.0.1 |
|
|
Netmask: 255.0.0.0 |
|
|
Gateway: 10.0.0.254 |
|
|
Name server addresses: 10.0.0.254 |
|
1180 |
</pre> |
</pre> |
|
|
|
|
<p> |
|
|
<ol start="4"> |
|
1181 |
<li>Once the first phase of the install has finished, the following command |
<li>Once the first phase of the install has finished, the following command |
1182 |
should let you boot into Debian, and perform post-install |
should let you boot into Debian, and perform post-install |
1183 |
configuration:<pre> |
configuration:<pre> |
1184 |
$ <b>gxemul -E dec -e 3max -U -b -M64 -o 'console=ttyS3' -d debian.img</b> |
<b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b> |
1185 |
|
|
1186 |
</pre> |
</pre>Note: All these steps take a lot of time, so you will have plenty |
1187 |
</ol> |
of time to drink lots of cups of coffee. |
1188 |
|
<p> |
1189 |
<p> |
<li>It seems that there's a problem with getting a login prompt on serial |
1190 |
It seems that there's a problem with getting a login prompt on serial |
console (at least when I've done test installs), so when the |
1191 |
console (at least when I've done test installs), so when the installation |
installation is finished and you're supposed to get a login prompt, |
1192 |
is finished and you're supposed to get a login prompt, you need to press |
you need to press CTRL-C and type <b><tt>quit</tt></b>, and then: |
1193 |
CTRL-C and type <b>quit</b>, and then: |
download a normal kernel (<i>not</i> a RAMDISK kernel):<pre> |
1194 |
|
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/</a> |
1195 |
<p> |
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a> |
|
<ol start="5"> |
|
|
<li>Download a normal kernel (<i>not</i> a RAMDISK kernel):<pre> |
|
|
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://http.us.debian.org/debian/dists/testing/main/</a> |
|
|
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a> |
|
1196 |
|
|
1197 |
</pre> |
</pre>and boot Debian using the following command line:<pre> |
1198 |
<li>Boot Debian using the following command line:<pre> |
<b>gxemul -e 3max -U -M64 -o \ |
|
$ <b>gxemul -E dec -e 3max -U -b -M64 -o \ |
|
1199 |
'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \ |
'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \ |
1200 |
-d debian.img vmlinux-2.4.27-r3k-kn02</b> |
-d debian.img vmlinux-2.4.27-r3k-kn02</b> |
1201 |
|
|
1205 |
sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b> |
sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b> |
1206 |
sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b> |
sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b> |
1207 |
sh-2.05b# <b>sync; umount /</b> |
sh-2.05b# <b>sync; umount /</b> |
1208 |
|
sh-2.05b# <b>halt</b> |
1209 |
</pre> |
</pre> |
1210 |
</ol> |
</ol> |
1211 |
|
|
1214 |
|
|
1215 |
<p> |
<p> |
1216 |
Use this command to boot from the completely installed disk image:<pre> |
Use this command to boot from the completely installed disk image:<pre> |
1217 |
$ <b>gxemul -E dec -e 3max -U -b -M64 -o 'console=ttyS3' -d debian.img</b> |
<b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b> |
1218 |
|
|
1219 |
</pre> |
</pre> |
1220 |
|
|
1226 |
possible to run Debian GNU/Linux with framebuffer/keyboard. |
possible to run Debian GNU/Linux with framebuffer/keyboard. |
1227 |
(Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the |
(Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the |
1228 |
<b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here: |
<b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here: |
1229 |
<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation"> |
<a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a> |
|
http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a> |
|
1230 |
It has other problems (ethernet doesn't seem to work, for |
It has other problems (ethernet doesn't seem to work, for |
1231 |
example), but at least it doesn't Oops that often. ] |
example), but at least it doesn't Oops that often. ] |
1232 |
|
|
1237 |
|
|
1238 |
<p><br> |
<p><br> |
1239 |
<a name="declinuxredhat"></a> |
<a name="declinuxredhat"></a> |
1240 |
<h3>Running Redhat Linux for DECstation in GXemul:</h3> |
<h3>Redhat Linux for DECstation:</h3> |
1241 |
|
|
1242 |
<font color="#ff0000">NOTE: This is experimental, and <i>extremely</i> |
<font color="#ff0000">NOTE: This is experimental, and <i>extremely</i> |
1243 |
unstable. Read the note about <b><tt>-U</tt></b> in the section on how to |
unstable. Read the note about <b><tt>-U</tt></b> in the section on how to |
1254 |
<p> |
<p> |
1255 |
<ol> |
<ol> |
1256 |
<li>Download a kernel. This is a Debian kernel, but it works fine:<pre> |
<li>Download a kernel. This is a Debian kernel, but it works fine:<pre> |
1257 |
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://http.us.debian.org/debian/dists/testing/main/</a> |
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/</a> |
1258 |
<a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a> |
<a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a> |
1259 |
|
|
1260 |
</pre> |
</pre> |
1261 |
<li>Download a root filesystem tree:<pre> |
<li>Download a root filesystem tree:<pre> |
1284 |
</pre>(Note sda1 instead of sdc1.) |
</pre>(Note sda1 instead of sdc1.) |
1285 |
<p> |
<p> |
1286 |
<li>To boot Linux, start the emulator like this:<pre> |
<li>To boot Linux, start the emulator like this:<pre> |
1287 |
$ <b>gxemul -E dec -e 3max -U -b -M128 -o \ |
<b>gxemul -e 3max -U -M128 -o \ |
1288 |
"console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b> |
"console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b> |
1289 |
|
|
1290 |
</pre> |
</pre> |
1292 |
|
|
1293 |
<p> |
<p> |
1294 |
If you need to boot into single user mode, try the following:<pre> |
If you need to boot into single user mode, try the following:<pre> |
1295 |
$ <b>gxemul -E dec -e 3max -U -b -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \ |
<b>gxemul -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \ |
1296 |
-d redhat.img vmlinux-2.4.27-r3k-kn02</b> |
-d redhat.img vmlinux-2.4.27-r3k-kn02</b> |
1297 |
|
|
1298 |
</pre> |
</pre> |
1299 |
|
|
1300 |
<p> |
<p>Redhat Linux on DECstation in R3000 mode should work fine with dynamic |
1301 |
Redhat Linux on DECstation in R3000 mode should work fine with dynamic binary |
binary translation, but if things are buggy, it can be disabled by |
1302 |
translation (enabled by the <b>-b</b> command line option). |
using the <b><tt>-B</tt></b> command line option. |
1303 |
|
|
1304 |
<p> |
<p> |
1305 |
NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command |
NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command |
1322 |
|
|
1323 |
|
|
1324 |
<p><br> |
<p><br> |
1325 |
|
<hr> |
1326 |
|
|
1327 |
|
|
1328 |
|
|
1329 |
|
|
1330 |
|
|
1331 |
|
|
1332 |
|
|
1333 |
|
<p><br> |
1334 |
<a name="mach"></a> |
<a name="mach"></a> |
1335 |
<h3>Running Mach/PMAX in GXemul:</h3> |
<h3>Mach/PMAX:</h3> |
1336 |
|
|
1337 |
Read the following link if you want to know more about Mach in general: |
Read the following link if you want to know more about Mach in general: |
1338 |
<a href="http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/mach.html"> |
<a href="http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/mach.html"> |
1356 |
<p> |
<p> |
1357 |
<ol> |
<ol> |
1358 |
<li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre> |
<li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre> |
1359 |
$ <b>./configure --enable-caches; make</b> |
<b>./configure --enable-caches; make</b> |
1360 |
|
|
1361 |
</pre> |
</pre> |
1362 |
<li>Download the pmax binary distribution for Mach 3.0:<pre> |
<li>Download the pmax binary distribution for Mach 3.0:<pre> |
1363 |
<a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z</a> |
<a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/</a> |
1364 |
|
<a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">daveg/Info/Links/Mach/src/release/pmax.tar.Z</a> |
1365 |
7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0 |
7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0 |
1366 |
|
|
1367 |
</pre> |
</pre> |
1368 |
<li>Extract the Mach kernel:<pre> |
<li>Extract the Mach kernel:<pre> |
1369 |
$ <b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
<b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
1370 |
|
|
1371 |
</pre> |
</pre> |
1372 |
<li>Create an empty disk image:<pre> |
<li>Create an empty disk image:<pre> |
1373 |
$ <b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b> |
<b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b> |
1374 |
|
|
1375 |
</pre> |
</pre> |
1376 |
<li>Load the contents of pmax.tar.Z onto the disk image. This is |
<li>Load the contents of pmax.tar.Z onto the disk image. This is |
1387 |
cd /; sync; umount /mnt</i>) |
cd /; sync; umount /mnt</i>) |
1388 |
<p> |
<p> |
1389 |
<li>Start the emulator with the following command:<pre> |
<li>Start the emulator with the following command:<pre> |
1390 |
$ <b>gxemul -E dec -e 3max -X -d disk.img \ |
<b>gxemul -e 3max -X -d disk.img \ |
1391 |
pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
1392 |
|
|
1393 |
</pre> |
</pre> |
1395 |
|
|
1396 |
|
|
1397 |
|
|
1398 |
|
|
1399 |
|
|
1400 |
|
|
1401 |
|
|
1402 |
|
<p><br> |
1403 |
|
<a name="openbsdsgiinstall"></a> |
1404 |
|
<h3>OpenBSD/sgi:</h3> |
1405 |
|
|
1406 |
|
<a href="http://www.openbsd.org/sgi.html">OpenBSD/sgi</a> |
1407 |
|
can (almost) run in GXemul on an emulated O2 (SGI-IP32) with root on nfs. |
1408 |
|
|
1409 |
|
<p> |
1410 |
|
|
1411 |
|
<a href="20050617-openbsd-sgi.png"><img src="20050617-openbsd-sgi_small.png"></a> |
1412 |
|
|
1413 |
|
<p><font color="#ff0000">NOTE: I haven't succeeded all the way with |
1414 |
|
this yet, and this shows/triggers many bugs in the emulator, but some of |
1415 |
|
it works.</font> |
1416 |
|
|
1417 |
|
<p>GXemul does not yet emulate the AHC PCI SCSI controller in the O2. (I have |
1418 |
|
mailed Adaptec several times, asking for documentation, but never received |
1419 |
|
any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't |
1420 |
|
use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre> |
1421 |
|
<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> |
1422 |
|
|
1423 |
|
</pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>. |
1424 |
|
|
1425 |
|
<p>It might also be possible to netboot. Another emulated machine must |
1426 |
|
then be used as the nfs root server, and the emulated O2 machine must boot |
1427 |
|
as a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&manpath=OpenBSD+Current&format=html">diskless</a> |
1428 |
|
client. Performing this setup is quite time consuming, but necessary: |
1429 |
|
|
1430 |
|
<p> |
1431 |
|
<ol> |
1432 |
|
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
1433 |
|
This needs to have a 800 MB <tt>/tftpboot</tt> partition. |
1434 |
|
<a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>. |
1435 |
|
(Don't forget to add the extra partition!) |
1436 |
|
<p> |
1437 |
|
<li>Configure the nfs server machine to act as an nfs server. |
1438 |
|
Start up the emulated DECstation:<pre> |
1439 |
|
<b>gxemul -e 3max -A -d nbsd_pmax.img</b> |
1440 |
|
</pre>and enter the following commands as <tt>root</tt> |
1441 |
|
inside the emulator: |
1442 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1443 |
|
<b>echo hostname=server >> /etc/rc.conf |
1444 |
|
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
1445 |
|
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
1446 |
|
echo 10.0.0.254 > /etc/mygate |
1447 |
|
echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports |
1448 |
|
echo rpcbind=YES >> /etc/rc.conf |
1449 |
|
echo nfs_server=YES >> /etc/rc.conf |
1450 |
|
echo mountd=YES >> /etc/rc.conf |
1451 |
|
echo bootparamd=YES >> /etc/rc.conf |
1452 |
|
printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams |
1453 |
|
echo "10:20:30:00:00:10 client" > /etc/ethers |
1454 |
|
echo 10.0.0.1 client > /etc/hosts |
1455 |
|
reboot</b> |
1456 |
|
</pre></td></tr></table> |
1457 |
|
<li>Start the DECstation emulation again, and enter the following |
1458 |
|
commands to download the OpenBSD/sgi distribution:<br>(NOTE: This |
1459 |
|
takes quite some time, even if you have a fast network connection.) |
1460 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1461 |
|
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
1462 |
|
(log in as anonymous...) |
1463 |
|
<b>cd pub/OpenBSD/3.7/sgi |
1464 |
|
mget b*tgz c* e* g* m* |
1465 |
|
quit |
1466 |
|
sh |
1467 |
|
for a in *.tgz; do echo $a; tar zxfp $a; done |
1468 |
|
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
1469 |
|
rm *.tgz |
1470 |
|
dd if=/dev/zero of=swap bs=1024 count=32768 |
1471 |
|
halt</b> |
1472 |
|
</pre></td></tr></table> |
1473 |
|
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
1474 |
|
<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> |
1475 |
|
MD5 (bsd) = f16eaf3dcbd51876db7c25f70e6d8a08 |
1476 |
|
<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> |
1477 |
|
MD5 (bsd.rd) = 4843e6139d8dd04b03d5f0e33e9a4f7b |
1478 |
|
|
1479 |
|
</pre> |
1480 |
|
<li>Create a configuration file called <tt>config_client</tt>: |
1481 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1482 |
|
<font color="#2020cf">!!gxemul |
1483 |
|
! |
1484 |
|
! Configuration file for running OpenBSD/sgi diskless with |
1485 |
|
! a NetBSD/pmax machine as the nfs server. |
1486 |
|
! |
1487 |
|
! This config file is for the client.</font> |
1488 |
|
|
1489 |
|
<b>emul( |
1490 |
|
net( |
1491 |
|
add_remote("localhost:12444") </b>! the server<b> |
1492 |
|
local_port(12445) </b>! the client<b> |
1493 |
|
) |
1494 |
|
|
1495 |
|
machine( |
1496 |
|
name("client machine") |
1497 |
|
serial_nr(1) |
1498 |
|
|
1499 |
|
type("sgi") |
1500 |
|
subtype("o2") |
1501 |
|
|
1502 |
|
</b>! load("bsd")<b> |
1503 |
|
load("bsd.rd") |
1504 |
|
) |
1505 |
|
)</b> |
1506 |
|
</pre></td></tr></table> |
1507 |
|
... and another configuration file for the server, |
1508 |
|
<tt>config_server</tt>: |
1509 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1510 |
|
<font color="#2020cf">!!gxemul</font> |
1511 |
|
<b>emul( |
1512 |
|
net( |
1513 |
|
local_port(12444) </b>! the server<b> |
1514 |
|
add_remote("localhost:12445") </b>! the client<b> |
1515 |
|
) |
1516 |
|
|
1517 |
|
machine( |
1518 |
|
name("nfs server") |
1519 |
|
serial_nr(2) |
1520 |
|
|
1521 |
|
type("dec") |
1522 |
|
subtype("5000/200") |
1523 |
|
|
1524 |
|
disk("nbsd_pmax.img") |
1525 |
|
) |
1526 |
|
)</b> |
1527 |
|
</pre></td></tr></table> |
1528 |
|
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
1529 |
|
"<tt>client machine</tt>" as two separate emulator instances:<pre> |
1530 |
|
in one xterm: |
1531 |
|
<b>gxemul @config_server</b> |
1532 |
|
|
1533 |
|
and then, in another xterm: |
1534 |
|
<b>gxemul @config_client</b> |
1535 |
|
|
1536 |
|
</pre> |
1537 |
|
<li>In the OpenBSD/sgi window, choose "<tt>s</tt>" (for Shell), and type: |
1538 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1539 |
|
<b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254 |
1540 |
|
mount -v 10.0.0.2:/tftpboot /mnt |
1541 |
|
cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt |
1542 |
|
halt</b> |
1543 |
|
</pre></td></tr></table> |
1544 |
|
You might want to log in as <tt>root</tt> on the server machine, and |
1545 |
|
run <tt>tcpdump -lnvv</tt> or similar, to see that what the client |
1546 |
|
machine actually does on the network. The <tt>MAKEDEV</tt> script |
1547 |
|
takes almost forever, so be patient. |
1548 |
|
</ol> |
1549 |
|
|
1550 |
|
|
1551 |
|
<p><font color="#ff0000">NOTE: Everything up to this point should work. |
1552 |
|
However, the next step (in gray) doesn't actually work:</font> |
1553 |
|
|
1554 |
|
<p><font color="#888888">Once everything has been set up correctly, change |
1555 |
|
<tt>bsd.rd</tt> in <tt>config_client</tt> to just <tt>bsd</tt> (the GENERIC |
1556 |
|
kernel). It should now be possible to boot OpenBSD/sgi using the NetBSD/pmax |
1557 |
|
nfs server. (When asked for "<tt>root device :</tt>" on the OpenBSD machine, |
1558 |
|
enter <tt><b>mec0</b></tt>.)</font> |
1559 |
|
|
1560 |
|
<p><font color="#ff0000">But it doesn't work. Probably because GXemul's |
1561 |
|
implementation of the mec (ethernet card used in the O2) is too much of |
1562 |
|
a quick hack. For now, use the <tt>bsd.rd</tt> kernel, and (at every |
1563 |
|
boot) type:</font><pre> |
1564 |
|
<b>s</b> (for Shell) |
1565 |
|
<b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254</b> |
1566 |
|
<b>mount -v 10.0.0.2:/tftpboot /mnt</b> |
1567 |
|
<b>cd /mnt; usr/sbin/chroot .</b> |
1568 |
|
<b>sh etc/rc</b> |
1569 |
|
</pre> |
1570 |
|
|
1571 |
|
<p><font color="#ff0000">This will not cause OpenBSD to be booted |
1572 |
|
normally, but at least a few basic things will work. |
1573 |
|
By the way, the emulator performs so poorly, that you will have time to |
1574 |
|
fetch several cups of coffee for each of the steps above.</font> |
1575 |
|
|
1576 |
|
|
1577 |
|
|
1578 |
|
|
1579 |
|
|
1580 |
|
|