/[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 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.124 2006/02/18 21:03:10 debug Exp $  $Id: guestoses.html,v 1.169 2006/08/15 15:38:37 debug Exp $
14    
15  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
16    
# 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="#netbsdpmaxinstall">NetBSD/pmax</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0.1 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.1</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.0.1</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.0.1</a>
56    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>    <li><a href="#netbsdalgorinstall">NetBSD/algor 3.0.1</a>
57    <li><a href="#netbsdcatsinstall">NetBSD/cats</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.0.1</a>
58    <li><a href="#netbsdevbarminstall">NetBSD/evbarm</a>    <li><a href="#netbsdcatsinstall">NetBSD/cats 3.0.1</a>
59    <li><a href="#netbsdprepinstall">NetBSD/prep</a>    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>
60    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.0.1</a>
61    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
62    <li><a href="#ultrixinstall">Ultrix/RISC</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
63      <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>
64      <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
65    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
66    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
67    <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>    <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>
68  </ul>  </ul>
69    
 <p>In addition to the "working" guest operating systems listed above,  
 you might find the following information interesting:  
 <ul>  
   <li><a href="#mach">Mach/PMAX</a>  
   <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>  
   <li><a href="#openbsdarcinstall">OpenBSD/arc</a>  
   <li><a href="#debiancats">Debian GNU/Linux for CATS</a>  
   <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>  
 </ul>  
   
70    
71    
72    
# Line 85  you might find the following information Line 77  you might find the following information
77  <h3>General notes on running "guest OSes":</h3>  <h3>General notes on running "guest OSes":</h3>
78    
79  The emulator works well enough to run complete operating systems. These  The emulator works well enough to run complete operating systems. These
80  are often refered to as "guest" operating systems.  are often refered to as <i>guest</i> operating systems, in contrast to the
81    <i>host</i> operating system which the emulator is running under.
82    
83  <p>  <p>Although it is possible to let a guest OS access real hardware, such as
84  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
85  harddisks, it is much more flexible and attractive to simulate harddisks  using files residing in the host's filesystem. On Unix-like systems, files
86  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  
87  system, the harddisk image looks and acts like a real disk.  system, the harddisk image looks and acts like a real disk.
88    
89    <p>The version numbers of the various operating systems were the latest
90    versions that worked satisfactory with GXemul at the time this page was
91    updated; if new versions have been released since then, they might work as
92    well.
93    
94    <p>In addition to the "working" guest operating systems listed above,
95    you might find the following information interesting: (Some of these might
96    not be relevant for this specific release of GXemul.)
97    
98    <ul>
99      <li><a href="#mach">Mach/PMAX</a>
100      <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
101      <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
102      <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
103      <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
104      <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
105      <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>
106      <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
107    </ul>
108    
109    <p>Some operating systems are listed with a version number <i>less</i>
110    than what was available at the time of this GXemul release (e.g.
111    NetBSD/prep). The reasons for this is because of incompleteness in
112    GXemul's machine, device, and/or processor implementations.
113    
114    
115    
# Line 105  system, the harddisk image looks and act Line 121  system, the harddisk image looks and act
121  <a name="netbsdpmaxinstall"></a>  <a name="netbsdpmaxinstall"></a>
122  <h3>NetBSD/pmax:</h3>  <h3>NetBSD/pmax:</h3>
123    
124  <p>  <p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the
125  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  first guest OS that could be
126    <a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a>
127    onto a disk image in GXemul. The device emulation of the DECstation
128    5000/200 is reasonably complete; it should be enough to emulate a
129    networked X-windows-capable workstation.
130    
131    <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,
132    newer NetBSD releases have changed slightly, and nowadays X does not
133    work straight away. (It seems that this has to do with NetBSD switching
134    console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had
135    time to figure out how to make it work; at worst it might require a kernel
136    recompilation.) What this means is that if you want to use emulated X11,
137    then you need to run NetBSD 1.6.2. If you feel that you only need
138    serial-console emulation, then choose the latest NetBSD version available.
139    
140    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
141  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>
142    
143  <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,
144  onto a harddisk image in the emulator, follow these instructions:  follow these instructions:
145    
146  <p><ol start="1">  <p><ol start="1">
147    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
148          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
149          <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>
150    
151  </pre>  </pre>
152  </ol>  </ol>
# Line 130  steps: Line 161  steps:
161  <ol start="2">  <ol start="2">
162    
163    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
164          <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>
165          or          or
166          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso</a>
167    
168  </pre>  </pre>
169    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
170          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.1.iso</b>
171          (or <b>pmaxcd.iso</b>)          (or <b>pmaxcd.iso</b>)
172  </pre>  </pre>
173          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
# Line 149  For an ftp install, substitute steps 2 a Line 180  For an ftp install, substitute steps 2 a
180  <ol start="2">  <ol start="2">
181    
182    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
183          <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>
184          or          or
185          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
186    
187  </pre>  </pre>
188    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
189          <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>
190  </pre>  </pre>
191          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
192          DECstation. Remember to choose <tt>vt100</tt> as your terminal          DECstation. Remember to choose <tt>vt100</tt> as your terminal
# Line 185  NetBSD from the harddisk image:<pre> Line 216  NetBSD from the harddisk image:<pre>
216          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
217  </pre>  </pre>
218    
219  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x and 3.x  <p>If you installed NetBSD/pmax 1.6.2, then try the following to start
220  do not work with X out-of-the-box on pmax. It seems that this has to do  with a framebuffer:<pre>
 with NetBSD switching console system to "WSCONS" somewhere between 1.6.2  
 and 2.0. For now, if you want X, then try NetBSD 1.6.2.  
   
 <p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre>  
221          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
222  </pre>  </pre>
223  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 206  and log in as <tt>root</tt> and type <tt Line 233  and log in as <tt>root</tt> and type <tt
233  <a name="netbsdarcinstall"></a>  <a name="netbsdarcinstall"></a>
234  <h3>NetBSD/arc:</h3>  <h3>NetBSD/arc:</h3>
235    
236  It is possible to install and run <a  It is possible to install and run an old version of <a
237  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>
238  on an emulated Acer PICA-61 in the emulator.  on an emulated Acer PICA-61 in the emulator.
239    
# Line 215  on an emulated Acer PICA-61 in the emula Line 242  on an emulated Acer PICA-61 in the emula
242  <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>
243    
244  <p>  <p>
245  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
246  follow these instructions:  harddisk image, follow these instructions:
247    
248  <p>  <p>
249  <ol start="1">  <ol start="1">
# Line 227  follow these instructions: Line 254  follow these instructions:
254  </pre>  </pre>
255    <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
256          kernel:<pre>          kernel:<pre>
257          <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>
258          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>
259    
260  </pre>  </pre>
261    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
# Line 239  follow these instructions: Line 266  follow these instructions:
266          (Try removing <tt>-x</tt> if you have problems with the xterm.)          (Try removing <tt>-x</tt> if you have problems with the xterm.)
267      <p>      <p>
268    <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
269          automatic installation program for NetBSD/arc. Here are some tips          automatic installation program for NetBSD/arc 1.6.2. Here are
270          and hints on how you can proceed with the install:          some tips and hints on how you can proceed with the install:
271  <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>
272  <b>mount /dev/cd0a /mnt2  <b>mount /dev/cd0a /mnt2
273  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',
# Line 254  cd ../etc; echo "rc_configured=YES" &gt; Line 281  cd ../etc; echo "rc_configured=YES" &gt;
281  cat > /mnt/etc/fstab  cat > /mnt/etc/fstab
282  /dev/sd0a / ffs rw 1 1  /dev/sd0a / ffs rw 1 1
283  /dev/sd0b none swap sw 0 0  /dev/sd0b none swap sw 0 0
284  </b>(press ctrl-d)<b>  </b>(press ctrl-d)
285  <b>cd /; umount /mnt; umount /mnt2  <b>cd /; umount /mnt; umount /mnt2
286  halt</b>  halt</b>
287  </pre></td></tr></table>  </pre></td></tr></table>
# Line 328  important difference is regarding the fr Line 355  important difference is regarding the fr
355  </table>  </table>
356    
357  <p>  <p>
358  (<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
359  efficiently with the current bintrans system. Using this mode will still  efficiently with the current dyntrans system. Using this mode will still
360  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
361  possible with an aligned framebuffer.  possible with an aligned framebuffer.
362    
# Line 351  NetBSD/hpcmips on an emulated MobilePro Line 378  NetBSD/hpcmips on an emulated MobilePro
378  <ol start="1">  <ol start="1">
379    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
380          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
381          <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=999000</b>
382    
383  </pre>  </pre>
384    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.0.1 ISO image, and a generic kernel:<pre>
385          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/hpcmipscd-3.0.iso">hpcmipscd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/hpcmipscd-3.0.1.iso">hpcmipscd-3.0.1.iso</a>
386            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>  
387    
388  </pre>  </pre>
389    <p>    <p>
390    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
391          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \
392            -d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd-3.0.1.iso -j hpcmips/installation/netbsd.gz</b>
393    
394  </pre>  </pre>
395          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
# Line 400  is available. This makes it a bit akward Line 426  is available. This makes it a bit akward
426    
427  <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
428  to install, because the Cobalt machines were designed for Linux, and not  to install, because the Cobalt machines were designed for Linux, and not
429  very flexible. There is no INSTALL kernel for NetBSD/cobalt. One way to  very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt.
430  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
431  another (emulated) machine.  do it from another (emulated) machine.
432    
433  <p>  <p>
434  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
435  <a href="20050413-netbsd-cobalt.png"><img src="20050413-netbsd-cobalt_small.png"></a>  <a href="20060812-netbsd-cobalt-3.0.1.png"><img src="20060812-netbsd-cobalt-3.0.1_small.png"></a>
436    
437  <p>  <p>
438  The following instructions will let you install NetBSD/cobalt onto a disk  The following instructions will let you install NetBSD/cobalt onto a disk
# Line 414  image, from an emulated DECstation 3MAX Line 440  image, from an emulated DECstation 3MAX
440    
441  <p>  <p>
442  <ol>  <ol>
443      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
444            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
445    </pre>
446      <p>
447    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
448          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
449          <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=700000</b>
450    
451  </pre>  </pre>
452    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 3.0.1 ISO image:<pre>
453          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
454          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso</a>
455    
456  </pre>  </pre>
457    <p>    <li>Start the emulated DECstation machine like this:<pre>
458    <li>Install NetBSD/pmax 3.0 according to instructions          <b>gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.0.1.iso netbsd-INSTALL.gz</b>
         <a href="#netbsdpmaxinstall">further up on this page</a>.  
   <p>  
   <li>Start NetBSD/pmax like this:<pre>  
         <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>  
459    
460  </pre>  </pre>
461    <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
462          following commands: (adjust according to taste)          following commands: (adjust according to taste)
463  <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>
464  <b>newfs /dev/sd1c  <b>newfs /dev/sd0c
465  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
466  mkdir /mnt2; mount /dev/sd1c /mnt2  mkdir /mnt2; mount /dev/sd0c /mnt2
467  cd /mnt2; sh  cd /mnt2; sh
468  for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
469  exit  exit
470  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
471  echo rc_configured=YES &gt;&gt; rc.conf  echo rc_configured=YES >> rc.conf
472  echo "/dev/wd0d / ffs rw 1 1" > fstab  echo "/dev/wd0d / ffs rw 1 1" > fstab
473  cd /; umount /mnt; umount /mnt2; halt</b>  cd /; umount /mnt; umount /mnt2; halt</b>
474  </pre></td></tr></table>  </pre></td></tr></table>
# Line 450  cd /; umount /mnt; umount /mnt2; halt</b Line 476  cd /; umount /mnt; umount /mnt2; halt</b
476    
477  <p>  <p>
478  You should now be able to boot NetBSD/cobalt like this:<pre>  You should now be able to boot NetBSD/cobalt like this:<pre>
479          <b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>          <b>gxemul -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>
480  </pre>  </pre>
481    
482  Note that the installation instructions above create a filesystem  Note that the installation instructions above create a filesystem
# Line 473  generic kernel:<pre> Line 499  generic kernel:<pre>
499  <a name="netbsdevbmipsinstall"></a>  <a name="netbsdevbmipsinstall"></a>
500  <h3>NetBSD/evbmips:</h3>  <h3>NetBSD/evbmips:</h3>
501    
502  <a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run  <a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run
503  in GXemul on an emulated Malta evaluation board (with a 5Kc or 4Kc CPU).  in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or
504    4Kc (MIPS32) processor. 5Kc is the default.
505    
506  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
507  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a href="20060812-netbsd-malta-3.0.1.png"><img src="20060812-netbsd-malta-3.0.1_small.png"></a>
 <a href="20050622-netbsd-evbmips-malta.png"><img src="20050622-netbsd-evbmips-malta_small.png"></a>  
508    
509  <p>It is tricky to install, because there is (as far as I know) no INSTALL  <p>One way to install the NetBSD/evbmips distribution onto a disk
 kernel. One way to install the NetBSD/evbmips distribution onto a disk  
510  image is to install the files using another (emulated) machine.  image is to install the files using another (emulated) machine.
511    
512  <p>  <p>
# Line 490  image, from an emulated DECstation 3MAX Line 515  image, from an emulated DECstation 3MAX
515    
516  <p>  <p>
517  <ol>  <ol>
518    <li>Install NetBSD/pmax 3.0 according to instructions    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
519          <a href="#netbsdpmaxinstall">further up on this page</a>.          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
520    </pre>
521    <p>    <p>
522    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
523          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
524          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=700000</b>
525    
526  </pre>  </pre>
527    <li>Download the generic kernel and the 2.1 ISO image:<pre>    <li>Download the Malta kernel and the 3.0.1 ISO image:<pre>
528          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
529          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso</a>
530    
531  </pre>  </pre>
532    <p>    <p>
533    <li>Start NetBSD/pmax like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
534          <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>          <b>gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.0.1.iso netbsd-INSTALL.gz</b>
535    
536  </pre>and execute the following commands as <tt>root</tt>:  </pre>
537      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
538    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
539  <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>
540  <b>newfs /dev/sd1c  <b>newfs /dev/sd0c
541  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
542  mkdir /mnt2; mount /dev/sd1c /mnt2  mkdir /mnt2; mount /dev/sd0c /mnt2
543  cd /mnt2; sh  cd /mnt2; sh
544  for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  for a in /mnt/*/binary/sets/[bcemt]*.tgz; do echo $a; tar zxfp $a; done
545  exit  exit
546  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
547  echo rc_configured=YES >> rc.conf  echo rc_configured=YES >> rc.conf
# Line 528  cd /; umount /mnt; umount /mnt2; halt</b Line 556  cd /; umount /mnt; umount /mnt2; halt</b
556    
557  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
558  (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
559  2.1, however, there will be little or no difference in functionality, as  3.0.1, however, there will be little or no difference in functionality, as
560  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
561  that differ:<ol>  that differ:<ol>
562    <li>GXemul's binary translation subsystem might run a bit faster    <li>The dynamic translation core runs faster when emulating 32-bit
563          in 32-bit mode (because there are some optimizations that don't          processors, so <tt><b>-C 4Kc</b></tt> might make things go faster.
         work with 64-bit emulation)  
564    <li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc    <li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc
565          slower.          emulation slower in general, because there are more TLB misses.
566  </ol>  </ol>
567    
568  <p>The installation instructions above create a filesystem  <p>The installation instructions above create a filesystem
# Line 543  that differ:<ol> Line 570  that differ:<ol>
570  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
571  generic kernel:<pre>  generic kernel:<pre>
572          root device (default wd0a): <b>wd0c</b>          root device (default wd0a): <b>wd0c</b>
573          dump device (default wd0b): <b>none</b>          dump device (default wd0b):             <i>(just press enter)</i>
574          file system (default generic): <b>ffs</b>          file system (default generic):          <i>(just press enter)</i>
575          init path (default /sbin/init):     <i>(just press enter here)</i>          init path (default /sbin/init):         <i>(just press enter)</i>
576    </pre>
577    
578    
579    
580    
581    
582    
583    
584    
585    
586    
587    
588    
589    
590    
591    <p><br>
592    <a name="netbsdalgorinstall"></a>
593    <h3>NetBSD/algor:</h3>
594    
595    <a href="http://www.netbsd.org/Ports/algor/">NetBSD/algor</a> can
596    run in GXemul on an emulated Algorithmics P5064 evaluation board.
597    
598    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
599    <a href="20060814-netbsd-algor-3.0.1.png"><img src="20060814-netbsd-algor-3.0.1_small.png"></a>
600    
601    <p>One way to install the NetBSD/algor distribution onto a disk
602    image is to install the files using another (emulated) machine.
603    
604    <p>The following instructions will let you install NetBSD/algor onto a disk
605    image, from an emulated DECstation 3MAX machine:
606    
607    <p>
608    <ol>
609      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
610            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
611    </pre>
612      <p>
613      <li>Create an empty harddisk image, which will be the disk image
614            that you will install NetBSD/algor onto:<pre>
615            <b>dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000</b>
616    
617    </pre>
618      <li>Download the P5064 Algor kernel and the 3.0.1 ISO image:<pre>
619            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz</a>
620            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso</a>
621    
622    </pre>
623      <p>
624      <li>Start the emulated DECstation machine like this:<pre>
625            <b>gxemul -e 3max -d nbsd_algor.img -d algorcd-3.0.1.iso netbsd-INSTALL.gz</b>
626    
627    </pre>
628      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
629    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
630    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
631    <b>newfs /dev/sd0c
632    mount /dev/cd0c /mnt
633    mkdir /mnt2; mount /dev/sd0c /mnt2
634    cd /mnt2; sh
635    for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
636    exit
637    cd dev; sh ./MAKEDEV all; cd ../etc
638    echo rc_configured=YES >> rc.conf
639    echo "/dev/wd0c / ffs rw 1 1" > fstab
640    cd /; umount /mnt; umount /mnt2; halt</b>
641    </pre></td></tr></table>
642    </ol>
643    
644    <p>You should now be able to boot NetBSD/algor using this command:<pre>
645            <b>gxemul -x -e p5064 -d nbsd_algor.img netbsd-P5064.gz</b>
646  </pre>  </pre>
647    
648    <p>The installation instructions above create a filesystem
649    <i>without</i> a disklabel, so there is only one ffs partition and no
650    swap. You will need to enter the following things when booting with the
651    generic kernel:<pre>
652            root device (default wd0a): <b>wd0c</b>
653            dump device (default wd0b):             <i>(just press enter)</i>
654            file system (default generic):          <i>(just press enter)</i>
655            init path (default /sbin/init):         <i>(just press enter)</i>
656    </pre>
657    
658    
659    
660    
661    
662    
663    
664    
665    
# Line 560  generic kernel:<pre> Line 672  generic kernel:<pre>
672    
673  <p>  <p>
674  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
675  <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>
676    
677  <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
678  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 568  emulate the AHC PCI SCSI controller in t Line 680  emulate the AHC PCI SCSI controller in t
680  several times, asking for documentation, but never received any reply.)  several times, asking for documentation, but never received any reply.)
681  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.
682    
683  <p>For a simple test with the 2.1 ramdisk (install) kernel, try  <p>For a simple test with the ramdisk/install kernel, try
684  dowloading<pre>  dowloading<pre>
685          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
686    
687  </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>.
688    
689  <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
690  machine off of another emulated machine. Performing this setup is quite  machine off of another emulated machine. Performing this setup is quite
# Line 582  time consuming, but necessary: Line 694  time consuming, but necessary:
694  <ol>  <ol>
695    <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.
696          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
697          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.
698          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
699    <p>    <p>
700    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
701          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
702          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
703  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
704          inside the emulator:          inside the emulator:
705  <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 619  reboot</b> Line 731  reboot</b>
731          NetBSD/sgimips distribution sets:<br>(NOTE: This          NetBSD/sgimips distribution sets:<br>(NOTE: This
732          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
733  <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>
734  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>
735  (log in as anonymous...)  (log in as anonymous...)
736  <b>cd /pub/NetBSD/NetBSD-2.1/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-3.0.1/sgimips/binary/sets
737  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
738  quit  quit
739  sh  sh
# Line 632  dd if=/dev/zero of=swap bs=1024 count=32 Line 744  dd if=/dev/zero of=swap bs=1024 count=32
744  halt</b>  halt</b>
745  </pre></td></tr></table>  </pre></td></tr></table>
746    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
747          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
748          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
749    
750  </pre>  </pre>
751    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
752  <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>
753  <font color="#2020cf">!!gxemul  <font color="#2020cf">!  Configuration file for running NetBSD/sgimips diskless with
 !  
 !  Configuration file for running NetBSD/sgimips diskless with  
754  !  a NetBSD/pmax machine as the nfs server.</font>  !  a NetBSD/pmax machine as the nfs server.</font>
755    
756  <b>emul(  <b>    net(
     net(  
757          add_remote("localhost:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
758          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
759      )      )
# Line 659  halt</b> Line 768  halt</b>
768          load("netbsd-INSTALL32_IP3x.gz")</b>          load("netbsd-INSTALL32_IP3x.gz")</b>
769          ! load("netbsd-GENERIC32_IP3x.gz")<b>          ! load("netbsd-GENERIC32_IP3x.gz")<b>
770      )      )
771  )</b>  </b>
772  </pre></td></tr></table>  </pre></td></tr></table>
773          ... and another configuration file for the server,          ... and another configuration file for the server,
774          <tt>config_server</tt>:          <tt>config_server</tt>:
775  <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>
776  <font color="#2020cf">!!gxemul</font>  <b>    net(
 <b>emul(  
     net(  
777          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
778          add_remote("localhost:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
779      )      )
# Line 680  halt</b> Line 787  halt</b>
787    
788          disk("nbsd_pmax.img")          disk("nbsd_pmax.img")
789      )      )
790  )</b>  </b>
791  </pre></td></tr></table>  </pre></td></tr></table>
792    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips
793          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
# Line 761  To install NetBSD/cats onto a disk image Line 868  To install NetBSD/cats onto a disk image
868          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>
869    
870  </pre>  </pre>
871    <li>Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:<pre>    <li>Download the NetBSD/cats 3.0.1 ISO image and the generic and install kernels:<pre>
872          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso</a>
873          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
874          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
875    
876  </pre>  </pre>
877    <p>    <p>
878    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
879          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.1.iso netbsd.aout-INSTALL.gz</b>
880    
881  </pre>  </pre>
882          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
# Line 777  To install NetBSD/cats onto a disk image Line 884  To install NetBSD/cats onto a disk image
884  </ol>  </ol>
885    
886  <p>Alternatively, to install from FTP, you can skip downloading the ISO,  <p>Alternatively, to install from FTP, you can skip downloading the ISO,
887  and start the install without <tt>-d catscd-3.0.iso</tt>. Suitable network  and start the install without <tt>-d catscd-3.0.1.iso</tt>. Suitable network
888  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
889  255.0.0.0, nameserver 10.0.0.254.  255.0.0.0, nameserver 10.0.0.254.
890    
# Line 812  image, from an emulated CATS machine: Line 919  image, from an emulated CATS machine:
919    
920  <p>  <p>
921  <ol>  <ol>
922    <li>Install NetBSD/cats 3.0 according to instructions    <li>Install NetBSD/cats 3.0.1 according to instructions
923          <a href="#netbsdcatsinstall">further up on this page</a>.          <a href="#netbsdcatsinstall">further up on this page</a>.
924    <p>    <p>
925    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 865  cd /; umount /mnt; sync; halt</b> Line 972  cd /; umount /mnt; sync; halt</b>
972    
973    
974    
975    
976    
977    
978    <p><br>
979    <a name="netbsdnetwinderinstall"></a>
980    <h3>NetBSD/netwinder:</h3>
981    
982    It is possible to run <a
983    href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
984    in GXemul.
985    
986    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
987    <a href="20060724-netbsd-netwinder-1.png"><img src="20060724-netbsd-netwinder-1_small.png"></a>
988    &nbsp;&nbsp;&nbsp;<a href="20060724-netbsd-netwinder-2.png"><img src="20060724-netbsd-netwinder-2_small.png"></a>
989    
990    <p>There is no INSTALL ramdisk kernel, so one way to install the
991    NetBSD/netwinder distribution onto a disk image is to install the files
992    using another (emulated) machine. The following instructions will let you
993    install the NetBSD/netwinder distribution onto a disk image, from an
994    emulated DECstation 3MAX machine:
995    
996    <p>
997    <ol>
998      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
999            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
1000    </pre>
1001      <p>
1002      <li>Create an empty harddisk image, which will be the disk image
1003            that you will install NetBSD onto:<pre>
1004            <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
1005    
1006    </pre>
1007      <li>Download the generic kernel and the 3.0.1 ISO image:<pre>
1008            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
1009            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso</a>
1010    
1011    </pre>
1012      <p>
1013      <li>Start the emulated DECstation machine like this:<pre>
1014            <b>gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.0.1.iso netbsd-INSTALL.gz</b>
1015    
1016    </pre>
1017      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
1018    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
1019    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1020    <b>newfs /dev/sd0c
1021    mount /dev/cd0c /mnt
1022    mkdir /mnt2; mount /dev/sd0c /mnt2
1023    cd /mnt2; sh
1024    for a in /mnt/*/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
1025    exit
1026    cd dev; sh ./MAKEDEV all; cd ../etc
1027    echo rc_configured=YES >> rc.conf
1028    echo "/dev/wd0c / ffs rw 1 1" > fstab
1029    cd /; umount /mnt; umount /mnt2; halt</b>
1030    </pre></td></tr></table>
1031    </ol>
1032    
1033    <p>NetBSD/netwinder is now installed on the disk image. The following command
1034    line can be used to start NetBSD/netwinder:<pre>
1035            <b>gxemul -X -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1036    </pre>
1037    
1038    <p>This will result in a 1024x768 framebuffer. Add <tt>-Y2</tt> to the
1039    command line if you want to scale it down to 512x384.
1040    
1041    <p>Note: The installation instructions above create a filesystem
1042    <i>without</i> a disklabel, so there is only one ffs partition and no
1043    swap. You will need to enter the following things when booting with the
1044    generic kernel:<pre>
1045            root device (default wd0a): <b>wd0c</b>
1046            dump device (default wd0b): <i>(just press enter)</i>
1047            file system (default generic):    <i>(just press enter)</i>
1048            init path (default /sbin/init):   <i>(just press enter)</i>
1049    </pre>
1050    
1051    <p>Known bugs/problems:
1052    
1053    <ul>
1054            <li>There is a long delay when starting up NetBSD/netwinder
1055                    (several seconds even on a very fast host machine),
1056                    so you need to be patient.
1057            <li>There is a minor bug in the keyboard device, so you need to
1058                    press a key (any key) before typing wd0c.
1059            <li>When halting/rebooting NetBSD/netwinder, the emulator
1060                    prints a message saying something about an internal
1061                    error. This doesn't matter; ignore the message.
1062    </ul>
1063    
1064    
1065    
1066    
1067    
1068    
1069    
1070    
1071    
1072    
1073    
1074    
1075  <p><br>  <p><br>
1076  <a name="netbsdprepinstall"></a>  <a name="netbsdprepinstall"></a>
1077  <h3>NetBSD/prep:</h3>  <h3>NetBSD/prep:</h3>
1078    
1079  It is possible to install and run  It is possible to install and run
1080  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul
1081  on an emulated IBM 6050 (PowerPC) machine.  on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc
1082    controller in a way which isn't implemented in GXemul yet.)
1083    
1084  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1085  <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>  <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>
# Line 958  system type, and init path. Line 1166  system type, and init path.
1166    
1167    
1168    
1169    
1170    
1171    
1172    
1173    
1174    
1175    
1176    
1177    
1178  <p><br>  <p><br>
1179  <a name="openbsdpmaxinstall"></a>  <a name="openbsdpmaxinstall"></a>
1180  <h3>OpenBSD/pmax:</h3>  <h3>OpenBSD/pmax:</h3>
# Line 1008  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1225  chmod +w simpleroot28.fs</b>           &lt;--- ma
1225          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1226          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1227          <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>
1228            <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1229    
1230  </pre>  </pre>
1231    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
1232          <b>gxemul -e 3max -A -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>          <b>gxemul -e 3max -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>
1233    
1234  </pre>  </pre>
1235          (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 1046  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1264  chmod +w simpleroot28.fs</b>           &lt;--- ma
1264          password! The first time you boot up OpenBSD after the install, you          password! The first time you boot up OpenBSD after the install, you
1265          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
1266          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>
1267          <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>
1268  </pre>  </pre>
1269  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
1270  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 1123  follow these instructions: Line 1341  follow these instructions:
1341    
1342  </pre>  </pre>
1343    <li>Download the entire cats directory from the ftp server:<pre>    <li>Download the entire cats directory from the ftp server:<pre>
1344          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/</a></b>
1345          <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .</b>
1346          <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd.rd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .</b>
1347    
1348  </pre>  </pre>
1349            (Replace ftp.openbsd.org with a server closer to you, for
1350            increased download speed.)
1351      <p>
1352    <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.
1353          (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
1354          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1355          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1356          <b>mkisofs -allow-lowercase -o openbsd_cats_3.8.iso ftp.openbsd.org/pub/OpenBSD/</b>          <b>mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/</b>
1357            <b>rm -rf ftp.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1358    
1359  </pre>  </pre>
1360    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1361          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.8.iso bsd.rd</b>          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd</b>
1362    
1363  </pre>  </pre>
1364          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 1173  boot from the harddisk image: Line 1394  boot from the harddisk image:
1394  <h3>Ultrix/RISC:</h3>  <h3>Ultrix/RISC:</h3>
1395    
1396  Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200.  Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200.
1397  (Ultrix was the native OS for these machines, but NetBSD/pmax is  (Ultrix was the native OS for these machines, but
1398  also usable.)  <a href="#netbsdpmaxinstall">NetBSD/pmax</a> is also usable.)
1399    
1400  <p>  <p>
1401  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1402  <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>
1403  &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;
1404  <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>
1405    
1406  <p>  <p>
1407  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 1195  The following instructions should let yo Line 1416  The following instructions should let yo
1416          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
1417          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
1418          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
1419          <b>gxemul -X -A -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>          <b>gxemul -X -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>
1420    
1421  </pre>  </pre>
1422    <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 1203  The following instructions should let yo Line 1424  The following instructions should let yo
1424          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
1425          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
1426          diskimage argument:<pre>          diskimage argument:<pre>
1427          <b>gxemul -X -A -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>          <b>gxemul -X -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>
1428    
1429  </pre>  </pre>
1430  </ol>  </ol>
# Line 1211  The following instructions should let yo Line 1432  The following instructions should let yo
1432  <p>  <p>
1433  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
1434  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
1435          <b>gxemul -X -A -e 3max -j vmunix -d rootdisk.img</b>          <b>gxemul -X -e 3max -j vmunix -d rootdisk.img</b>
1436  </pre>  </pre>
1437    
1438  <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  
1439  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
1440  triggered when the emulation goes faster than any real DECstation machine  triggered when the emulation goes faster than any real DECstation machine
1441  was capable of running. A temporary workaround is to add  was capable of running. A temporary workaround is to add
# Line 1233  There is also a <b><tt>-z</tt></b> optio Line 1452  There is also a <b><tt>-z</tt></b> optio
1452  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1453  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1454  <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>
1455          <b>gxemul -A -N -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -N -e 3max -jgenvmunix -d rootdisk.img \
1456              -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>
1457  </pre>  </pre>
1458    
# Line 1344  It is possible to run Debian GNU/Linux f Line 1563  It is possible to run Debian GNU/Linux f
1563  on an emulated 5000/200 ("3max"). Although the Debian project has released  on an emulated 5000/200 ("3max"). Although the Debian project has released
1564  install ramdisk kernels for this purpose, these do not always work:  install ramdisk kernels for this purpose, these do not always work:
1565  <ul>  <ul>
1566    <li>Serial console output doesn't work too well in GXemul. There are    <li>Serial console output doesn't work too well in GXemul. Linux
1567          random oopses, which may be due to bugs in GXemul, but may          oopses randomly, which may be due to bugs in GXemul, but may
1568          also be due to bugs in the serial controller code in Linux.          also be due to bugs in the serial controller code in Linux.
1569          (The speed at which serial interrupts are generated can be          (The speed at which serial interrupts are generated can be
1570          lowered with the <tt>-U</tt> command line option, but it only          lowered with the <tt>-U</tt> command line option, but it only
# Line 1379  onto a harddisk image: Line 1598  onto a harddisk image:
1598  </pre>  </pre>
1599    <p>    <p>
1600    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1601          <b>gxemul -XAe3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>
   
1602  </pre>  </pre>
1603          Everything is <i>really</i> slow, for several reasons (framebuffer is  
1604          always slower than serial console, and Debian's install seems to be          <p>If everything goes well, you will see Linux' boot messages, and then
1605          made up of scripts that run a lot slower in the emulator than pure          arrive at the language chooser.
1606          C code would).  
1607          <p>  <p>
1608          There will be a <font color="#d00000">warning</font> about "Select  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-1.png"><img src="debian-1-small.png"></a>
1609          keyboard layout". Don't mind this. Continue by selecting "Detect and  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-2.png"><img src="debian-2-small.png"></a>
1610          mount CD-ROM".  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-3.png"><img src="debian-3-small.png"></a>
1611    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-4.png"><img src="debian-4-small.png"></a>
1612    
1613            <p>There will be a warning about the keyboard
1614            layout. Don't mind this. Continue, and then select <b>Detect
1615            and mount CD-ROM</b> in the next menu.
1616    
1617    <p>
1618    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-5.png"><img src="debian-5-small.png"></a>
1619    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-6.png"><img src="debian-6-small.png"></a>
1620    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-7.png"><img src="debian-7-small.png"></a>
1621    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-8.png"><img src="debian-8-small.png"></a>
1622    
1623          <p>          <p>
1624          There will also be a <font color="#d00000">warning</font> about lack          There will also be a warning about lack of loadable modules. Don't
1625          of loadable modules. Don't mind this, continue anyway.          mind this either, continue anyway by choosing <b>Yes</b>.
1626          <p>          <p>
1627          You need to enter some values during the installation procedure, for          When you reach the network configuration part of the install, choose
1628          example network settings. The following should work:<pre>          <b>Configure network manually</b> and enter the following values:<pre>
         DHCP:                       No, choose "<b>Configure network manually</b>"  
1629          IP address:                 <b>10.0.0.1</b>          IP address:                 <b>10.0.0.1</b>
1630          Netmask:                    <b>255.0.0.0</b>          Netmask:                    <b>255.0.0.0</b>
1631          Gateway:                    <b>10.0.0.254</b>          Gateway:                    <b>10.0.0.254</b>
1632          Name server addresses:      <b>10.0.0.254</b>          Name server addresses:      <b>10.0.0.254</b>
1633    
1634  </pre>  </pre>
1635    <li>Once the first phase of the install has finished, the following command          <p>Choose <b>Erase entire disk</b> in the partitioner.
1636          should let you boot into Debian, and perform post-install  
1637          configuration:<pre>          <p>Wait for the base system to be installed. This takes almost forever,
1638          <b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>          so you can go fetch several <a href="http://en.wikipedia.org/wiki/Jolt_Cola">Jolts</a>
1639            or cups of coffee in the meanwhile.
1640    
1641    <p>
1642    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-9.png"><img src="debian-9-small.png"></a>
1643    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-10.png"><img src="debian-10-small.png"></a>
1644    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-11.png"><img src="debian-11-small.png"></a>
1645    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-12.png"><img src="debian-12-small.png"></a>
1646    
1647            <p>Congratulations! The first phase of the installation is now completed.
1648            Reboot using the following command line:<pre>
1649            <b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
1650    
1651    </pre>
1652            <p>The post-install step takes quite some time as well. A perfect opportunity
1653            for more coffee.
1654    
1655            <p>When asked about "Apt configuration", choose <b>http</b> as the method
1656            to use for accessing the Debian archive.
1657    
1658    <p>
1659    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-13.png"><img src="debian-13-small.png"></a>
1660    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-14.png"><img src="debian-14-small.png"></a>
1661    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="debian-15.png"><img src="debian-15-small.png"></a>
1662    
1663            <p>Downloading the packages takes almost forever. Be patient.
1664    
1665            <p>Congratulations (again)! You are now fully done with the installation.
1666    
 </pre>The post-install step takes quite some time.  
1667  </ol>  </ol>
1668    
1669  <p>Debian GNU/Linux for DECstation should now be installed. Use this command  <p><br>Debian GNU/Linux for DECstation is now installed and ready to be used.
1670  to boot from the installed disk image:<pre>  Use this command to boot from the installed disk image:<pre>
1671          <b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>          <b>gxemul -X -e3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
1672    
1673  </pre>  </pre>
1674    
# Line 1436  The following steps should let you run R Line 1692  The following steps should let you run R
1692    
1693  <p>  <p>
1694  <ol>  <ol>
1695    <li>Download a kernel. David Muse' Debian-install kernel works fine, also with Redhat:<pre>    <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>
1696          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>
1697    
1698  </pre>  </pre>
# Line 1453  The following steps should let you run R Line 1709  The following steps should let you run R
1709    <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS    <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS
1710          (!) partition table, and then an ext2 partition. This is what Linux          (!) partition table, and then an ext2 partition. This is what Linux
1711          will then see as /dev/sda1.          will then see as /dev/sda1.
1712          <p>On a Linux host, you could use a loopback mount, or similar. Otherwise,          <p>I recommend you run fdisk and mke2fs and untar the archive from within
         I recommend you run fdisk and mke2fs and untar the archive from within  
1713          Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running          Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running
1714          inside the emulator. Use your imagination.          inside the emulator. (Alternatively, if you are on a Linux host,
1715            you could use a loopback mount, or similar. This might require
1716            root access. See e.g.
1717            <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>.)
1718          <p>          <p>
1719          In order to actually boot the system you need to modify /etc/fstab.          In order to actually boot the system you need to modify /etc/fstab.
1720          Change<pre>          Change<pre>
# Line 1475  The following steps should let you run R Line 1733  The following steps should let you run R
1733  </ol>  </ol>
1734    
1735  <p>To boot Redhat linux from the disk image, use the following command line:<pre>  <p>To boot Redhat linux from the disk image, use the following command line:<pre>
1736          <b>gxemul -XAe3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>          <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>
1737    
1738  </pre>  </pre>
1739  If you need to boot into single user mode, change options to  If you need to boot into single user mode, change options to
# Line 1584  it works.</font> Line 1842  it works.</font>
1842  mailed Adaptec several times, asking for documentation, but never received  mailed Adaptec several times, asking for documentation, but never received
1843  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
1844  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>
1845          <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>
1846    
1847  </pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>.  </pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>.
1848    
1849  <p>It might also be possible to netboot. Another emulated machine must  <p>It might also be possible to netboot. Another emulated machine must
1850  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 1597  client. Performing this setup is quite t Line 1855  client. Performing this setup is quite t
1855  <ol>  <ol>
1856    <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.
1857          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1858          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.
1859          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1860    <p>    <p>
1861    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
1862          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
1863          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
1864  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
1865          inside the emulator:          inside the emulator:
1866  <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 1626  reboot</b> Line 1884  reboot</b>
1884  <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>
1885  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
1886  (log in as anonymous...)  (log in as anonymous...)
1887  <b>cd pub/OpenBSD/3.7/sgi  <b>cd pub/OpenBSD/3.9/sgi
1888  mget b*tgz c* e* g* m*  mget b*tgz c*tgz e* g* m*
1889  quit  quit
1890  sh  sh
1891  for a in *.tgz; do echo $a; tar zxfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; done
# Line 1637  dd if=/dev/zero of=swap bs=1024 count=32 Line 1895  dd if=/dev/zero of=swap bs=1024 count=32
1895  halt</b>  halt</b>
1896  </pre></td></tr></table>  </pre></td></tr></table>
1897    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>
1898          <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>
1899          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  
1900    
1901  </pre>  </pre>
1902    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
1903  <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>
1904  <font color="#2020cf">!!gxemul  <font color="#2020cf">!  Configuration file for running OpenBSD/sgi diskless with
 !  
 !  Configuration file for running OpenBSD/sgi diskless with  
1905  !  a NetBSD/pmax machine as the nfs server.  !  a NetBSD/pmax machine as the nfs server.
1906  !  !
1907  !  This config file is for the client.</font>  !  This config file is for the client.</font>
1908    
1909  <b>emul(  <b>    net(
     net(  
1910          add_remote("localhost:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
1911          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
1912      )      )
# Line 1668  halt</b> Line 1921  halt</b>
1921          </b>! load("bsd")<b>          </b>! load("bsd")<b>
1922          load("bsd.rd")          load("bsd.rd")
1923      )      )
1924  )</b>  </b>
1925  </pre></td></tr></table>  </pre></td></tr></table>
1926          ... and another configuration file for the server,          ... and another configuration file for the server,
1927          <tt>config_server</tt>:          <tt>config_server</tt>:
1928  <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>
1929  <font color="#2020cf">!!gxemul</font>  <b>    net(
 <b>emul(  
     net(  
1930          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
1931          add_remote("localhost:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
1932      )      )
# Line 1689  halt</b> Line 1940  halt</b>
1940    
1941          disk("nbsd_pmax.img")          disk("nbsd_pmax.img")
1942      )      )
1943  )</b>  </b>
1944  </pre></td></tr></table>  </pre></td></tr></table>
1945    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi
1946          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
# Line 1806  instructions: Line 2057  instructions:
2057    
2058  </pre>  </pre>
2059    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
2060          <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>          <b>gxemul -e pica -X -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>
2061    
2062  </pre>  </pre>
2063          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 1884  fdisk and mke2fs, which are useful for c Line 2135  fdisk and mke2fs, which are useful for c
2135    
2136    
2137    
2138    
2139  <p><br>  <p><br>
2140  <a name="netbsdnetwinderinstall"></a>  <a name="linux_qemu_mips"></a>
2141  <h3>NetBSD/netwinder:</h3>  <h3>Linux/QEMU_MIPS:</h3>
2142    
2143    I've added a semi-bogus machine mode which tries to
2144    mimic the MIPS machine mode used in Fabrice Bellard's
2145    <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
2146    
2147    <p>Follow these steps to download and run the Linux/QEMU_MIPS test
2148    ramdisk kernel:
2149    
2150    <p><ol>
2151      <li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>
2152            from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
2153            and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
2154      <p>
2155      <li>Test it in GXemul using the following command line:<pre>
2156            <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
2157                    rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
2158                    0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
2159    
2160    </pre>
2161    </ol>
2162    
2163    <p><i>"QEMU is a FAST! processor emulator"</i> according to <a
2164    href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>.
2165    Sometimes QEMU is faster than GXemul, sometimes it is the other way
2166    around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32,
2167    I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package
2168    from FreeBSD ports with GXemul gave the following result:
2169    
2170    <p><pre>
2171            <b>while true; do ls -l > /dev/null; echo -n .; done</b>
2172            (80 x 36 dots)
2173            QEMU 0.8.1:       13 min 48 sec
2174            GXemul 0.4.2:      4 min 31 sec
2175    
2176            <b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b>
2177            (80 dots)
2178            QEMU 0.8.1:        2 min  9 sec
2179            GXemul 0.4.2:      5 min 18 sec
2180    
2181            <b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b>
2182            (80 dots)
2183            QEMU 0.8.1:       10 min  5 sec
2184            GXemul 0.4.2:      1 min 36 sec
2185    </pre>
2186    
2187    <p>The commands were run inside the emulators, using the ramdisk kernel
2188    mentioned above.
2189    
2190  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>  
2191  could possibly run in GXemul.  
2192    
2193    
2194    
2195    
2196    
2197    <p><br>
2198    <a name="windows_nt_mips"></a>
2199    <h3>Windows NT/MIPS:</h3>
2200    
2201    Old versions of Windows NT could run on MIPS hardware, e.g.
2202    the PICA 61. It is theoretically possible that the emulation provided by
2203    GXemul some day could be stable/complete enough to emulate
2204    such hardware well enough to fool Windows NT into thinking
2205    that it is running on a real machine.
2206  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2207    
2208  <p>It is tricky to install, because there is (as far as I know) no INSTALL  <p>Something like this would be done to install
2209  kernel. One way to install the NetBSD/netwinder distribution onto a disk  Windows NT onto a disk image:
2210  image is to install the files using another (emulated) machine.  
2211    <ol>
2212            <li>Put a "Windows NT 4.0 for MIPS" CDROM (or similar) into
2213                    your CDROM drive. (On FreeBSD systems, it is
2214                    usually called <tt>/dev/cd0c</tt> or similar. Change
2215                    that to whatever the CDROM is called on your system,
2216                    or the name of a raw .iso image. I have tried this
2217                    with the Swedish version, but it might work with
2218                    other versions too.)
2219            <p>
2220            <li>Create an empty harddisk image, which will be the disk image
2221                    that you will install Windows NT onto:<pre>
2222            $ <b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b>
2223    
2224    </pre>
2225            <li>Run the ARC installer, to partition the disk image:<pre>
2226            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b>
2227    </pre>
2228            Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite.
2229            <p>
2230            <li>Run the SETUP program:<pre>
2231            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b>
2232    </pre>
2233    </ol>
2234    
2235    <p><tt>SETUPLDR</tt> manages to load some drivers from the cdrom,
2236    but then it crashes because of incomplete emulation of some hardware devices.
2237    
2238    
2239    
2240    
2241    
2242    
2243    
2244    
2245    <p><br>
2246    <a name="netbsdmacppcinstall"></a>
2247    <h3>NetBSD/macppc:</h3>
2248    
2249    It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run
2250    <a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul
2251    on an emulated generic PowerPC machine. No specific Machintosh model
2252    is emulated, but it is enough to for NetBSD to recognize it.
2253    
2254    <p>To install NetBSD/macppc onto a disk image, follow these instructions:
2255    
2256  <p>  <p>
2257  The following instructions will let you install the NetBSD/netwinder  <ol start="1">
2258  distribution onto a disk image, from an emulated DECstation 3MAX machine:    <li>Create an empty harddisk image, which will be the root disk
2259            that you will install NetBSD/macppc onto:<pre>
2260        <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b>
2261    
2262    </pre>
2263      <li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre>
2264        <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>
2265        <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>
2266    
2267    </pre>
2268      <p>
2269      <li>Start the installation like this:<pre>
2270        <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>
2271    
2272    </pre>
2273    </ol>
2274    
2275    <p>If everything worked, NetBSD/macppc should now be installed on the disk image.
2276    
2277    <p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation
2278    succeeds, but it is not possible to start from the newly installed disk.
2279    /sbin/init dies, so the following command doesn't really work yet:
2280    
2281    <p>Use the following command line to boot the emulated machine:<pre>
2282            <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>
2283    
2284    </pre>
2285    
2286    
2287    
2288    
2289    
2290    
2291    
2292    
2293    
2294    
2295    
2296    
2297    <p><br>
2298    <a name="netbsdbeboxinstall"></a>
2299    <h3>NetBSD/bebox:</h3>
2300    
2301    There is an old snapshot of
2302    <a href="http://www.netbsd.org/Ports/bebox/">NetBSD/bebox</a>
2303    from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox
2304    could theoretically run in GXemul.
2305    <font color="#ff0000">IT DOES <b>NOT</b> WORK RIGHT NOW!</font>
2306    
2307    <p>The following instructions will let you install NetBSD/bebox onto a
2308    disk image, using a NetBSD/prep kernel temporarily during the install:
2309    
2310  <p>  <p>
2311  <ol>  <ol>
2312    <li>Install NetBSD/pmax 3.0 according to instructions    <li>Download a NetBSD/prep 2.1 install ramdisk kernel:<pre>
2313          <a href="#netbsdpmaxinstall">further up on this page</a>.          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz</a>
2314    </pre>
2315    <p>    <p>
2316    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
2317          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
2318          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_bebox.img bs=1024 count=1 seek=999000</b>
   
 </pre>  
   <li>Download the generic kernel and the 2.1 ISO image:<pre>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso</a>  
   
2319  </pre>  </pre>
2320    <p>    <p>
2321    <li>Start NetBSD/pmax like this:<pre>    <li>Download the NetBSD/bebox snapshot, and create a suitable .iso
2322          <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>          image of the files:
2323    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2324    <b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/">ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/</a>
2325    mv ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/kern.tgz .
2326    tar zxvf kern.tgz
2327    rm -f kern.tgz
2328    mkisofs -o netbsd-bebox-19981119.iso ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119</b>
2329    </pre></td></tr></table>
2330      <p>
2331      <li>Now let's extract the files onto the Bebox disk image. Start NetBSD/prep
2332            with the following command line:<pre>
2333            <b>gxemul -x -e ibm6050 -d d:netbsd-bebox-19981119.iso -d nbsd_bebox.img netbsd-INSTALL.gz</b>
2334    
2335  </pre>and execute the following commands as <tt>root</tt>:  </pre>Choose (S) for Shell, and execute the following commands:
2336  <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>
2337  <b>newfs /dev/sd1c  <b>disklabel -I -i wd1
2338  mount /dev/cd0c /mnt  a
2339  mkdir /mnt2; mount /dev/sd1c /mnt2  4.2BSD
2340  cd /mnt2; sh  1c
2341  for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  750M
2342  exit  b
2343    swap
2344    a
2345    200M
2346    W
2347    y
2348    Q
2349    newfs /dev/wd1a
2350    mount_cd9660 /dev/wd0c /mnt
2351    mount /dev/wd1a /mnt2
2352    cd mnt2
2353    for a in /mnt/*.tgz; do echo $a; tar zxfp $a; done
2354  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
2355  echo rc_configured=YES >> rc.conf  echo rc_configured=YES &gt;&gt; rc.conf
2356  echo "/dev/wd0c / ffs rw 1 1" > fstab  echo "/dev/wd0a / ffs rw 1 1" &gt; fstab
2357  cd /; umount /mnt; umount /mnt2; halt</b>  echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab
2358    cd /; umount /mnt; umount /mnt2
2359    sync; halt</b>
2360  </pre></td></tr></table>  </pre></td></tr></table>
2361  </ol>  </ol>
2362    
2363  <p>NetBSD/netwinder is now installed on the disk image. But actually  <p>You should now be able to boot NetBSD/bebox using this command:<pre>
2364  running it does <b>not work yet</b>. Sorry.          <b>gxemul -X -E bebox -d nbsd_bebox.img netbsd</b>
   
 <p>Something like the following command line would be used to start  
 NetBSD, if it worked:<pre>  
         <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>  
2365  </pre>  </pre>
2366    
2367  <p>Note: The installation instructions above create a filesystem  <p>When asked for the root device, enter <b><tt>wd0a</tt></b>.
2368  <i>without</i> a disklabel, so there is only one ffs partition and no  
2369  swap. You will need to enter the following things when booting with the  <p><font color="#ff0000">IT DOES <b>NOT</b> WORK YET</font>, there are
2370  generic kernel:<pre>  errors while uncompressing the tgz files, and the machine crashes when
2371          root device (default wd0a): <b>wd0c</b>  trying to run /sbin/init.
2372          dump device (default wd0b): <b>none</b>  
2373          file system (default generic):    <i>(just press enter)</i>  
2374          init path (default /sbin/init):   <i>(just press enter)</i>  
 </pre>  
2375    
2376    
2377    

Legend:
Removed from v.22  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26