/[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 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 1  Line 1 
1  <html><head><title>GXemul documentation: Installing and running "guest OSes"</title>  <html><head><title>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;Installing and running "guest OSes"</title>
2  <meta name="robots" content="noarchive,nofollow,noindex">  <meta name="robots" content="noarchive,nofollow,noindex"></head>
 </head>  
3  <body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000">  <body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000">
4  <table border=0 width=100% bgcolor="#d0d0d0"><tr>  <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5  <td width=100% align=center valign=center><table border=0 width=100%><tr>  <td width=100% align=center valign=center><table border=0 width=100%><tr>
6  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7  <b>GXemul documentation:</b></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <b>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;</b></font>
8  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>
9  </font></td></tr></table></td></tr></table><p>  </font></td></tr></table></td></tr></table><p>
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.72 2005/06/27 23:04:36 debug Exp $  $Id: guestoses.html,v 1.108 2005/11/25 22:50:32 debug Exp $
14    
15  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.
16    
# Line 40  SUCH DAMAGE. Line 39  SUCH DAMAGE.
39    
40  -->  -->
41    
42    
43  <a href="./">Back to the index</a>  <a href="./">Back to the index</a>
44    
45  <p><br>  <p><br>
# Line 54  SUCH DAMAGE. Line 54  SUCH DAMAGE.
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>
56    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>
57      <li><a href="#netbsdcatsinstall">NetBSD/cats</a>
58      <li><a href="#netbsdprepinstall">NetBSD/prep</a>
59    <li><a href="#openbsdinstall">OpenBSD/pmax</a>    <li><a href="#openbsdinstall">OpenBSD/pmax</a>
60    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>
61      <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>
62    <li><a href="#ultrixinstall">Ultrix/RISC</a>    <li><a href="#ultrixinstall">Ultrix/RISC</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>
# Line 67  you might find the following information Line 70  you might find the following information
70  <ul>  <ul>
71    <li><a href="#mach">Mach/PMAX</a>    <li><a href="#mach">Mach/PMAX</a>
72    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
73      <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>
74  </ul>  </ul>
75    
76    
# Line 109  onto a harddisk image in the emulator, f Line 113  onto a harddisk image in the emulator, f
113  <p><ol start="1">  <p><ol start="1">
114    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
115          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
116          $ <b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b>          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000</b>
117    
118  </pre>  </pre>
119  </ol>  </ol>
# Line 126  steps: Line 130  steps:
130    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
131          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>
132          or          or
133          <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/2.1/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/pmaxcd.iso</a>
134    
135  </pre>  </pre>
136    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
137          $ <b>gxemul -X -E dec -e 3max -d nbsd_pmax.img -d bc:pmaxcd.iso</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.iso</b>
138  </pre>  </pre>
139          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
140          DECstation.          DECstation. Remember to choose <tt>vt100</tt> as your terminal
141            type, and not <tt>rcons</tt>.
142  </ol>  </ol>
143  <p>  <p>
144  For an ftp install, substitute steps 2 and 3 above with these:  For an ftp install, substitute steps 2 and 3 above with these:
# Line 143  For an ftp install, substitute steps 2 a Line 148  For an ftp install, substitute steps 2 a
148    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
149          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
150          or          or
151          <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-2.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
152    
153  </pre>  </pre>
154    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
155          $ <b>gxemul -X -E dec -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>
156  </pre>  </pre>
157          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
158          DECstation. Suitable networking parameters are as follows:<pre>          DECstation. Remember to choose <tt>vt100</tt> as your terminal
159            type, and not <tt>rcons</tt>. Suitable networking parameters are as
160            follows:<pre>
161          Which device shall I use? [le0]: <b>le0</b>          Which device shall I use? [le0]: <b>le0</b>
162          ..          ..
163          Your DNS domain: <b>mydomain.com</b>          Your DNS domain: <b>mydomain.com</b>
# Line 164  For an ftp install, substitute steps 2 a Line 171  For an ftp install, substitute steps 2 a
171          IP number of a real-world nameserver instead.)          IP number of a real-world nameserver instead.)
172  </ol>  </ol>
173    
174  <p>(If you don't want to use a graphical framebuffer during the install,  <p>If you want to use a graphical framebuffer during the install, you can
175  you can remove <b><tt>-X</tt></b> from the command line, but then make sure you  add <b><tt>-X -Y2</tt></b> to the command line, and choose <tt>rcons</tt>
176  choose "<tt>vt100</tt>" when prompted with which terminal type to use, and not  instead of <tt>vt100</tt> when prompted with which terminal type to use.
177  "<tt>rcons</tt>". If you want to use X, but think that the default framebuffer  (By just using <tt><b>-X</b></tt>, you will get a full-size framebuffer
178  window is too large, try adding <tt><b>-Y2</b></tt> to the command line.)  window.)
179    
180  <p>When the installation is completed, the following command should start  <p>When the installation is finished, the following command should start
181  NetBSD from the harddisk image:<pre>  NetBSD from the harddisk image:<pre>
182          $ <b>gxemul -X -M64 -E dec -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
183  </pre>  </pre>
184    
185  <p>  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x
186  Use <b>startx</b> to start X windows.  doesn't work with X out-of-the-box on pmax. It seems that this has to do
187    with NetBSD switching console system to "WSCONS" somewhere between 1.6.2
188  <p>  and 2.0. For now, if you want X, then try NetBSD 1.6.2.
 <font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2 doesn't  
 work with X out-of-the-box on pmax. It seems that this has to do with a  
 switch to WSCONS. For now, if you want X, then try NetBSD 1.6.2.  
189    
190  <p>  <p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre>
191  If you want to run without the X framebuffer, use this instead:<pre>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
         $ <b>gxemul -E dec -e 3max -d nbsd_pmax.img</b>  
192  </pre>  </pre>
193    and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.
194    
195    
196    
197    
# Line 198  If you want to run without the X framebu Line 203  If you want to run without the X framebu
203  <a name="netbsdarcinstall"></a>  <a name="netbsdarcinstall"></a>
204  <h3>NetBSD/arc:</h3>  <h3>NetBSD/arc:</h3>
205    
206  It is possible to run <a  It is possible to install and run <a
207  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>  href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a>
208  on an emulated Acer PICA-61 in the emulator.  on an emulated Acer PICA-61 in the emulator.
209    
# Line 214  follow these instructions: Line 219  follow these instructions:
219  <ol start="1">  <ol start="1">
220    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
221          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
222          $ <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b>          <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000</b>
223    
224  </pre>  </pre>
225    <li>Download a NetBSD/arc 1.6.2 CDROM image from ftp:<pre>    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc
226            kernel:<pre>
227          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>
228    
229            <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>
230  </pre>  </pre>
231    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
232          $ <b>gxemul -E arc -e pica -x -d nbsd_arc.img -d bc:arccd.iso \          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \
233            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>
234    
235  </pre>  </pre>
# Line 230  follow these instructions: Line 237  follow these instructions:
237      <p>      <p>
238    <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
239          automatic installation program for NetBSD/arc. Here are some tips          automatic installation program for NetBSD/arc. Here are some tips
240          and hints on how you can proceed with the install:<pre>          and hints on how you can proceed with the install:
241          $ <b>mount /dev/cd0a /mnt2</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
242          $ <b>disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',  <b>mount /dev/cd0a /mnt2
243              '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',
244          $ <b>newfs /dev/sd0a</b>      '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')
245          $ <b>mount /dev/sd0a /mnt</b>  <b>newfs /dev/sd0a
246          $ <b>cd /mnt</b>  mount /dev/sd0a /mnt
247          $ <b>for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done</b>  cd /mnt
248          $ <b>cd dev; sh MAKEDEV all</b>  for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done
249          $ <b>cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf</b>  cd dev; sh MAKEDEV all
250          $ <b>cat > /mnt/etc/fstab</b>  cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf
251              /dev/sd0a / ffs rw 1 1  cat > /mnt/etc/fstab
252              /dev/sd0b none swap sw 0 0  /dev/sd0a / ffs rw 1 1
253              (ctrl-d)  /dev/sd0b none swap sw 0 0
254          $ <b>cd /; umount /mnt; umount /mnt2</b>  </b>(press ctrl-d)<b>
255          $ <b>halt</b>  <b>cd /; umount /mnt; umount /mnt2
256    halt</b>
257  </pre>  </pre></td></tr></table>
   <li>Download a generic NetBSD/arc kernel:<pre>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>  
   
 </pre>  
258  </ol>  </ol>
259    
260  <p>You can now use the generic NetBSD/arc kernel to boot from the harddisk  <p>You can now use the generic NetBSD/arc kernel to boot from the harddisk
261  image, using the following command:<pre>  image, using the following command:<pre>
262          $ <b>gxemul -E arc -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz</b>          <b>gxemul -e pica -x -d nbsd_arc.img netbsd-GENERIC.gz</b>
263    
264  </pre>  </pre>
265    
# Line 339  than the other models, for some reason. Line 342  than the other models, for some reason.
342    
343  <p>  <p>
344  These instructions show an example of how to install  These instructions show an example of how to install
345  NetBSD/hpcmips on an emulated MobilePro 800:  NetBSD/hpcmips on an emulated MobilePro 770:
346    
347  <p>  <p>
348  <ol start="1">  <ol start="1">
349    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
350          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
351          $ <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>
352    
353  </pre>  </pre>
354    <li>Download the NetBSD 2.0.2 for hpcmips ISO image:<pre>    <li>Download the NetBSD/hpcmips 2.1 ISO image, and a generic kernel:<pre>
355          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/">ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2</a>/<a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso">hpcmipscd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/hpcmipscd.iso">hpcmipscd.iso</a>
356    
357            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
358    
359  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
360    <p>    <p>
361    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
362          $ <b>gxemul -E hpc -e mobilepro800 -X -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \
363            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>
364    
365  </pre>  </pre>
366          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
367          MobilePro 800. (Install onto wd0, choose "Use entire disk" when          MobilePro 770. (Install onto wd0, choose "Use entire disk" when
368          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.)  
369  </ol>  </ol>
370    
371  <p>  <p>
372  If everything worked, NetBSD should now be installed on the disk image.  If everything worked, NetBSD should now be installed on the disk image.
373  GXemul does not (yet) support reading the kernel directly from the  Use the following command line to boot the emulated hpcmips machine:<pre>
374  disk image, so you need to download a generic kernel separately:<pre>          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz</b>
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.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>  
375    
376  </pre>  </pre>
377    
378  <p>The installation is now complete. Use the following command line to  <p>If you change your mind at this point regarding which machine type to
379  boot the emulated hpcmips machine:<pre>  emulate, you might for example prefer a MobilePro 800, then you can change
380          $ <b>gxemul -E hpc -e mobilepro800 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz</b>  that at any time. NetBSD/hpcmips is designed to be able to boot on many
381    types, without any need to change the kernel.
 </pre>  
382    
383  <p>If you change your mind at this point regarding which machine type to  <p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to
384  emulate, you might for example prefer a MobilePro 770, then you can change  start X Windows, but there is no mouse support yet so only keyboard input
385  that at any time. NetBSD is designed to be able to boot on many types,  is available. This makes it a bit akward to use X.
 without any need to change the kernel.  
   
 <p>When you have logged in as root, you can use <b><tt>startx</tt></b> to  
 start X Windows. (Note: There is no mouse support yet; you can only use  
 keyboard input.)  
386    
387    
388    
# Line 416  image, from an emulated DECstation 3MAX Line 413  image, from an emulated DECstation 3MAX
413  <ol>  <ol>
414    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
415          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
416          $ <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>
417    
418  </pre>  </pre>
419    <li>Download the generic kernel for Cobalt and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>
420          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.se.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>
421          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso">ftp://ftp.se.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>
422    
423  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
424    <p>    <p>
425    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 2.1 according to instructions
426          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdinstall">further up on this page</a>.
427    <p>    <p>
428    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
429          $ <b>gxemul -Edec -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>          <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>
430    
431  </pre>  </pre>
432    <li>Log in as root (on the emulated 3MAX machine), and execute the    <li>Log in as root (on the emulated 3MAX machine), and execute the
433          following commands: (adjust according to taste)<pre>          following commands: (adjust according to taste)
434          <b>newfs /dev/sd1c</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
435          <b>mount /dev/cd0c /mnt</b>  <b>newfs /dev/sd1c
436          <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b>  mount /dev/cd0c /mnt
437          <b>cd /mnt2; sh</b>  mkdir /mnt2; mount /dev/sd1c /mnt2
438          <b>for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b>  cd /mnt2; sh
439          <b>exit</b>  for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
440          <b>cd dev; sh ./MAKEDEV all; cd ../etc</b>  exit
441          <b>echo rc_configured=YES >> rc.conf</b>  cd dev; sh ./MAKEDEV all; cd ../etc
442          <b>echo "/dev/wd0d / ffs rw 1 1" > fstab</b>  echo rc_configured=YES &gt;&gt; rc.conf
443          <b>cd /; umount /mnt; umount /mnt2; halt</b>  echo "/dev/wd0d / ffs rw 1 1" > fstab
444  </pre>  cd /; umount /mnt; umount /mnt2; halt</b>
445    </pre></td></tr></table>
446  </ol>  </ol>
447    
448  <p>  <p>
449  You should now be able to boot NetBSD/cobalt like this:<pre>  You should now be able to boot NetBSD/cobalt like this:<pre>
450          $ <b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>          <b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>
451  </pre>  </pre>
452    
453  Note that the installation instructions above create a filesystem  Note that the installation instructions above create a filesystem
# Line 481  in GXemul on an emulated Malta evaluatio Line 479  in GXemul on an emulated Malta evaluatio
479    
480  <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
481  kernel. One way to install the NetBSD/evbmips distribution onto a disk  kernel. One way to install the NetBSD/evbmips distribution onto a disk
482  image is to install the files is to do it using another (emulated)  image is to install the files using another (emulated) machine.
 machine.  
483    
484  <p>  <p>
485  The following instructions will let you install NetBSD/evbmips onto a disk  The following instructions will let you install NetBSD/evbmips onto a disk
# Line 490  image, from an emulated DECstation 3MAX Line 487  image, from an emulated DECstation 3MAX
487    
488  <p>  <p>
489  <ol>  <ol>
490      <li>Install NetBSD/pmax 2.1 according to instructions
491            <a href="#netbsdinstall">further up on this page</a>.
492      <p>
493    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
494          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
495          $ <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>
496    
497  </pre>  </pre>
498    <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>
499          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.se.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>
500          <a href="ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso">ftp://ftp.se.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>
501    
502  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
   <p>  
   <li>Install NetBSD/pmax 2.0.2 according to instructions  
         <a href="#netbsdinstall">further up on this page</a>.  
503    <p>    <p>
504    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
505          $ <b>gxemul -Edec -e3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>
506    
507  </pre>  </pre>and execute the following commands as <tt>root</tt>:
508    <li>Log in as root (on the emulated 3MAX machine), and execute the  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
509          following commands: (adjust according to taste)<pre>  <b>newfs /dev/sd1c
510          <b>newfs /dev/sd1c</b>  mount /dev/cd0c /mnt
511          <b>mount /dev/cd0c /mnt</b>  mkdir /mnt2; mount /dev/sd1c /mnt2
512          <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b>  cd /mnt2; sh
513          <b>cd /mnt2; sh</b>  for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
514          <b>for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b>  exit
515          <b>exit</b>  cd dev; sh ./MAKEDEV all; cd ../etc
516          <b>cd dev; sh ./MAKEDEV all; cd ../etc</b>  echo rc_configured=YES >> rc.conf
517          <b>echo rc_configured=YES >> rc.conf</b>  echo "/dev/wd0c / ffs rw 1 1" > fstab
518          <b>echo "/dev/wd0c / ffs rw 1 1" > fstab</b>  cd /; umount /mnt; umount /mnt2; halt</b>
519          <b>cd /; umount /mnt; umount /mnt2; halt</b>  </pre></td></tr></table>
 </pre>  
520  </ol>  </ol>
521    
522  <p>You should now be able to boot NetBSD/evbmips like this:<pre>  <p>You should now be able to boot NetBSD/evbmips using this command:<pre>
523          $ <b>gxemul -Eevbmips -emalta -d nbsd_malta.img netbsd-MALTA.gz</b>          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
524  </pre>  </pre>
525    
526  <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 very fast, so delays take very long. 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  
527  (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
528  2.0.2, however, there will be little or no difference in functionality.  2.1, however, there will be little or no difference in functionality, as
529  (NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs.)  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
530    that differ:<ol>
531      <li>GXemul's binary translation subsystem might run a bit faster
532            in 32-bit mode (because there are some optimizations that don't
533            work with 64-bit emulation)
534      <li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc
535            slower.
536    </ol>
537    
538  <p>Note 3: The installation instructions above create a filesystem  <p>The installation instructions above create a filesystem
539  <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
540  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
541  generic kernel:<pre>  generic kernel:<pre>
# Line 564  generic kernel:<pre> Line 563  generic kernel:<pre>
563  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
564  emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec  emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec
565  several times, asking for documentation, but never received any reply.)  several times, asking for documentation, but never received any reply.)
566  NetBSD can still run, as long as it doesn't use SCSI.  NetBSD can still run in the emulator, as long as it doesn't use SCSI.
567    
568  <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try  <p>For a simple test with the 2.1 ramdisk (install) kernel, try
569  dowloading<pre>  dowloading<pre>
570          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <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>
571    
572  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -E sgi -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.
573    
574  <p>It is possible to set up an environment for netbooting the emulated SGI  <p>It is possible to set up an environment for netbooting the emulated SGI
575  machine off of another emulated machine. Performing this setup is quite  machine off of another emulated machine. Performing this setup is quite
# Line 580  time consuming, but necessary: Line 579  time consuming, but necessary:
579  <ol>  <ol>
580    <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.
581          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
582          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.
583          inside the emulator. (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
584    <p>    <p>
585    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
586          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
587          $ <b>gxemul -M64 -Edec -e3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
588  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
589          inside the emulator:          inside the emulator:
590  <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 617  reboot</b> Line 616  reboot</b>
616          NetBSD/sgimips distribution sets:<br>(NOTE: This          NetBSD/sgimips distribution sets:<br>(NOTE: This
617          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
618  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
619  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>
620  (log in as anonymous...)  (log in as anonymous...)
621  <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-2.1/sgimips/binary/sets
622  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
623  quit  quit
624  sh  sh
625  for a in *.tgz; do echo $a; tar zxfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done
626  echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab  echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab
627  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
628  dd if=/dev/zero of=swap bs=1024 count=32768  dd if=/dev/zero of=swap bs=1024 count=32768
629  halt</b>  halt</b>
630  </pre></td></tr></table>  </pre></td></tr></table>
631    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
632          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>          <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>
633          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <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>
634    
635  </pre>  </pre>
636    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
# Line 643  halt</b> Line 642  halt</b>
642    
643  <b>emul(  <b>emul(
644      net(      net(
645          add_remote("127.0.0.1:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
646          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
647      )      )
648    
# Line 666  halt</b> Line 665  halt</b>
665  <b>emul(  <b>emul(
666      net(      net(
667          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
668          add_remote("127.0.0.1:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
669      )      )
670    
671      machine(      machine(
# Line 683  halt</b> Line 682  halt</b>
682    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips
683          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
684          in one xterm:          in one xterm:
685          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
686    
687          and then, in another xterm:          and then, in another xterm:
688          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
689    
690  </pre>  </pre>
691    <li>In the NetBSD/sgimips window, choose "<tt>x: Exit Install System</tt>"    <li>In the NetBSD/sgimips window, choose "<tt>x: Exit Install System</tt>"
# Line 695  halt</b> Line 694  halt</b>
694          <b>mount -v 10.0.0.2:/tftpboot /mnt</b>          <b>mount -v 10.0.0.2:/tftpboot /mnt</b>
695          <b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b>          <b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b>
696          <b>halt</b>          <b>halt</b>
697  </pre>Then log in as <tt>root</tt> on the server machine and type  </pre>Then, once the client machine has halted, log in as <tt>root</tt>
698          <tt><b>reboot</b></tt>.          on the server machine and type <tt><b>reboot</b></tt>.
699    <p>    <p>
700    <li>Once everything has been set up correctly, change    <li>Once everything has been set up correctly, change
701          <tt>netbsd-INSTALL32_IP3x.gz</tt> in <tt>config_client</tt> to          <tt>netbsd-INSTALL32_IP3x.gz</tt> in <tt>config_client</tt> to
# Line 708  run <tt>tcpdump -lnvv</tt> or similar, t Line 707  run <tt>tcpdump -lnvv</tt> or similar, t
707  actually does on the network.  actually does on the network.
708    
709  <p>It should now be possible to boot NetBSD/sgimips using the NetBSD/pmax  <p>It should now be possible to boot NetBSD/sgimips using the NetBSD/pmax
710  nfs server, using the following commands: (NOTE! Execute these in two  nfs server, using the following commands: (NOTE! Execute these two
711  separate xterms!)<pre>  commands in separate xterms!)<pre>
712          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
713          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
714  </pre>  </pre>
715    
716  <p>When asked for "<tt>root device:</tt>" etc. on the clientmachine, enter  <p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter
717  the following values:<pre>  the following values:<pre>
718          root device: <b>mec0</b>          root device: <b>mec0</b>
719          dump device:                            <b>(leave blank)</b>          dump device:                            <b>(leave blank)</b>
# Line 739  to IPv4. Line 738  to IPv4.
738    
739    
740    
741    <p><br>
742    <a name="netbsdcatsinstall"></a>
743    <h3>NetBSD/cats:</h3>
744    
745    It is possible to install and run
746    <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.
747    
748    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
749    <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>
750    
751    <p>
752    To install NetBSD/cats onto a disk image, follow these instructions:
753    
754    <p>
755    <ol start="1">
756      <li>Create an empty harddisk image, which will be the root disk
757            that you will install NetBSD/cats onto:<pre>
758            <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>
759    
760    </pre>
761      <li>Download the NetBSD/cats 2.1 ISO image and the generic and install kernels:<pre>
762            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/catscd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/catscd.iso</a>
763            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
764            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
765    
766    </pre>
767      <p>
768      <li>Start the installation like this:<pre>
769            <b>gxemul -XEcats -d nbsd_cats.img -d catscd.iso netbsd.aout-INSTALL.gz</b>
770    
771    </pre>
772            and proceed like you would do if you were installing NetBSD on a real
773            CATS from CDROM.
774    </ol>
775    
776    <p>Alternatively, to install from FTP, you can skip downloading the ISO,
777    and start the install without <tt>-d catscd.iso</tt>. Suitable network
778    settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
779    255.0.0.0, nameserver 10.0.0.254.
780    
781    <p>If everything worked, NetBSD should now be installed on the disk image.
782    Use the following command line to boot the emulated CATS machine:<pre>
783            <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>
784    
785    </pre>
786    
787    
788    
789    
790    
791    
792    <p><br>
793    <a name="netbsdprepinstall"></a>
794    <h3>NetBSD/prep:</h3>
795    
796    It is possible to install and run
797    <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul.
798    
799    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
800    <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>
801    
802    <p>To install NetBSD/prep onto a disk image, follow these instructions:
803    
804    <p>
805    <ol start="1">
806      <li>Create an empty harddisk image, which will be the root disk
807            that you will install NetBSD/prep onto:<pre>
808        <b>dd if=/dev/zero of=nbsd_prep.img bs=1024 count=1 seek=1000000</b>
809    
810    </pre>
811      <li>Download the NetBSD/prep 2.1 ISO image and the generic kernel:<pre>
812        <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>
813        <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>
814    
815    </pre>
816      <p>
817      <li>Start the installation like this:<pre>
818        <b>gxemul -x -Eprep -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>
819    
820    </pre>
821      <p>
822      <li>Installation is a bit unsmooth, probably due to bugs in GXemul.
823            Creating an MBR slice and a disklabel with sysinst bugs out, so
824            some things have to be done manually.<p>
825            At "<tt>(I)nstall, (S)hell, or (H)alt</tt>", choose
826                    <tt><b><u>s</u></b></tt>.
827            <br><tt># <b><u>fdisk -u wd0</u></b></tt>
828            <br><tt>Do you want to change our idea of what BIOS thinks? [n]</tt>
829                    (just press <b>ENTER</b>)
830            <br><tt>Which partition do you want to change?: [none] <b><u>0</u></b></tt>
831            <br><tt>sysid: ... </tt> (just press <B>ENTER</b>)
832            <br><tt>start: ... <b><u>1cyl</u></b></tt>
833            <br><tt>size: ... </tt> (just press <B>ENTER</b>)
834            <br><tt>Which partition do you want to change?: [none]</tt> (press <b>ENTER</b>)
835            <br><tt>Should we write new partition table? [n] <b><u>y</u></b></tt>
836            <br><tt># <b><u>disklabel -I -i wd0</u></b></tt>
837            <br><tt>partition&gt; <b><u>a</u></b></tt>
838            <br><tt>Filesystem type [?] [unused]: <b><u>4.2BSD</u></b></tt>
839            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>1c</u></b></tt>
840            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>900M</u></b></tt>
841            <br><tt>partition&gt; <b><u>b</u></b></tt>
842            <br><tt>Filesystem type [?] [unused]: <b><u>swap</u></b></tt>
843            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>a</u></b></tt>
844            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>$</u></b></tt>
845            <br><tt>partition&gt; <b><u>W</u></b></tt>
846            <br><tt>Label disk [n]? <b><u>y</u></b></tt>
847            <br><tt>partition&gt; <b><u>Q</u></b></tt>
848            <br><tt># <b><u>newfs wd0a</u></b></tt>
849            <br><tt># <b><u>sysinst</u></b></tt>
850            <br>Choose to install onto <b>wd0</b>. Choose
851                    "<tt>a: Edit the MBR partition table</tt>"
852                    when presented with that option.
853            <br>Choose the 'a' partition/slice,
854                    set the 'e' ("active") and 'f' ("install") fields to <b>Yes</b>,
855                    and then choose "<tt>x: Partition table OK</tt>".
856            <br>Choose "<tt>b: Use existing partition sizes</tt>" in the next
857                    menu.
858            <br>Select partition 'a' and press ENTER. Set field 'k' (mount point)
859                    to '<tt><b>/</b></tt>'.
860            <br>Get out of the partitioner by selecting
861                    "<tt>x: Partition sizes ok</tt>" twice.
862            <br>At "<tt>Write outside MBR partition? [n]:</tt>", just press
863                    <b>ENTER</b>.
864            <br>Install from CD-ROM, device <b>wd1c</b>.
865    </ol>
866    
867    <p>If everything worked, NetBSD should now be installed on the disk image.
868    Use the following command line to boot the emulated machine:<pre>
869            <b>gxemul -x -Eprep -d nbsd_prep.img netbsd-GENERIC.gz</b>
870    
871    </pre>
872    
873    <p>When asked which the root device is, type <tt><b>wd0</b></tt> and
874    just press ENTER to select the default values for dump device, file
875    system type, and init path.
876    
877    
878    
879    
880    
881    
882  <p><br>  <p><br>
883  <a name="openbsdinstall"></a>  <a name="openbsdinstall"></a>
# Line 771  common sense and imagination to modify t Line 910  common sense and imagination to modify t
910  <ol>  <ol>
911    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
912          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
913          $ <b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b>          <b>dd if=/dev/zero of=obsd_pmax.img bs=1 count=512 seek=900000000</b>
914    
915  </pre>  </pre>
916    <li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre>    <li>Download the entire pmax directory from the ftp server: (approx. 99 MB)<pre>
917          $ <b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b>          <b>wget -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/</a></b>
918    
919  </pre>  </pre>
920    
921    <li>Execute the following commands:<pre>    <li>Execute the following commands:
922          $ <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
923          $ <b>gunzip simpleroot28.fs.gz</b>  <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .
924          $ <b>chmod +w simpleroot28.fs</b>               &lt;--- make sure  gunzip simpleroot28.fs.gz
925    chmod +w simpleroot28.fs</b>            &lt;--- make sure
926  </pre>  </pre></td></tr></table>
927    <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.
928          (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
929          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
930          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
931          $ <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>
932    
933  </pre>  </pre>
934    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
935          $ <b>gxemul -E dec -e 3max -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>          <b>gxemul -e 3max -A -M64 -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>
936    
937  </pre>  </pre>
938          (If you add <tt><b>-X</b></tt>, you will run with the graphical          (If you add <tt>-X</tt>, you will run with the graphical
939          framebuffer. This is <i>REALLY</i> slow because the console has to          framebuffer. This is <i>REALLY</i> slow because the console has to
940          scroll a lot during the install. I don't recommend it.)          scroll a lot during the install. I don't recommend it.)
941    <p>    <p>
# Line 810  common sense and imagination to modify t Line 949  common sense and imagination to modify t
949            <li>When asked for the "<b>root device?</b>", enter <b>rz1</b>.            <li>When asked for the "<b>root device?</b>", enter <b>rz1</b>.
950            <li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter.            <li>At "<b>Enter pathname of shell or RETURN for sh:</b>", press enter.
951            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
952          $ <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
953          $ <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
954          $ <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
955          $ <b>./install</b>          <b>./install</b>
956    
957  </pre>  </pre>
958                  and proceed with the install. Good luck. :-)                  and proceed with the install. Good luck. :-)
# Line 828  common sense and imagination to modify t Line 967  common sense and imagination to modify t
967          password! The first time you boot up OpenBSD after the install, you          password! The first time you boot up OpenBSD after the install, you
968          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
969          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>
970          $ <b>gxemul -E dec -e 3max -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>          <b>gxemul -e 3max -A -d obsd_pmax.img -d 2c:openbsd_pmax_2.8.iso -j bsd -o '-s'</b>
971  </pre>  </pre>
972  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
973  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
974  in the installer, perhaps because of the way I used mkisofs.)  in the installer, perhaps because of the way I used mkisofs.)
975  <p>  <p>
976  Execute the following commands in the emulator:  Execute the following commands in the emulator:
977  <pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
978          <b>fsck /dev/rz0a</b>  <b>fsck /dev/rz0a
979          <b>mount /</b>  mount /
980          <b>passwd root</b>  passwd root
981    
982          <b>cd /; mount -t cd9660 /dev/rz2c /mnt; sh</b>  cd /; mount -t cd9660 /dev/rz2c /mnt; sh
983          <b>for a in /mnt/[xX]*; do tar zxvf $a; done</b>  for a in /mnt/[xX]*; do tar zxvf $a; done
984          <b>ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X</b>  ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X
985          <b>ln -s /dev/fb0 /dev/mouse</b>  ln -s /dev/fb0 /dev/mouse
986          <b>echo /usr/X11R6/lib >> /etc/ld.so.conf</b>  echo /usr/X11R6/lib &gt;&gt; /etc/ld.so.conf
987          <b>ldconfig</b>  ldconfig
988    
989          <b>sync</b>  sync
990          <b>halt</b>  halt</b>
991  </pre>  </pre></td></tr></table>
992  </ol>  </ol>
993    
994  <p>  <p>
# Line 862  root password, and so on. Line 1001  root password, and so on.
1001  Once you have completed the installation procedure, the following command  Once you have completed the installation procedure, the following command
1002  will let you boot from the new rootdisk image:  will let you boot from the new rootdisk image:
1003  <pre>  <pre>
1004          $ <b>gxemul -E dec -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>          <b>gxemul -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>
1005  </pre>  </pre>
1006    
1007  <p>  <p>
# Line 885  enter <b><tt>rcons</tt></b> if you are u Line 1024  enter <b><tt>rcons</tt></b> if you are u
1024  <a name="openbsdarcinstall"></a>  <a name="openbsdarcinstall"></a>
1025  <h3>OpenBSD/arc:</h3>  <h3>OpenBSD/arc:</h3>
1026    
1027  It is possible to run OpenBSD/arc on an emulated Acer PICA-61 in the  It is possible to install and run OpenBSD/arc on an emulated Acer PICA-61
1028  emulator.  in the emulator.
1029    
1030  <p>  <p>
1031  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 907  instructions: Line 1046  instructions:
1046  <ol>  <ol>
1047    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1048          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
1049          $ <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>          <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>
1050    
1051  </pre>  </pre>
1052    <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>    <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>
1053          $ <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>
1054    
1055  </pre>  </pre>
1056    
# Line 919  instructions: Line 1058  instructions:
1058          (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
1059          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1060          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1061          $ <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>          <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
1062    
1063  </pre>  </pre>
1064    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1065          $ <b>gxemul -X -E arc -e pica -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>          <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>
1066    
1067  </pre>  </pre>
1068          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 936  Once the install has finished, the follo Line 1075  Once the install has finished, the follo
1075  boot from the harddisk image:  boot from the harddisk image:
1076  <p>  <p>
1077  <pre>  <pre>
1078          $ <b>gxemul -X -E arc -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>          <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>
1079    
1080    </pre>
1081    
1082    
1083    
1084    
1085    
1086    
1087    
1088    
1089    <p><br>
1090    <a name="openbsdcatsinstall"></a>
1091    <h3>OpenBSD/cats:</h3>
1092    
1093    It is possible to install and run
1094    <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>
1095    in GXemul.
1096    
1097    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1098    <a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a>
1099    
1100    <p>To install OpenBSD/cats onto an emulated harddisk image,
1101    follow these instructions:
1102    
1103    <p>
1104    <ol>
1105      <li>Create an empty harddisk image, which will be the root disk
1106            that OpenBSD installs itself onto:<pre>
1107            <b>dd if=/dev/zero of=obsd_cats.img bs=1024 count=1 seek=1900000</b>
1108    
1109    </pre>
1110      <li>Download the entire cats directory from the ftp server:<pre>
1111            <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>
1112            <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd .</b>
1113            <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd.rd .</b>
1114    
1115    </pre>
1116    
1117      <li>You now need to make an ISO image of the entire directory you downloaded.
1118            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1119            already have <tt>mkisofs</tt> installed on your system, you need
1120            to install it in order to do this.)<pre>
1121            <b>mkisofs -allow-lowercase -o openbsd_cats_3.8.iso ftp.openbsd.org/pub/OpenBSD/</b>
1122    
1123    </pre>
1124      <li>Start the emulator using this command line:<pre>
1125            <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.8.iso bsd.rd</b>
1126    
1127    </pre>
1128            and proceed like you would do if you were installing OpenBSD
1129            on a real CATS. (Install onto <tt>wd0</tt>, don't configure the
1130            network, install from CD.)
1131    </ol>
1132    
1133    <p>(Although it <i>is</i> possible to configure the network, IPv4 address
1134    10.0.0.1, netmask 255.0.0.0, gateway/default route 10.0.0.254, and
1135    nameserver 10.0.0.254, the userland NAT-like networking layer is not
1136    stable enough yet to support a full install via ftp.)
1137    
1138    <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>
1139    correctly once the installation is finished, or the <tt>/dev</tt> nodes
1140    may not have been written correctly to disk.
1141    
1142    <p>Once the install has finished, the following command should let you
1143    boot from the harddisk image:
1144    
1145    <p><pre>
1146            <b>gxemul -X -x -Ecats -d obsd_cats.img bsd</b>
1147    
1148  </pre>  </pre>
1149    
# Line 966  The following instructions should let yo Line 1173  The following instructions should let yo
1173  <ol>  <ol>
1174    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1175          that Ultrix installs itself onto:<pre>          that Ultrix installs itself onto:<pre>
1176          $ <b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b>          <b>dd if=/dev/zero of=rootdisk.img bs=1024 count=1 seek=800000</b>
1177    
1178  </pre>  </pre>
1179    <li>Place your Ultrix installation media in your CDROM drive.    <li>Place your Ultrix installation media in your CDROM drive.
1180          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
1181          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
1182          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
1183          $ <b>gxemul -X -M64 -E dec -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>
1184    
1185  </pre>  </pre>
1186    <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 981  The following instructions should let yo Line 1188  The following instructions should let yo
1188          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
1189          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
1190          diskimage argument:<pre>          diskimage argument:<pre>
1191          $ <b>gxemul -X -M64 -E dec -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>
1192    
1193  </pre>  </pre>
1194  </ol>  </ol>
# Line 989  The following instructions should let yo Line 1196  The following instructions should let yo
1196  <p>  <p>
1197  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
1198  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
1199          $ <b>gxemul -X -M64 -E dec -e 3max -j vmunix -d rootdisk.img</b>          <b>gxemul -X -A -M64 -e 3max -j vmunix -d rootdisk.img</b>
1200  </pre>  </pre>
1201    
1202  <p>Ultrix mostly seems to work with dynamic binary translation (which can  <p>Ultrix mostly seems to work with dynamic binary translation (which can
# Line 1011  There is also a <b><tt>-z</tt></b> optio Line 1218  There is also a <b><tt>-z</tt></b> optio
1218  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1219  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1220  <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>
1221          $ <b>gxemul -M64 -N -E dec -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \
1222              -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>
1223  </pre>  </pre>
1224    
# Line 1078  The following instructions should let yo Line 1285  The following instructions should let yo
1285    
1286  </pre>  </pre>
1287    <li>Start the emulator with the following command line:<pre>    <li>Start the emulator with the following command line:<pre>
1288          $ <b>gxemul -X -E dec -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b>          <b>gxemul -X -e 3max -M128 -d ds5000.bt -j vmsprite -o ''</b>
1289    
1290  </pre>  </pre>
1291  </ol>  </ol>
# Line 1121  start the X11 environment. Line 1328  start the X11 environment.
1328  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>
1329  unstable. During my tests, even pressing the wrong key during the install  unstable. During my tests, even pressing the wrong key during the install
1330  (for example the wrong cursor key) can cause a kernel Oops. My success  (for example the wrong cursor key) can cause a kernel Oops. My success
1331  rate is probably around 50%.  rate is probably around 50%.</font>
1332    
1333  <p>I <i>think</i> this has to do with interrupts from the serial controller.  <p><font color="#ef0000">I <i>think</i> this has to do with interrupts
1334  Hopefully using the <tt><b>-U</b></tt> command line option will reduce the  from the serial controller. Hopefully using the <tt><b>-U</b></tt> command
1335  risk for such crashes. (I haven't had time to come up with a clean  line option will reduce the risk for such crashes. (I haven't had time to
1336  solution to this yet; it feels like a buffer overflow in Linux' serial  come up with a clean solution to this yet; it feels like a buffer overflow
1337  driver for the 5000/200, but it is also likely that it is a bug in GXemul.)  in Linux' serial driver for the 5000/200, but it is also likely that it is
1338    a bug in GXemul.)</font>
1339    
1340  <p>Everything runs extremely slow. Even if you have a very fast host  <p><font color="#ef0000">Everything runs extremely slow. Even if you have
1341  machine, an install attempt can still take several hours! </font>  a very fast host machine, an install attempt can still take several hours!
1342    </font>
1343    
1344  <p>  <p>
1345  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1150  onto a harddisk image: Line 1359  onto a harddisk image:
1359  <ol>  <ol>
1360    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1361          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1362          $ <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=3000000</b>
1363    
1364  </pre>  </pre>
1365    <li>Download an install kernel:<pre>    <li>Download an install kernel:<pre>
1366          <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/installer-mipsel/current/images/r3k-kn02/boot.img</a>          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>
1367                <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>
1368    
1369  </pre>  </pre>
1370    <p>    <p>
1371    <li>For a text-mode installation, start the emulator like this:<pre>    <li>For a text-mode installation, start the emulator like this:<pre>
1372          $ <b>gxemul -E dec -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>
1373    
1374  </pre>  </pre>
1375          (If you want to, you can try <b><tt>-X</tt></b> instead of          (If you want to, you can try <b><tt>-X</tt></b> instead of
# Line 1181  onto a harddisk image: Line 1391  onto a harddisk image:
1391    <li>Once the first phase of the install has finished, the following command    <li>Once the first phase of the install has finished, the following command
1392          should let you boot into Debian, and perform post-install          should let you boot into Debian, and perform post-install
1393          configuration:<pre>          configuration:<pre>
1394          $ <b>gxemul -E dec -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>
1395    
1396  </pre>Note: All these steps take a lot of time, so you will have plenty  </pre>Note: All these steps take a lot of time, so you will have plenty
1397          of time to drink lots of cups of coffee.          of time to drink lots of cups of coffee.
# Line 1191  onto a harddisk image: Line 1401  onto a harddisk image:
1401          installation is finished and you're supposed to get a login prompt,          installation is finished and you're supposed to get a login prompt,
1402          you need to press CTRL-C and type <b><tt>quit</tt></b>, and then:          you need to press CTRL-C and type <b><tt>quit</tt></b>, and then:
1403          download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>          download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>
1404          <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/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/</a>
1405                <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>
1406    
1407  </pre>and boot Debian using the following command line:<pre>  </pre>and boot Debian using the following command line:<pre>
1408          $ <b>gxemul -E dec -e 3max -U -M64 -o \          <b>gxemul -e 3max -U -M64 -o \
1409              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \
1410              -d debian.img vmlinux-2.4.27-r3k-kn02</b>              -d debian.img vmlinux-2.4.27-r3k-kn02</b>
1411    
# Line 1213  The system should now be ready for every Line 1424  The system should now be ready for every
1424    
1425  <p>  <p>
1426  Use this command to boot from the completely installed disk image:<pre>  Use this command to boot from the completely installed disk image:<pre>
1427          $ <b>gxemul -E dec -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>
1428    
1429  </pre>  </pre>
1430    
# Line 1225  support for keyboards now, on DECstation Line 1436  support for keyboards now, on DECstation
1436  possible to run Debian GNU/Linux with framebuffer/keyboard.  possible to run Debian GNU/Linux with framebuffer/keyboard.
1437  (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the  (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the
1438  <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:  <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:
1439  <a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">  <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>
 http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
1440  It has other problems (ethernet doesn't seem to work, for  It has other problems (ethernet doesn't seem to work, for
1441  example), but at least it doesn't Oops that often.&nbsp;]  example), but at least it doesn't Oops that often.&nbsp;]
1442    
# Line 1254  The following steps should let you run R Line 1464  The following steps should let you run R
1464  <p>  <p>
1465  <ol>  <ol>
1466    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>
1467          <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/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>
1468                <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>
1469    
1470  </pre>  </pre>
1471    <li>Download a root filesystem tree:<pre>    <li>Download a root filesystem tree:<pre>
# Line 1283  The following steps should let you run R Line 1494  The following steps should let you run R
1494  </pre>(Note sda1 instead of sdc1.)  </pre>(Note sda1 instead of sdc1.)
1495    <p>    <p>
1496    <li>To boot Linux, start the emulator like this:<pre>    <li>To boot Linux, start the emulator like this:<pre>
1497          $ <b>gxemul -E dec -e 3max -U -M128 -o \          <b>gxemul -e 3max -U -M128 -o \
1498              "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>              "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>
1499    
1500  </pre>  </pre>
# Line 1291  The following steps should let you run R Line 1502  The following steps should let you run R
1502    
1503  <p>  <p>
1504  If you need to boot into single user mode, try the following:<pre>  If you need to boot into single user mode, try the following:<pre>
1505          $ <b>gxemul -E dec -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \          <b>gxemul -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \
1506              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>
1507    
1508  </pre>  </pre>
# Line 1311  actually interact with the sytem. :-( Line 1522  actually interact with the sytem. :-(
1522  Read the 2005-01-19 update in the Debian section above, and then, if  Read the 2005-01-19 update in the Debian section above, and then, if
1523  you do not need ethernet support, try Kaj-Michael Lang's kernel compiled  you do not need ethernet support, try Kaj-Michael Lang's kernel compiled
1524  from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.  from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.
1525  <a href="http://home.tal.org/~milang/o2/patches/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">  <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>
 http://home.tal.org/~milang/o2/patches/vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
1526  It should work with framebuffer/keyboard.&nbsp;]  It should work with framebuffer/keyboard.&nbsp;]
1527    
1528    
# Line 1355  for DECstation in the emulator: Line 1565  for DECstation in the emulator:
1565  <p>  <p>
1566  <ol>  <ol>
1567    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>
1568          $ <b>./configure --enable-caches; make</b>          <b>./configure --enable-caches; make</b>
1569    
1570  </pre>  </pre>
1571    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1572          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z</a>          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/</a>
1573                <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">daveg/Info/Links/Mach/src/release/pmax.tar.Z</a>
1574          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0
1575    
1576  </pre>  </pre>
1577    <li>Extract the Mach kernel:<pre>    <li>Extract the Mach kernel:<pre>
1578          $ <b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b>          <b>tar xfvz pmax.tar.Z pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1579    
1580  </pre>  </pre>
1581    <li>Create an empty disk image:<pre>    <li>Create an empty disk image:<pre>
1582          $ <b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b>          <b>dd if=/dev/zero of=disk.img bs=1 count=512 seek=400000000</b>
1583    
1584  </pre>  </pre>
1585    <li>Load the contents of pmax.tar.Z onto the disk image. This is    <li>Load the contents of pmax.tar.Z onto the disk image. This is
# Line 1385  for DECstation in the emulator: Line 1596  for DECstation in the emulator:
1596          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1597          <p>          <p>
1598    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1599          $ <b>gxemul -E dec -e 3max -X -d disk.img \          <b>gxemul -e 3max -X -d disk.img \
1600              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1601    
1602  </pre>  </pre>
# Line 1414  it works.</font> Line 1625  it works.</font>
1625    
1626  <p>GXemul does not yet emulate the AHC PCI SCSI controller in the O2. (I have  <p>GXemul does not yet emulate the AHC PCI SCSI controller in the O2. (I have
1627  mailed Adaptec several times, asking for documentation, but never received  mailed Adaptec several times, asking for documentation, but never received
1628  any reply.) OpenBSD/sgi can still run, as long as it doesn't use SCSI. For  any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't
1629  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>
1630          <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.7/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.7/sgi/bsd.rd</a>
1631    
1632  </pre>and run <b><tt>gxemul -E sgi -e o2 bsd.rd</tt></b>.  </pre>and run <b><tt>gxemul -e o2 bsd.rd</tt></b>.
1633    
1634  <p>It might also be possible to netboot. Another emulated machine must  <p>It might also be possible to netboot. Another emulated machine must
1635  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
1636  as a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&manpath=OpenBSD+Current&format=html">diskless</a>  as a <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&amp;manpath=OpenBSD+Current&amp;format=html">diskless</a>
1637  client. Performing this setup is quite time consuming, but necessary:  client. Performing this setup is quite time consuming, but necessary:
1638    
1639  <p>  <p>
1640  <ol>  <ol>
1641    <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.
1642          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1643          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.
1644          inside the emulator. (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1645    <p>    <p>
1646    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
1647          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
1648          $ <b>gxemul -M64 -Edec -e3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
1649  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
1650          inside the emulator:          inside the emulator:
1651  <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 1452  echo "10:20:30:00:00:10 client" &gt; /et Line 1663  echo "10:20:30:00:00:10 client" &gt; /et
1663  echo 10.0.0.1 client &gt; /etc/hosts  echo 10.0.0.1 client &gt; /etc/hosts
1664  reboot</b>  reboot</b>
1665  </pre></td></tr></table>  </pre></td></tr></table>
1666    <li>Start the DECstation emulation again, and download the    <li>Start the DECstation emulation again, and enter the following
1667          OpenBSD/sgi distribution:<br>(NOTE: This          commands to download the OpenBSD/sgi distribution:<br>(NOTE: This
1668          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
1669  <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>
1670  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
1671  (log in as anonymous...)  (log in as anonymous...)
1672  <b>cd pub/OpenBSD/3.7/sgi  <b>cd pub/OpenBSD/3.7/sgi
1673  mget b* c* e* g* m*  mget b*tgz c* e* g* m*
1674  quit  quit
1675  sh  sh
1676  for a in *.tgz; do echo $a; tar zxfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; done
1677  echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab  echo 10.0.0.2:/tftpboot / nfs rw 0 0 &gt; /tftpboot/etc/fstab
1678    rm *.tgz
1679  dd if=/dev/zero of=swap bs=1024 count=32768  dd if=/dev/zero of=swap bs=1024 count=32768
1680  halt</b>  halt</b>
1681  </pre></td></tr></table>  </pre></td></tr></table>
# Line 1485  halt</b> Line 1697  halt</b>
1697    
1698  <b>emul(  <b>emul(
1699      net(      net(
1700          add_remote("127.0.0.1:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
1701          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
1702      )      )
1703    
# Line 1508  halt</b> Line 1720  halt</b>
1720  <b>emul(  <b>emul(
1721      net(      net(
1722          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
1723          add_remote("127.0.0.1:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
1724      )      )
1725    
1726      machine(      machine(
# Line 1525  halt</b> Line 1737  halt</b>
1737    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi
1738          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
1739          in one xterm:          in one xterm:
1740          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
1741    
1742          and then, in another xterm:          and then, in another xterm:
1743          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
1744    
1745  </pre>  </pre>
1746    <li>In the OpenBSD/sgi window, choose "S" (for Shell), and type:    <li>In the OpenBSD/sgi window, choose "<tt>s</tt>" (for Shell), and type:
1747  <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>
1748  <b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254  <b>ifconfig mec0 10.0.0.1; route add default 10.0.0.254
1749  mount -v 10.0.0.2:/tftpboot /mnt  mount -v 10.0.0.2:/tftpboot /mnt
1750  cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt  cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt
1751  halt</b>  halt</b>
1752  </pre></td></tr></table>  </pre></td></tr></table>
1753            You might want to log in as <tt>root</tt> on the server machine, and
1754            run <tt>tcpdump -lnvv</tt> or similar, to see that what the client
1755            machine actually does on the network. The <tt>MAKEDEV</tt> script
1756            takes almost forever, so be patient.
1757  </ol>  </ol>
1758    
 <p>You might want to log in as <tt>root</tt> on the server machine, and  
 run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine  
 actually does on the network. The <tt>MAKEDEV</tt> script takes almost  
 forever, so be patient.  
1759    
1760  <p><font color="#ff0000">NOTE: Everything up to this point should work.  <p><font color="#ff0000">NOTE: Everything up to this point should work.
1761  However, the next step (in gray) doesn't actually work:</font>  However, the next step (in gray) doesn't actually work:</font>
# Line 1572  fetch several cups of coffee for each of Line 1784  fetch several cups of coffee for each of
1784    
1785    
1786    
1787    
1788    
1789    
1790    
1791    
1792    <p><br>
1793    <a name="netbsdnetwinderinstall"></a>
1794    <h3>NetBSD/netwinder:</h3>
1795    
1796    <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
1797    could possibly run in GXemul. <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1798    
1799    <p>It is tricky to install, because there is (as far as I know) no INSTALL
1800    kernel. One way to install the NetBSD/netwinder distribution onto a disk
1801    image is to install the files using another (emulated) machine.
1802    
1803    <p>
1804    The following instructions will let you install the NetBSD/netwinder
1805    distribution onto a disk image, from an emulated DECstation 3MAX machine:
1806    
1807    <p>
1808    <ol>
1809      <li>Install NetBSD/pmax 2.1 according to instructions
1810            <a href="#netbsdinstall">further up on this page</a>.
1811      <p>
1812      <li>Create an empty harddisk image, which will be the disk image
1813            that you will install NetBSD onto:<pre>
1814            <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
1815    
1816    </pre>
1817      <li>Download the generic kernel and the 2.1 ISO image:<pre>
1818            <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>
1819            <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>
1820    
1821    </pre>
1822      <p>
1823      <li>Start NetBSD/pmax like this:<pre>
1824            <b>gxemul -e 3max -A -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>
1825    
1826    </pre>and execute the following commands as <tt>root</tt>:
1827    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1828    <b>newfs /dev/sd1c
1829    mount /dev/cd0c /mnt
1830    mkdir /mnt2; mount /dev/sd1c /mnt2
1831    cd /mnt2; sh
1832    for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
1833    exit
1834    cd dev; sh ./MAKEDEV all; cd ../etc
1835    echo rc_configured=YES >> rc.conf
1836    echo "/dev/wd0c / ffs rw 1 1" > fstab
1837    cd /; umount /mnt; umount /mnt2; halt</b>
1838    </pre></td></tr></table>
1839    </ol>
1840    
1841    <p>NetBSD/netwinder is now installed on the disk image. But actually
1842    running it does <b>not work yet</b>. Sorry.
1843    
1844    <p>Something like the following command line would be used to start
1845    NetBSD, if it worked:<pre>
1846            <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1847    </pre>
1848    
1849    <p>Note: The installation instructions above create a filesystem
1850    <i>without</i> a disklabel, so there is only one ffs partition and no
1851    swap. You will need to enter the following things when booting with the
1852    generic kernel:<pre>
1853            root device (default wd0a): <b>wd0c</b>
1854            dump device (default wd0b): <b>none</b>
1855            file system (default generic):    <i>(just press enter)</i>
1856            init path (default /sbin/init):   <i>(just press enter)</i>
1857    </pre>
1858    
1859    
1860    
1861    
1862    
1863    

Legend:
Removed from v.10  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26