/[gxemul]/trunk/doc/guestoses.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/doc/guestoses.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8 by dpavlin, Mon Oct 8 16:18:19 2007 UTC revision 16 by dpavlin, Mon Oct 8 16:19:01 2007 UTC
# Line 1  Line 1 
1  <html>  <html><head><title>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;Installing and running "guest OSes"</title>
2  <head><title>GXemul documentation: Installing and running "guest OSes"</title>  <meta name="robots" content="noarchive,nofollow,noindex"></head>
 <meta name="robots" content="noarchive,nofollow,noindex">  
 </head>  
3  <body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000">  <body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000">
4  <table border=0 width=100% bgcolor="#d0d0d0"><tr>  <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5  <td width=100% align=center valign=center><table border=0 width=100%><tr>  <td width=100% align=center valign=center><table border=0 width=100%><tr>
6  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7  <b>GXemul documentation:</b></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <b>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;</b></font>
8  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>
9  </font></td></tr></table></td></tr></table><p>  </font></td></tr></table></td></tr></table><p>
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.50 2005/06/11 11:53:33 debug Exp $  $Id: guestoses.html,v 1.93 2005/10/11 03:31:26 debug Exp $
14    
15  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.
16    
# Line 41  SUCH DAMAGE. Line 39  SUCH DAMAGE.
39    
40  -->  -->
41    
42    
43  <a href="./">Back to the index</a>  <a href="./">Back to the index</a>
44    
45  <p><br>  <p><br>
# Line 49  SUCH DAMAGE. Line 48  SUCH DAMAGE.
48  <p>  <p>
49  <ul>  <ul>
50    <li><a href="#generalnotes">General notes on running "guest OSes"</a>    <li><a href="#generalnotes">General notes on running "guest OSes"</a>
51    <li><a href="#netbsdinstall">Installing NetBSD/pmax in GXemul</a>    <li><a href="#netbsdinstall">NetBSD/pmax</a>
52    <li><a href="#netbsdarcinstall">Installing NetBSD/arc in GXemul</a>    <li><a href="#netbsdarcinstall">NetBSD/arc</a>
53    <li><a href="#netbsdhpcmipsinstall">Installing NetBSD/hpcmips in GXemul</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a>
54    <li><a href="#netbsdcobaltinstall">Installing NetBSD/cobalt in GXemul</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>
55  <!--    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>
56    <li><a href="#netbsdsgimips">Running NetBSD/sgimips in GXemul</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>
57  -->    <li><a href="#netbsdcatsinstall">NetBSD/cats</a>
58    <li><a href="#openbsdinstall">Installing OpenBSD/pmax in GXemul</a>    <li><a href="#openbsdinstall">OpenBSD/pmax</a>
59    <li><a href="#openbsdarcinstall">Installing OpenBSD/arc in GXemul</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>
60  <!--    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>
61    <li><a href="#openbsdsgiinstall">Running OpenBSD/sgi in GXemul</a>    <li><a href="#ultrixinstall">Ultrix/RISC</a>
62  -->    <li><a href="#sprite">Sprite for DECstation</a>
63    <li><a href="#ultrixinstall">Installing Ultrix/RISC in GXemul</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
64    <li><a href="#sprite">Running Sprite for DECstation in GXemul</a>    <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>
65    <li><a href="#declinux">Installing Debian GNU/Linux for DECstation in GXemul</a>  </ul>
66    <li><a href="#declinuxredhat">Running Redhat Linux for DECstation in GXemul</a>  
67    <li><a href="#mach">Running Mach/PMAX in GXemul</a>  <p>In addition to the "working" guest operating systems listed above,
68    you might find the following information interesting:
69    <ul>
70      <li><a href="#mach">Mach/PMAX</a>
71      <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
72      <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>
73  </ul>  </ul>
74    
75    
# Line 96  system, the harddisk image looks and act Line 100  system, the harddisk image looks and act
100    
101  <p><br>  <p><br>
102  <a name="netbsdinstall"></a>  <a name="netbsdinstall"></a>
103  <h3>Installing NetBSD/pmax in GXemul:</h3>  <h3>NetBSD/pmax:</h3>
104    
105  <p>  <p>
106  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
107  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>
108    
109  <p>  <p>To install <a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a>
110  To install NetBSD/pmax onto a harddisk image in the emulator, follow these  onto a harddisk image in the emulator, follow these instructions:
 instructions:  
111    
112  <p>  <p><ol start="1">
 <ol start="1">  
113    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
114          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
115          $ <b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b>          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b>
116    
117  </pre>  </pre>
118  </ol>  </ol>
# Line 127  steps: Line 129  steps:
129    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
130          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>
131          or          or
132          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso</a>
133    
134  </pre>  </pre>
135    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
136          $ <b>gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -d bc:pmaxcd.iso</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.iso</b>
137  </pre>  </pre>
138            and proceed like you would do if you were installing NetBSD on a real
139            DECstation. Remember to choose <tt>vt100</tt> as your terminal
140            type, and not <tt>rcons</tt>.
141  </ol>  </ol>
142  <p>  <p>
143  For an ftp install, substitute steps 2 and 3 above with these:  For an ftp install, substitute steps 2 and 3 above with these:
144  <p>  <p>
145  <ol start="2">  <ol start="2">
146    
147    <li>Download a NetBSD pmax INSTALL kernel, and gunzip it:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
148          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
149          or          or
150          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
   
         $ <b>gunzip netbsd-INSTALL.gz</b>  
151    
152  </pre>  </pre>
153    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
154          $ <b>gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -O netbsd-INSTALL</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>
155  </pre>  </pre>
156  </ol>          and proceed like you would do if you were installing NetBSD on a real
157            DECstation. Remember to choose <tt>vt100</tt> as your terminal
158  <p>          type, and not <tt>rcons</tt>. Suitable networking parameters are as
159  (If you don't want to use a graphical framebuffer during the install,          follows:<pre>
 you can remove <b>-X</b> from the command line, but then make sure you  
 choose 'vt100' when prompted with which terminal type to use, and not  
 'rcons'.)  
   
 <p>  
 Then proceed like you would do if you were installing NetBSD on a real  
 DECstation. If you are installing from the network, then suitable networking  
 parameters are as follows:<pre>  
160          Which device shall I use? [le0]: <b>le0</b>          Which device shall I use? [le0]: <b>le0</b>
161          ..          ..
162          Your DNS domain: <b>mydomain.com</b>          Your DNS domain: <b>mydomain.com</b>
# Line 171  parameters are as follows:<pre> Line 166  parameters are as follows:<pre>
166          IPv4 gateway: <b>10.0.0.254</b>          IPv4 gateway: <b>10.0.0.254</b>
167          IPv4 name server: <b>10.0.0.254</b>          IPv4 name server: <b>10.0.0.254</b>
168  </pre>  </pre>
169            (If using 10.0.0.254 as the nameserver fails, then try entering the
170            IP number of a real-world nameserver instead.)
171    </ol>
172    
173  <p>  <p>If you want to use a graphical framebuffer during the install, you can
174  (If using 10.0.0.254 as the nameserver fails, then try entering the  add <b><tt>-X -Y2</tt></b> to the command line, and choose <tt>rcons</tt>
175  IP number of a real-world nameserver instead.)  instead of <tt>vt100</tt> when prompted with which terminal type to use.
176    (By just using <tt><b>-X</b></tt>, you will get a full-size framebuffer
177    window.)
178    
179  <p>  <p>When the installation is finished, the following command should start
 When the installation is completed, the following command should start  
180  NetBSD from the harddisk image:<pre>  NetBSD from the harddisk image:<pre>
181          $ <b>gxemul -X -b -M64 -E dec -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
182  </pre>  </pre>
183    
184  <p>  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2
185  Use <b>startx</b> to start X windows.  doesn't work with X out-of-the-box on pmax. It seems that this has to do
186    with NetBSD switching console system to "WSCONS" somewhere between 1.6.2
187  <p>  and 2.0. For now, if you want X, then try NetBSD 1.6.2.
 <font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0 doesn't  
 work with X out-of-the-box on pmax. It seems that this has to do with a  
 switch to WSCONS. For now, if you want X, then try NetBSD 1.6.2.  
188    
189  <p>  <p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre>
190  If you want to run without the X framebuffer, use this instead:<pre>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
         $ <b>gxemul -E dec -e 3max -b -d nbsd_pmax.img</b>  
191  </pre>  </pre>
192    and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.
193    
194    
195    
196    
# Line 203  If you want to run without the X framebu Line 200  If you want to run without the X framebu
200    
201  <p><br>  <p><br>
202  <a name="netbsdarcinstall"></a>  <a name="netbsdarcinstall"></a>
203  <h3>Installing NetBSD/arc in GXemul:</h3>  <h3>NetBSD/arc:</h3>
204    
205  It is possible to run NetBSD/arc on an emulated Acer PICA-61 in the emulator.  It is possible to install and run <a
206    href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>
207    on an emulated Acer PICA-61 in the emulator.
208    
209  <p>  <p>
210  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 219  follow these instructions: Line 218  follow these instructions:
218  <ol start="1">  <ol start="1">
219    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
220          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
221          $ <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b>          <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b>
222    
223  </pre>  </pre>
224    <li>Download a NetBSD/arc 1.6.2 CDROM image from ftp:<pre>    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc
225            kernel:<pre>
226          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>
227    
228            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>
229  </pre>  </pre>
230    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
231          $ <b>gxemul -E arc -e pica -x -b -d nbsd_arc.img -d bc:arccd.iso \          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \
232            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>
233    
234  </pre>  </pre>
# Line 235  follow these instructions: Line 236  follow these instructions:
236      <p>      <p>
237    <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
238          automatic installation program for NetBSD/arc. Here are some tips          automatic installation program for NetBSD/arc. Here are some tips
239          and hints on how you can proceed with the install:<pre>          and hints on how you can proceed with the install:
240          $ <b>mount /dev/cd0a /mnt2</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
241          $ <b>disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',  <b>mount /dev/cd0a /mnt2
242              '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',
243          $ <b>newfs /dev/sd0a</b>      '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')
244          $ <b>mount /dev/sd0a /mnt</b>  <b>newfs /dev/sd0a
245          $ <b>cd /mnt</b>  mount /dev/sd0a /mnt
246          $ <b>for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done</b>  cd /mnt
247          $ <b>cd dev; sh MAKEDEV all</b>  for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done
248          $ <b>cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf</b>  cd dev; sh MAKEDEV all
249          $ <b>cat > /mnt/etc/fstab</b>  cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf
250              /dev/sd0a / ffs rw 1 1  cat > /mnt/etc/fstab
251              /dev/sd0b none swap sw 0 0  /dev/sd0a / ffs rw 1 1
252              (ctrl-d)  /dev/sd0b none swap sw 0 0
253          $ <b>cd /; umount /mnt; umount /mnt2</b>  </b>(press ctrl-d)<b>
254          $ <b>halt</b>  <b>cd /; umount /mnt; umount /mnt2
255    halt</b>
256  </pre>  </pre></td></tr></table>
   <li>Download a generic NetBSD/arc kernel,  
         and gunzip it:<pre>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>  
   
 </pre>  
257  </ol>  </ol>
258    
259  <p>  <p>You can now use the generic NetBSD/arc kernel to boot from the harddisk
260  You can now use the generic NetBSD/arc kernel to boot from the harddisk  image, using the following command:<pre>
261  image, using the following command:          <b>gxemul -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz</b>
 <p>  
 <pre>  
         $ <b>gxemul -E arc -e pica -xb -d nbsd_arc.img netbsd-GENERIC</b>  
262    
263  </pre>  </pre>
264    
265    <p>When asked for "<tt>root device: </tt>", enter <b><tt>sd0</tt></b>.
266    
267    
268    
# Line 278  image, using the following command: Line 272  image, using the following command:
272    
273  <p><br>  <p><br>
274  <a name="netbsdhpcmipsinstall"></a>  <a name="netbsdhpcmipsinstall"></a>
275  <h3>Installing NetBSD/hpcmips in GXemul:</h3>  <h3>NetBSD/hpcmips:</h3>
276    
277  It is possible to install NetBSD/hpcmips onto a disk image, on an an  It is possible to install <a
278  emulated MobilePro 770, 780, 800, or 880. The emulator treats the  href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk
279  different machine models as being almost identical; the most important  image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator
280  difference is regarding the framebuffer.  treats the different machine models as being almost identical; the most
281    important difference is regarding the framebuffer.
282    
283  <p>  <p><table border="0">
 <table border="0">  
284          <tr>          <tr>
285                  <td width="80">&nbsp;</td>                  <td width="80">&nbsp;</td>
286                  <td><u>Model:</u></td>                  <td><u>Model:</u></td>
# Line 347  than the other models, for some reason. Line 341  than the other models, for some reason.
341    
342  <p>  <p>
343  These instructions show an example of how to install  These instructions show an example of how to install
344  NetBSD/hpcmips on an emulated MobilePro 800:  NetBSD/hpcmips on an emulated MobilePro 770:
345    
346  <p>  <p>
347  <ol start="1">  <ol start="1">
348    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
349          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
350          $ <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>
351    
352  </pre>  </pre>
353    <li>Download the NetBSD 2.0 for hpcmips ISO image:<pre>    <li>Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:<pre>
354          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/">ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0</a>/<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/hpcmipscd.iso">hpcmipscd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso">hpcmipscd.iso</a>
355    
356  </pre>(You may want to choose a mirror closer to you, if .se is slow.)          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
357    
358    </pre>
359    <p>    <p>
360    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
361          $ <b>gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \
362            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>
363    
364  </pre>  </pre>
365          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
366          MobilePro 800. (Install onto wd0, choose "Use entire disk" when          MobilePro 770. (Install onto wd0, choose "Use entire disk" when
367          doing the MBR partitioning, and choose wd1d (not cd0c) as the          doing the MBR partitioning, and choose wd1d (not cd0c) as the
368          CDROM device to install from.)          CDROM device to install from.)
369  </ol>  </ol>
370    
371  <p>  <p>
372  If everything worked, NetBSD should now be installed on the disk image.  If everything worked, NetBSD should now be installed on the disk image.
373  GXemul does not (yet) support reading the kernel directly from the  Use the following command line to boot the emulated hpcmips machine:<pre>
374  disk image, so you need to download a generic kernel separately:<pre>          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz</b>
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>  
375    
376  </pre>  </pre>
377    
378  <p>  <p>If you change your mind at this point regarding which machine type to
379  Once you have gunziped the generic kernel, you can now use it to boot from  emulate, you might for example prefer a MobilePro 800, then you can change
380  the harddisk image, using the following command:<pre>  that at any time. NetBSD/hpcmips is designed to be able to boot on many
381          $ <b>gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img netbsd-GENERIC</b>  types, without any need to change the kernel.
382    
383  </pre>  <p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to
384    start X Windows, but there is no mouse support yet so only keyboard input
385  <p>  is available. This makes it a bit akward to use X.
 When you have logged in as root, you can use <b>startx</b> to start X  
 Windows. (Note: There is no mouse support yet; you can only use  
 keyboard input.)  
386    
387    
388    
# Line 401  keyboard input.) Line 393  keyboard input.)
393    
394  <p><br>  <p><br>
395  <a name="netbsdcobaltinstall"></a>  <a name="netbsdcobaltinstall"></a>
396  <h3>Installing NetBSD/cobalt in GXemul:</h3>  <h3>NetBSD/cobalt:</h3>
397    
398  <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
399  to install, because the Cobalt machines were designed for Linux, and not  to install, because the Cobalt machines were designed for Linux, and not
# Line 421  image, from an emulated DECstation 3MAX Line 413  image, from an emulated DECstation 3MAX
413  <ol>  <ol>
414    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
415          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
416          $ <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>
417    
418  </pre>  </pre>
419    <li>Download the generic kernel for Cobalt (and gunzip it) and    <li>Download the generic kernel for Cobalt and the 2.0.2 ISO image:<pre>
420          the 2.0 ISO image:<pre>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
421          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0/cobalt/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso</a>
         <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/cobaltcd.iso">ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/cobaltcd.iso</a>  
422    
423  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
424    <p>    <p>
425    <li>Install NetBSD/pmax 2.0 according to instructions further up    <li>Install NetBSD/pmax 2.0.2 according to instructions
426          on this page.          <a href="#netbsdinstall">further up on this page</a>.
427    <p>    <p>
428    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
429          $ <b>gxemul -b -Edec -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>          <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>
430    
431  </pre>  </pre>
432    <li>Log in as root (on the emulated 3MAX machine), and execute the    <li>Log in as root (on the emulated 3MAX machine), and execute the
433          following commands: (adjust according to taste)<pre>          following commands: (adjust according to taste)
434          # <b>newfs /dev/sd1c</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
435          # <b>mount /dev/cd0c /mnt</b>  <b>newfs /dev/sd1c
436          # <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b>  mount /dev/cd0c /mnt
437          # <b>cd /mnt2; sh</b>  mkdir /mnt2; mount /dev/sd1c /mnt2
438          # <b>for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b>  cd /mnt2; sh
439          # <b>exit</b>  for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
440          # <b>cd dev; sh ./MAKEDEV all; cd ../etc</b>  exit
441          # <b>echo rc_configured=YES >> rc.conf</b>  cd dev; sh ./MAKEDEV all; cd ../etc
442          # <b>echo "/dev/wd0d / ffs rw 1 1" > fstab</b>  echo rc_configured=YES &gt;&gt; rc.conf
443          # <b>cd /; umount /mnt; umount /mnt2; halt</b>  echo "/dev/wd0d / ffs rw 1 1" > fstab
444  </pre>  cd /; umount /mnt; umount /mnt2; halt</b>
445    </pre></td></tr></table>
446  </ol>  </ol>
447    
448  <p>  <p>
449  You should now be able to boot NetBSD/cobalt like this:<pre>  You should now be able to boot NetBSD/cobalt like this:<pre>
450          $ <b>gxemul -b -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC</b>          <b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>
451  </pre>  </pre>
452    
453  Note that the installation instructions above create a filesystem  Note that the installation instructions above create a filesystem
# Line 474  generic kernel:<pre> Line 466  generic kernel:<pre>
466    
467    
468    
 <!--  
   
469  <p><br>  <p><br>
470  <a name="netbsdsgimips"></a>  <a name="netbsdevbmipsinstall"></a>
471  <h3>Running NetBSD/sgimips in GXemul:</h3>  <h3>NetBSD/evbmips:</h3>
472    
473  <a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a>  <a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run
474  can theoretically run in GXemul on an emulated O2 (SGI-IP32) with root on nfs.  in GXemul on an emulated Malta evaluation board (with a 5Kc or 4Kc CPU).
475    
476  <p>  <p>
477  <font color="#ff0000">NOTE: I haven't succeeded with this yet.</font>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
478    <a href="20050622-netbsd-evbmips-malta.png"><img src="20050622-netbsd-evbmips-malta_small.png"></a>
479    
480    <p>It is tricky to install, because there is (as far as I know) no INSTALL
481    kernel. One way to install the NetBSD/evbmips distribution onto a disk
482    image is to install the files using another (emulated) machine.
483    
484  <p>  <p>
485  See the section on <a href="#openbsdsgiinstall">how to run OpenBSD/sgi</a>  The following instructions will let you install NetBSD/evbmips onto a disk
486  for more information.  image, from an emulated DECstation 3MAX machine:
487    
488  <p>  <p>
489  TODO...  <ol>
490      <li>Install NetBSD/pmax 2.0.2 according to instructions
491            <a href="#netbsdinstall">further up on this page</a>.
492      <p>
493      <li>Create an empty harddisk image, which will be the disk image
494            that you will install NetBSD onto:<pre>
495            <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>
496    
497  <pre>  </pre>
498  cd /tftpboot; ftp -i ftp.se.netbsd.org    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>
499  ..          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
500  cd pub/NetBSD/NetBSD-2.0/sgimips/binary/sets          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso</a>
501  mget *.tgz  
502    </pre>
503      <p>
504      <li>Start NetBSD/pmax like this:<pre>
505            <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>
506    
507    </pre>and execute the following commands as <tt>root</tt>:
508    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
509    <b>newfs /dev/sd1c
510    mount /dev/cd0c /mnt
511    mkdir /mnt2; mount /dev/sd1c /mnt2
512    cd /mnt2; sh
513    for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
514  exit  exit
515    cd dev; sh ./MAKEDEV all; cd ../etc
516    echo rc_configured=YES >> rc.conf
517    echo "/dev/wd0c / ffs rw 1 1" > fstab
518    cd /; umount /mnt; umount /mnt2; halt</b>
519    </pre></td></tr></table>
520    </ol>
521    
522    <p>You should now be able to boot NetBSD/evbmips using this command:<pre>
523            <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
524    </pre>
525    
526    <p>Note 1: NetBSD detects a very fast CPU although the emulation isn't
527    really that fast, so emulated delays are very slow. Even on a multi-GHz
528    host, you will need a lot of patience.
529    
530    <p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
531    (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD
532    2.0.2, however, there will be little or no difference in functionality, as
533    NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference
534    it makes in practice is that GXemul's binary translation subsystem might
535    run a bit faster (because there are some optimizations for 32-bit
536    emulation that don't work with 64-bit emulation).
537    
538    <p>Note 3: The installation instructions above create a filesystem
539    <i>without</i> a disklabel, so there is only one ffs partition and no
540    swap. You will need to enter the following things when booting with the
541    generic kernel:<pre>
542            root device (default wd0a): <b>wd0c</b>
543            dump device (default wd0b): <b>none</b>
544            file system (default generic): <b>ffs</b>
545            init path (default /sbin/init):     <i>(just press enter here)</i>
546    </pre>
547    
548    
549    
550    
551    
552    
553    
554    <p><br>
555    <a name="netbsdsgimips"></a>
556    <h3>NetBSD/sgimips:</h3>
557    
558    <p>
559    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
560    <a href="20050626-netbsd-sgimips-netboot.png"><img src="20050626-netbsd-sgimips-netboot_small.png"></a>
561    
562    <p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run
563    in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet
564    emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec
565    several times, asking for documentation, but never received any reply.)
566    NetBSD can still run in the emulator, as long as it doesn't use SCSI.
567    
568    <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try
569    dowloading<pre>
570            <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
571    
572    </pre>and run&nbsp;&nbsp;<b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.
573    
574    <p>It is possible to set up an environment for netbooting the emulated SGI
575    machine off of another emulated machine. Performing this setup is quite
576    time consuming, but necessary:
577    
578    <p>
579    <ol>
580      <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
581            This needs to have a 750 MB <tt>/tftpboot</tt> partition.
582            <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.
583            (Don't forget to add the extra partition!)
584      <p>
585      <li>Configure the nfs server machine to act as an nfs server.
586            Start up the emulated DECstation:<pre>
587            <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
588    </pre>and enter the following commands as <tt>root</tt>
589            inside the emulator:
590    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
591    <b>echo hostname=server &gt;&gt; /etc/rc.conf
592    echo ifconfig_le0=\"inet 10.0.0.2\" &gt;&gt; /etc/rc.conf
593    echo nameserver 10.0.0.254 &gt;&gt; /etc/resolv.conf
594    echo 10.0.0.254 &gt; /etc/mygate
595    echo /tftpboot -maproot=root 10.0.0.1 &gt; /etc/exports
596    echo rpcbind=YES &gt;&gt; /etc/rc.conf
597    echo nfs_server=YES &gt;&gt; /etc/rc.conf
598    echo mountd=YES &gt;&gt; /etc/rc.conf
599    echo bootparamd=YES &gt;&gt; /etc/rc.conf
600    printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" &gt; /etc/bootparams
601    echo "bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 4 -h 10.0.0.2" &gt;&gt; /etc/inetd.conf
602    cat &gt;&gt; /etc/bootptab
603    client:\
604            :ht=ether:\
605            :ha=102030000010:\
606            :sm=255.0.0.0:\
607            :lg=10.0.0.254:\
608            :ip=10.0.0.1:\
609            :rp=/tftpboot:
610    </b>(press CTRL-D)
611    <b>echo "10:20:30:00:00:10 client" &gt; /etc/ethers
612    echo 10.0.0.1 client &gt; /etc/hosts
613    reboot</b>
614    </pre></td></tr></table>
615      <li>Start the DECstation emulation again, and download the
616            NetBSD/sgimips distribution sets:<br>(NOTE: This
617            takes quite some time, even if you have a fast network connection.)
618    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
619    <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>
620    (log in as anonymous...)
621    <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets
622    mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz
623    quit
624  sh  sh
625  for a in etc.tgz base.tgz comp.tgz; do tar zxvfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done
626    echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab
627    echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
628    dd if=/dev/zero of=swap bs=1024 count=32768
629    halt</b>
630    </pre></td></tr></table>
631      <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
632            <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
633            <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
634    
635    </pre>
636      <li>Create a configuration file called <tt>config_client</tt>:
637    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
638    <font color="#2020cf">!!gxemul
639    !
640    !  Configuration file for running NetBSD/sgimips diskless with
641    !  a NetBSD/pmax machine as the nfs server.</font>
642    
643    <b>emul(
644        net(
645            add_remote("localhost:12444")   </b>! the server<b>
646            local_port(12445)               </b>! the client<b>
647        )
648    
649        machine(
650            name("client machine")
651            serial_nr(1)
652    
653            type("sgi")
654            subtype("o2")
655    
656            load("netbsd-INSTALL32_IP3x.gz")</b>
657            ! load("netbsd-GENERIC32_IP3x.gz")<b>
658        )
659    )</b>
660    </pre></td></tr></table>
661            ... and another configuration file for the server,
662            <tt>config_server</tt>:
663    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
664    <font color="#2020cf">!!gxemul</font>
665    <b>emul(
666        net(
667            local_port(12444)               </b>! the server<b>
668            add_remote("localhost:12445")   </b>! the client<b>
669        )
670    
671        machine(
672            name("nfs server")
673            serial_nr(2)
674    
675            type("dec")
676            subtype("5000/200")
677    
678            disk("nbsd_pmax.img")
679        )
680    )</b>
681    </pre></td></tr></table>
682      <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips
683            "<tt>client machine</tt>" as two separate emulator instances:<pre>
684            in one xterm:
685            <b>gxemul @config_server</b>
686    
687            and then, in another xterm:
688            <b>gxemul @config_client</b>
689    
690    </pre>
691      <li>In the NetBSD/sgimips window, choose "<tt>x: Exit Install System</tt>"
692            in the installer's main menu, and then type:<pre>
693            <b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254</b>
694            <b>mount -v 10.0.0.2:/tftpboot /mnt</b>
695            <b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b>
696            <b>halt</b>
697    </pre>Then, once the client machine has halted, log in as <tt>root</tt>
698            on the server machine and type <tt><b>reboot</b></tt>.
699      <p>
700      <li>Once everything has been set up correctly, change
701            <tt>netbsd-INSTALL32_IP3x.gz</tt> in <tt>config_client</tt> to
702            <tt>netbsd-GENERIC32_IP3x.gz</tt> (the GENERIC kernel).
703    </ol>
704    
705    <p>You might want to log in as <tt>root</tt> on the server machine, and
706    run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine
707    actually does on the network.
708    
709    <p>It should now be possible to boot NetBSD/sgimips using the NetBSD/pmax
710    nfs server, using the following commands: (NOTE! Execute these two
711    commands in separate xterms!)<pre>
712            <b>gxemul @config_server</b>
713            <b>gxemul @config_client</b>
714    </pre>
715    
716    <p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter
717    the following values:<pre>
718            root device: <b>mec0</b>
719            dump device:                            <b>(leave blank)</b>
720            file system (default generic):          <b>(leave blank)</b>
721            ..
722            init path (default /sbin/init):         <b>(leave blank)</b>
723            Enter pathname of shell or RETURN for /bin/sh:  <b>(leave blank)</b>
724            Terminal type? [unknown] <b>xterm</b>
725            ..
726            # <b>exit</b>                   (to leave the single-user shell)
727  </pre>  </pre>
728    
729  -->  <p>Note: Netbooting like this is very slow, so you need a lot of patience.
730    For example, when NetBSD says "<tt>nfs_boot: trying DHCP/BOOTP</tt>",
731    there will be a long pause, even on a very fast host machine. The reason
732    for this is mostly because the emulator doesn't deal with timing issues
733    very well, but also because NetBSD tries IPv6 first, before falling back
734    to IPv4.
735    
736    
737    
738    
739    
740    
741    <p><br>
742    <a name="netbsdcatsinstall"></a>
743    <h3>NetBSD/cats:</h3>
744    
745    It is possible to install and run
746    <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.
747    
748    <p>
749    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
750    <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>
751    
752    <p>
753    To install NetBSD/cats onto a disk image, follow these instructions:
754    
755    <p>
756    <ol start="1">
757      <li>Create an empty harddisk image, which will be the root disk
758            that you will install NetBSD/hpcmips onto:<pre>
759            <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=1990000</b>
760    
761    </pre>
762      <li>Download the NetBSD/cats 2.0.2 ISO image and generic + install kernels:<pre>
763            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/catscd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/catscd.iso</a>
764            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
765            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
766    
767    </pre>
768      <p>
769      <li>Start the installation like this:<pre>
770            <b>gxemul -XEcats -d nbsd_cats.img -d catscd.iso netbsd.aout-INSTALL.gz</b>
771    
772    </pre>
773            and proceed like you would do if you were installing NetBSD on a real
774            CATS from CDROM. (Install onto wd0, and choose wd1c (not cd0c) as the
775            CDROM device to install from.)
776    </ol>
777    
778    <p>If everything worked, NetBSD should now be installed on the disk image.
779    Use the following command line to boot the emulated CATS machine:<pre>
780            <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>
781    
782    </pre>
783    
784    <p>When asked for root device, enter <tt>wd0</tt>.
785    
786    
787    
788    
789    
790    
791  <p><br>  <p><br>
792  <a name="openbsdinstall"></a>  <a name="openbsdinstall"></a>
793  <h3>Installing OpenBSD/pmax in GXemul:</h3>  <h3>OpenBSD/pmax:</h3>
794    
795  Installing OpenBSD/pmax is a bit harder than installing NetBSD/pmax.  Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is
796  You should first read the section above on how to install NetBSD/pmax,  a bit harder than installing NetBSD/pmax. You should first read the <a
797    href="#netbsdinstall">section above</a> on how to install NetBSD/pmax,
798  before continuing here. If you have never installed OpenBSD on any  before continuing here. If you have never installed OpenBSD on any
799  architecture, then you need a great deal of patience to do this.  architecture, then you need a great deal of patience to do this. If, on
800  If, on the other hand you are used to installing OpenBSD, then  the other hand you are used to installing OpenBSD, then this should be no
801  this should be no problem for you.  problem for you.
802    
803  <p>  <p>
804  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 542  common sense and imagination to modify t Line 819  common sense and imagination to modify t
819  <ol>  <ol>
820    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
821          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
822          $ <b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b>          <b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b>
823    
824  </pre>  </pre>
825    <li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre>    <li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre>
826          $ <b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b>          <b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b>
827    
828  </pre>  </pre>
829    
830    <li>Execute the following commands:<pre>    <li>Execute the following commands:
831          $ <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
832          $ <b>gunzip simpleroot28.fs.gz</b>  <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .
833          $ <b>chmod +w simpleroot28.fs</b>               &lt;--- make sure  gunzip simpleroot28.fs.gz
834    chmod +w simpleroot28.fs</b>            &lt;--- make sure
835  </pre>  </pre></td></tr></table>
836    <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.
837          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
838          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
839          to install it in order to do this.<pre>          to install it in order to do this.)<pre>
840          $ <b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b>          <b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b>
841    
842  </pre>  </pre>
843    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
844          $ <b>gxemul -E dec -e 3max -b -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>          <b>gxemul -e 3max -A -M64 -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>
845    
846  </pre>  </pre>
847          (If you add <tt><b>-X</b></tt>, you will run with the graphical          (If you add <tt>-X</tt>, you will run with the graphical
848          framebuffer. This is <i>REALLY</i> slow because the console has to          framebuffer. This is <i>REALLY</i> slow because the console has to
849          scroll a lot during the install. I don't recommend it.)          scroll a lot during the install. I don't recommend it.)
850    <p>    <p>
# Line 581  common sense and imagination to modify t Line 858  common sense and imagination to modify t
858            <li>When asked for the "<b>root device?</b>", enter <b>rz1</b>.            <li>When asked for the "<b>root device?</b>", enter <b>rz1</b>.
859            <li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter.            <li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter.
860            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
861          $ <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
862          $ <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
863          $ <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
864          $ <b>./install</b>          <b>./install</b>
865    
866  </pre>  </pre>
867                  and proceed with the install. Good luck. :-)                  and proceed with the install. Good luck. :-)
# Line 595  common sense and imagination to modify t Line 872  common sense and imagination to modify t
872                  the directory containing the install sets.                  the directory containing the install sets.
873          </ul>          </ul>
874    <p>    <p>
875    <li>    <li>For some unknown reason, the install script does not set the root
876  For some unknown reason, the install script does not set the root          password! The first time you boot up OpenBSD after the install, you
877  password! The first time you boot up OpenBSD after the install, you          need to go into single user mode and run <b>passwd root</b> to set
878  need to go into single user mode and run <b>passwd root</b> to set          the root password, or you will not be able to log in at all!<pre>
879  the root password, or you will not be able to log in at all!          <b>gxemul -e 3max -A -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>
 <pre>  
         $ <b>gxemul -E dec -e 3max -b -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>  
880  </pre>  </pre>
881  While you are at it, you might want to extract the X11 install sets  While you are at it, you might want to extract the X11 install sets
882  as well, as the installer seems to ignore them too. (Perhaps due to a bug  as well, as the installer seems to ignore them too. (Perhaps due to a bug
883  in the installer, perhaps because of the way I used mkisofs.)  in the installer, perhaps because of the way I used mkisofs.)
884  <p>  <p>
885  Execute the following commands in the emulator:  Execute the following commands in the emulator:
886  <pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
887          # <b>fsck /dev/rz0a</b>  <b>fsck /dev/rz0a
888          # <b>mount /</b>  mount /
889          # <b>passwd root</b>  passwd root
890    
891          # <b>cd /; mount -t cd9660 /dev/rz2c /mnt; sh</b>  cd /; mount -t cd9660 /dev/rz2c /mnt; sh
892          # <b>for a in /mnt/[xX]*; do tar zxvf $a; done</b>  for a in /mnt/[xX]*; do tar zxvf $a; done
893          # <b>ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X</b>  ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X
894          # <b>ln -s /dev/fb0 /dev/mouse</b>  ln -s /dev/fb0 /dev/mouse
895          # <b>echo /usr/X11R6/lib >> /etc/ld.so.conf</b>  echo /usr/X11R6/lib &gt;&gt; /etc/ld.so.conf
896          # <b>ldconfig</b>  ldconfig
897    
898          # <b>sync</b>  sync
899          # <b>halt</b>  halt</b>
900  </pre>  </pre></td></tr></table>
901  </ol>  </ol>
902    
903  <p>  <p>
# Line 635  root password, and so on. Line 910  root password, and so on.
910  Once you have completed the installation procedure, the following command  Once you have completed the installation procedure, the following command
911  will let you boot from the new rootdisk image:  will let you boot from the new rootdisk image:
912  <pre>  <pre>
913          $ <b>gxemul -E dec -e 3max -b -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>          <b>gxemul -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>
914  </pre>  </pre>
915    
916  <p>  <p>
# Line 653  enter <b><tt>rcons</tt></b> if you are u Line 928  enter <b><tt>rcons</tt></b> if you are u
928    
929    
930    
931    
932  <p><br>  <p><br>
933  <a name="openbsdarcinstall"></a>  <a name="openbsdarcinstall"></a>
934  <h3>Installing OpenBSD/arc in GXemul:</h3>  <h3>OpenBSD/arc:</h3>
935    
936  It is possible to run OpenBSD/arc on an emulated Acer PICA-61 in the  It is possible to install and run OpenBSD/arc on an emulated Acer PICA-61
937  emulator.  in the emulator.
938    
939  <p>  <p>
940  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 679  instructions: Line 955  instructions:
955  <ol>  <ol>
956    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
957          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
958          $ <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>          <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>
959    
960  </pre>  </pre>
961    <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>    <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>
962          $ <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>
963    
964  </pre>  </pre>
965    
966    <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.
967          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
968          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
969          to install it in order to do this.<pre>          to install it in order to do this.)<pre>
970          $ <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>          <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
971    
972  </pre>  </pre>
973    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
974          $ <b>gxemul -X -b -E arc -e pica -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>          <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>
975    
976  </pre>  </pre>
977          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 708  Once the install has finished, the follo Line 984  Once the install has finished, the follo
984  boot from the harddisk image:  boot from the harddisk image:
985  <p>  <p>
986  <pre>  <pre>
987          $ <b>gxemul -X -b -E arc -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>          <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>
988    
989  </pre>  </pre>
990    
# Line 716  boot from the harddisk image: Line 992  boot from the harddisk image:
992    
993    
994    
995  <!--  
996    
997    
998  <p><br>  <p><br>
999  <a name="openbsdsgiinstall"></a>  <a name="openbsdcatsinstall"></a>
1000  <h3>Running OpenBSD/sgi in GXemul:</h3>  <h3>OpenBSD/cats:</h3>
1001    
1002  <a href="http://www.openbsd.org/sgi.html">OpenBSD/sgi</a>  It is possible to install and run
1003  can theoretically run in GXemul on an emulated O2 (SGI-IP32) with root on nfs.  <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>
1004    in GXemul.
1005    
1006  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1007  <font color="#ff0000">NOTE: I haven't succeeded with this yet.</font>  <a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a>
1008    
1009  <p>  <p>To install OpenBSD/cats onto an emulated harddisk image,
1010  GXemul does not yet emulate the AHC PCI SCSI controller in the O2, so  follow these instructions:
 another emulated machine must be used as the nfs root server, and the  
 emulated O2 machine must boot as a  
 <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&manpath=OpenBSD+Current&format=html">diskless</a>  
 client. Performing this setup is very time consuming, but necessary.  
1011    
1012  <p>  <p>
1013  <ol>  <ol>
1014    <li><a href="#netbsdinstall">Install NetBSD/pmax 2.0 from CDROM</a>    <li>Create an empty harddisk image, which will be the root disk
1015          (or install some other similar OS) inside the emulator. This will          that OpenBSD installs itself onto:<pre>
1016          be the "nfs server" machine. Create a 600 MB <tt>/tftpboot</tt>          <b>dd if=/dev/zero of=obsd_cats.img bs=1024 count=1 seek=1900000</b>
         partition during the installation.  
   <p>  
   <li>Configure the nfs server machine to act as an nfs server.<pre>  
         # <b>echo hostname=server &gt;&gt; /etc/rc.conf</b>  
         # <b>echo ifconfig_le0=\"inet 10.0.0.2\" &gt;&gt; /etc/rc.conf</b>  
         # <b>echo nameserver 10.0.0.254 &gt;&gt; /etc/rc.conf</b>  
         # <b>echo 10.0.0.254 &gt; /etc/mygate</b>  
         # <b>echo /tftpboot -maproot=root 10.0.0.1 &gt; /etc/exports</b>  
         # <b>echo rpcbind=YES &gt;&gt; /etc/rc.conf</b>  
         # <b>echo nfs_server=YES &gt;&gt; /etc/rc.conf</b>  
         # <b>echo mountd=YES &gt;&gt; /etc/rc.conf</b>  
         # <b>echo bootparamd=YES &gt;&gt; /etc/rc.conf</b>  
         # <b>printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" &gt; /etc/bootparams</b>  
         # <b>echo 10.0.0.1 client &gt; /etc/hosts</b>  
1017    
1018          Reboot. Then download the OpenBSD/sgi distribution:  (NOTE: This  </pre>
1019          takes quite some time, even if you have a fast network connection.)    <li>Download the entire cats directory from the ftp server:<pre>
1020            <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/</a></b>
1021            <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/arc/bsd .</b>
1022            <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/arc/bsd.rd .</b>
1023    
1024    </pre>
1025    
1026          # <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>    <li>You now need to make an ISO image of the entire directory you downloaded.
1027          ...          (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1028          <b>cd pub/OpenBSD/3.7/sgi</b>          already have <tt>mkisofs</tt> installed on your system, you need
1029          <b>mget *</b>          to install it in order to do this.)<pre>
1030            <b>mkisofs -allow-lowercase -o openbsd_cats_3.7.iso ftp.openbsd.org/pub/OpenBSD/3.7/cats</b>
         # <b>sh</b>  
         # <b>for a in base* etc* misc*; do tar vzxfp $a; done</b>  
         # <b>dd if=/dev/zero of=swap bs=1024 count=16384</b>  
1031    
1032  </pre>  </pre>
1033    <p>    <li>Start the emulator using this command line:<pre>
1034    <li>Create a configuration file along these lines:<pre>          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.7.iso bsd.rd</b>
1035          <font color="#2020cf">!!gxemul  
1036          !  </pre>
1037          !  Configuration file for running OpenBSD/sgi diskless with          and proceed like you would do if you were installing OpenBSD
1038          !  a NetBSD/pmax machine as the nfs server.          on a real CATS. (Install onto <tt>wd0</tt>, don't configure the
1039          !          network, choose to install distribution sets from <i>disk</i>
1040          !  Change the filenames to suit your setup.</font>          <tt>wd1</tt> (i.e. not CDROM) partition '<tt>a</tt>',
1041            relative path '<tt>/</tt>'.)
         <b>emul(  
             net()  
   
             machine(  
                 name("client machine")  
                 type("sgi")  
                 subtype("ip32")  
                 bintrans(yes)  
                 load("openbsd-sgi-20050202-bsd")  
                 start_paused(yes)  
             )  
   
             machine(  
                 name("nfs server")  
                 type("dec")  
                 subtype("5000/200")  
                 bintrans(yes)  
                 disk("nbsd_pmax.img")  
             )  
         )</b>  
   
 </pre>  
   <li>Boot the nfs server and the OpenBSD/sgi client machine like this:<pre>  
         $ <b>gxemul @myconf</b>  
   
 </pre>  
         You might want to log in as root on the server machine, and  
         run <b>tcpdump -lnvv</b> or similar, to see that what the client  
         machine actually does on the network.  
         <p>  
         The OpenBSD box ("client machine") will be paused, so when you  
         are ready to unpause it, press CTRL-C in the main GXemul  
         window and use the <b>focus</b> and <b>pause</b> commands to  
         unpause the main CPU in that machine, and then <b>continue</b>  
         to resume execution.  
         <p>  
         When asked for "root device :", enter <b>mec0</b>.  
1042  </ol>  </ol>
1043    
1044  <p>  <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>
1045  TODO...  correctly once the installation is finished, or the <tt>/dev</tt> nodes
1046    may not have been written correctly to disk.
1047    
1048    <p>Once the install has finished, the following command should let you
1049    boot from the harddisk image:
1050    
1051    <p><pre>
1052            <b>gxemul -XEcats -d obsd_cats.img bsd</b>
1053    
1054    </pre>
1055    
1056    
 -->  
1057    
1058    
1059    
# Line 827  TODO... Line 1061  TODO...
1061    
1062  <p><br>  <p><br>
1063  <a name="ultrixinstall"></a>  <a name="ultrixinstall"></a>
1064  <h3>Installing Ultrix/RISC in GXemul:</h3>  <h3>Ultrix/RISC:</h3>
1065    
1066  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.
1067    (Ultrix was the native OS for these machines, but NetBSD/pmax is
1068    also usable.)
1069    
1070  <p>  <p>
1071  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 843  The following instructions should let yo Line 1079  The following instructions should let yo
1079  <ol>  <ol>
1080    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1081          that Ultrix installs itself onto:<pre>          that Ultrix installs itself onto:<pre>
1082          $ <b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b>          <b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b>
1083    
1084  </pre>  </pre>
1085    <li>Place your Ultrix installation media in your CDROM drive.    <li>Place your Ultrix installation media in your CDROM drive.
1086          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
1087          Replace that with the name of your CDROM drive, or the name of a          Replace that with the name of your CDROM drive, or the name of a
1088          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
1089          $ <b>gxemul -X -b -M64 -E dec -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>
1090    
1091  </pre>  </pre>
1092    <li>Once the first stage of the installation is done (restoring the root    <li>Once the first stage of the installation is done (restoring the root
# Line 858  The following instructions should let yo Line 1094  The following instructions should let yo
1094          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
1095          This is done by removing the bootflag ('<tt>b</tt>') from the second          This is done by removing the bootflag ('<tt>b</tt>') from the second
1096          diskimage argument:<pre>          diskimage argument:<pre>
1097          $ <b>gxemul -X -b -M64 -E dec -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>
1098    
1099  </pre>  </pre>
1100  </ol>  </ol>
# Line 866  The following instructions should let yo Line 1102  The following instructions should let yo
1102  <p>  <p>
1103  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
1104  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
1105          $ <b>gxemul -X -b -M64 -E dec -e 3max -j vmunix -d rootdisk.img</b>          <b>gxemul -X -A -M64 -e 3max -j vmunix -d rootdisk.img</b>
1106  </pre>  </pre>
1107    
1108  <p>  <p>Ultrix mostly seems to work with dynamic binary translation (which can
1109  Ultrix mostly seems to work with dynamic binary translation (enabled by  be disabled by the <b><tt>-B</tt></b> command line option). If you have a
1110  the <b><tt>-b</tt></b> command line option). If you have a very fast  very fast host machine, and use bintrans, you might experience a weird
1111  host machine, and use bintrans, you might experience a weird timer related  timer related bug, which makes it impossible to logon to the system. It is
1112  bug, which makes it impossible to logon to the system. It is triggered  triggered when the emulation goes faster than any real DECstation machine
1113  when the emulation goes faster than any real DECstation machine was  was capable of running. A temporary workaround is to add
1114  capable of running. A temporary workaround is to add <b><tt>-I33000000</tt></b>  <b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million
1115  to fix the emulated clock speed to 33 million instructions per emulated  instructions per emulated second. (When using <tt><b>-CR4400</b></tt>,
1116  second. (When using <tt><b>-CR4400</b></tt>, <b><tt>-I16000000</tt></b>  <b><tt>-I16000000</tt></b> should be used instead.)
 should be used instead.)  
1117    
1118  <p>  <p>
1119  You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a  You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a
# Line 889  There is also a <b><tt>-z</tt></b> optio Line 1124  There is also a <b><tt>-z</tt></b> optio
1124  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1125  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1126  <tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre>  <tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre>
1127          $ <b>gxemul -M64 -bN -E dec -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \
1128              -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>
1129  </pre>  </pre>
1130    
# Line 930  that file as a disk image file in the em Line 1165  that file as a disk image file in the em
1165    
1166  <p><br>  <p><br>
1167  <a name="sprite"></a>  <a name="sprite"></a>
1168  <h3>Running Sprite for DECstation in GXemul:</h3>  <h3>Sprite for DECstation:</h3>
1169    
1170  Sprite was a research operating system at the University of Berkeley.  Sprite was a research operating system at the University of Berkeley.
1171  The Unix Heritage Society (TUHS, <a href="http://www.tuhs.org">www.tuhs.org</a>)  The Unix Heritage Society (TUHS, <a href="http://www.tuhs.org">www.tuhs.org</a>)
# Line 950  The following instructions should let yo Line 1185  The following instructions should let yo
1185    
1186  <p>  <p>
1187  <ol>  <ol>
1188    <li>Download the Sprite harddisk image using ftp or http:<pre>    <li>Download the Sprite harddisk image:<pre>
1189          <a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/">http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite</a>/<a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/ds5000.bt">ds5000.bt</a>          <a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt</a>
         or <a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/ds5000.bt</a>  
1190          83973120 bytes, MD5 = ec84eeeb20fe77b758370d5e312e4a5e          83973120 bytes, MD5 = ec84eeeb20fe77b758370d5e312e4a5e
1191    
1192  </pre>  </pre>
1193    <li>Start the emulator with the following command line:<pre>    <li>Start the emulator with the following command line:<pre>
1194          $ <b>gxemul -X -b -E dec -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b>          <b>gxemul -X -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b>
1195    
1196  </pre>  </pre>
1197  </ol>  </ol>
# Line 969  values, then you should use the followin Line 1203  values, then you should use the followin
1203  <p>  <p>
1204    
1205  <pre>  <pre>
1206      Your machine's Ethernet address:    10:20:30:40:50:60      Your machine's Ethernet address:    10:20:30:00:00:10
1207      Your machine's IP:                  10.0.0.1      Your machine's IP:                  10.0.0.1
1208      Subnet mask:                        0xff000000      Subnet mask:                        0xff000000
1209      Gateway's Ethernet address:         60:50:40:30:20:10      Gateway's Ethernet address:         60:50:40:30:20:10
# Line 977  values, then you should use the followin Line 1211  values, then you should use the followin
1211  </pre>  </pre>
1212    
1213  <p>  <p>
1214  Unfortunately, at the end of <a href="http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/boot.txt">  Unfortunately, at the end of <a href="ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/boot.txt">ftp://ftp.es.embnet.org/pub/misc/TUHS/other_os/Sprite/boot.txt</a>,
1215  http://www.es.embnet.org/Services/ftp/misc/TUHS/other_os/Sprite/boot.txt</a>, the  the following sad statement can be found:
 following sad statement can be found:  
1216  <pre>  <pre>
1217      The bootable Sprite image is meant to be a demonstration of Sprite, not      The bootable Sprite image is meant to be a demonstration of Sprite, not
1218      a robust Sprite system.  There are several missing things, such as      a robust Sprite system.  There are several missing things, such as
1219      floating point and network support.      floating point and network support.
1220  </pre>  </pre>
1221    
1222  <p>  <p>Once you are logged in as root, running <b><tt>xinit</tt></b> will
1223  Once you are logged in as root, running <b>xinit</b> will start the X11  start the X11 environment.
1224  environment.  
1225    
1226    
1227    
# Line 996  environment. Line 1229  environment.
1229    
1230  <p><br>  <p><br>
1231  <a name="declinux"></a>  <a name="declinux"></a>
1232  <h3>Installing Debian GNU/Linux for DECstation in GXemul:</h3>  <h3>Debian GNU/Linux for DECstation:</h3>
1233    
1234  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>
1235  unstable. During my tests, even pressing the wrong key during the install  unstable. During my tests, even pressing the wrong key during the install
1236  (for example the wrong cursor key) can cause a kernel Oops.  (for example the wrong cursor key) can cause a kernel Oops. My success
1237  I <i>think</i> this has to do with interrupts from the serial controller.  rate is probably around 50%.</font>
1238  Hopefully using the <tt><b>-U</b></tt> command line option will reduce the  
1239  risk for such crashes. (I haven't had time to come up with a clean  <p><font color="#ef0000">I <i>think</i> this has to do with interrupts
1240  solution to this yet; it feels like a buffer overflow in Linux' serial  from the serial controller. Hopefully using the <tt><b>-U</b></tt> command
1241  driver for the 5000/200, but it is also likely that it is a bug in GXemul.)  line option will reduce the risk for such crashes. (I haven't had time to
1242    come up with a clean solution to this yet; it feels like a buffer overflow
1243    in Linux' serial driver for the 5000/200, but it is also likely that it is
1244    a bug in GXemul.)</font>
1245    
1246    <p><font color="#ef0000">Everything runs extremely slow. Even if you have
1247    a very fast host machine, an install attempt can still take several hours!
1248  </font>  </font>
1249    
1250  <p>  <p>
# Line 1026  onto a harddisk image: Line 1265  onto a harddisk image:
1265  <ol>  <ol>
1266    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1267          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1268          $ <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=3000000</b>
1269    
1270  </pre>  </pre>
1271    <li>Download an install kernel:<pre>    <li>Download an install kernel:<pre>
1272          <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://http.us.debian.org/debian/dists/testing/main/</a>          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>
1273              <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a>              <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a>
         or  
         <a href="http://http.us.debian.org/debian/dists/unstable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://http.us.debian.org/debian/dists/unstable/main/</a>  
             <a href="http://http.us.debian.org/debian/dists/unstable/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a>  
1274    
1275  </pre>  </pre>
         depending on whether you want to install Debian "Testing" or  
         "Unstable".  
1276    <p>    <p>
1277    <li>For a text-mode installation, start the emulator like this:<pre>    <li>For a text-mode installation, start the emulator like this:<pre>
1278          $ <b>gxemul -E dec -e 3max -b -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>
1279    
1280  </pre>  </pre>
1281  </ol>          (If you want to, you can try <b><tt>-X</tt></b> instead of
1282            <b><tt>-o 'console=ttyS3'</tt></b> on the command line. This will
1283  <p>          cause Linux to use the graphical framebuffer. Unfortunately, Linux
1284  Debian GNU/Linux on DECstation works reasonably fine with dynamic          does not seem to have a driver for the DZ11 keyboard controller yet,
1285  binary translation, enabled by the <b><tt>-b</tt></b> command line option.          so you cannot interact with the system. You will see the penguin in
1286  (Without this option, the emulator might be less buggy, but also too slow          the upper lefthand corner while booting, and nicely rendered Unicode
1287  to be useful when running Linux as a guest OS.)          characters, but that's about it.)
1288            <p>
1289  <p>          You need to enter some values during the installation procedure, for
1290  (If you want to, you can try <b>-X</b> instead of <b>-o 'console=ttyS3'</b> on          example network settings. The following should work:<pre>
1291  the command line. This will cause Linux to use the graphical framebuffer.          DHCP:                       No, choose "<b>Configure network manually</b>"
1292  Unfortunately, Linux does not seem to have a driver for the DZ11 keyboard          IP address:                 <b>10.0.0.1</b>
1293  controller yet, so you cannot interact with the system. You will see the          Netmask:                    <b>255.0.0.0</b>
1294  penguin in the upper lefthand corner while booting, and nicely rendered Unicode          Gateway:                    <b>10.0.0.254</b>
1295  characters, but that's about it.)          Name server addresses:      <b>10.0.0.254</b>
   
 <p>  
 You need to enter some values during the installation procedure, for example  
 network settings. The following should work:  
 <p>  
 <pre>  
     DHCP:                       No, choose "Configure network manually"  
     IP address:                 10.0.0.1  
     Netmask:                    255.0.0.0  
     Gateway:                    10.0.0.254  
     Name server addresses:      10.0.0.254  
1296  </pre>  </pre>
   
 <p>  
 <ol start="4">  
1297    <li>Once the first phase of the install has finished, the following command    <li>Once the first phase of the install has finished, the following command
1298          should let you boot into Debian, and perform post-install          should let you boot into Debian, and perform post-install
1299          configuration:<pre>          configuration:<pre>
1300          $ <b>gxemul -E dec -e 3max -U -b -M64 -o 'console=ttyS3' -d debian.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>
   
 </pre>  
 </ol>  
   
 <p>  
 It seems that there's a problem with getting a login prompt on serial  
 console (at least when I've done test installs), so when the installation  
 is finished and you're supposed to get a login prompt, you need to press  
 CTRL-C and type <b>quit</b>, and then:  
1301    
1302  <p>  </pre>Note: All these steps take a lot of time, so you will have plenty
1303  <ol start="5">          of time to drink lots of cups of coffee.
1304    <li>Download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>    <p>
1305          <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://http.us.debian.org/debian/dists/testing/main/</a>    <li>It seems that there's a problem with getting a login prompt on serial
1306           <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>          console (at least when I've done test installs), so when the
1307            installation is finished and you're supposed to get a login prompt,
1308            you need to press CTRL-C and type <b><tt>quit</tt></b>, and then:
1309            download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>
1310            <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/</a>
1311                <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>
1312    
1313  </pre>  </pre>and boot Debian using the following command line:<pre>
1314    <li>Boot Debian using the following command line:<pre>          <b>gxemul -e 3max -U -M64 -o \
         $ <b>gxemul -E dec -e 3max -U -b -M64 -o \  
1315              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \
1316              -d debian.img vmlinux-2.4.27-r3k-kn02</b>              -d debian.img vmlinux-2.4.27-r3k-kn02</b>
1317    
# Line 1106  CTRL-C and type <b>quit</b>, and then: Line 1321  CTRL-C and type <b>quit</b>, and then:
1321          sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b>          sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b>
1322          sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b>          sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b>
1323          sh-2.05b# <b>sync; umount /</b>          sh-2.05b# <b>sync; umount /</b>
1324            sh-2.05b# <b>halt</b>
1325  </pre>  </pre>
1326  </ol>  </ol>
1327    
# Line 1114  The system should now be ready for every Line 1330  The system should now be ready for every
1330    
1331  <p>  <p>
1332  Use this command to boot from the completely installed disk image:<pre>  Use this command to boot from the completely installed disk image:<pre>
1333          $ <b>gxemul -E dec -e 3max -U -b -M64 -o 'console=ttyS3' -d debian.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>
1334    
1335  </pre>  </pre>
1336    
# Line 1126  support for keyboards now, on DECstation Line 1342  support for keyboards now, on DECstation
1342  possible to run Debian GNU/Linux with framebuffer/keyboard.  possible to run Debian GNU/Linux with framebuffer/keyboard.
1343  (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the  (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the
1344  <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:  <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:
1345  <a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">  <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>
 http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
1346  It has other problems (ethernet doesn't seem to work, for  It has other problems (ethernet doesn't seem to work, for
1347  example), but at least it doesn't Oops that often.&nbsp;]  example), but at least it doesn't Oops that often.&nbsp;]
1348    
# Line 1138  example), but at least it doesn't Oops t Line 1353  example), but at least it doesn't Oops t
1353    
1354  <p><br>  <p><br>
1355  <a name="declinuxredhat"></a>  <a name="declinuxredhat"></a>
1356  <h3>Running Redhat Linux for DECstation in GXemul:</h3>  <h3>Redhat Linux for DECstation:</h3>
1357    
1358  <font color="#ff0000">NOTE: This is experimental, and <i>extremely</i>  <font color="#ff0000">NOTE: This is experimental, and <i>extremely</i>
1359  unstable. Read the note about <b><tt>-U</tt></b> in the section on how to  unstable. Read the note about <b><tt>-U</tt></b> in the section on how to
# Line 1155  The following steps should let you run R Line 1370  The following steps should let you run R
1370  <p>  <p>
1371  <ol>  <ol>
1372    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>
1373          <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://http.us.debian.org/debian/dists/testing/main/</a>          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>
1374           <a href="http://http.us.debian.org/debian/dists/testing/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>              <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>
1375    
1376  </pre>  </pre>
1377    <li>Download a root filesystem tree:<pre>    <li>Download a root filesystem tree:<pre>
# Line 1185  The following steps should let you run R Line 1400  The following steps should let you run R
1400  </pre>(Note sda1 instead of sdc1.)  </pre>(Note sda1 instead of sdc1.)
1401    <p>    <p>
1402    <li>To boot Linux, start the emulator like this:<pre>    <li>To boot Linux, start the emulator like this:<pre>
1403          $ <b>gxemul -E dec -e 3max -U -b -M128 -o \          <b>gxemul -e 3max -U -M128 -o \
1404              "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>              "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>
1405    
1406  </pre>  </pre>
# Line 1193  The following steps should let you run R Line 1408  The following steps should let you run R
1408    
1409  <p>  <p>
1410  If you need to boot into single user mode, try the following:<pre>  If you need to boot into single user mode, try the following:<pre>
1411          $ <b>gxemul -E dec -e 3max -U -b -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \          <b>gxemul -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \
1412              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>
1413    
1414  </pre>  </pre>
1415    
1416  <p>  <p>Redhat Linux on DECstation in R3000 mode should work fine with dynamic
1417  Redhat Linux on DECstation in R3000 mode should work fine with dynamic binary  binary translation, but if things are buggy, it can be disabled by
1418  translation (enabled by the <b>-b</b> command line option).  using the <b><tt>-B</tt></b> command line option.
1419    
1420  <p>  <p>
1421  NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command  NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command
# Line 1213  actually interact with the sytem. :-( Line 1428  actually interact with the sytem. :-(
1428  Read the 2005-01-19 update in the Debian section above, and then, if  Read the 2005-01-19 update in the Debian section above, and then, if
1429  you do not need ethernet support, try Kaj-Michael Lang's kernel compiled  you do not need ethernet support, try Kaj-Michael Lang's kernel compiled
1430  from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.  from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.
1431  <a href="http://home.tal.org/~milang/o2/patches/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">  <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>
 http://home.tal.org/~milang/o2/patches/vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
1432  It should work with framebuffer/keyboard.&nbsp;]  It should work with framebuffer/keyboard.&nbsp;]
1433    
1434    
# Line 1223  It should work with framebuffer/keyboard Line 1437  It should work with framebuffer/keyboard
1437    
1438    
1439  <p><br>  <p><br>
1440    <hr>
1441    
1442    
1443    
1444    
1445    
1446    
1447    
1448    <p><br>
1449  <a name="mach"></a>  <a name="mach"></a>
1450  <h3>Running Mach/PMAX in GXemul:</h3>  <h3>Mach/PMAX:</h3>
1451    
1452  Read the following link if you want to know more about Mach in general:  Read the following link if you want to know more about Mach in general:
1453  <a href="http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/mach.html">  <a href="http://www-2.cs.cmu.edu/afs/cs/project/mach/public/www/mach.html">
# Line 1248  for DECstation in the emulator: Line 1471  for DECstation in the emulator:
1471  <p>  <p>
1472  <ol>  <ol>
1473    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>
1474          $ <b>./configure --enable-caches; make</b>          <b>./configure --enable-caches; make</b>
1475    
1476  </pre>  </pre>
1477    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1478          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z</a>          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/</a>
1479                <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>
1480          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0
1481    
1482  </pre>  </pre>
1483    <li>Extract the Mach kernel:<pre>    <li>Extract the Mach kernel:<pre>
1484          $ <b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b>          <b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1485    
1486  </pre>  </pre>
1487    <li>Create an empty disk image:<pre>    <li>Create an empty disk image:<pre>
1488          $ <b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b>          <b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b>
1489    
1490  </pre>  </pre>
1491    <li>Load the contents of pmax.tar.Z onto the disk image. This is    <li>Load the contents of pmax.tar.Z onto the disk image. This is
# Line 1278  for DECstation in the emulator: Line 1502  for DECstation in the emulator:
1502          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1503          <p>          <p>
1504    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1505          $ <b>gxemul -E dec -e 3max -X -d disk.img \          <b>gxemul -e 3max -X -d disk.img \
1506              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1507    
1508  </pre>  </pre>
# Line 1286  for DECstation in the emulator: Line 1510  for DECstation in the emulator:
1510    
1511    
1512    
1513    
1514    
1515    
1516    
1517    <p><br>
1518    <a name="openbsdsgiinstall"></a>
1519    <h3>OpenBSD/sgi:</h3>
1520    
1521    <a href="http://www.openbsd.org/sgi.html">OpenBSD/sgi</a>
1522    can (almost) run in GXemul on an emulated O2 (SGI-IP32) with root on nfs.
1523    
1524    <p>
1525    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1526    <a href="20050617-openbsd-sgi.png"><img src="20050617-openbsd-sgi_small.png"></a>
1527    
1528    <p><font color="#ff0000">NOTE: I haven't succeeded all the way with
1529    this yet, and this shows/triggers many bugs in the emulator, but some of
1530    it works.</font>
1531    
1532    <p>GXemul does not yet emulate the AHC PCI SCSI controller in the O2. (I have
1533    mailed Adaptec several times, asking for documentation, but never received
1534    any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't
1535    use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre>
1536            <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a>
1537    
1538    </pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>.
1539    
1540    <p>It might also be possible to netboot. Another emulated machine must
1541    then be used as the nfs root server, and the emulated O2 machine must boot
1542    as a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&amp;manpath=OpenBSD+Current&amp;format=html">diskless</a>
1543    client. Performing this setup is quite time consuming, but necessary:
1544    
1545    <p>
1546    <ol>
1547      <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
1548            This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1549            <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.
1550            (Don't forget to add the extra partition!)
1551      <p>
1552      <li>Configure the nfs server machine to act as an nfs server.
1553            Start up the emulated DECstation:<pre>
1554            <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
1555    </pre>and enter the following commands as <tt>root</tt>
1556            inside the emulator:
1557    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1558    <b>echo hostname=server &gt;&gt; /etc/rc.conf
1559    echo ifconfig_le0=\"inet 10.0.0.2\" &gt;&gt; /etc/rc.conf
1560    echo nameserver 10.0.0.254 &gt;&gt; /etc/resolv.conf
1561    echo 10.0.0.254 &gt; /etc/mygate
1562    echo /tftpboot -maproot=root 10.0.0.1 &gt; /etc/exports
1563    echo rpcbind=YES &gt;&gt; /etc/rc.conf
1564    echo nfs_server=YES &gt;&gt; /etc/rc.conf
1565    echo mountd=YES &gt;&gt; /etc/rc.conf
1566    echo bootparamd=YES &gt;&gt; /etc/rc.conf
1567    printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" &gt; /etc/bootparams
1568    echo "10:20:30:00:00:10 client" &gt; /etc/ethers
1569    echo 10.0.0.1 client &gt; /etc/hosts
1570    reboot</b>
1571    </pre></td></tr></table>
1572      <li>Start the DECstation emulation again, and enter the following
1573            commands to download the OpenBSD/sgi distribution:<br>(NOTE: This
1574            takes quite some time, even if you have a fast network connection.)
1575    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1576    <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
1577    (log in as anonymous...)
1578    <b>cd pub/OpenBSD/3.7/sgi
1579    mget b*tgz c* e* g* m*
1580    quit
1581    sh
1582    for a in *.tgz; do echo $a; tar zxfp $a; done
1583    echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab
1584    rm *.tgz
1585    dd if=/dev/zero of=swap bs=1024 count=32768
1586    halt</b>
1587    </pre></td></tr></table>
1588      <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>
1589            <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd</a>
1590            MD5 (bsd) = f16eaf3dcbd51876db7c25f70e6d8a08
1591            <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a>
1592            MD5 (bsd.rd) = 4843e6139d8dd04b03d5f0e33e9a4f7b
1593    
1594    </pre>
1595      <li>Create a configuration file called <tt>config_client</tt>:
1596    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1597    <font color="#2020cf">!!gxemul
1598    !
1599    !  Configuration file for running OpenBSD/sgi diskless with
1600    !  a NetBSD/pmax machine as the nfs server.
1601    !
1602    !  This config file is for the client.</font>
1603    
1604    <b>emul(
1605        net(
1606            add_remote("localhost:12444")   </b>! the server<b>
1607            local_port(12445)               </b>! the client<b>
1608        )
1609    
1610        machine(
1611            name("client machine")
1612            serial_nr(1)
1613    
1614            type("sgi")
1615            subtype("o2")
1616    
1617            </b>! load("bsd")<b>
1618            load("bsd.rd")
1619        )
1620    )</b>
1621    </pre></td></tr></table>
1622            ... and another configuration file for the server,
1623            <tt>config_server</tt>:
1624    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1625    <font color="#2020cf">!!gxemul</font>
1626    <b>emul(
1627        net(
1628            local_port(12444)               </b>! the server<b>
1629            add_remote("localhost:12445")   </b>! the client<b>
1630        )
1631    
1632        machine(
1633            name("nfs server")
1634            serial_nr(2)
1635    
1636            type("dec")
1637            subtype("5000/200")
1638    
1639            disk("nbsd_pmax.img")
1640        )
1641    )</b>
1642    </pre></td></tr></table>
1643      <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi
1644            "<tt>client machine</tt>" as two separate emulator instances:<pre>
1645            in one xterm:
1646            <b>gxemul @config_server</b>
1647    
1648            and then, in another xterm:
1649            <b>gxemul @config_client</b>
1650    
1651    </pre>
1652      <li>In the OpenBSD/sgi window, choose "<tt>s</tt>" (for Shell), and type:
1653    <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1654    <b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254
1655    mount -v 10.0.0.2:/tftpboot /mnt
1656    cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt
1657    halt</b>
1658    </pre></td></tr></table>
1659            You might want to log in as <tt>root</tt> on the server machine, and
1660            run <tt>tcpdump -lnvv</tt> or similar, to see that what the client
1661            machine actually does on the network. The <tt>MAKEDEV</tt> script
1662            takes almost forever, so be patient.
1663    </ol>
1664    
1665    
1666    <p><font color="#ff0000">NOTE: Everything up to this point should work.
1667    However, the next step (in gray) doesn't actually work:</font>
1668    
1669    <p><font color="#888888">Once everything has been set up correctly, change
1670    <tt>bsd.rd</tt> in <tt>config_client</tt> to just <tt>bsd</tt> (the GENERIC
1671    kernel). It should now be possible to boot OpenBSD/sgi using the NetBSD/pmax
1672    nfs server. (When asked for "<tt>root device :</tt>" on the OpenBSD machine,
1673    enter <tt><b>mec0</b></tt>.)</font>
1674    
1675    <p><font color="#ff0000">But it doesn't work. Probably because GXemul's
1676    implementation of the mec (ethernet card used in the O2) is too much of
1677    a quick hack. For now, use the <tt>bsd.rd</tt> kernel, and (at every
1678    boot) type:</font><pre>
1679            <b>s</b>  (for Shell)
1680            <b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254</b>
1681            <b>mount -v 10.0.0.2:/tftpboot /mnt</b>
1682            <b>cd /mnt; usr/sbin/chroot .</b>
1683            <b>sh etc/rc</b>
1684    </pre>
1685    
1686    <p><font color="#ff0000">This will not cause OpenBSD to be booted
1687    normally, but at least a few basic things will work.
1688    By the way, the emulator performs so poorly, that you will have time to
1689    fetch several cups of coffee for each of the steps above.</font>
1690    
1691    
1692    
1693    
1694    
1695    
1696    
1697    
1698    <p><br>
1699    <a name="netbsdnetwinderinstall"></a>
1700    <h3>NetBSD/netwinder:</h3>
1701    
1702    <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
1703    could possibly run in GXemul. <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1704    
1705    <p>It is tricky to install, because there is (as far as I know) no INSTALL
1706    kernel. One way to install the NetBSD/netwinder distribution onto a disk
1707    image is to install the files using another (emulated) machine.
1708    
1709    <p>
1710    The following instructions will let you install the NetBSD/netwinder
1711    distribution onto a disk image, from an emulated DECstation 3MAX machine:
1712    
1713    <p>
1714    <ol>
1715      <li>Install NetBSD/pmax 2.0.2 according to instructions
1716            <a href="#netbsdinstall">further up on this page</a>.
1717      <p>
1718      <li>Create an empty harddisk image, which will be the disk image
1719            that you will install NetBSD onto:<pre>
1720            <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
1721    
1722    </pre>
1723      <li>Download the generic kernel and the 2.0.2 ISO image:<pre>
1724            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
1725            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/netwindercd.iso</a>
1726    
1727    </pre>
1728      <p>
1729      <li>Start NetBSD/pmax like this:<pre>
1730            <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>
1731    
1732    </pre>and execute the following commands as <tt>root</tt>:
1733    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1734    <b>newfs /dev/sd1c
1735    mount /dev/cd0c /mnt
1736    mkdir /mnt2; mount /dev/sd1c /mnt2
1737    cd /mnt2; sh
1738    for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
1739    exit
1740    cd dev; sh ./MAKEDEV all; cd ../etc
1741    echo rc_configured=YES >> rc.conf
1742    echo "/dev/wd0c / ffs rw 1 1" > fstab
1743    cd /; umount /mnt; umount /mnt2; halt</b>
1744    </pre></td></tr></table>
1745    </ol>
1746    
1747    <p>You should now be able to boot NetBSD/evbmips using this command:<pre>
1748            <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1749    </pre>
1750    
1751    <p>Note: The installation instructions above create a filesystem
1752    <i>without</i> a disklabel, so there is only one ffs partition and no
1753    swap. You will need to enter the following things when booting with the
1754    generic kernel:<pre>
1755            root device (default wd0a): <b>wd0c</b>
1756            dump device (default wd0b): <b>none</b>
1757            file system (default generic):    <i>(just press enter)</i>
1758            init path (default /sbin/init):   <i>(just press enter)</i>
1759    </pre>
1760    
1761    
1762    
1763    
1764    
1765    

Legend:
Removed from v.8  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.26