/[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 16 by dpavlin, Mon Oct 8 16:19:01 2007 UTC revision 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC
# Line 4  Line 4 
4  <table border=0 width=100% bgcolor="#d0d0d0"><tr>  <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5  <td width=100% align=center valign=center><table border=0 width=100%><tr>  <td width=100% align=center valign=center><table border=0 width=100%><tr>
6  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7  <b>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;</b></font>  <b>Gavare's eXperimental Emulator:</b></font><br>
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.93 2005/10/11 03:31:26 debug Exp $  $Id: guestoses.html,v 1.149 2006/06/25 02:36:46 debug Exp $
14    
15  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
16    
17  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
18  modification, are permitted provided that the following conditions are met:  modification, are permitted provided that the following conditions are met:
# Line 48  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">NetBSD/pmax</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0 or 1.6.2</a>
52    <li><a href="#netbsdarcinstall">NetBSD/arc</a>    <li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a>
53    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.0</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 2.1</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 2.1</a>
56    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.0</a>
57    <li><a href="#netbsdcatsinstall">NetBSD/cats</a>    <li><a href="#netbsdcatsinstall">NetBSD/cats 3.0</a>
58    <li><a href="#openbsdinstall">OpenBSD/pmax</a>    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>
59    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
60    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
61    <li><a href="#ultrixinstall">Ultrix/RISC</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>
62      <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
63    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
64    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
65    <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>    <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>
66  </ul>  </ul>
67    
 <p>In addition to the "working" guest operating systems listed above,  
 you might find the following information interesting:  
 <ul>  
   <li><a href="#mach">Mach/PMAX</a>  
   <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>  
   <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>  
 </ul>  
   
68    
69    
70    
# Line 82  you might find the following information Line 75  you might find the following information
75  <h3>General notes on running "guest OSes":</h3>  <h3>General notes on running "guest OSes":</h3>
76    
77  The emulator works well enough to run complete operating systems. These  The emulator works well enough to run complete operating systems. These
78  are often refered to as "guest" operating systems.  are often refered to as <i>guest</i> operating systems, in contrast to the
79    <i>host</i> operating system which the emulator is running under.
80    
81  <p>  <p>Although it is possible to let a guest OS access real hardware, such as
82  Although it is possible to let a guest OS access real hardware, such as  harddisks, it is much more flexible and attractive to simulate harddisks
83  harddisks, it is much more flexible and attractive to simulate harddisks  using files residing in the host's filesystem. On Unix-like systems, files
84  using files residing in the host's filesystem. On Unix-like systems, files  may contain holes, which makes this really simple. To the guest operating
 may contain holes, which makes this really simple. To the guest operating  
85  system, the harddisk image looks and acts like a real disk.  system, the harddisk image looks and acts like a real disk.
86    
87    <p>The version numbers of the various operating systems were the latest
88    versions that worked satisfactory with GXemul at the time this page was
89    updated; if new versions have been released since then, they might work as
90    well.
91    
92    <p>In addition to the "working" guest operating systems listed above,
93    you might find the following information interesting: (Some of these might
94    not be relevant for this specific release of GXemul.)
95    
96    <ul>
97      <li><a href="#mach">Mach/PMAX</a>
98      <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
99      <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
100      <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
101      <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a>
102      <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>
103    </ul>
104    
105    <p>Some operating systems are listed with a version number <i>less</i>
106    than what was available at the time of this GXemul release (e.g.
107    NetBSD/prep). The reasons for this is because of incompleteness in
108    GXemul's machine, device, and/or processor implementations.
109    
110    
111    
# Line 99  system, the harddisk image looks and act Line 114  system, the harddisk image looks and act
114    
115    
116  <p><br>  <p><br>
117  <a name="netbsdinstall"></a>  <a name="netbsdpmaxinstall"></a>
118  <h3>NetBSD/pmax:</h3>  <h3>NetBSD/pmax:</h3>
119    
120  <p>  <p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the
121  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  first guest OS that could be installed onto a disk image in GXemul. The
122    device emulation of the DECstation 5000/200 is reasonably complete; it
123    should be enough to emulate a networked X-windows-capable workstation.
124    
125    <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,
126    newer NetBSD releases have changed slightly, and nowadays X does not
127    work straight away. (It seems that this has to do with NetBSD switching
128    console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had
129    time to figure out how to make it work; at worst it might require a kernel
130    recompilation.) What this means is that if you want to use emulated X11,
131    then you need to run NetBSD 1.6.2. If you feel that you only need
132    serial-console emulation, then choose the latest NetBSD version available.
133    
134    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
135  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>
136    
137  <p>To install <a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a>  <p>To install NetBSD/pmax onto a harddisk image in the emulator,
138  onto a harddisk image in the emulator, follow these instructions:  follow these instructions:
139    
140  <p><ol start="1">  <p><ol start="1">
141    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
142          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
143          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b>          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=1900000</b>
144    
145  </pre>  </pre>
146  </ol>  </ol>
# Line 127  steps: Line 155  steps:
155  <ol start="2">  <ol start="2">
156    
157    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
158          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a>
159          or          or
160          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso</a>
161    
162  </pre>  </pre>
163    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
164          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b>
165            (or <b>pmaxcd.iso</b>)
166  </pre>  </pre>
167          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
168          DECstation. Remember to choose <tt>vt100</tt> as your terminal          DECstation. Remember to choose <tt>vt100</tt> as your terminal
# Line 145  For an ftp install, substitute steps 2 a Line 174  For an ftp install, substitute steps 2 a
174  <ol start="2">  <ol start="2">
175    
176    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
177          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
178          or          or
179          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz</a>
180    
181  </pre>  </pre>
182    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
183          <b>gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>
184  </pre>  </pre>
185          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
186          DECstation. Remember to choose <tt>vt100</tt> as your terminal          DECstation. Remember to choose <tt>vt100</tt> as your terminal
# Line 181  NetBSD from the harddisk image:<pre> Line 210  NetBSD from the harddisk image:<pre>
210          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
211  </pre>  </pre>
212    
213  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2  <p>If you installed NetBSD/pmax 1.6.2, then try the following to start
214  doesn't work with X out-of-the-box on pmax. It seems that this has to do  with a framebuffer:<pre>
 with NetBSD switching console system to "WSCONS" somewhere between 1.6.2  
 and 2.0. For now, if you want X, then try NetBSD 1.6.2.  
   
 <p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre>  
215          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
216  </pre>  </pre>
217  and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.  and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.
# Line 202  and log in as <tt>root</tt> and type <tt Line 227  and log in as <tt>root</tt> and type <tt
227  <a name="netbsdarcinstall"></a>  <a name="netbsdarcinstall"></a>
228  <h3>NetBSD/arc:</h3>  <h3>NetBSD/arc:</h3>
229    
230  It is possible to install and run <a  It is possible to install and run an old version of <a
231  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>
232  on an emulated Acer PICA-61 in the emulator.  on an emulated Acer PICA-61 in the emulator.
233    
# Line 211  on an emulated Acer PICA-61 in the emula Line 236  on an emulated Acer PICA-61 in the emula
236  <a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a>  <a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a>
237    
238  <p>  <p>
239  To install NetBSD/arc from a CDROM image onto an emulated harddisk image,  To install NetBSD/arc 1.6.2 from a CDROM image onto an emulated
240  follow these instructions:  harddisk image, follow these instructions:
241    
242  <p>  <p>
243  <ol start="1">  <ol start="1">
# Line 223  follow these instructions: Line 248  follow these instructions:
248  </pre>  </pre>
249    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc
250          kernel:<pre>          kernel:<pre>
251          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso</a>
252            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>
253    
         <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>  
254  </pre>  </pre>
255    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
256          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \
# Line 235  follow these instructions: Line 260  follow these instructions:
260          (Try removing <tt>-x</tt> if you have problems with the xterm.)          (Try removing <tt>-x</tt> if you have problems with the xterm.)
261      <p>      <p>
262    <li>From now on, you have to use your imagination, as there is no    <li>From now on, you have to use your imagination, as there is no
263          automatic installation program for NetBSD/arc. Here are some tips          automatic installation program for NetBSD/arc 1.6.2. Here are
264          and hints on how you can proceed with the install:          some tips and hints on how you can proceed with the install:
265  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
266  <b>mount /dev/cd0a /mnt2  <b>mount /dev/cd0a /mnt2
267  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',
# Line 250  cd ../etc; echo "rc_configured=YES" &gt; Line 275  cd ../etc; echo "rc_configured=YES" &gt;
275  cat > /mnt/etc/fstab  cat > /mnt/etc/fstab
276  /dev/sd0a / ffs rw 1 1  /dev/sd0a / ffs rw 1 1
277  /dev/sd0b none swap sw 0 0  /dev/sd0b none swap sw 0 0
278  </b>(press ctrl-d)<b>  </b>(press ctrl-d)
279  <b>cd /; umount /mnt; umount /mnt2  <b>cd /; umount /mnt; umount /mnt2
280  halt</b>  halt</b>
281  </pre></td></tr></table>  </pre></td></tr></table>
# Line 324  important difference is regarding the fr Line 349  important difference is regarding the fr
349  </table>  </table>
350    
351  <p>  <p>
352  (<super>*</super>) = not aligned at a 4 KB boundary, so it will not work  (<super>*</super>) = not aligned at a page boundary, so it will not work
353  efficiently with the current bintrans system. Using this mode will still  efficiently with the current dyntrans system. Using this mode will still
354  work, but each load and store will be emulated much more slowly than is  work, but each load and store will be emulated much more slowly than is
355  possible with an aligned framebuffer.  possible with an aligned framebuffer.
356    
# Line 350  NetBSD/hpcmips on an emulated MobilePro Line 375  NetBSD/hpcmips on an emulated MobilePro
375          <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>
376    
377  </pre>  </pre>
378    <li>Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>
379          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/hpcmipscd-3.0.iso">hpcmipscd-3.0.iso</a>
380    
381          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
382    
383  </pre>  </pre>
384    <p>    <p>
385    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
386          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \
387            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b>
388    
389  </pre>  </pre>
390          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
391          MobilePro 770. (Install onto wd0, choose "Use entire disk" when          MobilePro 770. (Install onto wd0, choose "Use entire disk" when
392          doing the MBR partitioning, and choose wd1d (not cd0c) as the          doing the MBR partitioning, and choose to install from CD-ROM.)
         CDROM device to install from.)  
393  </ol>  </ol>
394    
395  <p>  <p>
# Line 397  is available. This makes it a bit akward Line 421  is available. This makes it a bit akward
421    
422  <a href="http://www.netbsd.org/Ports/cobalt/">NetBSD/cobalt</a> is tricky  <a href="http://www.netbsd.org/Ports/cobalt/">NetBSD/cobalt</a> is tricky
423  to install, because the Cobalt machines were designed for Linux, and not  to install, because the Cobalt machines were designed for Linux, and not
424  very flexible. There is no INSTALL kernel for NetBSD/cobalt. One way to  very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt.
425  install the NetBSD/cobalt distribution onto a disk image is to do it from  One way to install the NetBSD/cobalt distribution onto a disk image is to
426  another (emulated) machine.  do it from another (emulated) machine.
427    
428  <p>  <p>
429  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 416  image, from an emulated DECstation 3MAX Line 440  image, from an emulated DECstation 3MAX
440          <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>
441    
442  </pre>  </pre>
443    <li>Download the generic kernel for Cobalt and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>
444          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
445          <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.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso</a>
446    
447  </pre>  </pre>
448    <p>    <p>
449    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
450          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
451    <p>    <p>
452    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
453          <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>          <b>gxemul -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>
454    
455  </pre>  </pre>
456    <li>Log in as root (on the emulated 3MAX machine), and execute the    <li>Log in as root (on the emulated 3MAX machine), and execute the
# Line 487  image, from an emulated DECstation 3MAX Line 511  image, from an emulated DECstation 3MAX
511    
512  <p>  <p>
513  <ol>  <ol>
514    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
515          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
516    <p>    <p>
517    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
518          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
519          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>
520    
521  </pre>  </pre>
522    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel and the 2.1 ISO image:<pre>
523          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
524          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso</a>
525    
526  </pre>  </pre>
527    <p>    <p>
528    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
529          <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>
530    
531  </pre>and execute the following commands as <tt>root</tt>:  </pre>and execute the following commands as <tt>root</tt>:
532  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
# Line 523  cd /; umount /mnt; umount /mnt2; halt</b Line 547  cd /; umount /mnt; umount /mnt2; halt</b
547          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
548  </pre>  </pre>
549    
550  <p>Note 1: NetBSD detects a very fast CPU although the emulation isn't  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
 really that fast, so emulated delays are very slow. Even on a multi-GHz  
 host, you will need a lot of patience.  
   
 <p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  
551  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD
552  2.0.2, however, there will be little or no difference in functionality, as  2.1, however, there will be little or no difference in functionality, as
553  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
554  it makes in practice is that GXemul's binary translation subsystem might  that differ:<ol>
555  run a bit faster (because there are some optimizations for 32-bit    <li>The dynamic translation core runs faster when emulating 32-bit
556  emulation that don't work with 64-bit emulation).          processors, so <tt><b>-C 4Kc</b></tt> might make things go faster.
557      <li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc
558            emulation slower in general, because there are more TLB misses.
559    </ol>
560    
561  <p>Note 3: The installation instructions above create a filesystem  <p>The installation instructions above create a filesystem
562  <i>without</i> a disklabel, so there is only one ffs partition and no  <i>without</i> a disklabel, so there is only one ffs partition and no
563  swap. You will need to enter the following things when booting with the  swap. You will need to enter the following things when booting with the
564  generic kernel:<pre>  generic kernel:<pre>
# Line 557  generic kernel:<pre> Line 580  generic kernel:<pre>
580    
581  <p>  <p>
582  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
583  <a href="20050626-netbsd-sgimips-netboot.png"><img src="20050626-netbsd-sgimips-netboot_small.png"></a>  <a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a>
584    
585  <p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run  <p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run
586  in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet  in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet
# Line 565  emulate the AHC PCI SCSI controller in t Line 588  emulate the AHC PCI SCSI controller in t
588  several times, asking for documentation, but never received any reply.)  several times, asking for documentation, but never received any reply.)
589  NetBSD can still run in the emulator, as long as it doesn't use SCSI.  NetBSD can still run in the emulator, as long as it doesn't use SCSI.
590    
591  <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try  <p>For a simple test with the ramdisk/install kernel, try
592  dowloading<pre>  dowloading<pre>
593          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.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>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
594    
595  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.
596    
597  <p>It is possible to set up an environment for netbooting the emulated SGI  <p>It is possible to set up an environment for netbooting the emulated SGI
598  machine off of another emulated machine. Performing this setup is quite  machine off of another emulated machine. Performing this setup is quite
# Line 579  time consuming, but necessary: Line 602  time consuming, but necessary:
602  <ol>  <ol>
603    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
604          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
605          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.
606          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
607    <p>    <p>
608    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
609          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
610          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
611  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
612          inside the emulator:          inside the emulator:
613  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
# Line 616  reboot</b> Line 639  reboot</b>
639          NetBSD/sgimips distribution sets:<br>(NOTE: This          NetBSD/sgimips distribution sets:<br>(NOTE: This
640          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
641  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
642  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>
643  (log in as anonymous...)  (log in as anonymous...)
644  <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-3.0/sgimips/binary/sets
645  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz
646  quit  quit
647  sh  sh
# Line 629  dd if=/dev/zero of=swap bs=1024 count=32 Line 652  dd if=/dev/zero of=swap bs=1024 count=32
652  halt</b>  halt</b>
653  </pre></td></tr></table>  </pre></td></tr></table>
654    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
655          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.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>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
656          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.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>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
657    
658  </pre>  </pre>
659    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
660  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
661  <font color="#2020cf">!!gxemul  <font color="#2020cf">!  Configuration file for running NetBSD/sgimips diskless with
 !  
 !  Configuration file for running NetBSD/sgimips diskless with  
662  !  a NetBSD/pmax machine as the nfs server.</font>  !  a NetBSD/pmax machine as the nfs server.</font>
663    
664  <b>emul(  <b>    net(
     net(  
665          add_remote("localhost:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
666          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
667      )      )
# Line 656  halt</b> Line 676  halt</b>
676          load("netbsd-INSTALL32_IP3x.gz")</b>          load("netbsd-INSTALL32_IP3x.gz")</b>
677          ! load("netbsd-GENERIC32_IP3x.gz")<b>          ! load("netbsd-GENERIC32_IP3x.gz")<b>
678      )      )
679  )</b>  </b>
680  </pre></td></tr></table>  </pre></td></tr></table>
681          ... and another configuration file for the server,          ... and another configuration file for the server,
682          <tt>config_server</tt>:          <tt>config_server</tt>:
683  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
684  <font color="#2020cf">!!gxemul</font>  <b>    net(
 <b>emul(  
     net(  
685          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
686          add_remote("localhost:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
687      )      )
# Line 677  halt</b> Line 695  halt</b>
695    
696          disk("nbsd_pmax.img")          disk("nbsd_pmax.img")
697      )      )
698  )</b>  </b>
699  </pre></td></tr></table>  </pre></td></tr></table>
700    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips
701          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
# Line 745  to IPv4. Line 763  to IPv4.
763  It is possible to install and run  It is possible to install and run
764  <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.  <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.
765    
766  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
767  <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>  <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>
768    
769  <p>  <p>
# Line 755  To install NetBSD/cats onto a disk image Line 772  To install NetBSD/cats onto a disk image
772  <p>  <p>
773  <ol start="1">  <ol start="1">
774    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
775          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/cats onto:<pre>
776          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>
777    
778  </pre>  </pre>
779    <li>Download the NetBSD/cats 2.0.2 ISO image and generic + install kernels:<pre>    <li>Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:<pre>
780          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso</a>
781          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
782          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
783    
784  </pre>  </pre>
785    <p>    <p>
786    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
787          <b>gxemul -XEcats -d nbsd_cats.img -d catscd.iso netbsd.aout-INSTALL.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz</b>
788    
789  </pre>  </pre>
790          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
791          CATS from CDROM. (Install onto wd0, and choose wd1c (not cd0c) as the          CATS from CDROM.
         CDROM device to install from.)  
792  </ol>  </ol>
793    
794    <p>Alternatively, to install from FTP, you can skip downloading the ISO,
795    and start the install without <tt>-d catscd-3.0.iso</tt>. Suitable network
796    settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
797    255.0.0.0, nameserver 10.0.0.254.
798    
799  <p>If everything worked, NetBSD should now be installed on the disk image.  <p>If everything worked, NetBSD should now be installed on the disk image.
800  Use the following command line to boot the emulated CATS machine:<pre>  Use the following command line to boot the emulated CATS machine:<pre>
801          <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>
802    
803  </pre>  </pre>
804    
 <p>When asked for root device, enter <tt>wd0</tt>.  
805    
806    
807    
# Line 789  Use the following command line to boot t Line 809  Use the following command line to boot t
809    
810    
811  <p><br>  <p><br>
812  <a name="openbsdinstall"></a>  <a name="netbsdevbarminstall"></a>
813    <h3>NetBSD/evbarm:</h3>
814    
815    <a href="http://www.netbsd.org/Ports/evbarm/">NetBSD/evbarm</a> can
816    run in GXemul on an emulated IQ80321 evaluation board.
817    
818    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
819    <a href="20060218-netbsd-evbarm.png"><img src="20060218-netbsd-evbarm_small.png"></a>
820    
821    <p>It is tricky to install, because there is (as far as I know) no INSTALL
822    kernel. One way to install the NetBSD/evbarm distribution onto a disk
823    image is to install the files using another (emulated) machine.
824    
825    <p>The following instructions will let you install NetBSD/evbarm onto a disk
826    image, from an emulated CATS machine:
827    
828    <p>
829    <ol>
830      <li>Install NetBSD/cats 3.0 according to instructions
831            <a href="#netbsdcatsinstall">further up on this page</a>.
832      <p>
833      <li>Create an empty harddisk image, which will be the disk image
834            that you will install NetBSD onto:<pre>
835            <b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b>
836    
837    </pre>
838      <li>Download an IQ80321 kernel with wdc support, and the 2.1 ISO image:<pre>
839            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel/netbsd-wd0-IQ80321.gz">netbsd-wd0-IQ80321.gz</a>
840            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbarmcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbarmcd.iso</a>
841    
842    </pre>
843      <p>
844      <li>The first step is to copy the .tgz files we want onto the CATS
845            machine's harddisk. Start the CATS machine like this:<pre>
846            <b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b>
847    
848    </pre>and execute the following commands as <tt>root</tt>:
849    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
850    <b>mount /dev/cd0a /mnt; cd /root; cp /mnt/evbarm/binary/sets/[bcegmt]* .
851    sync; halt</b>
852    </pre></td></tr></table>
853      <p>
854      <li>Now let's extract the files onto the IQ80321's disk image. Start the
855            CATS machine again, with the following command line:<pre>
856            <b>gxemul -XEcats -d nbsd_cats.img -d nbsd_iq80321.img netbsd.aout-GENERIC.gz</b>
857    
858    </pre>and execute the following commands as <tt>root</tt>:
859    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
860    <b>disklabel -I -i wd1</b>
861        (enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b,
862         swap, a, 200M, P, W, y, Q</i>)
863    <b>newfs /dev/wd1a; mount /dev/wd1a /mnt; cd /mnt; sh
864    for a in /root/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done
865    exit
866    cd dev; sh ./MAKEDEV all; cd ../etc
867    echo rc_configured=YES &gt;&gt; rc.conf
868    echo "/dev/wd0a / ffs rw 1 1" &gt; fstab
869    echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab
870    cd /; umount /mnt; sync; halt</b>
871    </pre></td></tr></table>
872    </ol>
873    
874    <p>You should now be able to boot NetBSD/evbarm using this command:<pre>
875            <b>gxemul -xEiq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b>
876    </pre>
877    
878    
879    
880    
881    
882    
883    <p><br>
884    <a name="netbsdprepinstall"></a>
885    <h3>NetBSD/prep:</h3>
886    
887    It is possible to install and run
888    <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul
889    on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc
890    controller in a way which isn't implemented in GXemul yet.)
891    
892    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
893    <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>
894    
895    <p>To install NetBSD/prep onto a disk image, follow these instructions:
896    
897    <p>
898    <ol start="1">
899      <li>Create an empty harddisk image, which will be the root disk
900            that you will install NetBSD/prep onto:<pre>
901        <b>dd if=/dev/zero of=nbsd_prep.img bs=1024 count=1 seek=1000000</b>
902    
903    </pre>
904      <li>Download the NetBSD/prep 2.1 ISO image and the generic kernel:<pre>
905        <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/prepcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/prepcd.iso</a>
906        <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-GENERIC.gz</a>
907    
908    </pre>
909      <p>
910      <li>Start the installation like this:<pre>
911        <b>gxemul -x -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>
912    
913    </pre>
914      <p>
915      <li>Installation is a bit unsmooth, possibly due to bugs in GXemul,
916            possibly due to bugs in NetBSD itself; others have been having
917            problems on real hardware: <a href="http://mail-index.NetBSD.org/port-prep/2005/11/25/0004.html">http://mail-index.NetBSD.org/port-prep/2005/11/25/0004.html</a>.
918            Creating an MBR slice and a disklabel with sysinst bugs out, so
919            some things have to be done manually:<p>
920            At "<tt>(I)nstall, (S)hell, or (H)alt</tt>", choose
921                    <tt><b><u>s</u></b></tt>.
922            <br><tt># <b><u>fdisk -u wd0</u></b></tt>
923            <br><tt>Do you want to change our idea of what BIOS thinks? [n]</tt>
924                    (just press <b>ENTER</b>)
925            <br><tt>Which partition do you want to change?: [none] <b><u>0</u></b></tt>
926            <br><tt>sysid: ... </tt> (just press <B>ENTER</b>)
927            <br><tt>start: ... <b><u>1cyl</u></b></tt>
928            <br><tt>size: ... </tt> (just press <B>ENTER</b>)
929            <br><tt>Which partition do you want to change?: [none]</tt> (press <b>ENTER</b>)
930            <br><tt>Should we write new partition table? [n] <b><u>y</u></b></tt>
931            <br><tt># <b><u>disklabel -I -i wd0</u></b></tt>
932            <br><tt>partition&gt; <b><u>a</u></b></tt>
933            <br><tt>Filesystem type [?] [unused]: <b><u>4.2BSD</u></b></tt>
934            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>1c</u></b></tt>
935            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>900M</u></b></tt>
936            <br><tt>partition&gt; <b><u>b</u></b></tt>
937            <br><tt>Filesystem type [?] [unused]: <b><u>swap</u></b></tt>
938            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>a</u></b></tt>
939            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>$</u></b></tt>
940            <br><tt>partition&gt; <b><u>W</u></b></tt>
941            <br><tt>Label disk [n]? <b><u>y</u></b></tt>
942            <br><tt>partition&gt; <b><u>Q</u></b></tt>
943            <br><tt># <b><u>newfs wd0a</u></b></tt>
944            <br><tt># <b><u>sysinst</u></b></tt>
945            <br>Choose to install onto <b>wd0</b>. Choose
946                    "<tt>a: Edit the MBR partition table</tt>"
947                    when presented with that option.
948            <br>Choose the 'a' partition/slice,
949                    set the 'e' ("active") and 'f' ("install") fields to <b>Yes</b>,
950                    and then choose "<tt>x: Partition table OK</tt>".
951            <br>Choose "<tt>b: Use existing partition sizes</tt>" in the next
952                    menu.
953            <br>Select partition 'a' and press ENTER. Set field 'k' (mount point)
954                    to '<tt><b>/</b></tt>'.
955            <br>Get out of the partitioner by selecting
956                    "<tt>x: Partition sizes ok</tt>" twice.
957            <br>At "<tt>Write outside MBR partition? [n]:</tt>", just press
958                    <b>ENTER</b>.
959            <br>Install from CD-ROM, device <b>wd1c</b>.
960    </ol>
961    
962    <p>If everything worked, NetBSD should now be installed on the disk image.
963    Use the following command line to boot the emulated machine:<pre>
964            <b>gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>
965    
966    </pre>
967    
968    <p>When asked which the root device is, type <tt><b>wd0</b></tt> and
969    just press ENTER to select the default values for dump device, file
970    system type, and init path.
971    
972    
973    
974    
975    
976    
977    <p><br>
978    <a name="openbsdpmaxinstall"></a>
979  <h3>OpenBSD/pmax:</h3>  <h3>OpenBSD/pmax:</h3>
980    
981  Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is  Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is
982  a bit harder than installing NetBSD/pmax. You should first read the <a  a bit harder than installing NetBSD/pmax. You should first read the <a
983  href="#netbsdinstall">section above</a> on how to install NetBSD/pmax,  href="#netbsdpmaxinstall">section above</a> on how to install NetBSD/pmax,
984  before continuing here. If you have never installed OpenBSD on any  before continuing here. If you have never installed OpenBSD on any
985  architecture, then you need a great deal of patience to do this. If, on  architecture, then you need a great deal of patience to do this. If, on
986  the other hand you are used to installing OpenBSD, then this should be no  the other hand you are used to installing OpenBSD, then this should be no
# Line 838  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1024  chmod +w simpleroot28.fs</b>           &lt;--- ma
1024          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1025          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1026          <b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b>          <b>mkisofs -o openbsd_pmax_2.8.iso ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax</b>
1027            <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1028    
1029  </pre>  </pre>
1030    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
1031          <b>gxemul -e 3max -A -M64 -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>          <b>gxemul -e 3max -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>
1032    
1033  </pre>  </pre>
1034          (If you add <tt>-X</tt>, you will run with the graphical          (If you add <tt>-X</tt>, you will run with the graphical
# Line 876  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1063  chmod +w simpleroot28.fs</b>           &lt;--- ma
1063          password! The first time you boot up OpenBSD after the install, you          password! The first time you boot up OpenBSD after the install, you
1064          need to go into single user mode and run <b>passwd root</b> to set          need to go into single user mode and run <b>passwd root</b> to set
1065          the root password, or you will not be able to log in at all!<pre>          the root password, or you will not be able to log in at all!<pre>
1066          <b>gxemul -e 3max -A -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>          <b>gxemul -e 3max -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>
1067  </pre>  </pre>
1068  While you are at it, you might want to extract the X11 install sets  While you are at it, you might want to extract the X11 install sets
1069  as well, as the installer seems to ignore them too. (Perhaps due to a bug  as well, as the installer seems to ignore them too. (Perhaps due to a bug
# Line 910  root password, and so on. Line 1097  root password, and so on.
1097  Once you have completed the installation procedure, the following command  Once you have completed the installation procedure, the following command
1098  will let you boot from the new rootdisk image:  will let you boot from the new rootdisk image:
1099  <pre>  <pre>
1100          <b>gxemul -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>          <b>gxemul -e 3max -X -o '-aN' -d obsd_pmax.img -j bsd</b>
1101  </pre>  </pre>
1102    
1103  <p>  <p>
# Line 929  enter <b><tt>rcons</tt></b> if you are u Line 1116  enter <b><tt>rcons</tt></b> if you are u
1116    
1117    
1118    
 <p><br>  
 <a name="openbsdarcinstall"></a>  
 <h3>OpenBSD/arc:</h3>  
   
 It is possible to install and run OpenBSD/arc on an emulated Acer PICA-61  
 in the emulator.  
   
 <p>  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
 <a href="20041024-openbsd-arc-installed.gif"><img src="20041024-openbsd-arc-installed_small.gif"></a>  
   
 <p>  
 (You should be aware of the fact that OpenBSD for the ARC platform died at  
 release 2.3, so this will not give you an up-to-date OpenBSD system.  
 See  
 <a href="http://www.openbsd.org/arc.html">http://www.openbsd.org/arc.html</a>  
 for more information.)  
   
 <p>  
 To install OpenBSD/arc onto an emulated harddisk image, follow these  
 instructions:  
   
 <p>  
 <ol>  
   <li>Create an empty harddisk image, which will be the root disk  
         that OpenBSD installs itself onto:<pre>  
         <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>  
   
 </pre>  
   <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>  
         <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>  
   
 </pre>  
   
   <li>You now need to make an ISO image of the entire directory you downloaded.  
         (I recommend using <tt>mkisofs</tt> for that purpose. If you don't  
         already have <tt>mkisofs</tt> installed on your system, you need  
         to install it in order to do this.)<pre>  
         <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>  
   
 </pre>  
   <li>Start the emulator using this command line:<pre>  
         <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>  
   
 </pre>  
         and proceed like you would do if you were installing OpenBSD  
         on a real Acer PICA-61. (Answer 'no' when asked if you want to  
         configure networking, and then install from CD-ROM.)  
 </ol>  
   
 <p>  
 Once the install has finished, the following command should let you  
 boot from the harddisk image:  
 <p>  
 <pre>  
         <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>  
   
 </pre>  
   
   
   
   
   
   
1119    
1120    
1121  <p><br>  <p><br>
# Line 1017  follow these instructions: Line 1140  follow these instructions:
1140    
1141  </pre>  </pre>
1142    <li>Download the entire cats directory from the ftp server:<pre>    <li>Download the entire cats directory from the ftp server:<pre>
1143          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/</a></b>
1144          <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/arc/bsd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .</b>
1145          <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/arc/bsd.rd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .</b>
1146    
1147  </pre>  </pre>
1148            (Replace ftp.openbsd.org with a server closer to you, for
1149            increased download speed.)
1150      <p>
1151    <li>You now need to make an ISO image of the entire directory you downloaded.    <li>You now need to make an ISO image of the entire directory you downloaded.
1152          (I recommend using <tt>mkisofs</tt> for that purpose. If you don't          (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1153          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1154          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1155          <b>mkisofs -allow-lowercase -o openbsd_cats_3.7.iso ftp.openbsd.org/pub/OpenBSD/3.7/cats</b>          <b>mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/</b>
1156            <b>rm -rf ftp.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1157    
1158  </pre>  </pre>
1159    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1160          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.7.iso bsd.rd</b>          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd</b>
1161    
1162  </pre>  </pre>
1163          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
1164          on a real CATS. (Install onto <tt>wd0</tt>, don't configure the          on a real CATS. (Install onto <tt>wd0</tt>, don't configure the
1165          network, choose to install distribution sets from <i>disk</i>          network, install from CD.)
         <tt>wd1</tt> (i.e. not CDROM) partition '<tt>a</tt>',  
         relative path '<tt>/</tt>'.)  
1166  </ol>  </ol>
1167    
1168    <p>(Although it <i>is</i> possible to configure the network, IPv4 address
1169    10.0.0.1, netmask 255.0.0.0, gateway/default route 10.0.0.254, and
1170    nameserver 10.0.0.254, the userland NAT-like networking layer is not
1171    stable enough yet to support a full install via ftp.)
1172    
1173  <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>  <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>
1174  correctly once the installation is finished, or the <tt>/dev</tt> nodes  correctly once the installation is finished, or the <tt>/dev</tt> nodes
1175  may not have been written correctly to disk.  may not have been written correctly to disk.
# Line 1069  also usable.) Line 1198  also usable.)
1198    
1199  <p>  <p>
1200  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1201  <a href="20040504-ultrix45-boot1.png"><img src="20040504-ultrix45-boot1_small.gif"></a>  <a href="20040504-ultrix45-boot1.png"><img src="20040504-ultrix45-boot1_small.png"></a>
1202  &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;
1203  <a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.gif"></a>  <a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.png"></a>
1204    
1205  <p>  <p>
1206  The following instructions should let you install Ultrix onto a disk image:  The following instructions should let you install Ultrix onto a disk image:
# Line 1086  The following instructions should let yo Line 1215  The following instructions should let yo
1215          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
1216          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
1217          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
1218          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>          <b>gxemul -X -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>
1219    
1220  </pre>  </pre>
1221    <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 1094  The following instructions should let yo Line 1223  The following instructions should let yo
1223          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
1224          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
1225          diskimage argument:<pre>          diskimage argument:<pre>
1226          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>          <b>gxemul -X -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>
1227    
1228  </pre>  </pre>
1229  </ol>  </ol>
# Line 1102  The following instructions should let yo Line 1231  The following instructions should let yo
1231  <p>  <p>
1232  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
1233  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
1234          <b>gxemul -X -A -M64 -e 3max -j vmunix -d rootdisk.img</b>          <b>gxemul -X -e 3max -j vmunix -d rootdisk.img</b>
1235  </pre>  </pre>
1236    
1237  <p>Ultrix mostly seems to work with dynamic binary translation (which can  <p>If you have a very fast host machine, you might experience a weird
 be disabled by the <b><tt>-B</tt></b> command line option). If you have a  
 very fast host machine, and use bintrans, you might experience a weird  
1238  timer related bug, which makes it impossible to logon to the system. It is  timer related bug, which makes it impossible to logon to the system. It is
1239  triggered when the emulation goes faster than any real DECstation machine  triggered when the emulation goes faster than any real DECstation machine
1240  was capable of running. A temporary workaround is to add  was capable of running. A temporary workaround is to add
# Line 1124  There is also a <b><tt>-z</tt></b> optio Line 1251  There is also a <b><tt>-z</tt></b> optio
1251  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1252  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1253  <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>
1254          <b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -N -e 3max -jgenvmunix -d rootdisk.img \
1255              -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>
1256  </pre>  </pre>
1257    
# Line 1231  start the X11 environment. Line 1358  start the X11 environment.
1358  <a name="declinux"></a>  <a name="declinux"></a>
1359  <h3>Debian GNU/Linux for DECstation:</h3>  <h3>Debian GNU/Linux for DECstation:</h3>
1360    
1361  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>  It is possible to run Debian GNU/Linux for DECstation in the emulator,
1362  unstable. During my tests, even pressing the wrong key during the install  on an emulated 5000/200 ("3max"). Although the Debian project has released
1363  (for example the wrong cursor key) can cause a kernel Oops. My success  install ramdisk kernels for this purpose, these do not always work:
1364  rate is probably around 50%.</font>  <ul>
1365      <li>Serial console output doesn't work too well in GXemul. Linux
1366  <p><font color="#ef0000">I <i>think</i> this has to do with interrupts          oopses randomly, which may be due to bugs in GXemul, but may
1367  from the serial controller. Hopefully using the <tt><b>-U</b></tt> command          also be due to bugs in the serial controller code in Linux.
1368  line option will reduce the risk for such crashes. (I haven't had time to          (The speed at which serial interrupts are generated can be
1369  come up with a clean solution to this yet; it feels like a buffer overflow          lowered with the <tt>-U</tt> command line option, but it only
1370  in Linux' serial driver for the 5000/200, but it is also likely that it is          reduces the risk, it doesn't take away the oopses completely.)
1371  a bug in GXemul.)</font>    <li>Old install kernels supported the graphical framebuffer on the
1372            3max, but not the keyboard.
1373  <p><font color="#ef0000">Everything runs extremely slow. Even if you have    <li>For quite some time, the MIPS linux cvs tree had support for the
1374  a very fast host machine, an install attempt can still take several hours!          keyboard, but it did <i>not</i> include Debian's patches for
1375  </font>          networking. (Perhaps this has been fixed now, I don't know.)
1376    </ul>
1377    
1378  <p>  <p>David Muse has made available a precompiled install kernel which
1379  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  has support for framebuffer, keyboard, and networking, which works
1380  <a href="20041212-debian_1.png"><img src="20041212-debian_1_small.gif"></a>  pretty well. Thanks David. :-)
 &nbsp;&nbsp;&nbsp;  
 <a href="20041212-debian_2.png"><img src="20041212-debian_2_small.gif"></a>  
 &nbsp;&nbsp;&nbsp;  
 <a href="20041213-debian_3.png"><img src="20041213-debian_3_small.gif"></a>  
 &nbsp;&nbsp;&nbsp;  
 <a href="20041213-debian_4.png"><img src="20041213-debian_4_small.gif"></a>  
1381    
1382  <p>  <p>
1383  The following steps should let you install Debian GNU/Linux for DECstation  The following steps should let you install Debian GNU/Linux for DECstation
# Line 1265  onto a harddisk image: Line 1387  onto a harddisk image:
1387  <ol>  <ol>
1388    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1389          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1390          <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=3000000</b>          <b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=3300000</b>
1391    
1392  </pre>  </pre>
1393    <li>Download an install kernel:<pre>    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>
1394          <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>          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>
1395              <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>          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>
1396    
1397  </pre>  </pre>
1398    <p>    <p>
1399    <li>For a text-mode installation, start the emulator like this:<pre>    <li>Start the installation like this:<pre>
1400          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>
   
1401  </pre>  </pre>
1402          (If you want to, you can try <b><tt>-X</tt></b> instead of  
1403          <b><tt>-o 'console=ttyS3'</tt></b> on the command line. This will          <p>If everything goes well, you will see Linux' boot messages, and then
1404          cause Linux to use the graphical framebuffer. Unfortunately, Linux          arrive at the language chooser.
1405          does not seem to have a driver for the DZ11 keyboard controller yet,  
1406          so you cannot interact with the system. You will see the penguin in  <p>
1407          the upper lefthand corner while booting, and nicely rendered Unicode  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-1.png"><img src="debian-1-small.png"></a>
1408          characters, but that's about it.)  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-2.png"><img src="debian-2-small.png"></a>
1409    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-3.png"><img src="debian-3-small.png"></a>
1410    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-4.png"><img src="debian-4-small.png"></a>
1411    
1412            <p>There will be a warning about the keyboard
1413            layout. Don't mind this. Continue, and then select <b>Detect
1414            and mount CD-ROM</b> in the next menu.
1415    
1416    <p>
1417    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-5.png"><img src="debian-5-small.png"></a>
1418    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-6.png"><img src="debian-6-small.png"></a>
1419    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-7.png"><img src="debian-7-small.png"></a>
1420    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-8.png"><img src="debian-8-small.png"></a>
1421    
1422          <p>          <p>
1423          You need to enter some values during the installation procedure, for          There will also be a warning about lack of loadable modules. Don't
1424          example network settings. The following should work:<pre>          mind this either, continue anyway by choosing <b>Yes</b>.
1425          DHCP:                       No, choose "<b>Configure network manually</b>"          <p>
1426            When you reach the network configuration part of the install, choose
1427            <b>Configure network manually</b> and enter the following values:<pre>
1428          IP address:                 <b>10.0.0.1</b>          IP address:                 <b>10.0.0.1</b>
1429          Netmask:                    <b>255.0.0.0</b>          Netmask:                    <b>255.0.0.0</b>
1430          Gateway:                    <b>10.0.0.254</b>          Gateway:                    <b>10.0.0.254</b>
1431          Name server addresses:      <b>10.0.0.254</b>          Name server addresses:      <b>10.0.0.254</b>
1432    
1433  </pre>  </pre>
1434    <li>Once the first phase of the install has finished, the following command          <p>Choose <b>Erase entire disk</b> in the partitioner.
         should let you boot into Debian, and perform post-install  
         configuration:<pre>  
         <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>  
1435    
1436  </pre>Note: All these steps take a lot of time, so you will have plenty          <p>Wait for the base system to be installed. This takes almost forever,
1437          of time to drink lots of cups of coffee.          so you can go fetch several <a href="http://en.wikipedia.org/wiki/Jolt_Cola">Jolts</a>
1438    <p>          or cups of coffee in the meanwhile.
   <li>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><tt>quit</tt></b>, and then:  
         download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>  
         <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>  
             <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>  
1439    
1440  </pre>and boot Debian using the following command line:<pre>  <p>
1441          <b>gxemul -e 3max -U -M64 -o \  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-9.png"><img src="debian-9-small.png"></a>
1442              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-10.png"><img src="debian-10-small.png"></a>
1443              -d debian.img vmlinux-2.4.27-r3k-kn02</b>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-11.png"><img src="debian-11-small.png"></a>
1444    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-12.png"><img src="debian-12-small.png"></a>
1445    
1446            <p>Congratulations! The first phase of the installation is now completed.
1447            Reboot using the following command line:<pre>
1448            <b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
1449    
1450  </pre>  </pre>
1451          You'll enter single-user mode. You need to add a line to          <p>The post-install step takes quite some time as well. A perfect opportunity
1452          /etc/inittab, to enable logins via serial console.<pre>          for more coffee.
         sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b>  
         sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b>  
         sh-2.05b# <b>sync; umount /</b>  
         sh-2.05b# <b>halt</b>  
 </pre>  
 </ol>  
1453    
1454  <p>          <p>When asked about "Apt configuration", choose <b>http</b> as the method
1455  The system should now be ready for everyday use.          to use for accessing the Debian archive.
1456    
1457  <p>  <p>
1458  Use this command to boot from the completely installed disk image:<pre>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-13.png"><img src="debian-13-small.png"></a>
1459          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-14.png"><img src="debian-14-small.png"></a>
1460    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-15.png"><img src="debian-15-small.png"></a>
1461    
1462            <p>Downloading the packages takes almost forever. Be patient.
1463    
1464            <p>Congratulations (again)! You are now fully done with the installation.
1465    
1466    </ol>
1467    
1468    <p><br>Debian GNU/Linux for DECstation is now installed and ready to be used.
1469    Use this command to boot from the installed disk image:<pre>
1470            <b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
1471    
1472  </pre>  </pre>
1473    
 <p>  
 [&nbsp;<font color="#ff0000">UPDATE 2005-01-19:</font>&nbsp;  
 Kaj-Michael Lang noticed that the current CVS-version of  
 <a href="http://www.linux-mips.org/">linux-mips</a> has  
 support for keyboards now, on DECstation 5000/200, so it is  
 possible to run Debian GNU/Linux with framebuffer/keyboard.  
 (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the  
 <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:  
 <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>  
 It has other problems (ethernet doesn't seem to work, for  
 example), but at least it doesn't Oops that often.&nbsp;]  
1474    
1475    
1476    
# Line 1355  example), but at least it doesn't Oops t Line 1481  example), but at least it doesn't Oops t
1481  <a name="declinuxredhat"></a>  <a name="declinuxredhat"></a>
1482  <h3>Redhat Linux for DECstation:</h3>  <h3>Redhat Linux for DECstation:</h3>
1483    
 <font color="#ff0000">NOTE: This is experimental, and <i>extremely</i>  
 unstable. Read the note about <b><tt>-U</tt></b> in the section on how to  
 install Debian.  
 </font>  
1484    
1485  <p>  <p>
1486  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1369  The following steps should let you run R Line 1491  The following steps should let you run R
1491    
1492  <p>  <p>
1493  <ol>  <ol>
1494    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>    <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>
1495          <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>          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>
             <a href="http://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>  
1496    
1497  </pre>  </pre>
1498    <li>Download a root filesystem tree:<pre>    <li>Download a root filesystem tree:<pre>
# Line 1380  The following steps should let you run R Line 1501  The following steps should let you run R
1501          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
1502    
1503  </pre>  </pre>
1504    <li>This is the tricky part: Create an ext2 filesystem image called redhat.img using    <li>Create a disk image which will contain the Redhat filesystem:<pre>
1505          the filesystem tree you just downloaded. The disk image should have a MS-DOS          <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>
1506          partition table (!), and then one or more ext2 partitions.  
1507          (Use loopback mount, or similar. This is probably easiest to do on a Linux host.)  </pre>
1508          However, in order to actually boot the system you need to modify /etc/fstab.    <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS
1509            (!) partition table, and then an ext2 partition. This is what Linux
1510            will then see as /dev/sda1.
1511            <p>I recommend you run fdisk and mke2fs and untar the archive from within
1512            Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running
1513            inside the emulator. (Alternatively, if you are on a Linux host,
1514            you could use a loopback mount, or similar. This might require
1515            root access. See e.g.
1516            <a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.)
1517            <p>
1518            In order to actually boot the system you need to modify /etc/fstab.
1519          Change<pre>          Change<pre>
1520          /dev/root               /               nfs     defaults        1 1          /dev/root               /               nfs     defaults        1 1
1521          #/dev/sdc1              /               ext2    defaults        1 1          #/dev/sdc1              /               ext2    defaults        1 1
# Line 1398  The following steps should let you run R Line 1529  The following steps should let you run R
1529          none                    /dev/pts        devpts  mode=0622       0 0          none                    /dev/pts        devpts  mode=0622       0 0
1530    
1531  </pre>(Note sda1 instead of sdc1.)  </pre>(Note sda1 instead of sdc1.)
   <p>  
   <li>To boot Linux, start the emulator like this:<pre>  
         <b>gxemul -e 3max -U -M128 -o \  
             "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>  
   
 </pre>  
1532  </ol>  </ol>
1533    
1534  <p>  <p>To boot Redhat linux from the disk image, use the following command line:<pre>
1535  If you need to boot into single user mode, try the following:<pre>          <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>
         <b>gxemul -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \  
             -d redhat.img vmlinux-2.4.27-r3k-kn02</b>  
1536    
1537  </pre>  </pre>
1538    If you need to boot into single user mode, change options to
1539    <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.
1540    
 <p>Redhat Linux on DECstation in R3000 mode should work fine with dynamic  
 binary translation, but if things are buggy, it can be disabled by  
 using the <b><tt>-B</tt></b> command line option.  
   
 <p>  
 NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command  
 line, if you want to use a graphical framebuffer. Unfortunately, Linux  
 doesn't have support for keyboards on DECstation 5000/200 yet, so you cannot  
 actually interact with the sytem. :-(  
   
 <p>  
 [&nbsp;<font color="#ff0000">UPDATE 2005-01-22:</font>&nbsp;  
 Read the 2005-01-19 update in the Debian section above, and then, if  
 you do not need ethernet support, try Kaj-Michael Lang's kernel compiled  
 from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.  
 <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>  
 It should work with framebuffer/keyboard.&nbsp;]  
1541    
1542    
1543    
# Line 1533  it works.</font> Line 1641  it works.</font>
1641  mailed Adaptec several times, asking for documentation, but never received  mailed Adaptec several times, asking for documentation, but never received
1642  any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't  any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't
1643  use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre>  use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre>
1644          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a>          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">bsd.rd</a>
1645    
1646  </pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>.  </pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>.
1647    
1648  <p>It might also be possible to netboot. Another emulated machine must  <p>It might also be possible to netboot. Another emulated machine must
1649  then be used as the nfs root server, and the emulated O2 machine must boot  then be used as the nfs root server, and the emulated O2 machine must boot
# Line 1546  client. Performing this setup is quite t Line 1654  client. Performing this setup is quite t
1654  <ol>  <ol>
1655    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
1656          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1657          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.
1658          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1659    <p>    <p>
1660    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
1661          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
1662          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
1663  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
1664          inside the emulator:          inside the emulator:
1665  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
# Line 1575  reboot</b> Line 1683  reboot</b>
1683  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1684  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
1685  (log in as anonymous...)  (log in as anonymous...)
1686  <b>cd pub/OpenBSD/3.7/sgi  <b>cd pub/OpenBSD/3.9/sgi
1687  mget b*tgz c* e* g* m*  mget b*tgz c*tgz e* g* m*
1688  quit  quit
1689  sh  sh
1690  for a in *.tgz; do echo $a; tar zxfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; done
# Line 1586  dd if=/dev/zero of=swap bs=1024 count=32 Line 1694  dd if=/dev/zero of=swap bs=1024 count=32
1694  halt</b>  halt</b>
1695  </pre></td></tr></table>  </pre></td></tr></table>
1696    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>
1697          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd</a>          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd</a>
1698          MD5 (bsd) = f16eaf3dcbd51876db7c25f70e6d8a08          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd</a>
         <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a>  
         MD5 (bsd.rd) = 4843e6139d8dd04b03d5f0e33e9a4f7b  
1699    
1700  </pre>  </pre>
1701    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
1702  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1703  <font color="#2020cf">!!gxemul  <font color="#2020cf">!  Configuration file for running OpenBSD/sgi diskless with
 !  
 !  Configuration file for running OpenBSD/sgi diskless with  
1704  !  a NetBSD/pmax machine as the nfs server.  !  a NetBSD/pmax machine as the nfs server.
1705  !  !
1706  !  This config file is for the client.</font>  !  This config file is for the client.</font>
1707    
1708  <b>emul(  <b>    net(
     net(  
1709          add_remote("localhost:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
1710          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
1711      )      )
# Line 1617  halt</b> Line 1720  halt</b>
1720          </b>! load("bsd")<b>          </b>! load("bsd")<b>
1721          load("bsd.rd")          load("bsd.rd")
1722      )      )
1723  )</b>  </b>
1724  </pre></td></tr></table>  </pre></td></tr></table>
1725          ... and another configuration file for the server,          ... and another configuration file for the server,
1726          <tt>config_server</tt>:          <tt>config_server</tt>:
1727  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1728  <font color="#2020cf">!!gxemul</font>  <b>    net(
 <b>emul(  
     net(  
1729          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
1730          add_remote("localhost:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
1731      )      )
# Line 1638  halt</b> Line 1739  halt</b>
1739    
1740          disk("nbsd_pmax.img")          disk("nbsd_pmax.img")
1741      )      )
1742  )</b>  </b>
1743  </pre></td></tr></table>  </pre></td></tr></table>
1744    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi
1745          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
# Line 1695  fetch several cups of coffee for each of Line 1796  fetch several cups of coffee for each of
1796    
1797    
1798    
1799    
1800    <p><br>
1801    <a name="openbsdarcinstall"></a>
1802    <h3>OpenBSD/arc:</h3>
1803    
1804    It is (almost) possible to install and run OpenBSD/arc on an emulated Acer
1805    PICA-61 in the emulator.
1806    
1807    <p><font color="#e00000">Earlier, I had this guest OS listed as
1808    officially working in the emulator, but for several reasons, it has
1809    been moved down here to the "informative-but-not-really-working"
1810    section.</font>
1811    
1812    <p>
1813    <ul>
1814      <li>The last OpenBSD/arc release was 2.3. This means that it is very
1815            old, it would not give a fair picture of what OpenBSD is (if you
1816            are just looking to find out what it is like), and it is not
1817            worth experimenting with it. See
1818            <a href="http://www.openbsd.org/arc.html">http://www.openbsd.org/arc.html</a>
1819            for more information.
1820      <li>OpenBSD/arc was (if I understood things correctly) never really
1821            stable, even on real hardare. Problems with too small an interrupt
1822            stack. Bugs are triggered in the emulator that have to do with
1823            issues such as this.
1824    </ul>
1825    
1826    <p>
1827    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1828    <a href="20041024-openbsd-arc-installed.gif"><img src="20041024-openbsd-arc-installed_small.gif"></a>
1829    
1830    <p>
1831    <font color="#e00000">Currently, I don't test for every release whether
1832    or not OpenBSD/arc can be installed. Releases prior to 0.3.7
1833    (but probably <i>not</i> 0.3.7) should work. Anyway, here are the
1834    old installation instructions:</font>
1835    
1836    <p>To install OpenBSD/arc onto an emulated harddisk image, follow these
1837    instructions:
1838    
1839    <p>
1840    <ol>
1841      <li>Create an empty harddisk image, which will be the root disk
1842            that OpenBSD installs itself onto:<pre>
1843            <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>
1844    
1845    </pre>
1846      <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>
1847            <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>
1848    
1849    </pre>
1850    
1851      <li>You now need to make an ISO image of the entire directory you downloaded.
1852            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1853            already have <tt>mkisofs</tt> installed on your system, you need
1854            to install it in order to do this.)<pre>
1855            <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
1856    
1857    </pre>
1858      <li>Start the emulator using this command line:<pre>
1859            <b>gxemul -e pica -X -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>
1860    
1861    </pre>
1862            and proceed like you would do if you were installing OpenBSD
1863            on a real Acer PICA-61. (Answer 'no' when asked if you want to
1864            configure networking, and then install from CD-ROM.)
1865    </ol>
1866    
1867    <p>
1868    Once the install has finished, the following command should let you
1869    boot from the harddisk image:
1870    <p>
1871    <pre>
1872            <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>
1873    
1874    </pre>
1875    
1876    The system is very sensitive to (I think) kernel stack overflow, so it
1877    crashes easily. If I remember correctly from mailing lists, this also
1878    happened on real hardware.
1879    
1880    
1881    
1882    
1883    
1884    
1885    
1886    
1887    
1888    
1889    
1890    <p><br>
1891    <a name="debiancats"></a>
1892    <h3>Debian GNU/Linux for CATS:</h3>
1893    
1894    Debian GNU/Linux for CATS (ARM) could <i>theoretically</i> run in GXemul,
1895    however:
1896    
1897    <ul>
1898      <li>The DEC 21143 NIC is not emulated well enough for Linux to accept it.
1899      <li>Development of Debian for CATS seems to have died? The latest
1900            install kernel is quite old.
1901    </ul>
1902    
1903    <p><font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1904    
1905    <p>The following installation instructions would theoretically work:
1906    
1907    <p>
1908    <ol>
1909      <li>Create an empty harddisk image, which will be the root disk
1910            that Debian installs itself onto:<pre>
1911            <b>dd if=/dev/zero of=debian_cats.img bs=1024 count=1 seek=3300000</b>
1912    
1913    </pre>
1914      <li>Download the tftpboot install kernel:<pre>
1915            <a href="http://ftp.debian.org/debian/dists/oldstable/main/disks-arm/current/cats/tftpboot.img">http://ftp.debian.org/debian/dists/oldstable/main/disks-arm/current/cats/tftpboot.img</a>
1916    
1917    </pre>
1918      <li>Start the installation using the following command line:<pre>
1919            <b>gxemul -XEcats -d debian_cats.img tftpboot.img</b>
1920    
1921    </pre>
1922    </ol>
1923    
1924    <p>It doesn't work, though, because the NIC isn't working well enough.
1925    
1926    <p>The only use of Debian/CATS in the emulator right now is as a way to
1927    manipulate Linux disk images, if you are on a non-Linux host. By choosing
1928    "Execute a shell" in the installer's menu, you can have access to tools such as
1929    fdisk and mke2fs, which are useful for creating Linux paritions on disk images.
1930    
1931    
1932    
1933    
1934    
1935    
1936    
1937  <p><br>  <p><br>
1938  <a name="netbsdnetwinderinstall"></a>  <a name="netbsdnetwinderinstall"></a>
1939  <h3>NetBSD/netwinder:</h3>  <h3>NetBSD/netwinder:</h3>
1940    
1941  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
1942  could possibly run in GXemul. <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  could possibly run in GXemul.
1943    <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1944    
1945  <p>It is tricky to install, because there is (as far as I know) no INSTALL  <p>It is tricky to install, because there is (as far as I know) no INSTALL
1946  kernel. One way to install the NetBSD/netwinder distribution onto a disk  kernel. One way to install the NetBSD/netwinder distribution onto a disk
# Line 1712  distribution onto a disk image, from an Line 1952  distribution onto a disk image, from an
1952    
1953  <p>  <p>
1954  <ol>  <ol>
1955    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
1956          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
1957    <p>    <p>
1958    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
1959          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
1960          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
1961    
1962  </pre>  </pre>
1963    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel and the 2.1 ISO image:<pre>
1964          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
1965          <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>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso</a>
1966    
1967  </pre>  </pre>
1968    <p>    <p>
1969    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
1970          <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>
1971    
1972  </pre>and execute the following commands as <tt>root</tt>:  </pre>and execute the following commands as <tt>root</tt>:
1973  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
# Line 1744  cd /; umount /mnt; umount /mnt2; halt</b Line 1984  cd /; umount /mnt; umount /mnt2; halt</b
1984  </pre></td></tr></table>  </pre></td></tr></table>
1985  </ol>  </ol>
1986    
1987  <p>You should now be able to boot NetBSD/evbmips using this command:<pre>  <p>NetBSD/netwinder is now installed on the disk image. But actually
1988    running it does <b>not work yet</b>. Sorry.
1989    
1990    <p>Something like the following command line would be used to start
1991    NetBSD, if it worked:<pre>
1992          <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>          <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1993  </pre>  </pre>
1994    
# Line 1763  generic kernel:<pre> Line 2007  generic kernel:<pre>
2007    
2008    
2009    
2010    
2011    
2012    <p><br>
2013    <a name="netbsdmacppcinstall"></a>
2014    <h3>NetBSD/macppc:</h3>
2015    
2016    It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run
2017    <a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul
2018    on an emulated generic PowerPC machine. No specific Machintosh model
2019    is emulated, but it is enough to for NetBSD to recognize it.
2020    
2021    <p>To install NetBSD/macppc onto a disk image, follow these instructions:
2022    
2023    <p>
2024    <ol start="1">
2025      <li>Create an empty harddisk image, which will be the root disk
2026            that you will install NetBSD/macppc onto:<pre>
2027        <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b>
2028    
2029    </pre>
2030      <li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre>
2031        <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso</a>
2032        <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>
2033    
2034    </pre>
2035      <p>
2036      <li>Start the installation like this:<pre>
2037        <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>
2038    
2039    </pre>
2040    </ol>
2041    
2042    <p>If everything worked, NetBSD/macppc should now be installed on the disk image.
2043    
2044    <p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation
2045    succeeds, but it is not possible to start from the newly installed disk.
2046    /sbin/init dies, so the following command doesn't really work yet:
2047    
2048    <p>Use the following command line to boot the emulated machine:<pre>
2049            <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>
2050    
2051    </pre>
2052    
2053    
2054    
2055    
2056    
2057  </p>  </p>

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

  ViewVC Help
Powered by ViewVC 1.1.26