/[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 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC revision 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.169 2006/08/15 15:38:37 debug Exp $  $Id: guestoses.html,v 1.202 2007/02/19 01:34:42 debug Exp $
14    
15  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.
16    
17  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
18  modification, are permitted provided that the following conditions are met:  modification, are permitted provided that the following conditions are met:
# Line 48  SUCH DAMAGE. Line 48  SUCH DAMAGE.
48  <p>  <p>
49  <ul>  <ul>
50    <li><a href="#generalnotes">General notes on running "guest OSes"</a>    <li><a href="#generalnotes">General notes on running "guest OSes"</a>
51    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0.1 or 1.6.2</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.1 or 1.6.2</a>
52    <li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a>    <li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a>
53    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.0.1</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.1</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.0.1</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.1</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.0.1</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.1</a>
56    <li><a href="#netbsdalgorinstall">NetBSD/algor 3.0.1</a>    <li><a href="#netbsdalgorinstall">NetBSD/algor 3.1</a>
57    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.0.1</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.1</a>
58    <li><a href="#netbsdcatsinstall">NetBSD/cats 3.0.1</a>    <li><a href="#netbsdcatsinstall">NetBSD/cats 3.1</a>
59    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>
60    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.0.1</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.1</a>
61    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
62      <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.1</a>
63      <li><a href="#netbsddreamcast">NetBSD/dreamcast 3.1</a>
64    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
65    <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>
66    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
67    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
68    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
# Line 92  updated; if new versions have been relea Line 94  updated; if new versions have been relea
94  well.  well.
95    
96  <p>In addition to the "working" guest operating systems listed above,  <p>In addition to the "working" guest operating systems listed above,
97  you might find the following information interesting: (Some of these might  you might find the following information interesting:
 not be relevant for this specific release of GXemul.)  
98    
99  <ul>  <ul>
100    <li><a href="#mach">Mach/PMAX</a>    <li><a href="#mach">Mach/PMAX</a>
101    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
102    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
103    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
104      <!-- <li><a href="#linux_malta">Linux/Malta</a> -->
105    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
106    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
   <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>  
107    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
108  </ul>  </ul>
109    
110    <p><b><font color="#ff0000">NOTE:</b>
111    Some of these sections may not be relevant to this
112    specific release of GXemul,</font> for example some of these
113    modes may be legacy modes that worked before but not any longer,
114    or are not yet working but could be in the future.
115    
116  <p>Some operating systems are listed with a version number <i>less</i>  <p>Some operating systems are listed with a version number <i>less</i>
117  than what was available at the time of this GXemul release (e.g.  than what was available at the time of this GXemul release (e.g.
118  NetBSD/prep). The reasons for this is because of incompleteness in  NetBSD/prep). The reasons for this is because of incompleteness in
# Line 128  onto a disk image in GXemul. The device Line 135  onto a disk image in GXemul. The device
135  5000/200 is reasonably complete; it should be enough to emulate a  5000/200 is reasonably complete; it should be enough to emulate a
136  networked X-windows-capable workstation.  networked X-windows-capable workstation.
137    
138  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,
139  newer NetBSD releases have changed slightly, and nowadays X does not  newer NetBSD releases have changed slightly, and X does not work straight
140  work straight away. (It seems that this has to do with NetBSD switching  away with NetBSD 2.x and 3.x. It seems that this has to do with NetBSD
141  console system to "WSCONS" somewhere between 1.6.2 and 2.0. I haven't had  switching console system to "WSCONS" somewhere between 1.6.2 and 2.0.
142  time to figure out how to make it work; at worst it might require a kernel  
143  recompilation.) What this means is that if you want to use emulated X11,  <p>What this means is that if you want to use emulated X11, then you need
144  then you need to run NetBSD 1.6.2. If you feel that you only need  to run NetBSD 1.6.2. At the time of writing this, 4.0_BETA snapshots work
145  serial-console emulation, then choose the latest NetBSD version available.  fine too, but 4.0 isn't released yet. If you feel that you only need
146    serial-console emulation, then choose 3.1.
147    
148  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
149  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>
# Line 146  follow these instructions: Line 154  follow these instructions:
154  <p><ol start="1">  <p><ol start="1">
155    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
156          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
157          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=1900000</b>          <b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b>
158    
159  </pre>  </pre>
160  </ol>  </ol>
# Line 163  steps: Line 171  steps:
171    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
172          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a>
173          or          or
174          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmaxcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmaxcd-3.1.iso</a>
175    
176  </pre>  </pre>
177    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
178          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.1.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.1.iso</b>
179          (or <b>pmaxcd.iso</b>)          (or <b>pmaxcd.iso</b>)
180  </pre>  </pre>
181          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 182  For an ftp install, substitute steps 2 a Line 190  For an ftp install, substitute steps 2 a
190    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
191          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
192          or          or
193          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
194    
195  </pre>  </pre>
196    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 216  NetBSD from the harddisk image:<pre> Line 224  NetBSD from the harddisk image:<pre>
224          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
225  </pre>  </pre>
226    
227  <p>If you installed NetBSD/pmax 1.6.2, then try the following to start  <p>If you installed NetBSD/pmax 1.6.2, or 4.0_BETA, then try the
228  with a framebuffer:<pre>  following to start with a framebuffer:<pre>
229          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
230  </pre>  </pre>
231  and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.  and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.
# Line 249  harddisk image, follow these instruction Line 257  harddisk image, follow these instruction
257  <ol start="1">  <ol start="1">
258    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
259          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
260          <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=2000000</b>
261    
262  </pre>  </pre>
263    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc
# Line 259  harddisk image, follow these instruction Line 267  harddisk image, follow these instruction
267    
268  </pre>  </pre>
269    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
270          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso \          <b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso -j arc/binary/kernel/netbsd.RAMDISK.gz</b>
           -j arc/binary/kernel/netbsd.RAMDISK.gz</b>  
271    
272  </pre>  </pre>
273          (Try removing <tt>-x</tt> if you have problems with the xterm.)          (Try removing <tt>-x</tt> if you have problems with the xterm.)
# Line 307  image, using the following command:<pre> Line 314  image, using the following command:<pre>
314    
315  It is possible to install <a  It is possible to install <a
316  href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk  href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk
317  image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator  image, on an an emulated MobilePro 770 or 800. (MobilePro 780 and 880 might
318  treats the different machine models as being almost identical; the most  work too, but I don't test those for every release of the emulator. They
319  important difference is regarding the framebuffer.  have unaligned framebuffers, and run a bit slower.)
   
 <p><table border="0">  
         <tr>  
                 <td width="80">&nbsp;</td>  
                 <td><u>Model:</u></td>  
                 <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>  
                 <td><u>Framebuffer size/depth:</u></td>  
                 <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>  
                 <td><u>Framebuffer address:</u></td>  
         </tr>  
         <tr>  
                 <td></td>  
                 <td>MobilePro 770 (<super>*2</super>)</td>  
                 <td></td>  
                 <td>640 x 240, 16 bits</td>  
                 <td></td>  
                 <td>0xa000000</td>  
         </tr>  
         <tr>  
                 <td></td>  
                 <td>MobilePro 780</td>  
                 <td></td>  
                 <td>640 x 240, 16 bits</td>  
                 <td></td>  
                 <td>0xa180100 (<super>*</super>)</td>  
         </tr>  
         <tr>  
                 <td></td>  
                 <td>MobilePro 800</td>  
                 <td></td>  
                 <td>800 x 600, 16 bits</td>  
                 <td></td>  
                 <td>0xa000000</td>  
         </tr>  
         <tr>  
                 <td></td>  
                 <td>MobilePro 880</td>  
                 <td></td>  
                 <td>800 x 600, 16 bits</td>  
                 <td></td>  
                 <td>0xa0ea600 (<super>*</super>)</td>  
         </tr>  
 </table>  
   
 <p>  
 (<super>*</super>) = not aligned at a page boundary, so it will not work  
 efficiently with the current dyntrans system. Using this mode will still  
 work, but each load and store will be emulated much more slowly than is  
 possible with an aligned framebuffer.  
   
 <p>  
 (<super>*2</super>) = The MobilePro 770's cursor keys work differently  
 than the other models, for some reason. (This is a known bug.)  
320    
321  <p>  <p>
322  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 378  NetBSD/hpcmips on an emulated MobilePro Line 332  NetBSD/hpcmips on an emulated MobilePro
332  <ol start="1">  <ol start="1">
333    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
334          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
335          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=3000000</b>
336    
337  </pre>  </pre>
338    <li>Download the NetBSD/hpcmips 3.0.1 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.1 ISO image, and a generic kernel:<pre>
339          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/hpcmipscd-3.0.1.iso">hpcmipscd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/hpcmipscd-3.1.iso">hpcmipscd-3.1.iso</a>
340          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
341    
342  </pre>  </pre>
343    <p>    <p>
344    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
345          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img -d b:hpcmipscd-3.1.iso -j hpcmips/installation/netbsd.gz</b>
           -d b:hpcmipscd-3.0.1.iso -j hpcmips/installation/netbsd.gz</b>  
346    
347  </pre>  </pre>
348          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 404  Use the following command line to boot t Line 357  Use the following command line to boot t
357    
358  </pre>  </pre>
359    
 <p>If you change your mind at this point regarding which machine type to  
 emulate, you might for example prefer a MobilePro 800, then you can change  
 that at any time. NetBSD/hpcmips is designed to be able to boot on many  
 types, without any need to change the kernel.  
   
360  <p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to  <p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to
361  start X Windows, but there is no mouse support yet so only keyboard input  start X Windows, but there is no mouse support yet so only keyboard input
362  is available. This makes it a bit akward to use X.  is available. This makes it a bit akward to use X.
# Line 441  image, from an emulated DECstation 3MAX Line 389  image, from an emulated DECstation 3MAX
389  <p>  <p>
390  <ol>  <ol>
391    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
392          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
393  </pre>  </pre>
394    <p>    <p>
395    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 449  image, from an emulated DECstation 3MAX Line 397  image, from an emulated DECstation 3MAX
397          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=700000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=700000</b>
398    
399  </pre>  </pre>
400    <li>Download the generic kernel for Cobalt and the 3.0.1 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 3.1 ISO image:<pre>
401          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
402          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/cobaltcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/cobaltcd-3.1.iso</a>
403    
404  </pre>  </pre>
405    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
406          <b>gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.0.1.iso netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.1.iso netbsd-INSTALL.gz</b>
407    
408  </pre>  </pre>
409    <li>Log in as root (on the emulated 3MAX machine), and execute the    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
410          following commands: (adjust according to taste)  to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
411  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
412  <b>newfs /dev/sd0c  <b>newfs /dev/sd0c
413  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
# Line 516  image, from an emulated DECstation 3MAX Line 464  image, from an emulated DECstation 3MAX
464  <p>  <p>
465  <ol>  <ol>
466    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
467          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
468  </pre>  </pre>
469    <p>    <p>
470    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 524  image, from an emulated DECstation 3MAX Line 472  image, from an emulated DECstation 3MAX
472          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=700000</b>          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=700000</b>
473    
474  </pre>  </pre>
475    <li>Download the Malta kernel and the 3.0.1 ISO image:<pre>    <li>Download the Malta kernel and the 3.1 ISO image:<pre>
476          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
477          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/evbmips-mipselcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/evbmips-mipselcd-3.1.iso</a>
478    
479  </pre>  </pre>
480    <p>    <p>
481    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
482          <b>gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.0.1.iso netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.1.iso netbsd-INSTALL.gz</b>
483    
484  </pre>  </pre>
485    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
# Line 556  cd /; umount /mnt; umount /mnt2; halt</b Line 504  cd /; umount /mnt; umount /mnt2; halt</b
504    
505  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
506  (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
507  3.0.1, however, there will be little or no difference in functionality, as  3.1, however, there will be little or no difference in functionality, as
508  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
509  that differ:<ol>  that differ:<ol>
510    <li>The dynamic translation core runs faster when emulating 32-bit    <li>The dynamic translation core runs faster when emulating 32-bit
# Line 607  image, from an emulated DECstation 3MAX Line 555  image, from an emulated DECstation 3MAX
555  <p>  <p>
556  <ol>  <ol>
557    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
558          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
559  </pre>  </pre>
560    <p>    <p>
561    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 615  image, from an emulated DECstation 3MAX Line 563  image, from an emulated DECstation 3MAX
563          <b>dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000</b>          <b>dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000</b>
564    
565  </pre>  </pre>
566    <li>Download the P5064 Algor kernel and the 3.0.1 ISO image:<pre>    <li>Download the P5064 Algor kernel and the 3.1 ISO image:<pre>
567          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/algor/binary/kernel/netbsd-P5064.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/algor/binary/kernel/netbsd-P5064.gz</a>
568          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/algorcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/algorcd-3.1.iso</a>
569    
570  </pre>  </pre>
571    <p>    <p>
572    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
573          <b>gxemul -e 3max -d nbsd_algor.img -d algorcd-3.0.1.iso netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -d nbsd_algor.img -d algorcd-3.1.iso netbsd-INSTALL.gz</b>
574    
575  </pre>  </pre>
576    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
# Line 682  NetBSD can still run in the emulator, as Line 630  NetBSD can still run in the emulator, as
630    
631  <p>For a simple test with the ramdisk/install kernel, try  <p>For a simple test with the ramdisk/install kernel, try
632  dowloading<pre>  dowloading<pre>
633          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
634    
635  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -x -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.
636    
# Line 694  time consuming, but necessary: Line 642  time consuming, but necessary:
642  <ol>  <ol>
643    <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.
644          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
645          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>.
646          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
647    <p>    <p>
648    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 702  time consuming, but necessary: Line 650  time consuming, but necessary:
650          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
651  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
652          inside the emulator:          inside the emulator:
653  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
654  <b>echo hostname=server &gt;&gt; /etc/rc.conf  <b>echo hostname=server &gt;&gt; /etc/rc.conf
655  echo ifconfig_le0=\"inet 10.0.0.2\" &gt;&gt; /etc/rc.conf  echo ifconfig_le0=\"inet 10.0.0.2\" &gt;&gt; /etc/rc.conf
656  echo nameserver 10.0.0.254 &gt;&gt; /etc/resolv.conf  echo nameserver 10.0.0.254 &gt;&gt; /etc/resolv.conf
# Line 727  client:\ Line 675  client:\
675  echo 10.0.0.1 client &gt; /etc/hosts  echo 10.0.0.1 client &gt; /etc/hosts
676  reboot</b>  reboot</b>
677  </pre></td></tr></table>  </pre></td></tr></table>
678    <li>Start the DECstation emulation again, and download the    <p>
679          NetBSD/sgimips distribution sets:<br>(NOTE: This    <li>Download the NetBSD/sgimips CD-ROM iso image, and the
680          takes quite some time, even if you have a fast network connection.)          GENERIC and INSTALL kernels:<pre>
681  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/sgimipscd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/sgimipscd-3.1.iso</a>
682  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
683  (log in as anonymous...)          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
684  <b>cd /pub/NetBSD/NetBSD-3.0.1/sgimips/binary/sets  
685  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz  </pre>
686  quit    <li>Start the DECstation emulation again:<pre>
687  sh          <b>gxemul -e 3max -d nbsd_pmax.img -d sgimipscd-3.1.iso</b>
688  for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done  
689    </pre>and extract the files from the sgimips CD-ROM image to the
690            DECstation disk image:
691    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
692    <b>cd /tftpboot; mount /dev/cd0a /mnt
693    for a in /mnt/sgimips/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done
694  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
695  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
696  dd if=/dev/zero of=swap bs=1024 count=32768  echo 10.0.0.254 &gt;&gt; /tftpboot/etc/mygate
697  halt</b>  echo nameserver 10.0.0.254 &gt;&gt; /tftpboot/etc/resolv.conf
698    echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
699    dd if=/dev/zero of=swap bs=1024 count=65536
700    cd /; umount /mnt; halt</b>
701  </pre></td></tr></table>  </pre></td></tr></table>
702    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <p>
         <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>  
         <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>  
   
 </pre>  
703    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
704  <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>
705  <font color="#2020cf">!  Configuration file for running NetBSD/sgimips diskless with  <font color="#2020cf">!  Configuration file for running NetBSD/sgimips diskless with
# Line 865  To install NetBSD/cats onto a disk image Line 817  To install NetBSD/cats onto a disk image
817  <ol start="1">  <ol start="1">
818    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
819          that you will install NetBSD/cats onto:<pre>          that you will install NetBSD/cats onto:<pre>
820          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=3000000</b>
821    
822  </pre>  </pre>
823    <li>Download the NetBSD/cats 3.0.1 ISO image and the generic and install kernels:<pre>    <li>Download the NetBSD/cats 3.1 ISO image and the generic and install kernels:<pre>
824          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/catscd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/catscd-3.1.iso</a>
825          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
826          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
827    
828  </pre>  </pre>
829    <p>    <p>
830    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
831          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.1.iso netbsd.aout-INSTALL.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.1.iso netbsd.aout-INSTALL.gz</b>
832    
833  </pre>  </pre>
834          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 884  To install NetBSD/cats onto a disk image Line 836  To install NetBSD/cats onto a disk image
836  </ol>  </ol>
837    
838  <p>Alternatively, to install from FTP, you can skip downloading the ISO,  <p>Alternatively, to install from FTP, you can skip downloading the ISO,
839  and start the install without <tt>-d catscd-3.0.1.iso</tt>. Suitable network  and start the install without <tt>-d catscd-3.1.iso</tt>. Suitable network
840  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
841  255.0.0.0, nameserver 10.0.0.254.  255.0.0.0, nameserver 10.0.0.254.
842    
# Line 919  image, from an emulated CATS machine: Line 871  image, from an emulated CATS machine:
871    
872  <p>  <p>
873  <ol>  <ol>
874    <li>Install NetBSD/cats 3.0.1 according to instructions    <li>Install NetBSD/cats 3.1 according to instructions
875          <a href="#netbsdcatsinstall">further up on this page</a>.          <a href="#netbsdcatsinstall">further up on this page</a>.
876    <p>    <p>
877    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 933  image, from an emulated CATS machine: Line 885  image, from an emulated CATS machine:
885    
886  </pre>  </pre>
887    <p>    <p>
888    <li>The first step is to copy the .tgz files we want onto the CATS    <li>The first step is to copy the distribution .tgz files onto the CATS
889          machine's harddisk. Start the CATS machine like this:<pre>          machine's harddisk. Start the CATS machine like this:<pre>
890          <b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b>
891    
# Line 996  emulated DECstation 3MAX machine: Line 948  emulated DECstation 3MAX machine:
948  <p>  <p>
949  <ol>  <ol>
950    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
951          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
952  </pre>  </pre>
953    <p>    <p>
954    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 1004  emulated DECstation 3MAX machine: Line 956  emulated DECstation 3MAX machine:
956          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
957    
958  </pre>  </pre>
959    <li>Download the generic kernel and the 3.0.1 ISO image:<pre>    <li>Download the generic kernel and the 3.1 ISO image:<pre>
960          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
961          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/netwindercd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/netwindercd-3.1.iso</a>
962    
963  </pre>  </pre>
964    <p>    <p>
965    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
966          <b>gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.0.1.iso netbsd-INSTALL.gz</b>          <b>gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.1.iso netbsd-INSTALL.gz</b>
967    
968  </pre>  </pre>
969    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>    <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
# Line 1076  generic kernel:<pre> Line 1028  generic kernel:<pre>
1028  <a name="netbsdprepinstall"></a>  <a name="netbsdprepinstall"></a>
1029  <h3>NetBSD/prep:</h3>  <h3>NetBSD/prep:</h3>
1030    
1031  It is possible to install and run  It is possible to install and run <a
1032  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul  href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul on
1033  on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc  an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use
1034  controller in a way which isn't implemented in GXemul yet.)  the wdc controller in a way which isn't implemented in GXemul yet, or
1035    there are bugs in GXemul's PowerPC CPU emulation.)
1036    
1037  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1038  <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>  <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>
# Line 1100  controller in a way which isn't implemen Line 1053  controller in a way which isn't implemen
1053  </pre>  </pre>
1054    <p>    <p>
1055    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1056      <b>gxemul -x -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>      <b>gxemul -X -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>
1057    
1058  </pre>  </pre>
1059    <p>    <p>
# Line 1153  controller in a way which isn't implemen Line 1106  controller in a way which isn't implemen
1106    
1107  <p>If everything worked, NetBSD should now be installed on the disk image.  <p>If everything worked, NetBSD should now be installed on the disk image.
1108  Use the following command line to boot the emulated machine:<pre>  Use the following command line to boot the emulated machine:<pre>
1109          <b>gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>          <b>gxemul -X -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>
1110    
1111  </pre>  </pre>
1112    
# Line 1172  system type, and init path. Line 1125  system type, and init path.
1125    
1126    
1127    
1128    <p><br>
1129    <a name="netbsdmacppcinstall"></a>
1130    <h3>NetBSD/macppc:</h3>
1131    
1132    It is possible to install and run <a
1133    href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul on
1134    an emulated generic PowerPC machine. No specific Machintosh model is
1135    emulated, but it is enough to for NetBSD to recognize it.
1136    
1137    <p>To install NetBSD/macppc onto a disk image, follow these instructions:
1138    
1139    <p>
1140    <ol start="1">
1141      <li>Create an empty harddisk image, which will be the root disk
1142            that you will install NetBSD/macppc onto:<pre>
1143        <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b>
1144    
1145    </pre>
1146      <li>Download the NetBSD/macppc 3.1 ISO image and a generic kernel:<pre>
1147        <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso</a>
1148        <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>
1149    
1150    </pre>
1151      <p>
1152      <li>Start the installation like this:<pre>
1153        <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.1.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>
1154    
1155    </pre>
1156            and continue as you would do when installing NetBSD on a real
1157            machine.
1158      <p>
1159      <li>Before turning the emulated machine off, quit the NetBSD installer
1160            and execute the following commands:<pre>
1161            <b>cd /; mount /dev/wd0a /mnt
1162            echo 'console "/usr/libexec/getty std.38400" vt100 on secure' > /mnt/etc/ttys
1163            echo 'rc_configured=YES' >> /mnt/etc/rc.conf
1164            umount /mnt; sync
1165            reboot</b>
1166    
1167    </pre>
1168    </ol>
1169    
1170    <p>If everything worked, NetBSD/macppc should now be installed on
1171    the disk image.
1172    
1173    <p>Use the following command line to boot the emulated machine:<pre>
1174            <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>
1175    
1176    </pre>
1177    
1178    <p>If asked about <tt>root device</tt>, enter <tt><b>wd0</b></tt>.
1179    
1180    
1181    
1182    
1183    
1184    
1185    
1186    
1187    
1188    
1189    
1190    
1191    
1192    <p><br>
1193    <a name="netbsddreamcast"></a>
1194    <h3>NetBSD/dreamcast:</h3>
1195    
1196    Moved <a href="dreamcast.html#netbsd_generic_md">here</a>.
1197    
1198    
1199    
1200    
1201    
1202    
1203    
1204    
1205    
1206    
1207    
1208    
1209    
1210    
# Line 1248  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1281  chmod +w simpleroot28.fs</b>           &lt;--- ma
1281            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
1282          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
1283          <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
1284            <b>mkdir /kern</b>
1285            <b>mkdir /mnt2</b>
1286          <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
1287          <b>./install</b>          <b>./install</b>
1288    
# Line 1325  enter <b><tt>rcons</tt></b> if you are u Line 1360  enter <b><tt>rcons</tt></b> if you are u
1360    
1361  It is possible to install and run  It is possible to install and run
1362  <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>  <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>
1363  in GXemul.  in GXemul. Unfortunately, "The OpenBSD/cats port has been discontinued
1364    after the 4.0 release." according to
1365    <a href="http://www.openbsd.org/cats.html">http://www.openbsd.org/cats.html</a>,
1366    but 4.0 should run fine.
1367    
1368  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1369  <a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a>  <a href="20051007-openbsd-cats-installed.png"><img src="20051007-openbsd-cats-installed_small.png"></a>
# Line 1341  follow these instructions: Line 1379  follow these instructions:
1379    
1380  </pre>  </pre>
1381    <li>Download the entire cats directory from the ftp server:<pre>    <li>Download the entire cats directory from the ftp server:<pre>
1382          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.9/cats/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/</a></b>
1383          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd .</b>          <b>cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd .</b>
1384          <b>cp ftp.openbsd.org/pub/OpenBSD/3.9/cats/bsd.rd .</b>          <b>cp ftp.se.openbsd.org/pub/OpenBSD/4.0/cats/bsd.rd .</b>
1385    
1386  </pre>  </pre>
1387          (Replace ftp.openbsd.org with a server closer to you, for          (Replace ftp.se.openbsd.org with a server closer to you, for
1388          increased download speed.)          increased download speed.)
1389    <p>    <p>
1390    <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.
1391          (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
1392          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1393          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1394          <b>mkisofs -allow-lowercase -o openbsd_cats_3.9.iso ftp.openbsd.org/pub/OpenBSD/</b>          <b>mkisofs -allow-lowercase -o openbsd_cats_4.0.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
1395          <b>rm -rf ftp.openbsd.org</b>      <i>(this directory is not needed anymore)</i>          <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1396    
1397  </pre>  </pre>
1398    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1399          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.9.iso bsd.rd</b>          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_4.0.iso bsd.rd</b>
1400    
1401  </pre>  </pre>
1402          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 1440  timer related bug, which makes it imposs Line 1478  timer related bug, which makes it imposs
1478  triggered when the emulation goes faster than any real DECstation machine  triggered when the emulation goes faster than any real DECstation machine
1479  was capable of running. A temporary workaround is to add  was capable of running. A temporary workaround is to add
1480  <b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million  <b><tt>-I33000000</tt></b> to fix the emulated clock speed to 33 million
1481  instructions per emulated second. (When using <tt><b>-CR4400</b></tt>,  instructions per emulated second.
 <b><tt>-I16000000</tt></b> should be used instead.)  
1482    
1483  <p>  <p>If the workaround above doesn't work, you can also start up other
1484  You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a  processes on the host, apart from the emulator, so that the emulator runs
1485    more slowly. This is an ugly workaround, but seems to work. Once you have
1486    logged in into Ultrix, you can kill the extra processes.
1487    
1488    <p>You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a
1489  dual-headed workstation) or even <b><tt>-Z3</tt></b> (tripple-headed), and  dual-headed workstation) or even <b><tt>-Z3</tt></b> (tripple-headed), and
1490  also the <b><tt>-Y2</tt></b> option for scaling down the framebuffer  also the <b><tt>-Y2</tt></b> option for scaling down the framebuffer
1491  windows by a factor 2x2.  windows by a factor 2x2.
# Line 1456  tripple-headed workstation, on three dif Line 1497  tripple-headed workstation, on three dif
1497              -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>
1498  </pre>  </pre>
1499    
1500  <p>  <p>The photo below shows a single Ultrix session running tripple-headed in
 The photo below shows a single Ultrix session running tripple-headed in  
1501  GXemul on an Alpha 21164PC, with displays on a Sun Ultra1 (to the left),  GXemul on an Alpha 21164PC, with displays on a Sun Ultra1 (to the left),
1502  on the Alpha itself (in the middle), and on an HP700/RX X-terminal (8-bit  on the Alpha itself (in the middle), and on an HP700/RX X-terminal (8-bit
1503  color depth, running off the Alpha) to the right.  color depth, running off the Alpha) to the right.
1504    
1505  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
1506  <a href="20041209-ultrix-tripplehead.jpg"><img src="20041209-ultrix-tripplehead_small.jpg"></a>  <a href="20041209-ultrix-tripplehead.jpg"><img src="20041209-ultrix-tripplehead_small.jpg"></a>
1507    
1508  <p>  <p>The X11 displays may differ in bit depth and endianness. Unfortunately,
 The X11 displays may differ in bit depth and endianness. Unfortunately,  
1509  there is no way yet to set the scaledown factor on a per-window basis, so  there is no way yet to set the scaledown factor on a per-window basis, so
1510  the scaledown factor affects all windows.  the scaledown factor affects all windows.
1511    
1512  <p>  <p>(If you didn't use <tt><b>-Z<i>n</i></b></tt> during the installation, and
 (If you didn't use <tt><b>-Z<i>n</i></b></tt> during the installation, and  
1513  compiled your own <tt>/vmunix</tt>, then it will not contain support for  compiled your own <tt>/vmunix</tt>, then it will not contain support for
1514  multiple graphics cards. To overcome this problem, use the generic kernel,  multiple graphics cards. To overcome this problem, use the generic kernel,
1515  <tt><b>-j genvmunix</b></tt>, whenever you are running the emulator with a  <tt><b>-j genvmunix</b></tt>, whenever you are running the emulator with a
1516  different setup than the one you used when Ultrix was installed.)  different setup than the one you used when Ultrix was installed.)
1517    
1518  <p>  <p>A note for the historically interested: OSF/1 for MIPS was quite similar
 A note for the historically interested: OSF/1 for MIPS was quite similar  
1519  to Ultrix, so that is possible to run as well.  If you are unsuccessful  to Ultrix, so that is possible to run as well.  If you are unsuccessful
1520  in installing Ultrix or OSF/1 directly in the emulator, you can always  in installing Ultrix or OSF/1 directly in the emulator, you can always
1521  install it on your real machine onto a real SCSI disk, and then copy the  install it on your real machine onto a real SCSI disk, and then copy the
# Line 1560  start the X11 environment. Line 1596  start the X11 environment.
1596  <h3>Debian GNU/Linux for DECstation:</h3>  <h3>Debian GNU/Linux for DECstation:</h3>
1597    
1598  It is possible to run Debian GNU/Linux for DECstation in the emulator,  It is possible to run Debian GNU/Linux for DECstation in the emulator,
1599  on an emulated 5000/200 ("3max"). Although the Debian project has released  on an emulated 5000/200 ("3max"). However, just choosing any
1600  install ramdisk kernels for this purpose, these do not always work:  Linux/DECstation kernel at random for the installation will not work.
1601  <ul>  
1602    <li>Serial console output doesn't work too well in GXemul. Linux  <p><ul>
1603          oopses randomly, which may be due to bugs in GXemul, but may    <li>Linux 2.4/DECstation DZ serial console output doesn't work too well in
1604          also be due to bugs in the serial controller code in Linux.          GXemul. Linux oopses randomly, which may be due to bugs in GXemul,
1605            but may also be due to bugs in the serial controller code in Linux.
1606          (The speed at which serial interrupts are generated can be          (The speed at which serial interrupts are generated can be
1607          lowered with the <tt>-U</tt> command line option, but it only          lowered with the <tt>-U</tt> command line option, but it only
1608          reduces the risk, it doesn't take away the oopses completely.)          reduces the risk, it doesn't take away the oopses completely.)
1609    <li>Old install kernels supported the graphical framebuffer on the    <li>The Linux 2.6/DECstation DZ serial console driver doesn't work at
1610          3max, but not the keyboard.          all in the emulator, and I'm not really sure it would work on a
1611    <li>For quite some time, the MIPS linux cvs tree had support for the          real 5000/200 either. Hopefully this will be fixed in Linux in
1612          keyboard, but it did <i>not</i> include Debian's patches for          the future.
1613          networking. (Perhaps this has been fixed now, I don't know.)    <li>To get around the serial console problem, the obvious solution is to
1614            use a graphical framebuffer instead. Old Debian install kernels
1615            supported the graphical framebuffer on the 3max, but not the
1616            keyboard. (This has been fixed now, it seems.)
1617      <li>For quite some time, the MIPS linux cvs tree has had support for the
1618            framebuffer and keyboard, but it did not include Debian's
1619            patches for networking, which made it unusable for network
1620            installs. (Possibly fixed now.)
1621      <li>The kernel has to be for 5000/200. This rules out using
1622            the default kernel on netinst ISO images provided by Debian.
1623            These ISO images boot directly into a kernel which is meant
1624            for a different DECstation model.
1625      <li>The kernel has to have an initrd which more or less matches the
1626            version of Debian that will be installed.
1627  </ul>  </ul>
1628    
1629  <p>David Muse has made available a precompiled install kernel which  <p>Luckily, a precompiled install kernel has been made available by David
1630  has support for framebuffer, keyboard, and networking, which works  Muse, for Debian for R3000 DECstations, which has support for framebuffer,
1631  pretty well. Thanks David. :-)  keyboard, and networking, which works pretty well. Thanks David. :-)
1632    
1633  <p>  <p>The following steps should let you install Debian GNU/Linux for
1634  The following steps should let you install Debian GNU/Linux for DECstation  DECstation onto a harddisk image in the emulator:
 onto a harddisk image:  
1635    
1636  <p>  <p>
1637  <ol>  <ol>
1638    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1639          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1640          <b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=3300000</b>          <b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=6000000</b>
1641    
1642  </pre>  </pre>
1643    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>
# Line 1652  onto a harddisk image: Line 1701  onto a harddisk image:
1701          <p>The post-install step takes quite some time as well. A perfect opportunity          <p>The post-install step takes quite some time as well. A perfect opportunity
1702          for more coffee.          for more coffee.
1703    
1704            <p>When asked about whether the hardware clock is set to GMT or
1705            not, answer Yes.
1706    
1707          <p>When asked about "Apt configuration", choose <b>http</b> as the method          <p>When asked about "Apt configuration", choose <b>http</b> as the method
1708          to use for accessing the Debian archive.          to use for accessing the Debian archive.
1709    
# Line 1697  The following steps should let you run R Line 1749  The following steps should let you run R
1749    
1750  </pre>  </pre>
1751    <li>Download a root filesystem tree:<pre>    <li>Download a root filesystem tree:<pre>
1752          <a href="ftp://ftp.uni-wuppertal.de/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.uni-wuppertal.de/pub/linux/mips/</a>          <a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a>
          <a href="ftp://ftp.uni-wuppertal.de/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">mipsel-linux/root/mipsel-root-20011216.tgz</a>  
1753          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
1754    
1755  </pre>  </pre>
# Line 1779  for DECstation in the emulator: Line 1830  for DECstation in the emulator:
1830    
1831  <p>  <p>
1832  <ol>  <ol>
   <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>  
         <b>./configure --enable-caches; make</b>  
   
 </pre>  
1833    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1834          <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>          <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>
1835              <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>              <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>
# Line 1811  for DECstation in the emulator: Line 1858  for DECstation in the emulator:
1858          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1859          <p>          <p>
1860    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1861          <b>gxemul -e 3max -X -d disk.img \          <b>gxemul -c 'put w 0x800990e0, 0' -c 'put w 0x80099144, 0' \
1862                -c 'put w 0x8004aae8, 0' -e 3max -X -d disk.img \
1863              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1864    
1865  </pre>  </pre>
1866  </ol>  </ol>
1867    
1868    <p>Earlier versions of GXemul had a configure option to enable better
1869    R3000 cache emulation, but since Mach was more or less the only thing that
1870    used it, I removed it. Today's version of GXemul can thus not boot
1871    mach.boot.MK83.STD+ANY straight off, it has to be patched to skip the
1872    cache detection.
1873    
1874    <p>The -c commands above patch the kernel to get past the cache detection.
1875    Thanks to Artur Bujdoso for these values.
1876    
1877    <p>TODO: Better instructions on how to create the old-style UFS disk
1878    image.
1879    
1880    
1881    
# Line 1855  client. Performing this setup is quite t Line 1913  client. Performing this setup is quite t
1913  <ol>  <ol>
1914    <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.
1915          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1916          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>.
1917          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1918    <p>    <p>
1919    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 2135  fdisk and mke2fs, which are useful for c Line 2193  fdisk and mke2fs, which are useful for c
2193    
2194    
2195    
2196    <!--
2197    <p><br>
2198    <a name="linux_malta"></a>
2199    <h3>Linux/Malta:</h3>
2200    
2201    <p>The Malta emulation mode is best suited for running <a
2202    href="#netbsdevbmipsinstall">NetBSD/evbmips</a>, however, it is possible
2203    to experiment with Linux/Malta as well.
2204    
2205    <p>The general idea behind Linux/Malta seems to be that the end user
2206    always compiles his/her own kernel, applies patches, downloads
2207    userland separately, etc. For that reason, Linux/Malta support in the
2208    emulator is not tested for every release (sometimes it works, sometimes it
2209    doesn't work), and these instructions are kind of "fuzzy".
2210    
2211    <p><ol start="1">
2212      <li>Create an empty harddisk image, which will be the root disk
2213            that Linux/Malta will be installed onto:<pre>
2214            <b>dd if=/dev/zero of=linux.img bs=1024 count=1 seek=5000000</b>
2215    
2216    </pre>
2217      <li>Download a MIPS root filesystem tree:<pre>
2218            <a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a>
2219            19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
2220    
2221    </pre>
2222            This is an old Redhat tree from 2001, but it seems to almost work.
2223      <p>
2224      <li>Download one precompiled Malta kernel, with ramdisk,
2225            and one without ramdisk (which will be used later on
2226            when booting from disk):<pre>
2227            TODO
2228    
2229    </pre>
2230      <li>Start the emulator with the ramdisk kernel, create a MS-DOS style
2231            MBR on the disk, create the filesystem, and extract the
2232            userland files:<pre>
2233            <b>gunzip vmlinux_2.*
2234            gunzip mipsel-root-20011216.tar
2235            gxemul -xemalta -d linux.img -d mipsel-root-20011216.tar vmlinux_2.4.33.2-ide-pci-ramdisk.elf</b>
2236            Inside GXemul: Log in as root and execute the following commands:
2237            <b>fdisk /dev/hda</b>
2238            (enter suitable commands, e.g. <b>n, p, 1, 1, 9921, w</b>)
2239            <b>mkfs /dev/hda1
2240            mount /dev/hda1 /mnt
2241            cd /mnt; tar -xf /dev/hdb; cd ..
2242            umount /mnt; sync; reboot</b>
2243    
2244    </pre>
2245    </ol>
2246    
2247    <p>It should now be possible to boot from the disk image, using the
2248    following command:
2249    
2250    <p><pre>
2251    <b>     gxemul -xemalta -d linux.img -o "root=/dev/hda1 rw" vmlinux_2.6.18-rc4-ide-pci-novty.elf</b>
2252    </pre>
2253    
2254    <p>There's a slight problem with this specific Redhat tree, so when you
2255    see the message "Configuring kernel parameters:  [  OK  ]", press CTRL-C
2256    once.
2257    -->
2258    
2259    
2260    
2261    
2262    
2263    
2264  <p><br>  <p><br>
2265  <a name="linux_qemu_mips"></a>  <a name="linux_qemu_mips"></a>
# Line 2144  I've added a semi-bogus machine mode whi Line 2269  I've added a semi-bogus machine mode whi
2269  mimic the MIPS machine mode used in Fabrice Bellard's  mimic the MIPS machine mode used in Fabrice Bellard's
2270  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
2271    
2272  <p>Follow these steps to download and run the Linux/QEMU_MIPS test  <p>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>
2273  ramdisk kernel:  from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
2274    and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
2275    
2276  <p><ol>  <p>Test it in GXemul using the following command line:<pre>
   <li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>  
         from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,  
         and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).  
   <p>  
   <li>Test it in GXemul using the following command line:<pre>  
2277          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
2278                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
2279                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
# Line 2160  ramdisk kernel: Line 2281  ramdisk kernel:
2281  </pre>  </pre>
2282  </ol>  </ol>
2283    
 <p><i>"QEMU is a FAST! processor emulator"</i> according to <a  
 href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>.  
 Sometimes QEMU is faster than GXemul, sometimes it is the other way  
 around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32,  
 I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package  
 from FreeBSD ports with GXemul gave the following result:  
   
 <p><pre>  
         <b>while true; do ls -l > /dev/null; echo -n .; done</b>  
         (80 x 36 dots)  
         QEMU 0.8.1:       13 min 48 sec  
         GXemul 0.4.2:      4 min 31 sec  
   
         <b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b>  
         (80 dots)  
         QEMU 0.8.1:        2 min  9 sec  
         GXemul 0.4.2:      5 min 18 sec  
   
         <b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b>  
         (80 dots)  
         QEMU 0.8.1:       10 min  5 sec  
         GXemul 0.4.2:      1 min 36 sec  
 </pre>  
   
 <p>The commands were run inside the emulators, using the ramdisk kernel  
 mentioned above.  
   
2284    
2285    
2286    
# Line 2237  but then it crashes because of incomplet Line 2331  but then it crashes because of incomplet
2331    
2332    
2333    
   
   
   
   
   
 <p><br>  
 <a name="netbsdmacppcinstall"></a>  
 <h3>NetBSD/macppc:</h3>  
   
 It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run  
 <a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul  
 on an emulated generic PowerPC machine. No specific Machintosh model  
 is emulated, but it is enough to for NetBSD to recognize it.  
   
 <p>To install NetBSD/macppc onto a disk image, follow these instructions:  
   
 <p>  
 <ol start="1">  
   <li>Create an empty harddisk image, which will be the root disk  
         that you will install NetBSD/macppc onto:<pre>  
     <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b>  
   
 </pre>  
   <li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre>  
     <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso</a>  
     <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>  
   
 </pre>  
   <p>  
   <li>Start the installation like this:<pre>  
     <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>  
   
 </pre>  
 </ol>  
   
 <p>If everything worked, NetBSD/macppc should now be installed on the disk image.  
   
 <p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation  
 succeeds, but it is not possible to start from the newly installed disk.  
 /sbin/init dies, so the following command doesn't really work yet:  
   
 <p>Use the following command line to boot the emulated machine:<pre>  
         <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>  
   
 </pre>  
   
   
   
   
   
   
   
2334    
2335    
2336    

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

  ViewVC Help
Powered by ViewVC 1.1.26