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>Gavare's eXperimental Emulator:</b></font><br> |
<b>GXemul:</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.157 2006/07/22 10:23:39 debug Exp $ |
$Id: guestoses.html,v 1.230 2007/09/11 21:46:35 debug Exp $ |
14 |
|
|
15 |
Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
16 |
|
|
17 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
18 |
modification, are permitted provided that the following conditions are met: |
modification, are permitted provided that the following conditions are met: |
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 3.0 or 1.6.2</a> |
<li><a href="#netbsdpmaxinstall">NetBSD/pmax 4.0</a> |
52 |
<li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a> |
<li><a href="#netbsdarcinstall">NetBSD/arc 4.0</a> |
53 |
<li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.0</a> |
<li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.1</a> |
54 |
<li><a href="#netbsdcobaltinstall">NetBSD/cobalt 2.1</a> |
<li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.1</a> |
55 |
<li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 2.1</a> |
<li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.1</a> |
56 |
<li><a href="#netbsdsgimips">NetBSD/sgimips 3.0</a> |
<li><a href="#netbsdalgorinstall">NetBSD/algor 3.1</a> |
57 |
<li><a href="#netbsdcatsinstall">NetBSD/cats 3.0</a> |
<li><a href="#netbsdsgimips">NetBSD/sgimips 3.1</a> |
58 |
|
<li><a href="#netbsdcatsinstall">NetBSD/cats 3.1</a> |
59 |
<li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a> |
<li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a> |
60 |
|
<li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.1</a> |
61 |
<li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a> |
<li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a> |
62 |
|
<li><a href="#netbsdmacppcinstall">NetBSD/macppc 4.0</a> |
63 |
|
<li><a href="#netbsdpmppc">NetBSD/pmppc 3.1</a> |
64 |
|
<li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a> |
65 |
|
<li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a> |
66 |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a> |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a> |
67 |
<li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a> |
<li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a> |
68 |
|
<li><a href="#openbsdlandiskinstall">OpenBSD/landisk 4.1</a> |
69 |
<li><a href="#ultrixinstall">Ultrix/RISC 4.5</a> |
<li><a href="#ultrixinstall">Ultrix/RISC 4.5</a> |
70 |
<li><a href="#sprite">Sprite for DECstation</a> |
<li><a href="#sprite">Sprite for DECstation</a> |
71 |
<li><a href="#declinux">Debian GNU/Linux for DECstation</a> |
<li><a href="#declinux">Debian GNU/Linux for DECstation</a> |
|
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
|
72 |
</ul> |
</ul> |
73 |
|
|
74 |
|
|
96 |
well. |
well. |
97 |
|
|
98 |
<p>In addition to the "working" guest operating systems listed above, |
<p>In addition to the "working" guest operating systems listed above, |
99 |
you might find the following information interesting: (Some of these might |
you might find the following information interesting: |
|
not be relevant for this specific release of GXemul.) |
|
100 |
|
|
101 |
<ul> |
<ul> |
102 |
<li><a href="#mach">Mach/PMAX</a> |
<li><a href="#mach">Mach/PMAX</a> |
103 |
|
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
104 |
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
105 |
<li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a> |
<li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a> |
106 |
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
107 |
|
<!-- <li><a href="#linux_malta">Linux/Malta</a> --> |
108 |
<li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a> |
<li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a> |
109 |
<li><a href="#windows_nt_mips">Windows NT/MIPS</a> |
<li><a href="#windows_nt_mips">Windows NT/MIPS</a> |
110 |
<li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a> |
<li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a> |
111 |
<li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a> |
<li><a href="#netbsdlandiskinstall">NetBSD/landisk</a> |
112 |
</ul> |
</ul> |
113 |
|
|
114 |
|
<p><b><font color="#ff0000">NOTE:</b> |
115 |
|
Some of these sections may not be relevant to this |
116 |
|
specific release of GXemul,</font> for example some of these |
117 |
|
modes may be legacy modes that worked before but not any longer, |
118 |
|
or are not yet working but could be in the future. |
119 |
|
|
120 |
<p>Some operating systems are listed with a version number <i>less</i> |
<p>Some operating systems are listed with a version number <i>less</i> |
121 |
than what was available at the time of this GXemul release (e.g. |
than what was available at the time of this GXemul release (e.g. |
122 |
NetBSD/prep). The reasons for this is because of incompleteness in |
NetBSD/prep). The reasons for this is because of incompleteness in |
132 |
<a name="netbsdpmaxinstall"></a> |
<a name="netbsdpmaxinstall"></a> |
133 |
<h3>NetBSD/pmax:</h3> |
<h3>NetBSD/pmax:</h3> |
134 |
|
|
135 |
<p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the |
<p><a href="http://www.netbsd.org/ports/pmax/">NetBSD/pmax</a> was the |
136 |
first guest OS that could be |
first guest OS that could be |
137 |
<a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a> |
<a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a> |
138 |
onto a disk image in GXemul. The device emulation of the DECstation |
onto a disk image in GXemul. The device emulation of the DECstation |
139 |
5000/200 is reasonably complete; it should be enough to emulate a |
5000/200 is reasonably complete; it should be enough to emulate a |
140 |
networked X-windows-capable workstation. |
networked X-windows-capable workstation. |
141 |
|
|
|
<p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately, |
|
|
newer NetBSD releases have changed slightly, and nowadays X does not |
|
|
work straight away. (It seems that this has to do with NetBSD switching |
|
|
console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had |
|
|
time to figure out how to make it work; at worst it might require a kernel |
|
|
recompilation.) What this means is that if you want to use emulated X11, |
|
|
then you need to run NetBSD 1.6.2. If you feel that you only need |
|
|
serial-console emulation, then choose the latest NetBSD version available. |
|
|
|
|
142 |
<p> |
<p> |
143 |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
<a href="20050317-example.png"><img src="20050317-example_small.png"></a> |
144 |
|
|
145 |
<p>To install NetBSD/pmax onto a harddisk image in the emulator, |
<p>To install NetBSD/pmax onto a harddisk image in the emulator, |
146 |
follow these instructions: |
follow these instructions: |
147 |
|
|
148 |
<p><ol start="1"> |
<p><ol> |
149 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
150 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
151 |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=1900000</b> |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b> |
152 |
|
|
153 |
</pre> |
</pre> |
|
</ol> |
|
|
|
|
|
<p> |
|
|
From this point, there are two separate ways to continue the installation. |
|
|
You can either download a CD-ROM iso image (and let the installation |
|
|
program copy files from the CD-ROM image to the harddisk image), or you |
|
|
can install via ftp. For an installation from a CD-ROM image, follow these |
|
|
steps: |
|
|
<p> |
|
|
<ol start="2"> |
|
|
|
|
154 |
<li>Download a NetBSD CD-ROM iso image:<pre> |
<li>Download a NetBSD CD-ROM iso image:<pre> |
155 |
<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> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/pmaxcd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/pmaxcd-4.0.iso</a> |
|
or |
|
|
<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> |
|
156 |
|
|
157 |
</pre> |
</pre> |
158 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
159 |
<b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b> |
<b>gxemul -X -e 3max -d nbsd_pmax.img -d b:pmaxcd-4.0.iso</b> |
|
(or <b>pmaxcd.iso</b>) |
|
160 |
</pre> |
</pre> |
|
and proceed like you would do if you were installing NetBSD on a real |
|
|
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
|
|
type, and not <tt>rcons</tt>. |
|
161 |
</ol> |
</ol> |
|
<p> |
|
|
For an ftp install, substitute steps 2 and 3 above with these: |
|
|
<p> |
|
|
<ol start="2"> |
|
162 |
|
|
163 |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
<p>If you do not want to use the graphical framebuffer during the |
164 |
<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> |
install, you can skip the <b><tt>-X</tt></b> command line option. |
165 |
or |
Remember to enter <tt>xterm</tt> instead of <tt>vt100</tt> when asked |
166 |
<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> |
about your terminal type, if you do this. |
167 |
|
|
168 |
</pre> |
<p>You can also add <b><tt>-Y 2</tt></b> to the command line options, if |
169 |
<li>Start the emulator like this:<pre> |
you feel that the default framebuffer window is too large. |
|
<b>gxemul -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz</b> |
|
|
</pre> |
|
|
and proceed like you would do if you were installing NetBSD on a real |
|
|
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
|
|
type, and not <tt>rcons</tt>. Suitable networking parameters are as |
|
|
follows:<pre> |
|
|
Which device shall I use? [le0]: <b>le0</b> |
|
|
.. |
|
|
Your DNS domain: <b>mydomain.com</b> |
|
|
Your host name: <b>foo</b> |
|
|
Your IPv4 number: <b>10.0.0.1</b> |
|
|
IPv4 Netmask [0xff000000]: <b>0xff000000</b> |
|
|
IPv4 gateway: <b>10.0.0.254</b> |
|
|
IPv4 name server: <b>10.0.0.254</b> |
|
|
</pre> |
|
|
(If using 10.0.0.254 as the nameserver fails, then try entering the |
|
|
IP number of a real-world nameserver instead.) |
|
|
</ol> |
|
|
|
|
|
<p>If you want to use a graphical framebuffer during the install, you can |
|
|
add <b><tt>-X -Y2</tt></b> to the command line, and choose <tt>rcons</tt> |
|
|
instead of <tt>vt100</tt> when prompted with which terminal type to use. |
|
|
(By just using <tt><b>-X</b></tt>, you will get a full-size framebuffer |
|
|
window.) |
|
170 |
|
|
171 |
<p>When the installation is finished, the following command should start |
<p>When the installation has finished, the following command should start |
172 |
NetBSD from the harddisk image:<pre> |
NetBSD from the harddisk image:<pre> |
|
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
|
|
</pre> |
|
|
|
|
|
<p>If you installed NetBSD/pmax 1.6.2, then try the following to start |
|
|
with a framebuffer:<pre> |
|
173 |
<b>gxemul -X -e 3max -d nbsd_pmax.img</b> |
<b>gxemul -X -e 3max -d nbsd_pmax.img</b> |
174 |
</pre> |
</pre> |
175 |
and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows. |
|
176 |
|
and log in as <tt>root</tt>. Type <tt>startx</tt> to start X windows. |
177 |
|
|
178 |
|
<p>(Remove <b><tt>-X</tt></b> if you only want a serial console.) |
179 |
|
|
180 |
|
|
181 |
|
|
188 |
<a name="netbsdarcinstall"></a> |
<a name="netbsdarcinstall"></a> |
189 |
<h3>NetBSD/arc:</h3> |
<h3>NetBSD/arc:</h3> |
190 |
|
|
191 |
It is possible to install and run an old version of <a |
It is possible to install and run <a |
192 |
href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a> |
href="http://www.netbsd.org/ports/arc/">NetBSD/arc</a> |
193 |
on an emulated Acer PICA-61 in the emulator. |
on an emulated Acer PICA-61 in the emulator. |
194 |
|
|
195 |
<p> |
<p> |
197 |
<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> |
198 |
|
|
199 |
<p> |
<p> |
200 |
To install NetBSD/arc 1.6.2 from a CDROM image onto an emulated |
To install NetBSD/arc from a CDROM image onto an emulated |
201 |
harddisk image, follow these instructions: |
harddisk image, follow these instructions: |
202 |
|
|
203 |
<p> |
<p> |
204 |
<ol start="1"> |
<ol start="1"> |
205 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
206 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
207 |
<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=1000000</b> |
208 |
|
|
209 |
</pre> |
</pre> |
210 |
<li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc |
<li>Download a NetBSD/arc 4.0 CDROM image, and a generic NetBSD/arc |
211 |
kernel:<pre> |
kernel:<pre> |
212 |
<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> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/arccd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/arccd-4.0.iso</a> |
213 |
|
TODO: |
214 |
<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> |
<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> |
215 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-RAMDISK.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-RAMDISK.gz</a> |
216 |
|
|
217 |
</pre> |
</pre> |
218 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
219 |
<b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \ |
<b>gxemul -e pica -x -d nbsd_arc.img -d b:arccd.iso netbsd-RAMDISK.gz</b> |
|
-j arc/binary/kernel/netbsd.RAMDISK.gz</b> |
|
220 |
|
|
221 |
</pre> |
</pre> |
222 |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
223 |
<p> |
<p> |
224 |
<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 |
225 |
automatic installation program for NetBSD/arc 1.6.2. Here are |
automatic installation program for NetBSD/arc 4.0. Here are |
226 |
some tips and hints on how you can proceed with the install: |
some tips and hints on how you can proceed with the install: |
227 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
228 |
<b>mount /dev/cd0a /mnt2 |
<b>mount /dev/cd0a /mnt2 |
262 |
<h3>NetBSD/hpcmips:</h3> |
<h3>NetBSD/hpcmips:</h3> |
263 |
|
|
264 |
It is possible to install <a |
It is possible to install <a |
265 |
href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk |
href="http://www.netbsd.org/ports/hpcmips/">NetBSD/hpcmips</a> onto a disk |
266 |
image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator |
image, on an an emulated MobilePro 770 or 800. (MobilePro 780 and 880 might |
267 |
treats the different machine models as being almost identical; the most |
work too, but I don't test those for every release of the emulator. They |
268 |
important difference is regarding the framebuffer. |
have unaligned framebuffers, and run a bit slower.) |
|
|
|
|
<p><table border="0"> |
|
|
<tr> |
|
|
<td width="80"> </td> |
|
|
<td><u>Model:</u></td> |
|
|
<td> </td> |
|
|
<td><u>Framebuffer size/depth:</u></td> |
|
|
<td> </td> |
|
|
<td><u>Framebuffer address:</u></td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td></td> |
|
|
<td>MobilePro 770 (<super>*2</super>)</td> |
|
|
<td></td> |
|
|
<td>640 x 240, 16 bits</td> |
|
|
<td></td> |
|
|
<td>0xa000000</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td></td> |
|
|
<td>MobilePro 780</td> |
|
|
<td></td> |
|
|
<td>640 x 240, 16 bits</td> |
|
|
<td></td> |
|
|
<td>0xa180100 (<super>*</super>)</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td></td> |
|
|
<td>MobilePro 800</td> |
|
|
<td></td> |
|
|
<td>800 x 600, 16 bits</td> |
|
|
<td></td> |
|
|
<td>0xa000000</td> |
|
|
</tr> |
|
|
<tr> |
|
|
<td></td> |
|
|
<td>MobilePro 880</td> |
|
|
<td></td> |
|
|
<td>800 x 600, 16 bits</td> |
|
|
<td></td> |
|
|
<td>0xa0ea600 (<super>*</super>)</td> |
|
|
</tr> |
|
|
</table> |
|
|
|
|
|
<p> |
|
|
(<super>*</super>) = not aligned at a page boundary, so it will not work |
|
|
efficiently with the current dyntrans system. Using this mode will still |
|
|
work, but each load and store will be emulated much more slowly than is |
|
|
possible with an aligned framebuffer. |
|
|
|
|
|
<p> |
|
|
(<super>*2</super>) = The MobilePro 770's cursor keys work differently |
|
|
than the other models, for some reason. (This is a known bug.) |
|
269 |
|
|
270 |
<p> |
<p> |
271 |
|
|
281 |
<ol start="1"> |
<ol start="1"> |
282 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
283 |
that you will install NetBSD/hpcmips onto:<pre> |
that you will install NetBSD/hpcmips onto:<pre> |
284 |
<b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=3000000</b> |
285 |
|
|
286 |
</pre> |
</pre> |
287 |
<li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre> |
<li>Download the NetBSD/hpcmips 3.1 ISO image, and a generic kernel:<pre> |
288 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/hpcmipscd-3.0.iso">hpcmipscd-3.0.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/hpcmipscd-3.1.iso">hpcmipscd-3.1.iso</a> |
289 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a> |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a> |
|
290 |
|
|
291 |
</pre> |
</pre> |
292 |
<p> |
<p> |
293 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
294 |
<b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img \ |
<b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img -d b:hpcmipscd-3.1.iso -j hpcmips/installation/netbsd.gz</b> |
|
-d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b> |
|
295 |
|
|
296 |
</pre> |
</pre> |
297 |
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 |
306 |
|
|
307 |
</pre> |
</pre> |
308 |
|
|
|
<p>If you change your mind at this point regarding which machine type to |
|
|
emulate, you might for example prefer a MobilePro 800, then you can change |
|
|
that at any time. NetBSD/hpcmips is designed to be able to boot on many |
|
|
types, without any need to change the kernel. |
|
|
|
|
309 |
<p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to |
<p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to |
310 |
start X Windows, but there is no mouse support yet so only keyboard input |
start X Windows, but there is no mouse support yet so only keyboard input |
311 |
is available. This makes it a bit akward to use X. |
is available. This makes it a bit akward to use X. |
321 |
<a name="netbsdcobaltinstall"></a> |
<a name="netbsdcobaltinstall"></a> |
322 |
<h3>NetBSD/cobalt:</h3> |
<h3>NetBSD/cobalt:</h3> |
323 |
|
|
324 |
<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 |
325 |
to install, because the Cobalt machines were designed for Linux, and not |
to install, because the Cobalt machines were designed for Linux, and not |
326 |
very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt. |
very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt. |
327 |
One way to install the NetBSD/cobalt distribution onto a disk image is to |
One way to install the NetBSD/cobalt distribution onto a disk image is to |
329 |
|
|
330 |
<p> |
<p> |
331 |
|
|
332 |
<a href="20050413-netbsd-cobalt.png"><img src="20050413-netbsd-cobalt_small.png"></a> |
<a href="20060812-netbsd-cobalt-3.0.1.png"><img src="20060812-netbsd-cobalt-3.0.1_small.png"></a> |
333 |
|
|
334 |
<p> |
<p> |
335 |
The following instructions will let you install NetBSD/cobalt onto a disk |
The following instructions will let you install NetBSD/cobalt onto a disk |
337 |
|
|
338 |
<p> |
<p> |
339 |
<ol> |
<ol> |
340 |
|
<li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre> |
341 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
342 |
|
</pre> |
343 |
|
<p> |
344 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
345 |
that you will install NetBSD/cobalt onto:<pre> |
that you will install NetBSD/cobalt onto:<pre> |
346 |
<b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=700000</b> |
347 |
|
|
348 |
</pre> |
</pre> |
349 |
<li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre> |
<li>Download the generic kernel for Cobalt and the 3.1 ISO image:<pre> |
350 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a> |
351 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/cobaltcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/cobaltcd-3.1.iso</a> |
352 |
|
|
353 |
</pre> |
</pre> |
354 |
<p> |
<li>Start the emulated DECstation machine like this:<pre> |
355 |
<li>Install NetBSD/pmax 3.0 according to instructions |
<b>gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.1.iso netbsd-INSTALL.gz</b> |
|
<a href="#netbsdpmaxinstall">further up on this page</a>. |
|
|
<p> |
|
|
<li>Start NetBSD/pmax like this:<pre> |
|
|
<b>gxemul -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b> |
|
356 |
|
|
357 |
</pre> |
</pre> |
358 |
<li>Log in as root (on the emulated 3MAX machine), and execute the |
<li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b> |
359 |
following commands: (adjust according to taste) |
to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: |
360 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
361 |
<b>newfs /dev/sd1c |
<b>newfs /dev/sd0c |
362 |
mount /dev/cd0c /mnt |
mount /dev/cd0c /mnt |
363 |
mkdir /mnt2; mount /dev/sd1c /mnt2 |
mkdir /mnt2; mount /dev/sd0c /mnt2 |
364 |
cd /mnt2; sh |
cd /mnt2; sh |
365 |
for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done |
366 |
exit |
exit |
367 |
cd dev; sh ./MAKEDEV all; cd ../etc |
cd dev; sh ./MAKEDEV all; cd ../etc |
368 |
echo rc_configured=YES >> rc.conf |
echo rc_configured=YES >> rc.conf |
369 |
echo "/dev/wd0d / ffs rw 1 1" > fstab |
echo "/dev/wd0d / ffs rw 1 1" > fstab |
370 |
cd /; umount /mnt; umount /mnt2; halt</b> |
cd /; umount /mnt; umount /mnt2; halt</b> |
371 |
</pre></td></tr></table> |
</pre></td></tr></table> |
373 |
|
|
374 |
<p> |
<p> |
375 |
You should now be able to boot NetBSD/cobalt like this:<pre> |
You should now be able to boot NetBSD/cobalt like this:<pre> |
376 |
<b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b> |
<b>gxemul -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b> |
377 |
</pre> |
</pre> |
378 |
|
|
379 |
Note that the installation instructions above create a filesystem |
Note that the installation instructions above create a filesystem |
396 |
<a name="netbsdevbmipsinstall"></a> |
<a name="netbsdevbmipsinstall"></a> |
397 |
<h3>NetBSD/evbmips:</h3> |
<h3>NetBSD/evbmips:</h3> |
398 |
|
|
399 |
<a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run |
<a href="http://www.netbsd.org/ports/evbmips/">NetBSD/evbmips</a> can run |
400 |
in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or |
in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or |
401 |
4Kc (MIPS32) processor. 5Kc is the default. |
4Kc (MIPS32) processor. 5Kc is the default. |
402 |
|
|
403 |
<p> |
<p> |
404 |
|
<a href="20060812-netbsd-malta-3.0.1.png"><img src="20060812-netbsd-malta-3.0.1_small.png"></a> |
|
<a href="20050622-netbsd-evbmips-malta.png"><img src="20050622-netbsd-evbmips-malta_small.png"></a> |
|
405 |
|
|
406 |
<p>It is tricky to install, because there is (as far as I know) no INSTALL |
<p>One way to install the NetBSD/evbmips distribution onto a disk |
|
kernel. One way to install the NetBSD/evbmips distribution onto a disk |
|
407 |
image is to install the files using another (emulated) machine. |
image is to install the files using another (emulated) machine. |
408 |
|
|
409 |
<p> |
<p> |
412 |
|
|
413 |
<p> |
<p> |
414 |
<ol> |
<ol> |
415 |
<li>Install NetBSD/pmax 3.0 according to instructions |
<li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre> |
416 |
<a href="#netbsdpmaxinstall">further up on this page</a>. |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
417 |
|
</pre> |
418 |
<p> |
<p> |
419 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
420 |
that you will install NetBSD onto:<pre> |
that you will install NetBSD onto:<pre> |
421 |
<b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=700000</b> |
422 |
|
|
423 |
</pre> |
</pre> |
424 |
<li>Download the generic kernel and the 2.1 ISO image:<pre> |
<li>Download the Malta kernel and the 3.1 ISO image:<pre> |
425 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a> |
426 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/evbmips-mipselcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/evbmips-mipselcd-3.1.iso</a> |
427 |
|
|
428 |
</pre> |
</pre> |
429 |
<p> |
<p> |
430 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Start the emulated DECstation machine like this:<pre> |
431 |
<b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b> |
<b>gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.1.iso netbsd-INSTALL.gz</b> |
432 |
|
|
433 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre> |
434 |
|
<li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b> |
435 |
|
to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: |
436 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
437 |
<b>newfs /dev/sd1c |
<b>newfs /dev/sd0c |
438 |
mount /dev/cd0c /mnt |
mount /dev/cd0c /mnt |
439 |
mkdir /mnt2; mount /dev/sd1c /mnt2 |
mkdir /mnt2; mount /dev/sd0c /mnt2 |
440 |
cd /mnt2; sh |
cd /mnt2; sh |
441 |
for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
for a in /mnt/*/binary/sets/[bcemt]*.tgz; do echo $a; tar zxfp $a; done |
442 |
exit |
exit |
443 |
cd dev; sh ./MAKEDEV all; cd ../etc |
cd dev; sh ./MAKEDEV all; cd ../etc |
444 |
echo rc_configured=YES >> rc.conf |
echo rc_configured=YES >> rc.conf |
448 |
</ol> |
</ol> |
449 |
|
|
450 |
<p>You should now be able to boot NetBSD/evbmips using this command:<pre> |
<p>You should now be able to boot NetBSD/evbmips using this command:<pre> |
451 |
<b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b> |
<b>gxemul -x -e malta -d nbsd_malta.img netbsd-MALTA.gz</b> |
452 |
</pre> |
</pre> |
453 |
|
|
454 |
<p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc |
<p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc |
455 |
(MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD |
(MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD |
456 |
2.1, however, there will be little or no difference in functionality, as |
3.1, however, there will be little or no difference in functionality, as |
457 |
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 |
458 |
that differ:<ol> |
that differ:<ol> |
459 |
<li>The dynamic translation core runs faster when emulating 32-bit |
<li>The dynamic translation core runs faster when emulating 32-bit |
467 |
swap. You will need to enter the following things when booting with the |
swap. You will need to enter the following things when booting with the |
468 |
generic kernel:<pre> |
generic kernel:<pre> |
469 |
root device (default wd0a): <b>wd0c</b> |
root device (default wd0a): <b>wd0c</b> |
470 |
dump device (default wd0b): <b>none</b> |
dump device (default wd0b): <i>(just press enter)</i> |
471 |
file system (default generic): <b>ffs</b> |
file system (default generic): <i>(just press enter)</i> |
472 |
init path (default /sbin/init): <i>(just press enter here)</i> |
init path (default /sbin/init): <i>(just press enter)</i> |
473 |
|
</pre> |
474 |
|
|
475 |
|
|
476 |
|
|
477 |
|
|
478 |
|
|
479 |
|
|
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
|
485 |
|
|
486 |
|
|
487 |
|
|
488 |
|
<p><br> |
489 |
|
<a name="netbsdalgorinstall"></a> |
490 |
|
<h3>NetBSD/algor:</h3> |
491 |
|
|
492 |
|
<a href="http://www.netbsd.org/ports/algor/">NetBSD/algor</a> can |
493 |
|
run in GXemul on an emulated Algorithmics P5064 evaluation board. |
494 |
|
|
495 |
|
<p> |
496 |
|
<a href="20060814-netbsd-algor-3.0.1.png"><img src="20060814-netbsd-algor-3.0.1_small.png"></a> |
497 |
|
|
498 |
|
<p>One way to install the NetBSD/algor distribution onto a disk |
499 |
|
image is to install the files using another (emulated) machine. |
500 |
|
|
501 |
|
<p>The following instructions will let you install NetBSD/algor onto a disk |
502 |
|
image, from an emulated DECstation 3MAX machine: |
503 |
|
|
504 |
|
<p> |
505 |
|
<ol> |
506 |
|
<li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre> |
507 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
508 |
|
</pre> |
509 |
|
<p> |
510 |
|
<li>Create an empty harddisk image, which will be the disk image |
511 |
|
that you will install NetBSD/algor onto:<pre> |
512 |
|
<b>dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000</b> |
513 |
|
|
514 |
|
</pre> |
515 |
|
<li>Download the P5064 Algor kernel and the 3.1 ISO image:<pre> |
516 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/algor/binary/kernel/netbsd-P5064.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/algor/binary/kernel/netbsd-P5064.gz</a> |
517 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/algorcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/algorcd-3.1.iso</a> |
518 |
|
|
519 |
|
</pre> |
520 |
|
<p> |
521 |
|
<li>Start the emulated DECstation machine like this:<pre> |
522 |
|
<b>gxemul -e 3max -d nbsd_algor.img -d algorcd-3.1.iso netbsd-INSTALL.gz</b> |
523 |
|
|
524 |
|
</pre> |
525 |
|
<li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b> |
526 |
|
to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: |
527 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
528 |
|
<b>newfs /dev/sd0c |
529 |
|
mount /dev/cd0c /mnt |
530 |
|
mkdir /mnt2; mount /dev/sd0c /mnt2 |
531 |
|
cd /mnt2; sh |
532 |
|
for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done |
533 |
|
exit |
534 |
|
cd dev; sh ./MAKEDEV all; cd ../etc |
535 |
|
echo rc_configured=YES >> rc.conf |
536 |
|
echo "/dev/wd0c / ffs rw 1 1" > fstab |
537 |
|
cd /; umount /mnt; umount /mnt2; halt</b> |
538 |
|
</pre></td></tr></table> |
539 |
|
</ol> |
540 |
|
|
541 |
|
<p>You should now be able to boot NetBSD/algor using this command:<pre> |
542 |
|
<b>gxemul -x -e p5064 -d nbsd_algor.img netbsd-P5064.gz</b> |
543 |
</pre> |
</pre> |
544 |
|
|
545 |
|
<p>The installation instructions above create a filesystem |
546 |
|
<i>without</i> a disklabel, so there is only one ffs partition and no |
547 |
|
swap. You will need to enter the following things when booting with the |
548 |
|
generic kernel:<pre> |
549 |
|
root device (default wd0a): <b>wd0c</b> |
550 |
|
dump device (default wd0b): <i>(just press enter)</i> |
551 |
|
file system (default generic): <i>(just press enter)</i> |
552 |
|
init path (default /sbin/init): <i>(just press enter)</i> |
553 |
|
</pre> |
554 |
|
|
555 |
|
|
556 |
|
|
557 |
|
|
558 |
|
|
559 |
|
|
560 |
|
|
561 |
|
|
562 |
|
|
571 |
|
|
572 |
<a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a> |
<a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a> |
573 |
|
|
574 |
<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 |
575 |
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 |
576 |
emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec |
emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec |
577 |
several times, asking for documentation, but never received any reply.) |
several times, asking for documentation, but never received any reply.) |
579 |
|
|
580 |
<p>For a simple test with the ramdisk/install kernel, try |
<p>For a simple test with the ramdisk/install kernel, try |
581 |
dowloading<pre> |
dowloading<pre> |
582 |
<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> |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
583 |
|
|
584 |
</pre>and run <b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>. |
</pre>and run <b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>. |
585 |
|
|
591 |
<ol> |
<ol> |
592 |
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
593 |
This needs to have a 750 MB <tt>/tftpboot</tt> partition. |
This needs to have a 750 MB <tt>/tftpboot</tt> partition. |
594 |
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>. |
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>. |
595 |
(Don't forget to add the extra partition!) |
(Don't forget to add the extra partition!) |
596 |
<p> |
<p> |
597 |
<li>Configure the nfs server machine to act as an nfs server. |
<li>Configure the nfs server machine to act as an nfs server. |
599 |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
600 |
</pre>and enter the following commands as <tt>root</tt> |
</pre>and enter the following commands as <tt>root</tt> |
601 |
inside the emulator: |
inside the emulator: |
602 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
603 |
<b>echo hostname=server >> /etc/rc.conf |
<b>echo hostname=server >> /etc/rc.conf |
604 |
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
605 |
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
624 |
echo 10.0.0.1 client > /etc/hosts |
echo 10.0.0.1 client > /etc/hosts |
625 |
reboot</b> |
reboot</b> |
626 |
</pre></td></tr></table> |
</pre></td></tr></table> |
627 |
<li>Start the DECstation emulation again, and download the |
<p> |
628 |
NetBSD/sgimips distribution sets:<br>(NOTE: This |
<li>Download the NetBSD/sgimips CD-ROM iso image, and the |
629 |
takes quite some time, even if you have a fast network connection.) |
GENERIC and INSTALL kernels:<pre> |
630 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/sgimipscd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/sgimipscd-3.1.iso</a> |
631 |
<b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b> |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a> |
632 |
(log in as anonymous...) |
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a> |
633 |
<b>cd /pub/NetBSD/NetBSD-3.0/sgimips/binary/sets |
|
634 |
mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz |
</pre> |
635 |
quit |
<li>Start the DECstation emulation again:<pre> |
636 |
sh |
<b>gxemul -e 3max -d nbsd_pmax.img -d sgimipscd-3.1.iso</b> |
637 |
for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done |
|
638 |
|
</pre>and extract the files from the sgimips CD-ROM image to the |
639 |
|
DECstation disk image: |
640 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
641 |
|
<b>cd /tftpboot; mount /dev/cd0a /mnt |
642 |
|
for a in /mnt/*/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done |
643 |
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
644 |
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
645 |
dd if=/dev/zero of=swap bs=1024 count=32768 |
echo 10.0.0.254 >> /tftpboot/etc/mygate |
646 |
halt</b> |
echo nameserver 10.0.0.254 >> /tftpboot/etc/resolv.conf |
647 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
648 |
|
dd if=/dev/zero of=swap bs=1024 count=65536 |
649 |
|
cd /; umount /mnt; halt</b> |
650 |
</pre></td></tr></table> |
</pre></td></tr></table> |
651 |
<li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre> |
<p> |
|
<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> |
|
|
<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> |
|
|
|
|
|
</pre> |
|
652 |
<li>Create a configuration file called <tt>config_client</tt>: |
<li>Create a configuration file called <tt>config_client</tt>: |
653 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
654 |
<font color="#2020cf">! Configuration file for running NetBSD/sgimips diskless with |
<font color="#2020cf">! Configuration file for running NetBSD/sgimips diskless with |
655 |
! a NetBSD/pmax machine as the nfs server.</font> |
! a NetBSD/pmax machine as the nfs server.</font> |
656 |
|
|
657 |
<b> net( |
<b>net( |
658 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
659 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
660 |
) |
) |
661 |
|
|
662 |
machine( |
machine( |
663 |
name("client machine") |
name("client machine") |
664 |
serial_nr(1) |
serial_nr(1) |
665 |
|
|
668 |
|
|
669 |
load("netbsd-INSTALL32_IP3x.gz")</b> |
load("netbsd-INSTALL32_IP3x.gz")</b> |
670 |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
671 |
) |
) |
672 |
</b> |
</b> |
673 |
</pre></td></tr></table> |
</pre></td></tr></table> |
674 |
... and another configuration file for the server, |
... and another configuration file for the server, |
675 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
676 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
677 |
<b> net( |
<b>net( |
678 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
679 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
680 |
) |
) |
681 |
|
|
682 |
machine( |
machine( |
683 |
name("nfs server") |
name("nfs server") |
684 |
serial_nr(2) |
serial_nr(2) |
685 |
|
|
687 |
subtype("5000/200") |
subtype("5000/200") |
688 |
|
|
689 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
690 |
) |
) |
691 |
</b> |
</b> |
692 |
</pre></td></tr></table> |
</pre></td></tr></table> |
693 |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
754 |
<h3>NetBSD/cats:</h3> |
<h3>NetBSD/cats:</h3> |
755 |
|
|
756 |
It is possible to install and run |
It is possible to install and run |
757 |
<a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul. |
<a href="http://www.netbsd.org/ports/cats/">NetBSD/cats</a> in GXemul. |
758 |
|
|
759 |
<p> |
<p> |
760 |
<a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a> |
<a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a> |
766 |
<ol start="1"> |
<ol start="1"> |
767 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
768 |
that you will install NetBSD/cats onto:<pre> |
that you will install NetBSD/cats onto:<pre> |
769 |
<b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b> |
<b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=3000000</b> |
770 |
|
|
771 |
</pre> |
</pre> |
772 |
<li>Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:<pre> |
<li>Download the NetBSD/cats 3.1 ISO image and the generic and install kernels:<pre> |
773 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/catscd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/catscd-3.1.iso</a> |
774 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a> |
775 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a> |
776 |
|
|
777 |
</pre> |
</pre> |
778 |
<p> |
<p> |
779 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
780 |
<b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz</b> |
<b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.1.iso netbsd.aout-INSTALL.gz</b> |
781 |
|
|
782 |
</pre> |
</pre> |
783 |
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 |
785 |
</ol> |
</ol> |
786 |
|
|
787 |
<p>Alternatively, to install from FTP, you can skip downloading the ISO, |
<p>Alternatively, to install from FTP, you can skip downloading the ISO, |
788 |
and start the install without <tt>-d catscd-3.0.iso</tt>. Suitable network |
and start the install without <tt>-d catscd-3.1.iso</tt>. Suitable network |
789 |
settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask |
settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask |
790 |
255.0.0.0, nameserver 10.0.0.254. |
255.0.0.0, nameserver 10.0.0.254. |
791 |
|
|
805 |
<a name="netbsdevbarminstall"></a> |
<a name="netbsdevbarminstall"></a> |
806 |
<h3>NetBSD/evbarm:</h3> |
<h3>NetBSD/evbarm:</h3> |
807 |
|
|
808 |
<a href="http://www.netbsd.org/Ports/evbarm/">NetBSD/evbarm</a> can |
<a href="http://www.netbsd.org/ports/evbarm/">NetBSD/evbarm</a> can |
809 |
run in GXemul on an emulated IQ80321 evaluation board. |
run in GXemul on an emulated IQ80321 evaluation board. |
810 |
|
|
811 |
<p> |
<p> |
820 |
|
|
821 |
<p> |
<p> |
822 |
<ol> |
<ol> |
823 |
<li>Install NetBSD/cats 3.0 according to instructions |
<li>Download a NetBSD/cats 3.1 ramdisk kernel:<pre> |
824 |
<a href="#netbsdcatsinstall">further up on this page</a>. |
<b>wget <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a></b> |
825 |
<p> |
|
826 |
|
</pre> |
827 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
828 |
that you will install NetBSD onto:<pre> |
that you will install NetBSD/evbarm onto:<pre> |
829 |
<b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b> |
830 |
|
|
831 |
</pre> |
</pre> |
835 |
|
|
836 |
</pre> |
</pre> |
837 |
<p> |
<p> |
838 |
<li>The first step is to copy the .tgz files we want onto the CATS |
<li>Now let's extract the files from the CD-ROM image onto the IQ80321's disk image. Start the |
839 |
machine's harddisk. Start the CATS machine like this:<pre> |
CATS machine using the following command line:<pre> |
840 |
<b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b> |
<b>gxemul -XEcats -d nbsd_iq80321.img -d evbarmcd.iso netbsd.aout-INSTALL.gz</b> |
841 |
|
|
842 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre>Exit from the installer, and execute the following commands as <tt>root</tt>: |
843 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
|
<b>mount /dev/cd0a /mnt; cd /root; cp /mnt/evbarm/binary/sets/[bcegmt]* . |
|
|
sync; halt</b> |
|
|
</pre></td></tr></table> |
|
|
<p> |
|
|
<li>Now let's extract the files onto the IQ80321's disk image. Start the |
|
|
CATS machine again, with the following command line:<pre> |
|
|
<b>gxemul -XEcats -d nbsd_cats.img -d nbsd_iq80321.img netbsd.aout-GENERIC.gz</b> |
|
844 |
|
|
845 |
</pre>and execute the following commands as <tt>root</tt>: |
<b>disklabel -I -i wd0</b> |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
|
|
<b>disklabel -I -i wd1</b> |
|
846 |
(enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b, |
(enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b, |
847 |
swap, a, 200M, P, W, y, Q</i>) |
swap, a, 200M, P, W, y, Q</i>) |
848 |
<b>newfs /dev/wd1a; mount /dev/wd1a /mnt; cd /mnt; sh |
<b>newfs /dev/wd0a; mount /dev/wd0a /mnt2; cd /mnt2 |
849 |
for a in /root/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done |
mount /dev/cd0a /mnt; sh |
850 |
|
for a in /mnt/*/binary/sets/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done |
851 |
exit |
exit |
852 |
cd dev; sh ./MAKEDEV all; cd ../etc |
cd dev; sh ./MAKEDEV all; cd ../etc |
853 |
echo rc_configured=YES >> rc.conf |
echo rc_configured=YES >> rc.conf |
854 |
echo "/dev/wd0a / ffs rw 1 1" > fstab |
echo "/dev/wd0a / ffs rw 1 1" > fstab |
855 |
echo "/dev/wd0b none swap sw 0 0" >> fstab |
echo "/dev/wd0b none swap sw 0 0" >> fstab |
856 |
cd /; umount /mnt; sync; halt</b> |
cd /; umount /mnt; umount /mnt2; sync; halt</b> |
857 |
</pre></td></tr></table> |
</pre></td></tr></table> |
858 |
</ol> |
</ol> |
859 |
|
|
860 |
<p>You should now be able to boot NetBSD/evbarm using this command:<pre> |
<p>You should now be able to boot NetBSD/evbarm using this command:<pre> |
861 |
<b>gxemul -xEiq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b> |
<b>gxemul -x -E iq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b> |
862 |
</pre> |
</pre> |
863 |
|
|
864 |
|
|
866 |
|
|
867 |
|
|
868 |
|
|
869 |
|
|
870 |
|
|
871 |
|
|
872 |
|
<p><br> |
873 |
|
<a name="netbsdnetwinderinstall"></a> |
874 |
|
<h3>NetBSD/netwinder:</h3> |
875 |
|
|
876 |
|
It is possible to run <a |
877 |
|
href="http://www.netbsd.org/ports/netwinder/">NetBSD/netwinder</a> |
878 |
|
in GXemul. |
879 |
|
|
880 |
|
<p> |
881 |
|
<a href="20060724-netbsd-netwinder-1.png"><img src="20060724-netbsd-netwinder-1_small.png"></a> |
882 |
|
<a href="20060724-netbsd-netwinder-2.png"><img src="20060724-netbsd-netwinder-2_small.png"></a> |
883 |
|
|
884 |
|
<p>There is no INSTALL ramdisk kernel, so one way to install the |
885 |
|
NetBSD/netwinder distribution onto a disk image is to install the files |
886 |
|
using another (emulated) machine. The following instructions will let you |
887 |
|
install the NetBSD/netwinder distribution onto a disk image, from an |
888 |
|
emulated DECstation 3MAX machine: |
889 |
|
|
890 |
|
<p> |
891 |
|
<ol> |
892 |
|
<li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre> |
893 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
894 |
|
</pre> |
895 |
|
<p> |
896 |
|
<li>Create an empty harddisk image, which will be the disk image |
897 |
|
that you will install NetBSD onto:<pre> |
898 |
|
<b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b> |
899 |
|
|
900 |
|
</pre> |
901 |
|
<li>Download the generic kernel and the 3.1 ISO image:<pre> |
902 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a> |
903 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/netwindercd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/netwindercd-3.1.iso</a> |
904 |
|
|
905 |
|
</pre> |
906 |
|
<p> |
907 |
|
<li>Start the emulated DECstation machine like this:<pre> |
908 |
|
<b>gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.1.iso netbsd-INSTALL.gz</b> |
909 |
|
|
910 |
|
</pre> |
911 |
|
<li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b> |
912 |
|
to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands: |
913 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
914 |
|
<b>newfs /dev/sd0c |
915 |
|
mount /dev/cd0c /mnt |
916 |
|
mkdir /mnt2; mount /dev/sd0c /mnt2 |
917 |
|
cd /mnt2; sh |
918 |
|
for a in /mnt/*/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
919 |
|
exit |
920 |
|
cd dev; sh ./MAKEDEV all; cd ../etc |
921 |
|
echo rc_configured=YES >> rc.conf |
922 |
|
echo "/dev/wd0c / ffs rw 1 1" > fstab |
923 |
|
cd /; umount /mnt; umount /mnt2; halt</b> |
924 |
|
</pre></td></tr></table> |
925 |
|
</ol> |
926 |
|
|
927 |
|
<p>NetBSD/netwinder is now installed on the disk image. The following command |
928 |
|
line can be used to start NetBSD/netwinder:<pre> |
929 |
|
<b>gxemul -X -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b> |
930 |
|
</pre> |
931 |
|
|
932 |
|
<p>This will result in a 1024x768 framebuffer. Add <tt>-Y2</tt> to the |
933 |
|
command line if you want to scale it down to 512x384. |
934 |
|
|
935 |
|
<p>Note: The installation instructions above create a filesystem |
936 |
|
<i>without</i> a disklabel, so there is only one ffs partition and no |
937 |
|
swap. You will need to enter the following things when booting with the |
938 |
|
generic kernel:<pre> |
939 |
|
root device (default wd0a): <b>wd0c</b> |
940 |
|
dump device (default wd0b): <i>(just press enter)</i> |
941 |
|
file system (default generic): <i>(just press enter)</i> |
942 |
|
init path (default /sbin/init): <i>(just press enter)</i> |
943 |
|
</pre> |
944 |
|
|
945 |
|
<p>Known bugs/problems: |
946 |
|
|
947 |
|
<ul> |
948 |
|
<li>There is a long delay when starting up NetBSD/netwinder |
949 |
|
(several seconds even on a very fast host machine), |
950 |
|
so you need to be patient. |
951 |
|
<li>There is a minor bug in the keyboard device, so you need to |
952 |
|
press a key (any key) before typing wd0c. |
953 |
|
<li>When halting/rebooting NetBSD/netwinder, the emulator |
954 |
|
prints a message saying something about an internal |
955 |
|
error. This doesn't matter; ignore the message. |
956 |
|
</ul> |
957 |
|
|
958 |
|
|
959 |
|
|
960 |
|
|
961 |
|
|
962 |
|
|
963 |
|
|
964 |
|
|
965 |
|
|
966 |
|
|
967 |
|
|
968 |
|
|
969 |
<p><br> |
<p><br> |
970 |
<a name="netbsdprepinstall"></a> |
<a name="netbsdprepinstall"></a> |
971 |
<h3>NetBSD/prep:</h3> |
<h3>NetBSD/prep:</h3> |
972 |
|
|
973 |
It is possible to install and run |
It is possible to install and run <a |
974 |
<a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul |
href="http://www.netbsd.org/ports/prep/">NetBSD/prep</a> 2.1 in GXemul on |
975 |
on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc |
an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use |
976 |
controller in a way which isn't implemented in GXemul yet.) |
the wdc controller in a way which isn't implemented in GXemul yet, or |
977 |
|
there are bugs in GXemul's PowerPC CPU emulation.) |
978 |
|
|
979 |
<p> |
<p> |
980 |
<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> |
995 |
</pre> |
</pre> |
996 |
<p> |
<p> |
997 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
998 |
<b>gxemul -x -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b> |
<b>gxemul -X -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b> |
999 |
|
|
1000 |
</pre> |
</pre> |
1001 |
<p> |
<p> |
1048 |
|
|
1049 |
<p>If everything worked, NetBSD should now be installed on the disk image. |
<p>If everything worked, NetBSD should now be installed on the disk image. |
1050 |
Use the following command line to boot the emulated machine:<pre> |
Use the following command line to boot the emulated machine:<pre> |
1051 |
<b>gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b> |
<b>gxemul -X -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b> |
1052 |
|
|
1053 |
</pre> |
</pre> |
1054 |
|
|
1061 |
|
|
1062 |
|
|
1063 |
|
|
1064 |
|
|
1065 |
|
|
1066 |
|
|
1067 |
|
|
1068 |
|
|
1069 |
|
|
1070 |
|
<p><br> |
1071 |
|
<a name="netbsdmacppcinstall"></a> |
1072 |
|
<h3>NetBSD/macppc:</h3> |
1073 |
|
|
1074 |
|
It is possible to install and run <a |
1075 |
|
href="http://www.netbsd.org/ports/macppc/">NetBSD/macppc</a> in GXemul on |
1076 |
|
an emulated generic PowerPC machine. No specific Machintosh model is |
1077 |
|
emulated, but it is enough to for NetBSD to recognize it. |
1078 |
|
|
1079 |
|
<p> |
1080 |
|
<a href="20070318-netbsd-macppc.png"><img src="20070318-netbsd-macppc_small.png"></a> |
1081 |
|
|
1082 |
|
<p>To install NetBSD/macppc onto a disk image, follow these instructions: |
1083 |
|
|
1084 |
|
<p> |
1085 |
|
<ol start="1"> |
1086 |
|
<li>Create an empty harddisk image, which will be the root disk |
1087 |
|
that you will install NetBSD/macppc onto:<pre> |
1088 |
|
<b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b> |
1089 |
|
|
1090 |
|
</pre> |
1091 |
|
<li>Download the NetBSD/macppc 4.0 ISO image and a generic kernel:<pre> |
1092 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/macppccd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/macppccd-4.0.iso</a> |
1093 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a> |
1094 |
|
|
1095 |
|
</pre> |
1096 |
|
<p> |
1097 |
|
<li>Start the installation like this:<pre> |
1098 |
|
<b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-4.0.iso -j macppc/binary/kernel/netbsd-INSTALL</b> |
1099 |
|
|
1100 |
|
</pre> |
1101 |
|
and continue as you would do when installing NetBSD on a real |
1102 |
|
machine. |
1103 |
|
</ol> |
1104 |
|
|
1105 |
|
<p>If everything worked, NetBSD/macppc should now be installed on |
1106 |
|
the disk image. |
1107 |
|
|
1108 |
|
<p>Use the following command line to boot the emulated machine:<pre> |
1109 |
|
<b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b> |
1110 |
|
|
1111 |
|
</pre> |
1112 |
|
|
1113 |
|
<p>If asked about <tt>root device</tt>, enter <tt><b>wd0</b></tt>. |
1114 |
|
|
1115 |
|
|
1116 |
|
|
1117 |
|
|
1118 |
|
|
1119 |
|
|
1120 |
|
|
1121 |
|
|
1122 |
|
|
1123 |
|
|
1124 |
|
|
1125 |
|
<p><br> |
1126 |
|
<a name="netbsdpmppc"></a> |
1127 |
|
<h3>NetBSD/pmppc:</h3> |
1128 |
|
|
1129 |
|
<p><a href="http://www.netbsd.org/ports/pmppc/">NetBSD/pmppc</a> can |
1130 |
|
run in GXemul on an emulated Artesyn PM/PPC board. Currently, no SCSI or other |
1131 |
|
disk controller is emulated for this machine type, but it is possible to run |
1132 |
|
NetBSD with root-on-nfs. |
1133 |
|
|
1134 |
|
<p> |
1135 |
|
<a href="20070616-netbsd-pmppc-diskless.png"><img src="20070616-netbsd-pmppc-diskless_small.png"></a> |
1136 |
|
|
1137 |
|
<p>These setup steps will let you run NetBSD/pmppc with root-on-nfs: |
1138 |
|
|
1139 |
|
<p> |
1140 |
|
<ol> |
1141 |
|
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
1142 |
|
This needs to have a 750 MB <tt>/tftpboot</tt> partition. |
1143 |
|
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>. |
1144 |
|
(Don't forget to add the extra partition!) |
1145 |
|
<p> |
1146 |
|
<li>Configure the nfs server machine to act as an nfs server. |
1147 |
|
Start up the emulated DECstation:<pre> |
1148 |
|
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
1149 |
|
</pre>and enter the following commands as <tt>root</tt> |
1150 |
|
inside the emulator: |
1151 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
1152 |
|
<b>echo hostname=server >> /etc/rc.conf |
1153 |
|
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
1154 |
|
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
1155 |
|
echo 10.0.0.254 > /etc/mygate |
1156 |
|
echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports |
1157 |
|
echo rpcbind=YES >> /etc/rc.conf |
1158 |
|
echo nfs_server=YES >> /etc/rc.conf |
1159 |
|
echo mountd=YES >> /etc/rc.conf |
1160 |
|
echo bootparamd=YES >> /etc/rc.conf |
1161 |
|
printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams |
1162 |
|
echo "bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 4 -h 10.0.0.2" >> /etc/inetd.conf |
1163 |
|
cat >> /etc/bootptab |
1164 |
|
client:\ |
1165 |
|
:ht=ether:\ |
1166 |
|
:ha=102030000010:\ |
1167 |
|
:sm=255.0.0.0:\ |
1168 |
|
:lg=10.0.0.254:\ |
1169 |
|
:ip=10.0.0.1:\ |
1170 |
|
:rp=/tftpboot: |
1171 |
|
</b>(press CTRL-D) |
1172 |
|
<b>echo "10:20:30:00:00:10 client" > /etc/ethers |
1173 |
|
echo 10.0.0.1 client > /etc/hosts |
1174 |
|
reboot</b> |
1175 |
|
</pre></td></tr></table> |
1176 |
|
<p> |
1177 |
|
<li>Download the NetBSD/pmppc CD-ROM iso image, and the GENERIC kernel:<pre> |
1178 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmppccd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmppccd-3.1.iso</a> |
1179 |
|
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/pmppc/binary/kernel/netbsd-PMPPC.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/pmppc/binary/kernel/netbsd-PMPPC.gz</a> |
1180 |
|
|
1181 |
|
</pre> |
1182 |
|
<li>Start the DECstation emulation again:<pre> |
1183 |
|
<b>gxemul -e 3max -d nbsd_pmax.img -d pmppccd-3.1.iso</b> |
1184 |
|
|
1185 |
|
</pre>and extract the files from the PM/PPC CD-ROM image to the |
1186 |
|
DECstation disk image: |
1187 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
1188 |
|
<b>cd /tftpboot; mount /dev/cd0a /mnt |
1189 |
|
for a in /mnt/*/binary/sets/[bcemt]*; do echo $a; tar zxfp $a; done |
1190 |
|
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
1191 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
1192 |
|
echo 10.0.0.254 >> /tftpboot/etc/mygate |
1193 |
|
echo nameserver 10.0.0.254 >> /tftpboot/etc/resolv.conf |
1194 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
1195 |
|
dd if=/dev/zero of=swap bs=1024 count=65536 |
1196 |
|
cd /tftpboot/dev; sh MAKEDEV all |
1197 |
|
cd /; umount /mnt; halt</b> |
1198 |
|
</pre></td></tr></table> |
1199 |
|
<p> |
1200 |
|
<li>Create a configuration file called <tt>config_client</tt>: |
1201 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1202 |
|
<font color="#2020cf">! Configuration file for running NetBSD/pmppc diskless with |
1203 |
|
! a NetBSD/pmax machine as the nfs server.</font> |
1204 |
|
|
1205 |
|
<b>net( |
1206 |
|
add_remote("localhost:12444") </b>! the server<b> |
1207 |
|
local_port(12445) </b>! the client<b> |
1208 |
|
) |
1209 |
|
|
1210 |
|
machine( |
1211 |
|
name("client machine") |
1212 |
|
serial_nr(1) |
1213 |
|
|
1214 |
|
type("pmppc") |
1215 |
|
|
1216 |
|
load("netbsd-PMPPC.gz")</b> |
1217 |
|
) |
1218 |
|
</b> |
1219 |
|
</pre></td></tr></table> |
1220 |
|
... and another configuration file for the server, |
1221 |
|
<tt>config_server</tt>: |
1222 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1223 |
|
<b>net( |
1224 |
|
local_port(12444) </b>! the server<b> |
1225 |
|
add_remote("localhost:12445") </b>! the client<b> |
1226 |
|
) |
1227 |
|
|
1228 |
|
machine( |
1229 |
|
name("nfs server") |
1230 |
|
serial_nr(2) |
1231 |
|
|
1232 |
|
type("dec") |
1233 |
|
subtype("5000/200") |
1234 |
|
|
1235 |
|
disk("nbsd_pmax.img") |
1236 |
|
) |
1237 |
|
</b> |
1238 |
|
</pre></td></tr></table> |
1239 |
|
</ol> |
1240 |
|
|
1241 |
|
<p>It should now be possible to boot NetBSD/pmppc using the NetBSD/pmax |
1242 |
|
nfs server, using the following commands: (NOTE! Execute these two |
1243 |
|
commands in separate xterms!)<pre> |
1244 |
|
<b>gxemul @config_server</b> |
1245 |
|
<b>gxemul @config_client</b> |
1246 |
|
</pre> |
1247 |
|
|
1248 |
|
<p>You might want to log in as <tt>root</tt> on the server machine, and |
1249 |
|
run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine |
1250 |
|
actually does on the network. |
1251 |
|
|
1252 |
|
<p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter |
1253 |
|
the following values:<pre> |
1254 |
|
root device: <b>tlp0</b> |
1255 |
|
dump device: <b>(leave blank)</b> |
1256 |
|
file system (default generic): <b>(leave blank)</b> |
1257 |
|
.. |
1258 |
|
init path (default /sbin/init): <b>(leave blank)</b> |
1259 |
|
</pre> |
1260 |
|
|
1261 |
|
|
1262 |
|
|
1263 |
|
|
1264 |
|
|
1265 |
|
|
1266 |
|
|
1267 |
|
|
1268 |
|
|
1269 |
|
<p><br> |
1270 |
|
<a name="netbsddreamcast"></a> |
1271 |
|
<h3>NetBSD/dreamcast:</h3> |
1272 |
|
|
1273 |
|
Moved <a href="dreamcast.html#netbsd_generic_md">here</a>. |
1274 |
|
|
1275 |
|
|
1276 |
|
|
1277 |
|
|
1278 |
|
|
1279 |
|
|
1280 |
|
|
1281 |
|
|
1282 |
|
|
1283 |
<p><br> |
<p><br> |
1284 |
<a name="openbsdpmaxinstall"></a> |
<a name="openbsdpmaxinstall"></a> |
1285 |
<h3>OpenBSD/pmax:</h3> |
<h3>OpenBSD/pmax:</h3> |
1353 |
<li>At the # prompt, do the following:<pre> |
<li>At the # prompt, do the following:<pre> |
1354 |
<b>fsck /dev/rz1a</b> (and mark the filesystem as clean) |
<b>fsck /dev/rz1a</b> (and mark the filesystem as clean) |
1355 |
<b>mount /dev/rz1a /</b> |
<b>mount /dev/rz1a /</b> |
1356 |
|
<b>mkdir /kern</b> |
1357 |
|
<b>mkdir /mnt2</b> |
1358 |
<b>mount -t kernfs kern kern</b> |
<b>mount -t kernfs kern kern</b> |
1359 |
<b>./install</b> |
<b>./install</b> |
1360 |
|
|
1432 |
|
|
1433 |
It is possible to install and run |
It is possible to install and run |
1434 |
<a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a> |
<a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a> |
1435 |
in GXemul. |
in GXemul. Unfortunately, "The OpenBSD/cats port has been discontinued |
1436 |
|
after the 4.0 release." according to |
1437 |
|
<a href="http://www.openbsd.org/cats.html">http://www.openbsd.org/cats.html</a>, |
1438 |
|
but 4.0 should run fine. |
1439 |
|
|
1440 |
<p> |
<p> |
1441 |
<a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a> |
<a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a> |
1451 |
|
|
1452 |
</pre> |
</pre> |
1453 |
<li>Download the entire cats directory from the ftp server:<pre> |
<li>Download the entire cats directory from the ftp server:<pre> |
1454 |
<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> |
<b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/</a></b> |
1455 |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .</b> |
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd .</b> |
1456 |
<b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .</b> |
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd.rd .</b> |
1457 |
|
|
1458 |
</pre> |
</pre> |
1459 |
(Replace ftp.openbsd.org with a server closer to you, for |
(Replace ftp.se.openbsd.org with a server closer to you, for |
1460 |
increased download speed.) |
increased download speed.) |
1461 |
<p> |
<p> |
1462 |
<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. |
1463 |
(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 |
1464 |
already have <tt>mkisofs</tt> installed on your system, you need |
already have <tt>mkisofs</tt> installed on your system, you need |
1465 |
to install it in order to do this.)<pre> |
to install it in order to do this.)<pre> |
1466 |
<b>mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/</b> |
<b>mkisofs -allow-lowercase -o openbsd_cats_4.0.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
1467 |
<b>rm -rf ftp.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
<b>rm -rf ftp.se.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
1468 |
|
|
1469 |
</pre> |
</pre> |
1470 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
1471 |
<b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd</b> |
<b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_4.0.iso bsd.rd</b> |
1472 |
|
|
1473 |
</pre> |
</pre> |
1474 |
and proceed like you would do if you were installing OpenBSD |
and proceed like you would do if you were installing OpenBSD |
1500 |
|
|
1501 |
|
|
1502 |
<p><br> |
<p><br> |
1503 |
|
<a name="openbsdlandiskinstall"></a> |
1504 |
|
<h3>OpenBSD/landisk:</h3> |
1505 |
|
|
1506 |
|
It is possible to install and run |
1507 |
|
<a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a> |
1508 |
|
in GXemul. |
1509 |
|
|
1510 |
|
<p> |
1511 |
|
<a href="20070419-openbsd-landisk.png"><img src="20070419-openbsd-landisk_small.png"></a> |
1512 |
|
|
1513 |
|
<p>To install OpenBSD/landisk onto an emulated harddisk image, |
1514 |
|
follow these instructions: |
1515 |
|
|
1516 |
|
<p> |
1517 |
|
<ol> |
1518 |
|
<li>Create an empty harddisk image, which will be the root disk |
1519 |
|
that OpenBSD installs itself onto:<pre> |
1520 |
|
<b>dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=2000000</b> |
1521 |
|
|
1522 |
|
</pre> |
1523 |
|
<li>Download the entire landisk directory from the ftp server:<pre> |
1524 |
|
<b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/</a></b> |
1525 |
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd .</b> |
1526 |
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd.rd .</b> |
1527 |
|
|
1528 |
|
</pre> |
1529 |
|
(Replace ftp.se.openbsd.org with a server closer to you, for |
1530 |
|
increased download speed.) |
1531 |
|
<p> |
1532 |
|
<li>You now need to make an ISO image of the entire directory you downloaded. |
1533 |
|
(I recommend using <tt>mkisofs</tt> for that purpose. If you don't |
1534 |
|
already have <tt>mkisofs</tt> installed on your system, you need |
1535 |
|
to install it in order to do this.)<pre> |
1536 |
|
<b>mkisofs -U -o openbsd_landisk_4.1.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
1537 |
|
<b>rm -rf ftp.se.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
1538 |
|
|
1539 |
|
</pre> |
1540 |
|
<li>Start the emulator using this command line:<pre> |
1541 |
|
<b>gxemul -x -E landisk -d obsd_landisk.img -d d:openbsd_landisk_4.1.iso bsd.rd</b> |
1542 |
|
|
1543 |
|
</pre> |
1544 |
|
and proceed like you would do if you were installing OpenBSD |
1545 |
|
on a real landisk. The following hints are useful to get you |
1546 |
|
through the installation: |
1547 |
|
<ul> |
1548 |
|
<li>Terminal type = <b>xterm</b> |
1549 |
|
<li>root disk = <b>wd0</b> (the disk to install onto) |
1550 |
|
<li>Use the entire disk for OpenBSD = <b>yes</b> |
1551 |
|
<li>Create one big root partition (a) and a small swap partition (b). c is the entire disk. |
1552 |
|
<li>Do <b>not</b> configure the network. (The Realtek NIC |
1553 |
|
found in the Landisk machine is not implemented yet |
1554 |
|
in the emulator.) |
1555 |
|
<li>Location of sets = <b>disk</b> |
1556 |
|
<li>Is the disk partition already mounted = <b>no</b> |
1557 |
|
<li>Disk containing the install media = <b>wd1</b> |
1558 |
|
<li>Pathname to the sets = <b>4.1/landisk</b> |
1559 |
|
</ul> |
1560 |
|
</ol> |
1561 |
|
|
1562 |
|
<p>Once the install has finished, the following command should let you |
1563 |
|
boot from the disk image: |
1564 |
|
|
1565 |
|
<p><pre> |
1566 |
|
<b>gxemul -x -E landisk -d obsd_landisk.img bsd</b> |
1567 |
|
|
1568 |
|
</pre> |
1569 |
|
|
1570 |
|
<p>As with most emulation modes in GXemul, the NIC in this machine is |
1571 |
|
not emulated yet. If you want to transfer files to/from the emulated |
1572 |
|
landisk machine, see |
1573 |
|
<a href="misc.html#filexfer">this chapter</a> in the documentation. |
1574 |
|
|
1575 |
|
|
1576 |
|
|
1577 |
|
|
1578 |
|
|
1579 |
|
|
1580 |
|
|
1581 |
|
<p><br> |
1582 |
<a name="ultrixinstall"></a> |
<a name="ultrixinstall"></a> |
1583 |
<h3>Ultrix/RISC:</h3> |
<h3>Ultrix/RISC:</h3> |
1584 |
|
|
1585 |
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. |
1586 |
(Ultrix was the native OS for these machines, but NetBSD/pmax is |
(Ultrix was the native OS for these machines, but |
1587 |
also usable.) |
<a href="#netbsdpmaxinstall">NetBSD/pmax</a> is also usable.) |
1588 |
|
|
1589 |
<p> |
<p> |
1590 |
|
|
1629 |
triggered when the emulation goes faster than any real DECstation machine |
triggered when the emulation goes faster than any real DECstation machine |
1630 |
was capable of running. A temporary workaround is to add |
was capable of running. A temporary workaround is to add |
1631 |
<b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million |
<b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million |
1632 |
instructions per emulated second. (When using <tt><b>-CR4400</b></tt>, |
instructions per emulated second. |
|
<b><tt>-I16000000</tt></b> should be used instead.) |
|
1633 |
|
|
1634 |
<p> |
<p>If the workaround above doesn't work, you can also start up other |
1635 |
You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a |
processes on the host, apart from the emulator, so that the emulator runs |
1636 |
|
more slowly. This is an ugly workaround, but seems to work. Once you have |
1637 |
|
logged in into Ultrix, you can kill the extra processes. |
1638 |
|
|
1639 |
|
<p>You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a |
1640 |
dual-headed workstation) or even <b><tt>-Z3</tt></b> (tripple-headed), and |
dual-headed workstation) or even <b><tt>-Z3</tt></b> (tripple-headed), and |
1641 |
also the <b><tt>-Y2</tt></b> option for scaling down the framebuffer |
also the <b><tt>-Y2</tt></b> option for scaling down the framebuffer |
1642 |
windows by a factor 2x2. |
windows by a factor 2x2. |
1648 |
-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> |
1649 |
</pre> |
</pre> |
1650 |
|
|
1651 |
<p> |
<p>The photo below shows a single Ultrix session running tripple-headed in |
|
The photo below shows a single Ultrix session running tripple-headed in |
|
1652 |
GXemul on an Alpha 21164PC, with displays on a Sun Ultra1 (to the left), |
GXemul on an Alpha 21164PC, with displays on a Sun Ultra1 (to the left), |
1653 |
on the Alpha itself (in the middle), and on an HP700/RX X-terminal (8-bit |
on the Alpha itself (in the middle), and on an HP700/RX X-terminal (8-bit |
1654 |
color depth, running off the Alpha) to the right. |
color depth, running off the Alpha) to the right. |
1655 |
|
|
1656 |
<p> |
<p> |
|
|
|
1657 |
<a href="20041209-ultrix-tripplehead.jpg"><img src="20041209-ultrix-tripplehead_small.jpg"></a> |
<a href="20041209-ultrix-tripplehead.jpg"><img src="20041209-ultrix-tripplehead_small.jpg"></a> |
1658 |
|
|
1659 |
<p> |
<p>The X11 displays may differ in bit depth and endianness. Unfortunately, |
|
The X11 displays may differ in bit depth and endianness. Unfortunately, |
|
1660 |
there is no way yet to set the scaledown factor on a per-window basis, so |
there is no way yet to set the scaledown factor on a per-window basis, so |
1661 |
the scaledown factor affects all windows. |
the scaledown factor affects all windows. |
1662 |
|
|
1663 |
<p> |
<p>(If you didn't use <tt><b>-Z<i>n</i></b></tt> during the installation, and |
|
(If you didn't use <tt><b>-Z<i>n</i></b></tt> during the installation, and |
|
1664 |
compiled your own <tt>/vmunix</tt>, then it will not contain support for |
compiled your own <tt>/vmunix</tt>, then it will not contain support for |
1665 |
multiple graphics cards. To overcome this problem, use the generic kernel, |
multiple graphics cards. To overcome this problem, use the generic kernel, |
1666 |
<tt><b>-j genvmunix</b></tt>, whenever you are running the emulator with a |
<tt><b>-j genvmunix</b></tt>, whenever you are running the emulator with a |
1667 |
different setup than the one you used when Ultrix was installed.) |
different setup than the one you used when Ultrix was installed.) |
1668 |
|
|
1669 |
<p> |
<p>A note for the historically interested: OSF/1 for MIPS was quite similar |
|
A note for the historically interested: OSF/1 for MIPS was quite similar |
|
1670 |
to Ultrix, so that is possible to run as well. If you are unsuccessful |
to Ultrix, so that is possible to run as well. If you are unsuccessful |
1671 |
in installing Ultrix or OSF/1 directly in the emulator, you can always |
in installing Ultrix or OSF/1 directly in the emulator, you can always |
1672 |
install it on your real machine onto a real SCSI disk, and then copy the |
install it on your real machine onto a real SCSI disk, and then copy the |
1747 |
<h3>Debian GNU/Linux for DECstation:</h3> |
<h3>Debian GNU/Linux for DECstation:</h3> |
1748 |
|
|
1749 |
It is possible to run Debian GNU/Linux for DECstation in the emulator, |
It is possible to run Debian GNU/Linux for DECstation in the emulator, |
1750 |
on an emulated 5000/200 ("3max"). Although the Debian project has released |
on an emulated 5000/200 ("3max"). However, just choosing any |
1751 |
install ramdisk kernels for this purpose, these do not always work: |
Linux/DECstation kernel at random for the installation will not work. |
1752 |
<ul> |
|
1753 |
<li>Serial console output doesn't work too well in GXemul. Linux |
<p><ul> |
1754 |
oopses randomly, which may be due to bugs in GXemul, but may |
<li>Linux 2.4/DECstation DZ serial console output doesn't work too well in |
1755 |
also be due to bugs in the serial controller code in Linux. |
GXemul. Linux oopses randomly, which may be due to bugs in GXemul, |
1756 |
|
but may also be due to bugs in the serial controller code in Linux. |
1757 |
(The speed at which serial interrupts are generated can be |
(The speed at which serial interrupts are generated can be |
1758 |
lowered with the <tt>-U</tt> command line option, but it only |
lowered with the <tt>-U</tt> command line option, but it only |
1759 |
reduces the risk, it doesn't take away the oopses completely.) |
reduces the risk, it doesn't take away the oopses completely.) |
1760 |
<li>Old install kernels supported the graphical framebuffer on the |
<li>The Linux 2.6/DECstation DZ serial console driver doesn't work at |
1761 |
3max, but not the keyboard. |
all in the emulator, and I'm not really sure it would work on a |
1762 |
<li>For quite some time, the MIPS linux cvs tree had support for the |
real 5000/200 either. Hopefully this will be fixed in Linux in |
1763 |
keyboard, but it did <i>not</i> include Debian's patches for |
the future. |
1764 |
networking. (Perhaps this has been fixed now, I don't know.) |
<li>To get around the serial console problem, the obvious solution is to |
1765 |
|
use a graphical framebuffer instead. Old Debian install kernels |
1766 |
|
supported the graphical framebuffer on the 3max, but not the |
1767 |
|
keyboard. (This has been fixed now, it seems.) |
1768 |
|
<li>For quite some time, the MIPS linux cvs tree has had support for the |
1769 |
|
framebuffer and keyboard, but it did not include Debian's |
1770 |
|
patches for networking, which made it unusable for network |
1771 |
|
installs. (Possibly fixed now.) |
1772 |
|
<li>The kernel has to be for 5000/200. This rules out using |
1773 |
|
the default kernel on netinst ISO images provided by Debian. |
1774 |
|
These ISO images boot directly into a kernel which is meant |
1775 |
|
for a different DECstation model. |
1776 |
|
<li>The kernel has to have an initrd which more or less matches the |
1777 |
|
version of Debian that will be installed. |
1778 |
</ul> |
</ul> |
1779 |
|
|
1780 |
<p>David Muse has made available a precompiled install kernel which |
<p>Luckily, a precompiled install kernel has been made available by David |
1781 |
has support for framebuffer, keyboard, and networking, which works |
Muse, for Debian for R3000 DECstations, which has support for framebuffer, |
1782 |
pretty well. Thanks David. :-) |
keyboard, and networking, which works pretty well. Thanks David. :-) |
1783 |
|
|
1784 |
<p> |
<p>The following steps should let you install Debian GNU/Linux for |
1785 |
The following steps should let you install Debian GNU/Linux for DECstation |
DECstation onto a harddisk image in the emulator: |
|
onto a harddisk image: |
|
1786 |
|
|
1787 |
<p> |
<p> |
1788 |
<ol> |
<ol> |
1789 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
1790 |
that Debian installs itself onto:<pre> |
that Debian installs itself onto:<pre> |
1791 |
<b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=3300000</b> |
<b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=6000000</b> |
1792 |
|
|
1793 |
</pre> |
</pre> |
1794 |
<li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre> |
<li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre> |
1795 |
<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> |
1796 |
<a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a> |
<a href="http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd/">http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd</a>/<a href="http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd/debian-31r6a-mipsel-netinst.iso">debian-31r6a-mipsel-netinst.iso</a> |
1797 |
|
|
1798 |
</pre> |
</pre> |
1799 |
<p> |
<p> |
1800 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
1801 |
<b>gxemul -X -e3max -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-31r6a-mipsel-netinst.iso vmlinux-2.4.31</b> |
1802 |
</pre> |
</pre> |
1803 |
|
|
1804 |
<p>If everything goes well, you will see Linux' boot messages, and then |
<p>If everything goes well, you will see Linux' boot messages, and then |
1852 |
<p>The post-install step takes quite some time as well. A perfect opportunity |
<p>The post-install step takes quite some time as well. A perfect opportunity |
1853 |
for more coffee. |
for more coffee. |
1854 |
|
|
1855 |
|
<p>When asked about whether the hardware clock is set to GMT or |
1856 |
|
not, answer Yes. |
1857 |
|
|
1858 |
<p>When asked about "Apt configuration", choose <b>http</b> as the method |
<p>When asked about "Apt configuration", choose <b>http</b> as the method |
1859 |
to use for accessing the Debian archive. |
to use for accessing the Debian archive. |
1860 |
|
|
1882 |
|
|
1883 |
|
|
1884 |
<p><br> |
<p><br> |
|
<a name="declinuxredhat"></a> |
|
|
<h3>Redhat Linux for DECstation:</h3> |
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
<a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a> |
|
|
|
|
|
<p> |
|
|
The following steps should let you run Redhat Linux for DECstation in GXemul: |
|
|
|
|
|
<p> |
|
|
<ol> |
|
|
<li>Download a kernel. David Muse' Debian-install kernel works fine:<pre> |
|
|
<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> |
|
|
|
|
|
</pre> |
|
|
<li>Download a root filesystem tree:<pre> |
|
|
<a href="ftp://ftp.uni-wuppertal.de/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.uni-wuppertal.de/pub/linux/mips/</a> |
|
|
<a href="ftp://ftp.uni-wuppertal.de/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">mipsel-linux/root/mipsel-root-20011216.tgz</a> |
|
|
19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414 |
|
|
|
|
|
</pre> |
|
|
<li>Create a disk image which will contain the Redhat filesystem:<pre> |
|
|
<b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b> |
|
|
|
|
|
</pre> |
|
|
<li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS |
|
|
(!) partition table, and then an ext2 partition. This is what Linux |
|
|
will then see as /dev/sda1. |
|
|
<p>I recommend you run fdisk and mke2fs and untar the archive from within |
|
|
Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running |
|
|
inside the emulator. (Alternatively, if you are on a Linux host, |
|
|
you could use a loopback mount, or similar. This might require |
|
|
root access. See e.g. |
|
|
<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>.) |
|
|
<p> |
|
|
In order to actually boot the system you need to modify /etc/fstab. |
|
|
Change<pre> |
|
|
/dev/root / nfs defaults 1 1 |
|
|
#/dev/sdc1 / ext2 defaults 1 1 |
|
|
none /proc proc defaults 0 0 |
|
|
none /dev/pts devpts mode=0622 0 0 |
|
|
|
|
|
</pre>to<pre> |
|
|
#/dev/root / nfs defaults 1 1 |
|
|
/dev/sda1 / ext2 defaults 1 1 |
|
|
none /proc proc defaults 0 0 |
|
|
none /dev/pts devpts mode=0622 0 0 |
|
|
|
|
|
</pre>(Note sda1 instead of sdc1.) |
|
|
</ol> |
|
|
|
|
|
<p>To boot Redhat linux from the disk image, use the following command line:<pre> |
|
|
<b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b> |
|
|
|
|
|
</pre> |
|
|
If you need to boot into single user mode, change options to |
|
|
<tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><br> |
|
1885 |
<hr> |
<hr> |
1886 |
|
|
1887 |
|
|
1915 |
|
|
1916 |
<p> |
<p> |
1917 |
<ol> |
<ol> |
|
<li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre> |
|
|
<b>./configure --enable-caches; make</b> |
|
|
|
|
|
</pre> |
|
1918 |
<li>Download the pmax binary distribution for Mach 3.0:<pre> |
<li>Download the pmax binary distribution for Mach 3.0:<pre> |
1919 |
<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> |
<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> |
1920 |
<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> |
<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> |
1943 |
cd /; sync; umount /mnt</i>) |
cd /; sync; umount /mnt</i>) |
1944 |
<p> |
<p> |
1945 |
<li>Start the emulator with the following command:<pre> |
<li>Start the emulator with the following command:<pre> |
1946 |
<b>gxemul -e 3max -X -d disk.img \ |
<b>gxemul -c 'put w 0x800990e0, 0' -c 'put w 0x80099144, 0' \ |
1947 |
|
-c 'put w 0x8004aae8, 0' -e 3max -X -d disk.img \ |
1948 |
pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
pmax_mach/special/mach.boot.MK83.STD+ANY</b> |
1949 |
|
|
1950 |
</pre> |
</pre> |
1951 |
</ol> |
</ol> |
1952 |
|
|
1953 |
|
<p>Earlier versions of GXemul had a configure option to enable better |
1954 |
|
R3000 cache emulation, but since Mach was more or less the only thing that |
1955 |
|
used it, I removed it. Today's version of GXemul can thus not boot |
1956 |
|
mach.boot.MK83.STD+ANY straight off, it has to be patched to skip the |
1957 |
|
cache detection. |
1958 |
|
|
1959 |
|
<p>The -c commands above patch the kernel to get past the cache detection. |
1960 |
|
Thanks to Artur Bujdoso for these values. |
1961 |
|
|
1962 |
|
<p>TODO: Better instructions on how to create the old-style UFS disk |
1963 |
|
image. |
1964 |
|
|
1965 |
|
|
1966 |
|
|
1967 |
|
|
1968 |
|
|
1969 |
|
|
1970 |
|
|
1971 |
|
<p><br> |
1972 |
|
<a name="declinuxredhat"></a> |
1973 |
|
<h3>Redhat Linux for DECstation:</h3> |
1974 |
|
|
1975 |
|
|
1976 |
|
<p> |
1977 |
|
|
1978 |
|
<a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a> |
1979 |
|
|
1980 |
|
<p> |
1981 |
|
The following steps should let you run Redhat Linux for DECstation in GXemul: |
1982 |
|
|
1983 |
|
<p> |
1984 |
|
<ol> |
1985 |
|
<li>Download a kernel. David Muse' Debian-install kernel works fine:<pre> |
1986 |
|
<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> |
1987 |
|
|
1988 |
|
</pre> |
1989 |
|
<li>Download a root filesystem tree:<pre> |
1990 |
|
<a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a> |
1991 |
|
19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414 |
1992 |
|
|
1993 |
|
</pre> |
1994 |
|
<li>Create a disk image which will contain the Redhat filesystem:<pre> |
1995 |
|
<b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b> |
1996 |
|
|
1997 |
|
</pre> |
1998 |
|
<!-- |
1999 |
|
dd if=/dev/zero of=/dev/stdout bs=1024 count=200 >> mipsel-root-20011216.tgz |
2000 |
|
gxemul -XY2 -e3max -d redhat_mips.img -d mipsel-root-20011216.tgz vmlinux-2.4.31 |
2001 |
|
In the three dialogs, choose English, United States, and Continue. |
2002 |
|
Then choose Execute a shell. |
2003 |
|
tar xfvz /dev/scsi/host0/bus0/target1/lun0/disc sbin/mke2fs sbin/fdisk |
2004 |
|
fdisk |
2005 |
|
--> |
2006 |
|
<li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS |
2007 |
|
(!) partition table, and then an ext2 partition. This is what Linux |
2008 |
|
will then see as /dev/sda1. |
2009 |
|
<p>I recommend you run fdisk and mke2fs and untar the archive from within |
2010 |
|
Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running |
2011 |
|
inside the emulator. (Alternatively, if you are on a Linux host, |
2012 |
|
you could use a loopback mount, or similar. This might require |
2013 |
|
root access. See e.g. |
2014 |
|
<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>.) |
2015 |
|
<p> |
2016 |
|
In order to actually boot the system you need to modify /etc/fstab. |
2017 |
|
Change<pre> |
2018 |
|
/dev/root / nfs defaults 1 1 |
2019 |
|
#/dev/sdc1 / ext2 defaults 1 1 |
2020 |
|
none /proc proc defaults 0 0 |
2021 |
|
none /dev/pts devpts mode=0622 0 0 |
2022 |
|
|
2023 |
|
</pre>to<pre> |
2024 |
|
#/dev/root / nfs defaults 1 1 |
2025 |
|
/dev/sda1 / ext2 defaults 1 1 |
2026 |
|
none /proc proc defaults 0 0 |
2027 |
|
none /dev/pts devpts mode=0622 0 0 |
2028 |
|
|
2029 |
|
</pre>(Note sda1 instead of sdc1.) |
2030 |
|
</ol> |
2031 |
|
|
2032 |
|
<p>To boot Redhat linux from the disk image, use the following command line:<pre> |
2033 |
|
<b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b> |
2034 |
|
|
2035 |
|
</pre> |
2036 |
|
If you need to boot into single user mode, change options to |
2037 |
|
<tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>. |
2038 |
|
|
2039 |
|
|
2040 |
|
|
2041 |
|
|
2042 |
|
|
2043 |
|
|
2044 |
|
|
2064 |
mailed Adaptec several times, asking for documentation, but never received |
mailed Adaptec several times, asking for documentation, but never received |
2065 |
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 |
2066 |
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> |
2067 |
<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> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd">bsd.rd</a> |
2068 |
|
|
2069 |
</pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>. |
</pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>. |
2070 |
|
|
2077 |
<ol> |
<ol> |
2078 |
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
2079 |
This needs to have a 800 MB <tt>/tftpboot</tt> partition. |
This needs to have a 800 MB <tt>/tftpboot</tt> partition. |
2080 |
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>. |
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>. |
2081 |
(Don't forget to add the extra partition!) |
(Don't forget to add the extra partition!) |
2082 |
<p> |
<p> |
2083 |
<li>Configure the nfs server machine to act as an nfs server. |
<li>Configure the nfs server machine to act as an nfs server. |
2106 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
2107 |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
2108 |
(log in as anonymous...) |
(log in as anonymous...) |
2109 |
<b>cd pub/OpenBSD/3.9/sgi |
<b>cd pub/OpenBSD/4.0/sgi |
2110 |
mget b*tgz c*tgz e* g* m* |
mget b*tgz c*tgz e* g* m* |
2111 |
quit |
quit |
2112 |
sh |
sh |
2117 |
halt</b> |
halt</b> |
2118 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2119 |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
2120 |
<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> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd</a> |
2121 |
<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/4.0/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd</a> |
2122 |
|
|
2123 |
</pre> |
</pre> |
2124 |
<li>Create a configuration file called <tt>config_client</tt>: |
<li>Create a configuration file called <tt>config_client</tt>: |
2128 |
! |
! |
2129 |
! This config file is for the client.</font> |
! This config file is for the client.</font> |
2130 |
|
|
2131 |
<b> net( |
<b>net( |
2132 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
2133 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
2134 |
) |
) |
2135 |
|
|
2136 |
machine( |
machine( |
2137 |
name("client machine") |
name("client machine") |
2138 |
serial_nr(1) |
serial_nr(1) |
2139 |
|
|
2142 |
|
|
2143 |
</b>! load("bsd")<b> |
</b>! load("bsd")<b> |
2144 |
load("bsd.rd") |
load("bsd.rd") |
2145 |
) |
) |
2146 |
</b> |
</b> |
2147 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2148 |
... and another configuration file for the server, |
... and another configuration file for the server, |
2149 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
2150 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
2151 |
<b> net( |
<b>net( |
2152 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
2153 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
2154 |
) |
) |
2155 |
|
|
2156 |
machine( |
machine( |
2157 |
name("nfs server") |
name("nfs server") |
2158 |
serial_nr(2) |
serial_nr(2) |
2159 |
|
|
2161 |
subtype("5000/200") |
subtype("5000/200") |
2162 |
|
|
2163 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
2164 |
) |
) |
2165 |
</b> |
</b> |
2166 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2167 |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
2357 |
|
|
2358 |
|
|
2359 |
|
|
2360 |
|
<!-- |
2361 |
<p><br> |
<p><br> |
2362 |
<a name="linux_qemu_mips"></a> |
<a name="linux_malta"></a> |
2363 |
<h3>Linux/QEMU_MIPS:</h3> |
<h3>Linux/Malta:</h3> |
2364 |
|
|
2365 |
|
<p>The Malta emulation mode is best suited for running <a |
2366 |
|
href="#netbsdevbmipsinstall">NetBSD/evbmips</a>, however, it is possible |
2367 |
|
to experiment with Linux/Malta as well. |
2368 |
|
|
2369 |
|
<p>The general idea behind Linux/Malta seems to be that the end user |
2370 |
|
always compiles his/her own kernel, applies patches, downloads |
2371 |
|
userland separately, etc. For that reason, Linux/Malta support in the |
2372 |
|
emulator is not tested for every release (sometimes it works, sometimes it |
2373 |
|
doesn't work), and these instructions are kind of "fuzzy". |
2374 |
|
|
2375 |
I've added a semi-bogus machine mode which tries to |
<p><ol start="1"> |
2376 |
mimic the MIPS machine mode used in Fabrice Bellard's |
<li>Create an empty harddisk image, which will be the root disk |
2377 |
<a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>. |
that Linux/Malta will be installed onto:<pre> |
2378 |
|
<b>dd if=/dev/zero of=linux.img bs=1024 count=1 seek=5000000</b> |
2379 |
|
|
2380 |
<p>Follow these steps to download and run the Linux/QEMU_MIPS test |
</pre> |
2381 |
ramdisk kernel: |
<li>Download a MIPS root filesystem tree:<pre> |
2382 |
|
<a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a> |
2383 |
|
19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414 |
2384 |
|
|
2385 |
<p><ol> |
</pre> |
2386 |
<li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a> |
This is an old Redhat tree from 2001, but it seems to almost work. |
|
from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>, |
|
|
and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>). |
|
2387 |
<p> |
<p> |
2388 |
<li>Test it in GXemul using the following command line:<pre> |
<li>Download one precompiled Malta kernel, with ramdisk, |
2389 |
<b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram |
and one without ramdisk (which will be used later on |
2390 |
rd_start=0x80800000 rd_size=10000000 init=/bin/sh' |
when booting from disk):<pre> |
2391 |
0x80800000:mips-test/initrd mips-test/vmlinux-r1</b> |
TODO |
2392 |
|
|
2393 |
|
</pre> |
2394 |
|
<li>Start the emulator with the ramdisk kernel, create a MS-DOS style |
2395 |
|
MBR on the disk, create the filesystem, and extract the |
2396 |
|
userland files:<pre> |
2397 |
|
<b>gunzip vmlinux_2.* |
2398 |
|
gunzip mipsel-root-20011216.tar |
2399 |
|
gxemul -xemalta -d linux.img -d mipsel-root-20011216.tar vmlinux_2.4.33.2-ide-pci-ramdisk.elf</b> |
2400 |
|
Inside GXemul: Log in as root and execute the following commands: |
2401 |
|
<b>fdisk /dev/hda</b> |
2402 |
|
(enter suitable commands, e.g. <b>n, p, 1, 1, 9921, w</b>) |
2403 |
|
<b>mkfs /dev/hda1 |
2404 |
|
mount /dev/hda1 /mnt |
2405 |
|
cd /mnt; tar -xf /dev/hdb; cd .. |
2406 |
|
umount /mnt; sync; reboot</b> |
2407 |
|
|
2408 |
</pre> |
</pre> |
2409 |
</ol> |
</ol> |
2410 |
|
|
2411 |
<p><i>"QEMU is a FAST! processor emulator"</i> according to <a |
<p>It should now be possible to boot from the disk image, using the |
2412 |
href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>. |
following command: |
|
Sometimes QEMU is faster than GXemul, sometimes it is the other way |
|
|
around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32, |
|
|
I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package |
|
|
from FreeBSD ports with GXemul gave the following result: |
|
2413 |
|
|
2414 |
<p><pre> |
<p><pre> |
2415 |
<b>while true; do ls -l > /dev/null; echo -n .; done</b> |
<b> gxemul -xemalta -d linux.img -o "root=/dev/hda1 rw" vmlinux_2.6.18-rc4-ide-pci-novty.elf</b> |
2416 |
(80 x 36 dots) |
</pre> |
2417 |
QEMU 0.8.1: 13 min 48 sec |
|
2418 |
GXemul 20060711: 7 min 54 sec |
<p>There's a slight problem with this specific Redhat tree, so when you |
2419 |
GXemul 0.4.1: 4 min 59 sec |
see the message "Configuring kernel parameters: [ OK ]", press CTRL-C |
2420 |
|
once. |
2421 |
<b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b> |
--> |
2422 |
(80 dots) |
|
2423 |
QEMU 0.8.1: 2 min 9 sec |
|
2424 |
GXemul 20060711: 8 min 49 sec |
|
2425 |
GXemul 0.4.1: 6 min 54 sec |
|
2426 |
|
|
2427 |
<b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b> |
|
2428 |
(80 dots) |
<p><br> |
2429 |
QEMU 0.8.1: 10 min 5 sec |
<a name="linux_qemu_mips"></a> |
2430 |
GXemul 20060711: 3 min 8 sec |
<h3>Linux/QEMU_MIPS:</h3> |
2431 |
GXemul 0.4.1: 1 min 42 sec |
|
2432 |
</pre> |
I've added a machine mode which emulates the MIPS machine mode used |
2433 |
|
in Fabrice Bellard's <a href="http://www.qemu.com/">QEMU</a>. |
2434 |
<p>The commands were run inside the emulators, using the ramdisk kernel |
Starting with QEMU 0.9.0, there are other MIPS modes in QEMU (i.e. Malta); |
2435 |
mentioned above. (For GXemul, 2006-07-11 was the date when the QEMU_MIPS |
the QEMU_MIPS mode in GXemul refers to the old QEMU-specific MIPS machine. |
2436 |
mode was added. Performance has since gotten a bit better in general, for |
|
2437 |
non-R3000 MIPS emulation.) |
<p>The following steps should let you boot into the Linux/QEMU_MIPS |
2438 |
|
kernel, in way similar to the <tt>run-qemu</tt> script: |
2439 |
|
|
2440 |
|
<p> |
2441 |
|
<ol> |
2442 |
|
<li>Download the archive from |
2443 |
|
<a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a> and extract it:<pre> |
2444 |
|
<b>wget <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.2.tar.gz">http://fabrice.bellard.free.fr/qemu/mips-test-0.2.tar.gz</a> |
2445 |
|
tar zxvf mips-test-0.2.tar.gz</b> |
2446 |
|
|
2447 |
|
</pre> |
2448 |
|
<li>Start GXemul using the following command line:<pre> |
2449 |
|
<b>gxemul -E qemu_mips -x -M 128 -o 'console=ttyS0 |
2450 |
|
rd_start=0x80800000 rd_size=10000000 init=/bin/sh' |
2451 |
|
0x80800000:mips-test/initrd.gz mips-test/vmlinux-2.6.18-3-qemu</b> |
2452 |
|
|
2453 |
|
</pre> |
2454 |
|
</ol> |
2455 |
|
|
2456 |
|
|
2457 |
|
|
2471 |
that it is running on a real machine. |
that it is running on a real machine. |
2472 |
<font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font> |
<font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font> |
2473 |
|
|
2474 |
<p>Something like this would be done to install |
<p>Installation steps similar to these would be required to install |
2475 |
Windows NT onto a disk image: |
Windows NT onto a disk image: |
2476 |
|
|
2477 |
<ol> |
<ol> |
2485 |
<p> |
<p> |
2486 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
2487 |
that you will install Windows NT onto:<pre> |
that you will install Windows NT onto:<pre> |
2488 |
$ <b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b> |
<b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b> |
2489 |
|
|
2490 |
</pre> |
</pre> |
2491 |
<li>Run the ARC installer, to partition the disk image:<pre> |
<li>Run the ARC installer, to partition the disk image:<pre> |
2492 |
$ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b> |
<b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b> |
2493 |
</pre> |
</pre> |
2494 |
Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite. |
Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite. |
2495 |
<p> |
<p> |
2496 |
<li>Run the SETUP program:<pre> |
<li>Run the SETUP program:<pre> |
2497 |
$ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b> |
<b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b> |
2498 |
</pre> |
</pre> |
2499 |
</ol> |
</ol> |
2500 |
|
|
2507 |
|
|
2508 |
|
|
2509 |
|
|
|
<p><br> |
|
|
<a name="netbsdnetwinderinstall"></a> |
|
|
<h3>NetBSD/netwinder:</h3> |
|
2510 |
|
|
2511 |
<a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a> |
<p><br> |
2512 |
could possibly run in GXemul. |
<a name="netbsdbeboxinstall"></a> |
2513 |
<font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font> |
<h3>NetBSD/bebox:</h3> |
2514 |
|
|
2515 |
<p>It is tricky to install, because there is (as far as I know) no INSTALL |
There is an old snapshot of |
2516 |
kernel. One way to install the NetBSD/netwinder distribution onto a disk |
<a href="http://www.netbsd.org/ports/bebox/">NetBSD/bebox</a> |
2517 |
image is to install the files using another (emulated) machine. |
from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox |
2518 |
|
could theoretically run in GXemul. |
2519 |
|
<font color="#ff0000">IT DOES <b>NOT</b> WORK RIGHT NOW!</font> |
2520 |
|
|
2521 |
<p> |
<p>The following instructions will let you install NetBSD/bebox onto a |
2522 |
The following instructions will let you install the NetBSD/netwinder |
disk image, using a NetBSD/prep kernel temporarily during the install: |
|
distribution onto a disk image, from an emulated DECstation 3MAX machine: |
|
2523 |
|
|
2524 |
<p> |
<p> |
2525 |
<ol> |
<ol> |
2526 |
<li>Install NetBSD/pmax 3.0 according to instructions |
<li>Download a NetBSD/prep 2.1 install ramdisk kernel:<pre> |
2527 |
<a href="#netbsdpmaxinstall">further up on this page</a>. |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz</a> |
2528 |
|
</pre> |
2529 |
<p> |
<p> |
2530 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
2531 |
that you will install NetBSD onto:<pre> |
that you will install NetBSD onto:<pre> |
2532 |
<b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_bebox.img bs=1024 count=1 seek=999000</b> |
|
|
|
|
</pre> |
|
|
<li>Download the generic kernel and the 2.1 ISO image:<pre> |
|
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a> |
|
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso</a> |
|
|
|
|
2533 |
</pre> |
</pre> |
2534 |
<p> |
<p> |
2535 |
<li>Start NetBSD/pmax like this:<pre> |
<li>Download the NetBSD/bebox snapshot, and create a suitable .iso |
2536 |
<b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b> |
image of the files: |
2537 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
2538 |
|
<b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/">ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/</a> |
2539 |
|
mv ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/kern.tgz . |
2540 |
|
tar zxvf kern.tgz |
2541 |
|
rm -f kern.tgz |
2542 |
|
mkisofs -o netbsd-bebox-19981119.iso ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119</b> |
2543 |
|
</pre></td></tr></table> |
2544 |
|
<p> |
2545 |
|
<li>Now let's extract the files onto the Bebox disk image. Start NetBSD/prep |
2546 |
|
with the following command line:<pre> |
2547 |
|
<b>gxemul -x -e ibm6050 -d d:netbsd-bebox-19981119.iso -d nbsd_bebox.img netbsd-INSTALL.gz</b> |
2548 |
|
|
2549 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre>Choose (S) for Shell, and execute the following commands: |
2550 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
2551 |
<b>newfs /dev/sd1c |
<b>disklabel -I -i wd1 |
2552 |
mount /dev/cd0c /mnt |
a |
2553 |
mkdir /mnt2; mount /dev/sd1c /mnt2 |
4.2BSD |
2554 |
cd /mnt2; sh |
1c |
2555 |
for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done |
750M |
2556 |
exit |
b |
2557 |
|
swap |
2558 |
|
a |
2559 |
|
200M |
2560 |
|
W |
2561 |
|
y |
2562 |
|
Q |
2563 |
|
newfs /dev/wd1a |
2564 |
|
mount_cd9660 /dev/wd0c /mnt |
2565 |
|
mount /dev/wd1a /mnt2 |
2566 |
|
cd mnt2 |
2567 |
|
for a in /mnt/*.tgz; do echo $a; tar zxfp $a; done |
2568 |
cd dev; sh ./MAKEDEV all; cd ../etc |
cd dev; sh ./MAKEDEV all; cd ../etc |
2569 |
echo rc_configured=YES >> rc.conf |
echo rc_configured=YES >> rc.conf |
2570 |
echo "/dev/wd0c / ffs rw 1 1" > fstab |
echo "/dev/wd0a / ffs rw 1 1" > fstab |
2571 |
cd /; umount /mnt; umount /mnt2; halt</b> |
echo "/dev/wd0b none swap sw 0 0" >> fstab |
2572 |
|
cd /; umount /mnt; umount /mnt2 |
2573 |
|
sync; halt</b> |
2574 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2575 |
</ol> |
</ol> |
2576 |
|
|
2577 |
<p>NetBSD/netwinder is now installed on the disk image. But actually |
<p>You should now be able to boot NetBSD/bebox using this command:<pre> |
2578 |
running it does <b>not work yet</b>. Sorry. |
<b>gxemul -X -E bebox -d nbsd_bebox.img netbsd</b> |
|
|
|
|
<p>Something like the following command line would be used to start |
|
|
NetBSD, if it worked:<pre> |
|
|
<b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b> |
|
2579 |
</pre> |
</pre> |
2580 |
|
|
2581 |
<p>Note: The installation instructions above create a filesystem |
<p>When asked for the root device, enter <b><tt>wd0a</tt></b>. |
2582 |
<i>without</i> a disklabel, so there is only one ffs partition and no |
|
2583 |
swap. You will need to enter the following things when booting with the |
<p><font color="#ff0000">IT DOES <b>NOT</b> WORK YET</font>, there are |
2584 |
generic kernel:<pre> |
errors while uncompressing the tgz files, and the machine crashes when |
2585 |
root device (default wd0a): <b>wd0c</b> |
trying to run /sbin/init. |
2586 |
dump device (default wd0b): <b>none</b> |
|
2587 |
file system (default generic): <i>(just press enter)</i> |
|
|
init path (default /sbin/init): <i>(just press enter)</i> |
|
|
</pre> |
|
2588 |
|
|
2589 |
|
|
2590 |
|
|
2594 |
|
|
2595 |
|
|
2596 |
<p><br> |
<p><br> |
2597 |
<a name="netbsdmacppcinstall"></a> |
<a name="netbsdlandiskinstall"></a> |
2598 |
<h3>NetBSD/macppc:</h3> |
<h3>NetBSD/landisk:</h3> |
2599 |
|
|
2600 |
It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run |
<a href="http://www.netbsd.org/ports/landisk/">NetBSD/landisk</a> can |
2601 |
<a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul |
run in GXemul. |
|
on an emulated generic PowerPC machine. No specific Machintosh model |
|
|
is emulated, but it is enough to for NetBSD to recognize it. |
|
2602 |
|
|
2603 |
<p>To install NetBSD/macppc onto a disk image, follow these instructions: |
<p><font color="#ff0000">NOTE: This is still too |
2604 |
|
unstable to be considered really working! Snapshots from April 2007 |
2605 |
|
or so will probably not work, unless an #if 0 is changed to |
2606 |
|
#if 1 in the implementation of the 'LDC Rm,SR' instruction |
2607 |
|
(in src/cpus/cpu_sh_instr.c).</font> |
2608 |
|
|
2609 |
<p> |
<p> |
2610 |
<ol start="1"> |
<a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a> |
|
<li>Create an empty harddisk image, which will be the root disk |
|
|
that you will install NetBSD/macppc onto:<pre> |
|
|
<b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b> |
|
2611 |
|
|
2612 |
|
<p>At the time of writing this, there are not yet any formal releases |
2613 |
|
of NetBSD/landisk, only daily snapshot builds. |
2614 |
|
|
2615 |
|
<p>The NetBSD/landisk distribution does not include any INSTALL kernel, |
2616 |
|
so it must be installed using another (emulated) machine. |
2617 |
|
|
2618 |
|
<p>The following instructions will let you install NetBSD/landisk onto a disk |
2619 |
|
image, using an emulated CATS machine: |
2620 |
|
|
2621 |
|
<p> |
2622 |
|
<ol> |
2623 |
|
<li>Download a NetBSD/cats install kernel:<pre> |
2624 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a> |
2625 |
</pre> |
</pre> |
2626 |
<li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre> |
<p> |
2627 |
<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> |
<li>Create an empty harddisk image, which will be the disk image |
2628 |
<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> |
that you will install NetBSD/landisk onto:<pre> |
2629 |
|
<b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b> |
2630 |
|
|
2631 |
</pre> |
</pre> |
2632 |
<p> |
<p> |
2633 |
<li>Start the installation like this:<pre> |
<li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image |
2634 |
<b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b> |
of it: (replace 200704110002Z with whatever is the latest one)<pre> |
2635 |
|
<b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/">ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/</a>200704110002Z/landisk |
2636 |
|
cp ftp.netbsd.org/pub/NetBSD-daily/*/*/landisk/binary/kernel/netbsd-GENERIC.gz . |
2637 |
|
mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b> |
2638 |
|
</pre> |
2639 |
|
|
2640 |
|
<p> |
2641 |
|
<li>Start the emulated CATS machine like this:<pre> |
2642 |
|
<b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b> |
2643 |
|
|
2644 |
</pre> |
</pre> |
2645 |
|
<li>Exit the installer, then execute the following commands: |
2646 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
2647 |
|
<b>disklabel -i -I wd0</b> (for example 'a', '4.2BSD', '1c', |
2648 |
|
'700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') |
2649 |
|
<b>newfs /dev/wd0a |
2650 |
|
mount /dev/cd0c /mnt |
2651 |
|
mkdir /mnt2; mount /dev/wd0a /mnt2 |
2652 |
|
cd /mnt2; sh |
2653 |
|
for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done |
2654 |
|
exit |
2655 |
|
cd dev; sh ./MAKEDEV all; cd ../etc |
2656 |
|
echo rc_configured=YES >> rc.conf |
2657 |
|
echo "/dev/wd0a / ffs rw 1 1" > fstab |
2658 |
|
echo "/dev/wd0b none swap sw 0 0" >> fstab |
2659 |
|
cd /; umount /mnt; umount /mnt2; halt</b> |
2660 |
|
</pre></td></tr></table> |
2661 |
</ol> |
</ol> |
2662 |
|
|
2663 |
<p>If everything worked, NetBSD/macppc should now be installed on the disk image. |
<p>You should now be able to boot NetBSD/landisk using this command:<pre> |
2664 |
|
<b>gxemul -x -E landisk -d nbsd_landisk.img netbsd-GENERIC.gz</b> |
2665 |
|
</pre> |
2666 |
|
|
|
<p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation |
|
|
succeeds, but it is not possible to start from the newly installed disk. |
|
|
/sbin/init dies, so the following command doesn't really work yet: |
|
2667 |
|
|
|
<p>Use the following command line to boot the emulated machine:<pre> |
|
|
<b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b> |
|
|
|
|
|
</pre> |
|
2668 |
|
|
2669 |
|
|
2670 |
|
|