/[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 11 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 12 by dpavlin, Mon Oct 8 16:18:38 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.87 2005/08/16 09:16:25 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 109  onto a harddisk image in the emulator, f Line 109  onto a harddisk image in the emulator, f
109  <p><ol start="1">  <p><ol start="1">
110    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
111          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
112          $ <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>
113    
114  </pre>  </pre>
115  </ol>  </ol>
# Line 130  steps: Line 130  steps:
130    
131  </pre>  </pre>
132    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
133          $ <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>
134  </pre>  </pre>
135          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
136          DECstation.          DECstation. Remember to choose <tt>vt100</tt> as your terminal
137            type, and not <tt>rcons</tt>.
138  </ol>  </ol>
139  <p>  <p>
140  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 147  For an ftp install, substitute steps 2 a Line 148  For an ftp install, substitute steps 2 a
148    
149  </pre>  </pre>
150    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
151          $ <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>
152  </pre>  </pre>
153          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
154          DECstation. Suitable networking parameters are as follows:<pre>          DECstation. Remember to choose <tt>vt100</tt> as your terminal
155            type, and not <tt>rcons</tt>. Suitable networking parameters are as
156            follows:<pre>
157          Which device shall I use? [le0]: <b>le0</b>          Which device shall I use? [le0]: <b>le0</b>
158          ..          ..
159          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 167  For an ftp install, substitute steps 2 a
167          IP number of a real-world nameserver instead.)          IP number of a real-world nameserver instead.)
168  </ol>  </ol>
169    
170  <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
171  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>
172  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.
173  "<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
174  window is too large, try adding <tt><b>-Y2</b></tt> to the command line.)  window.)
175    
176  <p>When the installation is completed, the following command should start  <p>When the installation is finished, the following command should start
177  NetBSD from the harddisk image:<pre>  NetBSD from the harddisk image:<pre>
178          $ <b>gxemul -X -M64 -E dec -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
179  </pre>  </pre>
180    
181  <p>  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2
182  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
183    with NetBSD switching console system to "WSCONS" somewhere between 1.6.2
184  <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.  
185    
186  <p>  <p>With NetBSD/pmax 1.6.2, try the following to start with a framebuffer:<pre>
187  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>  
188  </pre>  </pre>
189    and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.
190    
191    
192    
193    
# Line 214  follow these instructions: Line 215  follow these instructions:
215  <ol start="1">  <ol start="1">
216    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
217          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
218          $ <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>
219    
220  </pre>  </pre>
221    <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
222            kernel:<pre>
223          <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>
224    
225            <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>
226  </pre>  </pre>
227    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
228          $ <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 \
229            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>            -j arc/binary/kernel/netbsd.RAMDISK.gz</b>
230    
231  </pre>  </pre>
# Line 230  follow these instructions: Line 233  follow these instructions:
233      <p>      <p>
234    <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
235          automatic installation program for NetBSD/arc. Here are some tips          automatic installation program for NetBSD/arc. Here are some tips
236          and hints on how you can proceed with the install:<pre>          and hints on how you can proceed with the install:
237          $ <b>mount /dev/cd0a /mnt2</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
238          $ <b>disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',  <b>mount /dev/cd0a /mnt2
239              '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')  disklabel -i -I sd0</b>    (for example 'a', '4.2BSD', '1c',
240          $ <b>newfs /dev/sd0a</b>      '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')
241          $ <b>mount /dev/sd0a /mnt</b>  <b>newfs /dev/sd0a
242          $ <b>cd /mnt</b>  mount /dev/sd0a /mnt
243          $ <b>for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done</b>  cd /mnt
244          $ <b>cd dev; sh MAKEDEV all</b>  for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done
245          $ <b>cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf</b>  cd dev; sh MAKEDEV all
246          $ <b>cat > /mnt/etc/fstab</b>  cd ../etc; echo "rc_configured=YES" &gt;&gt; rc.conf
247              /dev/sd0a / ffs rw 1 1  cat > /mnt/etc/fstab
248              /dev/sd0b none swap sw 0 0  /dev/sd0a / ffs rw 1 1
249              (ctrl-d)  /dev/sd0b none swap sw 0 0
250          $ <b>cd /; umount /mnt; umount /mnt2</b>  </b>(press ctrl-d)<b>
251          $ <b>halt</b>  <b>cd /; umount /mnt; umount /mnt2
252    halt</b>
253  </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>  
254  </ol>  </ol>
255    
256  <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
257  image, using the following command:<pre>  image, using the following command:<pre>
258          $ <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>
259    
260  </pre>  </pre>
261    
# Line 339  than the other models, for some reason. Line 338  than the other models, for some reason.
338    
339  <p>  <p>
340  These instructions show an example of how to install  These instructions show an example of how to install
341  NetBSD/hpcmips on an emulated MobilePro 800:  NetBSD/hpcmips on an emulated MobilePro 770:
342    
343  <p>  <p>
344  <ol start="1">  <ol start="1">
345    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
346          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
347          $ <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>
348    
349  </pre>  </pre>
350    <li>Download the NetBSD 2.0.2 for hpcmips ISO image:<pre>    <li>Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:<pre>
351          <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.0.2/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso">hpcmipscd.iso</a>
352    
353            <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>
354    
355  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
356    <p>    <p>
357    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
358          $ <b>gxemul -E hpc -e mobilepro800 -X -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \
359            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>
360    
361  </pre>  </pre>
362          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
363          MobilePro 800. (Install onto wd0, choose "Use entire disk" when          MobilePro 770. (Install onto wd0, choose "Use entire disk" when
364          doing the MBR partitioning, and choose wd1d (not cd0c) as the          doing the MBR partitioning, and choose wd1d (not cd0c) as the
365          CDROM device to install from.)          CDROM device to install from.)
366  </ol>  </ol>
367    
368  <p>  <p>
369  If everything worked, NetBSD should now be installed on the disk image.  If everything worked, NetBSD should now be installed on the disk image.
370  GXemul does not (yet) support reading the kernel directly from the  Use the following command line to boot the emulated hpcmips machine:<pre>
371  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>  
372    
373  </pre>  </pre>
374    
375  <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
376  boot the emulated hpcmips machine:<pre>  emulate, you might for example prefer a MobilePro 800, then you can change
377          $ <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
378    types, without any need to change the kernel.
379    
380  </pre>  <p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to
381    start X Windows, but there is no mouse support yet so only keyboard input
382  <p>If you change your mind at this point regarding which machine type to  is available. This makes it a bit akward to use X.
 emulate, you might for example prefer a MobilePro 770, then you can change  
 that at any time. NetBSD is designed to be able to boot on many types,  
 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.)  
383    
384    
385    
# Line 416  image, from an emulated DECstation 3MAX Line 410  image, from an emulated DECstation 3MAX
410  <ol>  <ol>
411    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
412          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
413          $ <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>
414    
415  </pre>  </pre>
416    <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.0.2 ISO image:<pre>
417          <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.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
418          <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.0.2/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso</a>
419    
420  </pre>(You may want to choose a mirror closer to you, if .se is slow.)  </pre>
421    <p>    <p>
422    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 2.0.2 according to instructions
423          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdinstall">further up on this page</a>.
424    <p>    <p>
425    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
426          $ <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>
427    
428  </pre>  </pre>
429    <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
430          following commands: (adjust according to taste)<pre>          following commands: (adjust according to taste)
431          <b>newfs /dev/sd1c</b>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
432          <b>mount /dev/cd0c /mnt</b>  <b>newfs /dev/sd1c
433          <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b>  mount /dev/cd0c /mnt
434          <b>cd /mnt2; sh</b>  mkdir /mnt2; mount /dev/sd1c /mnt2
435          <b>for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b>  cd /mnt2; sh
436          <b>exit</b>  for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
437          <b>cd dev; sh ./MAKEDEV all; cd ../etc</b>  exit
438          <b>echo rc_configured=YES >> rc.conf</b>  cd dev; sh ./MAKEDEV all; cd ../etc
439          <b>echo "/dev/wd0d / ffs rw 1 1" > fstab</b>  echo rc_configured=YES &gt;&gt; rc.conf
440          <b>cd /; umount /mnt; umount /mnt2; halt</b>  echo "/dev/wd0d / ffs rw 1 1" > fstab
441  </pre>  cd /; umount /mnt; umount /mnt2; halt</b>
442    </pre></td></tr></table>
443  </ol>  </ol>
444    
445  <p>  <p>
446  You should now be able to boot NetBSD/cobalt like this:<pre>  You should now be able to boot NetBSD/cobalt like this:<pre>
447          $ <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>
448  </pre>  </pre>
449    
450  Note that the installation instructions above create a filesystem  Note that the installation instructions above create a filesystem
# Line 490  image, from an emulated DECstation 3MAX Line 485  image, from an emulated DECstation 3MAX
485    
486  <p>  <p>
487  <ol>  <ol>
488      <li>Install NetBSD/pmax 2.0.2 according to instructions
489            <a href="#netbsdinstall">further up on this page</a>.
490      <p>
491    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
492          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
493          $ <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>
494    
495  </pre>  </pre>
496    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>
497          <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.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
498          <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.0.2/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso</a>
499    
500  </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>.  
501    <p>    <p>
502    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
503          $ <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>
504    
505  </pre>  </pre>and execute the following commands as <tt>root</tt>:
506    <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>
507          following commands: (adjust according to taste)<pre>  <b>newfs /dev/sd1c
508          <b>newfs /dev/sd1c</b>  mount /dev/cd0c /mnt
509          <b>mount /dev/cd0c /mnt</b>  mkdir /mnt2; mount /dev/sd1c /mnt2
510          <b>mkdir /mnt2; mount /dev/sd1c /mnt2</b>  cd /mnt2; sh
511          <b>cd /mnt2; sh</b>  for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
512          <b>for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done</b>  exit
513          <b>exit</b>  cd dev; sh ./MAKEDEV all; cd ../etc
514          <b>cd dev; sh ./MAKEDEV all; cd ../etc</b>  echo rc_configured=YES >> rc.conf
515          <b>echo rc_configured=YES >> rc.conf</b>  echo "/dev/wd0c / ffs rw 1 1" > fstab
516          <b>echo "/dev/wd0c / ffs rw 1 1" > fstab</b>  cd /; umount /mnt; umount /mnt2; halt</b>
517          <b>cd /; umount /mnt; umount /mnt2; halt</b>  </pre></td></tr></table>
 </pre>  
518  </ol>  </ol>
519    
520  <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>
521          $ <b>gxemul -Eevbmips -emalta -d nbsd_malta.img netbsd-MALTA.gz</b>          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
522  </pre>  </pre>
523    
524  <p>Note 1: NetBSD detects a very fast CPU although the emulation isn't  <p>Note 1: NetBSD detects a very fast CPU although the emulation isn't
525  really very fast, so delays take very long. Even on a multi-GHz host, you  really that fast, so emulated delays are very slow. Even on a multi-GHz
526  will need a lot of patience.  host, you will need a lot of patience.
527    
528  <p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  <p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
529  (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
530  2.0.2, however, there will be little or no difference in functionality.  2.0.2, however, there will be little or no difference in functionality, as
531  (NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs.)  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference
532    it makes in practice is that GXemul's binary translation subsystem might
533    run a bit faster (because there are some optimizations for 32-bit
534    emulation that don't work with 64-bit emulation).
535    
536  <p>Note 3: The installation instructions above create a filesystem  <p>Note 3: The installation instructions above create a filesystem
537  <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
# Line 564  generic kernel:<pre> Line 561  generic kernel:<pre>
561  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
562  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
563  several times, asking for documentation, but never received any reply.)  several times, asking for documentation, but never received any reply.)
564  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.
565    
566  <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try  <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try
567  dowloading<pre>  dowloading<pre>
568          <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.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>
569    
570  </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>.
571    
572  <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
573  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 577  time consuming, but necessary:
577  <ol>  <ol>
578    <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.
579          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
580          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.
581          inside the emulator. (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
582    <p>    <p>
583    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
584          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
585          $ <b>gxemul -M64 -Edec -e3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
586  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
587          inside the emulator:          inside the emulator:
588  <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 614  reboot</b>
614          NetBSD/sgimips distribution sets:<br>(NOTE: This          NetBSD/sgimips distribution sets:<br>(NOTE: This
615          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
616  <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>
617  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>
618  (log in as anonymous...)  (log in as anonymous...)
619  <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets
620  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
621  quit  quit
622  sh  sh
623  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
624  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
625  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
626  dd if=/dev/zero of=swap bs=1024 count=32768  dd if=/dev/zero of=swap bs=1024 count=32768
# Line 643  halt</b> Line 640  halt</b>
640    
641  <b>emul(  <b>emul(
642      net(      net(
643          add_remote("127.0.0.1:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
644          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
645      )      )
646    
# Line 666  halt</b> Line 663  halt</b>
663  <b>emul(  <b>emul(
664      net(      net(
665          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
666          add_remote("127.0.0.1:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
667      )      )
668    
669      machine(      machine(
# Line 683  halt</b> Line 680  halt</b>
680    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips    <li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips
681          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
682          in one xterm:          in one xterm:
683          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
684    
685          and then, in another xterm:          and then, in another xterm:
686          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
687    
688  </pre>  </pre>
689    <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 692  halt</b>
692          <b>mount -v 10.0.0.2:/tftpboot /mnt</b>          <b>mount -v 10.0.0.2:/tftpboot /mnt</b>
693          <b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b>          <b>cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt</b>
694          <b>halt</b>          <b>halt</b>
695  </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>
696          <tt><b>reboot</b></tt>.          on the server machine and type <tt><b>reboot</b></tt>.
697    <p>    <p>
698    <li>Once everything has been set up correctly, change    <li>Once everything has been set up correctly, change
699          <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 705  run <tt>tcpdump -lnvv</tt> or similar, t
705  actually does on the network.  actually does on the network.
706    
707  <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
708  nfs server, using the following commands: (NOTE! Execute these in two  nfs server, using the following commands: (NOTE! Execute these two
709  separate xterms!)<pre>  commands in separate xterms!)<pre>
710          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
711          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
712  </pre>  </pre>
713    
714  <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
715  the following values:<pre>  the following values:<pre>
716          root device: <b>mec0</b>          root device: <b>mec0</b>
717          dump device:                            <b>(leave blank)</b>          dump device:                            <b>(leave blank)</b>
# Line 771  common sense and imagination to modify t Line 768  common sense and imagination to modify t
768  <ol>  <ol>
769    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
770          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
771          $ <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>
772    
773  </pre>  </pre>
774    <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>
775          $ <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>
776    
777  </pre>  </pre>
778    
779    <li>Execute the following commands:<pre>    <li>Execute the following commands:
780          $ <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>
781          $ <b>gunzip simpleroot28.fs.gz</b>  <b>mv ftp.se.openbsd.org/pub/OpenBSD/2.8/pmax/simpleroot28.fs.gz .
782          $ <b>chmod +w simpleroot28.fs</b>               &lt;--- make sure  gunzip simpleroot28.fs.gz
783    chmod +w simpleroot28.fs</b>            &lt;--- make sure
784  </pre>  </pre></td></tr></table>
785    <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.
786          (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
787          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
788          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
789          $ <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>
790    
791  </pre>  </pre>
792    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
793          $ <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>
794    
795  </pre>  </pre>
796          (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
797          framebuffer. This is <i>REALLY</i> slow because the console has to          framebuffer. This is <i>REALLY</i> slow because the console has to
798          scroll a lot during the install. I don't recommend it.)          scroll a lot during the install. I don't recommend it.)
799    <p>    <p>
# Line 810  common sense and imagination to modify t Line 807  common sense and imagination to modify t
807            <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>.
808            <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.
809            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
810          $ <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
811          $ <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
812          $ <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
813          $ <b>./install</b>          <b>./install</b>
814    
815  </pre>  </pre>
816                  and proceed with the install. Good luck. :-)                  and proceed with the install. Good luck. :-)
# Line 828  common sense and imagination to modify t Line 825  common sense and imagination to modify t
825          password! The first time you boot up OpenBSD after the install, you          password! The first time you boot up OpenBSD after the install, you
826          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
827          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>
828          $ <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>
829  </pre>  </pre>
830  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
831  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
832  in the installer, perhaps because of the way I used mkisofs.)  in the installer, perhaps because of the way I used mkisofs.)
833  <p>  <p>
834  Execute the following commands in the emulator:  Execute the following commands in the emulator:
835  <pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
836          <b>fsck /dev/rz0a</b>  <b>fsck /dev/rz0a
837          <b>mount /</b>  mount /
838          <b>passwd root</b>  passwd root
839    
840          <b>cd /; mount -t cd9660 /dev/rz2c /mnt; sh</b>  cd /; mount -t cd9660 /dev/rz2c /mnt; sh
841          <b>for a in /mnt/[xX]*; do tar zxvf $a; done</b>  for a in /mnt/[xX]*; do tar zxvf $a; done
842          <b>ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X</b>  ln -s /usr/X11R6/bin/Xcfbpmax /usr/X11R6/bin/X
843          <b>ln -s /dev/fb0 /dev/mouse</b>  ln -s /dev/fb0 /dev/mouse
844          <b>echo /usr/X11R6/lib >> /etc/ld.so.conf</b>  echo /usr/X11R6/lib &gt;&gt; /etc/ld.so.conf
845          <b>ldconfig</b>  ldconfig
846    
847          <b>sync</b>  sync
848          <b>halt</b>  halt</b>
849  </pre>  </pre></td></tr></table>
850  </ol>  </ol>
851    
852  <p>  <p>
# Line 862  root password, and so on. Line 859  root password, and so on.
859  Once you have completed the installation procedure, the following command  Once you have completed the installation procedure, the following command
860  will let you boot from the new rootdisk image:  will let you boot from the new rootdisk image:
861  <pre>  <pre>
862          $ <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>
863  </pre>  </pre>
864    
865  <p>  <p>
# Line 907  instructions: Line 904  instructions:
904  <ol>  <ol>
905    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
906          that OpenBSD installs itself onto:<pre>          that OpenBSD installs itself onto:<pre>
907          $ <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>
908    
909  </pre>  </pre>
910    <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>
911          $ <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>
912    
913  </pre>  </pre>
914    
# Line 919  instructions: Line 916  instructions:
916          (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
917          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
918          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
919          $ <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>
920    
921  </pre>  </pre>
922    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
923          $ <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>
924    
925  </pre>  </pre>
926          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 933  Once the install has finished, the follo
933  boot from the harddisk image:  boot from the harddisk image:
934  <p>  <p>
935  <pre>  <pre>
936          $ <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>
937    
938  </pre>  </pre>
939    
# Line 966  The following instructions should let yo Line 963  The following instructions should let yo
963  <ol>  <ol>
964    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
965          that Ultrix installs itself onto:<pre>          that Ultrix installs itself onto:<pre>
966          $ <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>
967    
968  </pre>  </pre>
969    <li>Place your Ultrix installation media in your CDROM drive.    <li>Place your Ultrix installation media in your CDROM drive.
970          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
971          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
972          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
973          $ <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>
974    
975  </pre>  </pre>
976    <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 978  The following instructions should let yo
978          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
979          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
980          diskimage argument:<pre>          diskimage argument:<pre>
981          $ <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>
982    
983  </pre>  </pre>
984  </ol>  </ol>
# Line 989  The following instructions should let yo Line 986  The following instructions should let yo
986  <p>  <p>
987  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
988  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
989          $ <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>
990  </pre>  </pre>
991    
992  <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 1008  There is also a <b><tt>-z</tt></b> optio
1008  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1009  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1010  <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>
1011          $ <b>gxemul -M64 -N -E dec -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \
1012              -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>
1013  </pre>  </pre>
1014    
# Line 1078  The following instructions should let yo Line 1075  The following instructions should let yo
1075    
1076  </pre>  </pre>
1077    <li>Start the emulator with the following command line:<pre>    <li>Start the emulator with the following command line:<pre>
1078          $ <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>
1079    
1080  </pre>  </pre>
1081  </ol>  </ol>
# Line 1121  start the X11 environment. Line 1118  start the X11 environment.
1118  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>
1119  unstable. During my tests, even pressing the wrong key during the install  unstable. During my tests, even pressing the wrong key during the install
1120  (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
1121  rate is probably around 50%.  rate is probably around 50%.</font>
1122    
1123  <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
1124  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
1125  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
1126  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
1127  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
1128    a bug in GXemul.)</font>
1129    
1130  <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
1131  machine, an install attempt can still take several hours! </font>  a very fast host machine, an install attempt can still take several hours!
1132    </font>
1133    
1134  <p>  <p>
1135  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1150  onto a harddisk image: Line 1149  onto a harddisk image:
1149  <ol>  <ol>
1150    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1151          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1152          $ <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>
1153    
1154  </pre>  </pre>
1155    <li>Download an install kernel:<pre>    <li>Download an install kernel:<pre>
1156          <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>
1157                <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>
1158    
1159  </pre>  </pre>
1160    <p>    <p>
1161    <li>For a text-mode installation, start the emulator like this:<pre>    <li>For a text-mode installation, start the emulator like this:<pre>
1162          $ <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>
1163    
1164  </pre>  </pre>
1165          (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 1181  onto a harddisk image:
1181    <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
1182          should let you boot into Debian, and perform post-install          should let you boot into Debian, and perform post-install
1183          configuration:<pre>          configuration:<pre>
1184          $ <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>
1185    
1186  </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
1187          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 1191  onto a harddisk image:
1191          installation is finished and you're supposed to get a login prompt,          installation is finished and you're supposed to get a login prompt,
1192          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:
1193          download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>          download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>
1194          <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>
1195                <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>
1196    
1197  </pre>and boot Debian using the following command line:<pre>  </pre>and boot Debian using the following command line:<pre>
1198          $ <b>gxemul -E dec -e 3max -U -M64 -o \          <b>gxemul -e 3max -U -M64 -o \
1199              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \              'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \
1200              -d debian.img vmlinux-2.4.27-r3k-kn02</b>              -d debian.img vmlinux-2.4.27-r3k-kn02</b>
1201    
# Line 1213  The system should now be ready for every Line 1214  The system should now be ready for every
1214    
1215  <p>  <p>
1216  Use this command to boot from the completely installed disk image:<pre>  Use this command to boot from the completely installed disk image:<pre>
1217          $ <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>
1218    
1219  </pre>  </pre>
1220    
# Line 1225  support for keyboards now, on DECstation Line 1226  support for keyboards now, on DECstation
1226  possible to run Debian GNU/Linux with framebuffer/keyboard.  possible to run Debian GNU/Linux with framebuffer/keyboard.
1227  (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
1228  <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:
1229  <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>  
1230  It has other problems (ethernet doesn't seem to work, for  It has other problems (ethernet doesn't seem to work, for
1231  example), but at least it doesn't Oops that often.&nbsp;]  example), but at least it doesn't Oops that often.&nbsp;]
1232    
# Line 1254  The following steps should let you run R Line 1254  The following steps should let you run R
1254  <p>  <p>
1255  <ol>  <ol>
1256    <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>
1257          <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>
1258                <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>
1259    
1260  </pre>  </pre>
1261    <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 1284  The following steps should let you run R
1284  </pre>(Note sda1 instead of sdc1.)  </pre>(Note sda1 instead of sdc1.)
1285    <p>    <p>
1286    <li>To boot Linux, start the emulator like this:<pre>    <li>To boot Linux, start the emulator like this:<pre>
1287          $ <b>gxemul -E dec -e 3max -U -M128 -o \          <b>gxemul -e 3max -U -M128 -o \
1288              "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>
1289    
1290  </pre>  </pre>
# Line 1291  The following steps should let you run R Line 1292  The following steps should let you run R
1292    
1293  <p>  <p>
1294  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>
1295          $ <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" \
1296              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>              -d redhat.img vmlinux-2.4.27-r3k-kn02</b>
1297    
1298  </pre>  </pre>
# Line 1355  for DECstation in the emulator: Line 1356  for DECstation in the emulator:
1356  <p>  <p>
1357  <ol>  <ol>
1358    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>    <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>
1359          $ <b>./configure --enable-caches; make</b>          <b>./configure --enable-caches; make</b>
1360    
1361  </pre>  </pre>
1362    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1363          <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>
1364                <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>
1365          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0          7263343 bytes, md5 = f9d76c240a6e169921a1df99ad560cc0
1366    
1367  </pre>  </pre>
1368    <li>Extract the Mach kernel:<pre>    <li>Extract the Mach kernel:<pre>
1369          $ <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>
1370    
1371  </pre>  </pre>
1372    <li>Create an empty disk image:<pre>    <li>Create an empty disk image:<pre>
1373          $ <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>
1374    
1375  </pre>  </pre>
1376    <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 1387  for DECstation in the emulator:
1387          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1388          <p>          <p>
1389    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1390          $ <b>gxemul -E dec -e 3max -X -d disk.img \          <b>gxemul -e 3max -X -d disk.img \
1391              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1392    
1393  </pre>  </pre>
# Line 1414  it works.</font> Line 1416  it works.</font>
1416    
1417  <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
1418  mailed Adaptec several times, asking for documentation, but never received  mailed Adaptec several times, asking for documentation, but never received
1419  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
1420  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>
1421          <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>
1422    
1423  </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>.
1424    
1425  <p>It might also be possible to netboot. Another emulated machine must  <p>It might also be possible to netboot. Another emulated machine must
1426  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
1427  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>
1428  client. Performing this setup is quite time consuming, but necessary:  client. Performing this setup is quite time consuming, but necessary:
1429    
1430  <p>  <p>
1431  <ol>  <ol>
1432    <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.
1433          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1434          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.
1435          inside the emulator. (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1436    <p>    <p>
1437    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
1438          Start up the emulated DECstation:<pre>          Start up the emulated DECstation:<pre>
1439          $ <b>gxemul -M64 -Edec -e3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img</b>
1440  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
1441          inside the emulator:          inside the emulator:
1442  <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 1454  echo "10:20:30:00:00:10 client" &gt; /et
1454  echo 10.0.0.1 client &gt; /etc/hosts  echo 10.0.0.1 client &gt; /etc/hosts
1455  reboot</b>  reboot</b>
1456  </pre></td></tr></table>  </pre></td></tr></table>
1457    <li>Start the DECstation emulation again, and download the    <li>Start the DECstation emulation again, and enter the following
1458          OpenBSD/sgi distribution:<br>(NOTE: This          commands to download the OpenBSD/sgi distribution:<br>(NOTE: This
1459          takes quite some time, even if you have a fast network connection.)          takes quite some time, even if you have a fast network connection.)
1460  <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>
1461  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
1462  (log in as anonymous...)  (log in as anonymous...)
1463  <b>cd pub/OpenBSD/3.7/sgi  <b>cd pub/OpenBSD/3.7/sgi
1464  mget b* c* e* g* m*  mget b*tgz c* e* g* m*
1465  quit  quit
1466  sh  sh
1467  for a in *.tgz; do echo $a; tar zxfp $a; done  for a in *.tgz; do echo $a; tar zxfp $a; done
1468  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
1469    rm *.tgz
1470  dd if=/dev/zero of=swap bs=1024 count=32768  dd if=/dev/zero of=swap bs=1024 count=32768
1471  halt</b>  halt</b>
1472  </pre></td></tr></table>  </pre></td></tr></table>
# Line 1485  halt</b> Line 1488  halt</b>
1488    
1489  <b>emul(  <b>emul(
1490      net(      net(
1491          add_remote("127.0.0.1:12444")   </b>! the server<b>          add_remote("localhost:12444")   </b>! the server<b>
1492          local_port(12445)               </b>! the client<b>          local_port(12445)               </b>! the client<b>
1493      )      )
1494    
# Line 1508  halt</b> Line 1511  halt</b>
1511  <b>emul(  <b>emul(
1512      net(      net(
1513          local_port(12444)               </b>! the server<b>          local_port(12444)               </b>! the server<b>
1514          add_remote("127.0.0.1:12445")   </b>! the client<b>          add_remote("localhost:12445")   </b>! the client<b>
1515      )      )
1516    
1517      machine(      machine(
# Line 1525  halt</b> Line 1528  halt</b>
1528    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi    <li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi
1529          "<tt>client machine</tt>" as two separate emulator instances:<pre>          "<tt>client machine</tt>" as two separate emulator instances:<pre>
1530          in one xterm:          in one xterm:
1531          $ <b>gxemul @config_server</b>          <b>gxemul @config_server</b>
1532    
1533          and then, in another xterm:          and then, in another xterm:
1534          $ <b>gxemul @config_client</b>          <b>gxemul @config_client</b>
1535    
1536  </pre>  </pre>
1537    <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:
1538  <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>
1539  <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
1540  mount -v 10.0.0.2:/tftpboot /mnt  mount -v 10.0.0.2:/tftpboot /mnt
1541  cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt  cd /mnt/dev; ./MAKEDEV all; cd /; umount /mnt
1542  halt</b>  halt</b>
1543  </pre></td></tr></table>  </pre></td></tr></table>
1544            You might want to log in as <tt>root</tt> on the server machine, and
1545            run <tt>tcpdump -lnvv</tt> or similar, to see that what the client
1546            machine actually does on the network. The <tt>MAKEDEV</tt> script
1547            takes almost forever, so be patient.
1548  </ol>  </ol>
1549    
 <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.  
1550    
1551  <p><font color="#ff0000">NOTE: Everything up to this point should work.  <p><font color="#ff0000">NOTE: Everything up to this point should work.
1552  However, the next step (in gray) doesn't actually work:</font>  However, the next step (in gray) doesn't actually work:</font>

Legend:
Removed from v.11  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26