/[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 40 by dpavlin, Mon Oct 8 16:22:11 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.219 2007/05/01 04:03:34 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="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a>
64      <li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a>
65    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
66    <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>
67      <li><a href="#openbsdlandiskinstall">OpenBSD/landisk 4.1</a>
68    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
69    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
70    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
   <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>  
71  </ul>  </ul>
72    
73    
# Line 92  updated; if new versions have been relea Line 95  updated; if new versions have been relea
95  well.  well.
96    
97  <p>In addition to the "working" guest operating systems listed above,  <p>In addition to the "working" guest operating systems listed above,
98  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.)  
99    
100  <ul>  <ul>
101    <li><a href="#mach">Mach/PMAX</a>    <li><a href="#mach">Mach/PMAX</a>
102      <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>
103    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
104    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
105    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
106      <!-- <li><a href="#linux_malta">Linux/Malta</a> -->
107    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
108    <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>  
109    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
110      <li><a href="#netbsdlandiskinstall">NetBSD/landisk</a>
111  </ul>  </ul>
112    
113    <p><b><font color="#ff0000">NOTE:</b>
114    Some of these sections may not be relevant to this
115    specific release of GXemul,</font> for example some of these
116    modes may be legacy modes that worked before but not any longer,
117    or are not yet working but could be in the future.
118    
119  <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>
120  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.
121  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 138  onto a disk image in GXemul. The device
138  5000/200 is reasonably complete; it should be enough to emulate a  5000/200 is reasonably complete; it should be enough to emulate a
139  networked X-windows-capable workstation.  networked X-windows-capable workstation.
140    
141  <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,
142  newer NetBSD releases have changed slightly, and nowadays X does not  newer NetBSD releases have changed slightly, and X does not work straight
143  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
144  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.
145  time to figure out how to make it work; at worst it might require a kernel  
146  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
147  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
148  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
149    serial-console emulation, then choose 3.1.
150    
151  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
152  <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 157  follow these instructions:
157  <p><ol start="1">  <p><ol start="1">
158    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
159          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
160          <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>
161    
162  </pre>  </pre>
163  </ol>  </ol>
# Line 163  steps: Line 174  steps:
174    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
175          <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>
176          or          or
177          <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>
178    
179  </pre>  </pre>
180    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
181          <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>
182          (or <b>pmaxcd.iso</b>)          (or <b>pmaxcd.iso</b>)
183  </pre>  </pre>
184          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 193  For an ftp install, substitute steps 2 a
193    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
194          <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>
195          or          or
196          <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>
197    
198  </pre>  </pre>
199    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 203  For an ftp install, substitute steps 2 a Line 214  For an ftp install, substitute steps 2 a
214  </pre>  </pre>
215          (If using 10.0.0.254 as the nameserver fails, then try entering the          (If using 10.0.0.254 as the nameserver fails, then try entering the
216          IP number of a real-world nameserver instead.)          IP number of a real-world nameserver instead.)
217            <p>
218            Note that NetBSD 1.6.2 is nowadays located at
219            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2</a>
220            (note <tt>NetBSD-archive</tt> part).
221  </ol>  </ol>
222    
223  <p>If you want to use a graphical framebuffer during the install, you can  <p>If you want to use a graphical framebuffer during the install, you can
# Line 216  NetBSD from the harddisk image:<pre> Line 231  NetBSD from the harddisk image:<pre>
231          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
232  </pre>  </pre>
233    
234  <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
235  with a framebuffer:<pre>  following to start with a framebuffer:<pre>
236          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
237  </pre>  </pre>
238  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 264  harddisk image, follow these instruction
264  <ol start="1">  <ol start="1">
265    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
266          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
267          <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>
268    
269  </pre>  </pre>
270    <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 274  harddisk image, follow these instruction
274    
275  </pre>  </pre>
276    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
277          <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>  
278    
279  </pre>  </pre>
280          (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 321  image, using the following command:<pre>
321    
322  It is possible to install <a  It is possible to install <a
323  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
324  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
325  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
326  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.)  
327    
328  <p>  <p>
329  &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 339  NetBSD/hpcmips on an emulated MobilePro
339  <ol start="1">  <ol start="1">
340    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
341          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
342          <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>
343    
344  </pre>  </pre>
345    <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>
346          <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>
347          <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>
348    
349  </pre>  </pre>
350    <p>    <p>
351    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
352          <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>  
353    
354  </pre>  </pre>
355          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 364  Use the following command line to boot t
364    
365  </pre>  </pre>
366    
 <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.  
   
367  <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
368  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
369  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 396  image, from an emulated DECstation 3MAX
396  <p>  <p>
397  <ol>  <ol>
398    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
399          <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>
400  </pre>  </pre>
401    <p>    <p>
402    <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 404  image, from an emulated DECstation 3MAX
404          <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>
405    
406  </pre>  </pre>
407    <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>
408          <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>
409          <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>
410    
411  </pre>  </pre>
412    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
413          <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>
414    
415  </pre>  </pre>
416    <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>
417          following commands: (adjust according to taste)  to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
418  <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>
419  <b>newfs /dev/sd0c  <b>newfs /dev/sd0c
420  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
# Line 516  image, from an emulated DECstation 3MAX Line 471  image, from an emulated DECstation 3MAX
471  <p>  <p>
472  <ol>  <ol>
473    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
474          <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>
475  </pre>  </pre>
476    <p>    <p>
477    <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 479  image, from an emulated DECstation 3MAX
479          <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>
480    
481  </pre>  </pre>
482    <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>
483          <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>
484          <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>
485    
486  </pre>  </pre>
487    <p>    <p>
488    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
489          <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>
490    
491  </pre>  </pre>
492    <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 551  cd /; umount /mnt; umount /mnt2; halt</b Line 506  cd /; umount /mnt; umount /mnt2; halt</b
506  </ol>  </ol>
507    
508  <p>You should now be able to boot NetBSD/evbmips using this command:<pre>  <p>You should now be able to boot NetBSD/evbmips using this command:<pre>
509          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>          <b>gxemul -x -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
510  </pre>  </pre>
511    
512  <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
513  (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
514  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
515  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
516  that differ:<ol>  that differ:<ol>
517    <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 562  image, from an emulated DECstation 3MAX
562  <p>  <p>
563  <ol>  <ol>
564    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
565          <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>
566  </pre>  </pre>
567    <p>    <p>
568    <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 570  image, from an emulated DECstation 3MAX
570          <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>
571    
572  </pre>  </pre>
573    <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>
574          <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>
575          <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>
576    
577  </pre>  </pre>
578    <p>    <p>
579    <li>Start the emulated DECstation machine like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
580          <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>
581    
582  </pre>  </pre>
583    <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 637  NetBSD can still run in the emulator, as
637    
638  <p>For a simple test with the ramdisk/install kernel, try  <p>For a simple test with the ramdisk/install kernel, try
639  dowloading<pre>  dowloading<pre>
640          <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>
641    
642  </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>.
643    
# Line 694  time consuming, but necessary: Line 649  time consuming, but necessary:
649  <ol>  <ol>
650    <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.
651          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
652          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>.
653          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
654    <p>    <p>
655    <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 657  time consuming, but necessary:
657          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
658  </pre>and enter the following commands as <tt>root</tt>  </pre>and enter the following commands as <tt>root</tt>
659          inside the emulator:          inside the emulator:
660  <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>
661  <b>echo hostname=server &gt;&gt; /etc/rc.conf  <b>echo hostname=server &gt;&gt; /etc/rc.conf
662  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
663  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 682  client:\
682  echo 10.0.0.1 client &gt; /etc/hosts  echo 10.0.0.1 client &gt; /etc/hosts
683  reboot</b>  reboot</b>
684  </pre></td></tr></table>  </pre></td></tr></table>
685    <li>Start the DECstation emulation again, and download the    <p>
686          NetBSD/sgimips distribution sets:<br>(NOTE: This    <li>Download the NetBSD/sgimips CD-ROM iso image, and the
687          takes quite some time, even if you have a fast network connection.)          GENERIC and INSTALL kernels:<pre>
688  <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>
689  <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>
690  (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>
691  <b>cd /pub/NetBSD/NetBSD-3.0.1/sgimips/binary/sets  
692  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz  </pre>
693  quit    <li>Start the DECstation emulation again:<pre>
694  sh          <b>gxemul -e 3max -d nbsd_pmax.img -d sgimipscd-3.1.iso</b>
695  for a in *.tgz; do echo $a; tar zxfp $a; rm -f $a; done  
696    </pre>and extract the files from the sgimips CD-ROM image to the
697            DECstation disk image:
698    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
699    <b>cd /tftpboot; mount /dev/cd0a /mnt
700    for a in /mnt/sgimips/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done
701  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
702  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf  echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
703  dd if=/dev/zero of=swap bs=1024 count=32768  echo 10.0.0.254 &gt;&gt; /tftpboot/etc/mygate
704  halt</b>  echo nameserver 10.0.0.254 &gt;&gt; /tftpboot/etc/resolv.conf
705    echo rc_configured=YES &gt;&gt; /tftpboot/etc/rc.conf
706    dd if=/dev/zero of=swap bs=1024 count=65536
707    cd /; umount /mnt; halt</b>
708  </pre></td></tr></table>  </pre></td></tr></table>
709    <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>  
710    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
711  <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>
712  <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 824  To install NetBSD/cats onto a disk image
824  <ol start="1">  <ol start="1">
825    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
826          that you will install NetBSD/cats onto:<pre>          that you will install NetBSD/cats onto:<pre>
827          <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>
828    
829  </pre>  </pre>
830    <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>
831          <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>
832          <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>
833          <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>
834    
835  </pre>  </pre>
836    <p>    <p>
837    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
838          <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>
839    
840  </pre>  </pre>
841          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 843  To install NetBSD/cats onto a disk image
843  </ol>  </ol>
844    
845  <p>Alternatively, to install from FTP, you can skip downloading the ISO,  <p>Alternatively, to install from FTP, you can skip downloading the ISO,
846  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
847  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
848  255.0.0.0, nameserver 10.0.0.254.  255.0.0.0, nameserver 10.0.0.254.
849    
# Line 919  image, from an emulated CATS machine: Line 878  image, from an emulated CATS machine:
878    
879  <p>  <p>
880  <ol>  <ol>
881    <li>Install NetBSD/cats 3.0.1 according to instructions    <li>Download a NetBSD/cats 3.1 ramdisk kernel:<pre>
882          <a href="#netbsdcatsinstall">further up on this page</a>.          <b>wget <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></b>
883    <p>  
884    </pre>
885    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
886          that you will install NetBSD onto:<pre>          that you will install NetBSD/evbarm onto:<pre>
887          <b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b>
888    
889  </pre>  </pre>
# Line 933  image, from an emulated CATS machine: Line 893  image, from an emulated CATS machine:
893    
894  </pre>  </pre>
895    <p>    <p>
896    <li>The first step is to copy the .tgz files we want onto the CATS    <li>Now let's extract the files from the CD-ROM image onto the IQ80321's disk image. Start the
897          machine's harddisk. Start the CATS machine like this:<pre>          CATS machine using the following command line:<pre>
898          <b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b>          <b>gxemul -XEcats -d nbsd_iq80321.img -d evbarmcd.iso netbsd.aout-INSTALL.gz</b>
899    
900  </pre>and execute the following commands as <tt>root</tt>:  </pre>Exit from the installer, and execute the following commands as <tt>root</tt>:
901  <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>
 <b>mount /dev/cd0a /mnt; cd /root; cp /mnt/evbarm/binary/sets/[bcegmt]* .  
 sync; halt</b>  
 </pre></td></tr></table>  
   <p>  
   <li>Now let's extract the files onto the IQ80321's disk image. Start the  
         CATS machine again, with the following command line:<pre>  
         <b>gxemul -XEcats -d nbsd_cats.img -d nbsd_iq80321.img netbsd.aout-GENERIC.gz</b>  
902    
903  </pre>and execute the following commands as <tt>root</tt>:  <b>disklabel -I -i wd0</b>
 <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  
 <b>disklabel -I -i wd1</b>  
904      (enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b,      (enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b,
905       swap, a, 200M, P, W, y, Q</i>)       swap, a, 200M, P, W, y, Q</i>)
906  <b>newfs /dev/wd1a; mount /dev/wd1a /mnt; cd /mnt; sh  <b>newfs /dev/wd0a; mount /dev/wd0a /mnt2; cd /mnt2
907  for a in /root/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done  mount /dev/cd0a /mnt; sh
908    for a in /mnt/*/binary/sets/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done
909  exit  exit
910  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
911  echo rc_configured=YES &gt;&gt; rc.conf  echo rc_configured=YES &gt;&gt; rc.conf
912  echo "/dev/wd0a / ffs rw 1 1" &gt; fstab  echo "/dev/wd0a / ffs rw 1 1" &gt; fstab
913  echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab  echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab
914  cd /; umount /mnt; sync; halt</b>  cd /; umount /mnt; umount /mnt2; sync; halt</b>
915  </pre></td></tr></table>  </pre></td></tr></table>
916  </ol>  </ol>
917    
918  <p>You should now be able to boot NetBSD/evbarm using this command:<pre>  <p>You should now be able to boot NetBSD/evbarm using this command:<pre>
919          <b>gxemul -xEiq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b>          <b>gxemul -x -E iq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b>
920  </pre>  </pre>
921    
922    
# 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1138    <a href="20070318-netbsd-macppc.png"><img src="20070318-netbsd-macppc_small.png"></a>
1139    
1140    <p>To install NetBSD/macppc onto a disk image, follow these instructions:
1141    
1142    <p>
1143    <ol start="1">
1144      <li>Create an empty harddisk image, which will be the root disk
1145            that you will install NetBSD/macppc onto:<pre>
1146        <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b>
1147    
1148    </pre>
1149      <li>Download the NetBSD/macppc 3.1 ISO image and a generic kernel:<pre>
1150        <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>
1151        <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>
1152    
1153    </pre>
1154      <p>
1155      <li>Start the installation like this:<pre>
1156        <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.1.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>
1157    
1158    </pre>
1159            and continue as you would do when installing NetBSD on a real
1160            machine.
1161      <p>
1162      <li>Before turning the emulated machine off, quit the NetBSD installer
1163            and execute the following commands:<pre>
1164            <b>cd /; mount /dev/wd0a /mnt
1165            echo 'console "/usr/libexec/getty std.38400" vt100 on secure' > /mnt/etc/ttys
1166            echo 'rc_configured=YES' >> /mnt/etc/rc.conf
1167            umount /mnt; sync
1168            reboot</b>
1169    
1170    </pre>
1171    </ol>
1172    
1173    <p>If everything worked, NetBSD/macppc should now be installed on
1174    the disk image.
1175    
1176    <p>Use the following command line to boot the emulated machine:<pre>
1177            <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>
1178    
1179    </pre>
1180    
1181    <p>If asked about <tt>root device</tt>, enter <tt><b>wd0</b></tt>.
1182    
1183    
1184    
1185    
1186    
1187    
1188    
1189    
1190    
1191    
1192    
1193    
1194    
1195    <p><br>
1196    <a name="netbsddreamcast"></a>
1197    <h3>NetBSD/dreamcast:</h3>
1198    
1199    Moved <a href="dreamcast.html#netbsd_generic_md">here</a>.
1200    
1201    
1202    
1203    
1204    
1205    
1206    
1207    
1208    
1209    
1210    
1211    
1212    
1213    
# Line 1248  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1284  chmod +w simpleroot28.fs</b>           &lt;--- ma
1284            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
1285          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
1286          <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
1287            <b>mkdir /kern</b>
1288            <b>mkdir /mnt2</b>
1289          <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
1290          <b>./install</b>          <b>./install</b>
1291    
# Line 1325  enter <b><tt>rcons</tt></b> if you are u Line 1363  enter <b><tt>rcons</tt></b> if you are u
1363    
1364  It is possible to install and run  It is possible to install and run
1365  <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>  <a href="http://www.openbsd.org/cats.html">OpenBSD/cats</a>
1366  in GXemul.  in GXemul. Unfortunately, "The OpenBSD/cats port has been discontinued
1367    after the 4.0 release." according to
1368    <a href="http://www.openbsd.org/cats.html">http://www.openbsd.org/cats.html</a>,
1369    but 4.0 should run fine.
1370    
1371  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1372  <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 1382  follow these instructions:
1382    
1383  </pre>  </pre>
1384    <li>Download the entire cats directory from the ftp server:<pre>    <li>Download the entire cats directory from the ftp server:<pre>
1385          <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>
1386          <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>
1387          <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>
1388    
1389  </pre>  </pre>
1390          (Replace ftp.openbsd.org with a server closer to you, for          (Replace ftp.se.openbsd.org with a server closer to you, for
1391          increased download speed.)          increased download speed.)
1392    <p>    <p>
1393    <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.
1394          (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
1395          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1396          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1397          <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>
1398          <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>
1399    
1400  </pre>  </pre>
1401    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1402          <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>
1403    
1404  </pre>  </pre>
1405          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
# Line 1390  boot from the harddisk image: Line 1431  boot from the harddisk image:
1431    
1432    
1433  <p><br>  <p><br>
1434    <a name="openbsdlandiskinstall"></a>
1435    <h3>OpenBSD/landisk:</h3>
1436    
1437    It is possible to install and run
1438    <a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a>
1439    in GXemul.
1440    
1441    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1442    <a href="20070419-openbsd-landisk.png"><img src="20070419-openbsd-landisk_small.png"></a>
1443    
1444    <p>To install OpenBSD/landisk onto an emulated harddisk image,
1445    follow these instructions:
1446    
1447    <p>
1448    <ol>
1449      <li>Create an empty harddisk image, which will be the root disk
1450            that OpenBSD installs itself onto:<pre>
1451            <b>dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=2000000</b>
1452    
1453    </pre>
1454      <li>Download the entire landisk directory from the ftp server:<pre>
1455            <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/</a></b>
1456            <b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd .</b>
1457            <b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd.rd .</b>
1458    
1459    </pre>
1460            (Replace ftp.se.openbsd.org with a server closer to you, for
1461            increased download speed.)
1462      <p>
1463      <li>You now need to make an ISO image of the entire directory you downloaded.
1464            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1465            already have <tt>mkisofs</tt> installed on your system, you need
1466            to install it in order to do this.)<pre>
1467            <b>mkisofs -U -o openbsd_landisk_4.1.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
1468            <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
1469    
1470    </pre>
1471      <li>Start the emulator using this command line:<pre>
1472            <b>gxemul -x -E landisk -d obsd_landisk.img -d d:openbsd_landisk_4.1.iso bsd.rd</b>
1473    
1474    </pre>
1475            and proceed like you would do if you were installing OpenBSD
1476            on a real landisk. The following hints are useful to get you
1477            through the installation:
1478            <ul>
1479              <li>Terminal type = <b>xterm</b>
1480              <li>root disk = <b>wd0</b> (the disk to install onto)
1481              <li>Use the entire disk for OpenBSD = <b>yes</b>
1482              <li>Create one big root partition (a) and a small swap partition (b). c is the entire disk.
1483              <li>Do <b>not</b> configure the network. (The Realtek NIC
1484                    found in the Landisk machine is not implemented yet
1485                    in the emulator.)
1486              <li>Location of sets = <b>disk</b>
1487              <li>Is the disk partition already mounted = <b>no</b>
1488              <li>Disk containing the install media = <b>wd1</b>
1489              <li>Pathname to the sets = <b>4.1/landisk</b>
1490            </ul>
1491    </ol>
1492    
1493    <p>Once the install has finished, the following command should let you
1494    boot from the disk image:
1495    
1496    <p><pre>
1497            <b>gxemul -x -E landisk -d obsd_landisk.img bsd</b>
1498    
1499    </pre>
1500    
1501    <p>As with most emulation modes in GXemul, the NIC in this machine is
1502    not emulated yet. If you want to transfer files to/from the emulated
1503    landisk machine, see
1504    <a href="misc.html#filexfer">this chapter</a> in the documentation.
1505    
1506    
1507    
1508    
1509    
1510    
1511    
1512    <p><br>
1513  <a name="ultrixinstall"></a>  <a name="ultrixinstall"></a>
1514  <h3>Ultrix/RISC:</h3>  <h3>Ultrix/RISC:</h3>
1515    
# Line 1440  timer related bug, which makes it imposs Line 1560  timer related bug, which makes it imposs
1560  triggered when the emulation goes faster than any real DECstation machine  triggered when the emulation goes faster than any real DECstation machine
1561  was capable of running. A temporary workaround is to add  was capable of running. A temporary workaround is to add
1562  <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
1563  instructions per emulated second. (When using <tt><b>-CR4400</b></tt>,  instructions per emulated second.
 <b><tt>-I16000000</tt></b> should be used instead.)  
1564    
1565  <p>  <p>If the workaround above doesn't work, you can also start up other
1566  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
1567    more slowly. This is an ugly workaround, but seems to work. Once you have
1568    logged in into Ultrix, you can kill the extra processes.
1569    
1570    <p>You can experiment with adding <b><tt>-Z2</tt></b> (for emulating a
1571  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
1572  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
1573  windows by a factor 2x2.  windows by a factor 2x2.
# Line 1456  tripple-headed workstation, on three dif Line 1579  tripple-headed workstation, on three dif
1579              -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>
1580  </pre>  </pre>
1581    
1582  <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  
1583  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),
1584  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
1585  color depth, running off the Alpha) to the right.  color depth, running off the Alpha) to the right.
1586    
1587  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
1588  <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>
1589    
1590  <p>  <p>The X11 displays may differ in bit depth and endianness. Unfortunately,
 The X11 displays may differ in bit depth and endianness. Unfortunately,  
1591  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
1592  the scaledown factor affects all windows.  the scaledown factor affects all windows.
1593    
1594  <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  
1595  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
1596  multiple graphics cards. To overcome this problem, use the generic kernel,  multiple graphics cards. To overcome this problem, use the generic kernel,
1597  <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
1598  different setup than the one you used when Ultrix was installed.)  different setup than the one you used when Ultrix was installed.)
1599    
1600  <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  
1601  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
1602  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
1603  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 1678  start the X11 environment.
1678  <h3>Debian GNU/Linux for DECstation:</h3>  <h3>Debian GNU/Linux for DECstation:</h3>
1679    
1680  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,
1681  on an emulated 5000/200 ("3max"). Although the Debian project has released  on an emulated 5000/200 ("3max"). However, just choosing any
1682  install ramdisk kernels for this purpose, these do not always work:  Linux/DECstation kernel at random for the installation will not work.
1683  <ul>  
1684    <li>Serial console output doesn't work too well in GXemul. Linux  <p><ul>
1685          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
1686          also be due to bugs in the serial controller code in Linux.          GXemul. Linux oopses randomly, which may be due to bugs in GXemul,
1687            but may also be due to bugs in the serial controller code in Linux.
1688          (The speed at which serial interrupts are generated can be          (The speed at which serial interrupts are generated can be
1689          lowered with the <tt>-U</tt> command line option, but it only          lowered with the <tt>-U</tt> command line option, but it only
1690          reduces the risk, it doesn't take away the oopses completely.)          reduces the risk, it doesn't take away the oopses completely.)
1691    <li>Old install kernels supported the graphical framebuffer on the    <li>The Linux 2.6/DECstation DZ serial console driver doesn't work at
1692          3max, but not the keyboard.          all in the emulator, and I'm not really sure it would work on a
1693    <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
1694          keyboard, but it did <i>not</i> include Debian's patches for          the future.
1695          networking. (Perhaps this has been fixed now, I don't know.)    <li>To get around the serial console problem, the obvious solution is to
1696            use a graphical framebuffer instead. Old Debian install kernels
1697            supported the graphical framebuffer on the 3max, but not the
1698            keyboard. (This has been fixed now, it seems.)
1699      <li>For quite some time, the MIPS linux cvs tree has had support for the
1700            framebuffer and keyboard, but it did not include Debian's
1701            patches for networking, which made it unusable for network
1702            installs. (Possibly fixed now.)
1703      <li>The kernel has to be for 5000/200. This rules out using
1704            the default kernel on netinst ISO images provided by Debian.
1705            These ISO images boot directly into a kernel which is meant
1706            for a different DECstation model.
1707      <li>The kernel has to have an initrd which more or less matches the
1708            version of Debian that will be installed.
1709  </ul>  </ul>
1710    
1711  <p>David Muse has made available a precompiled install kernel which  <p>Luckily, a precompiled install kernel has been made available by David
1712  has support for framebuffer, keyboard, and networking, which works  Muse, for Debian for R3000 DECstations, which has support for framebuffer,
1713  pretty well. Thanks David. :-)  keyboard, and networking, which works pretty well. Thanks David. :-)
1714    
1715  <p>  <p>The following steps should let you install Debian GNU/Linux for
1716  The following steps should let you install Debian GNU/Linux for DECstation  DECstation onto a harddisk image in the emulator:
 onto a harddisk image:  
1717    
1718  <p>  <p>
1719  <ol>  <ol>
1720    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1721          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1722          <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>
1723    
1724  </pre>  </pre>
1725    <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 1596  onto a harddisk image: Line 1727  onto a harddisk image:
1727          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>
1728    
1729  </pre>  </pre>
1730            <font color="#ff0000">NOTE 2007-04-14: It seems that the ISO image
1731            has been removed from the cdimage site. You may need to search
1732            for it elsewhere. :-/ Alternatively, you can follow
1733            Michel Lespinasse's instructions at
1734            <a href="http://people.zoy.org/~walken/gxemul-etch/HOWTO.html">http://people.zoy.org/~walken/gxemul-etch/HOWTO.html</a>.</font>
1735    <p>    <p>
1736    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1737          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>
# Line 1652  onto a harddisk image: Line 1788  onto a harddisk image:
1788          <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
1789          for more coffee.          for more coffee.
1790    
1791            <p>When asked about whether the hardware clock is set to GMT or
1792            not, answer Yes.
1793    
1794          <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
1795          to use for accessing the Debian archive.          to use for accessing the Debian archive.
1796    
# Line 1679  Use this command to boot from the instal Line 1818  Use this command to boot from the instal
1818    
1819    
1820  <p><br>  <p><br>
 <a name="declinuxredhat"></a>  
 <h3>Redhat Linux for DECstation:</h3>  
   
   
 <p>  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
 <a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a>  
   
 <p>  
 The following steps should let you run Redhat Linux for DECstation in GXemul:  
   
 <p>  
 <ol>  
   <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>  
         <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>  
   
 </pre>  
   <li>Download a root filesystem tree:<pre>  
         <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.uni-wuppertal.de/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">mipsel-linux/root/mipsel-root-20011216.tgz</a>  
         19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414  
   
 </pre>  
   <li>Create a disk image which will contain the Redhat filesystem:<pre>  
         <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>  
   
 </pre>  
   <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS  
         (!) partition table, and then an ext2 partition. This is what Linux  
         will then see as /dev/sda1.  
         <p>I recommend you run fdisk and mke2fs and untar the archive from within  
         Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running  
         inside the emulator. (Alternatively, if you are on a Linux host,  
         you could use a loopback mount, or similar. This might require  
         root access. See e.g.  
         <a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.)  
         <p>  
         In order to actually boot the system you need to modify /etc/fstab.  
         Change<pre>  
         /dev/root               /               nfs     defaults        1 1  
         #/dev/sdc1              /               ext2    defaults        1 1  
         none                    /proc           proc    defaults        0 0  
         none                    /dev/pts        devpts  mode=0622       0 0  
   
 </pre>to<pre>  
         #/dev/root              /               nfs     defaults        1 1  
         /dev/sda1               /               ext2    defaults        1 1  
         none                    /proc           proc    defaults        0 0  
         none                    /dev/pts        devpts  mode=0622       0 0  
   
 </pre>(Note sda1 instead of sdc1.)  
 </ol>  
   
 <p>To boot Redhat linux from the disk image, use the following command line:<pre>  
         <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>  
   
 </pre>  
 If you need to boot into single user mode, change options to  
 <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.  
   
   
   
   
   
   
   
 <p><br>  
1821  <hr>  <hr>
1822    
1823    
# Line 1779  for DECstation in the emulator: Line 1851  for DECstation in the emulator:
1851    
1852  <p>  <p>
1853  <ol>  <ol>
   <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>  
         <b>./configure --enable-caches; make</b>  
   
 </pre>  
1854    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1855          <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>
1856              <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 1879  for DECstation in the emulator:
1879          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1880          <p>          <p>
1881    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1882          <b>gxemul -e 3max -X -d disk.img \          <b>gxemul -c 'put w 0x800990e0, 0' -c 'put w 0x80099144, 0' \
1883                -c 'put w 0x8004aae8, 0' -e 3max -X -d disk.img \
1884              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1885    
1886  </pre>  </pre>
1887  </ol>  </ol>
1888    
1889    <p>Earlier versions of GXemul had a configure option to enable better
1890    R3000 cache emulation, but since Mach was more or less the only thing that
1891    used it, I removed it. Today's version of GXemul can thus not boot
1892    mach.boot.MK83.STD+ANY straight off, it has to be patched to skip the
1893    cache detection.
1894    
1895    <p>The -c commands above patch the kernel to get past the cache detection.
1896    Thanks to Artur Bujdoso for these values.
1897    
1898    <p>TODO: Better instructions on how to create the old-style UFS disk
1899    image.
1900    
1901    
1902    
1903    
1904    
1905    
1906    
1907    <p><br>
1908    <a name="declinuxredhat"></a>
1909    <h3>Redhat Linux for DECstation:</h3>
1910    
1911    
1912    <p>
1913    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1914    <a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a>
1915    
1916    <p>
1917    The following steps should let you run Redhat Linux for DECstation in GXemul:
1918    
1919    <p>
1920    <ol>
1921      <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>
1922            <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>
1923    
1924    </pre>
1925      <li>Download a root filesystem tree:<pre>
1926            <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>
1927            19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
1928    
1929    </pre>
1930      <li>Create a disk image which will contain the Redhat filesystem:<pre>
1931            <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>
1932    
1933    </pre>
1934      <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS
1935            (!) partition table, and then an ext2 partition. This is what Linux
1936            will then see as /dev/sda1.
1937            <p>I recommend you run fdisk and mke2fs and untar the archive from within
1938            Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running
1939            inside the emulator. (Alternatively, if you are on a Linux host,
1940            you could use a loopback mount, or similar. This might require
1941            root access. See e.g.
1942            <a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.)
1943            <p>
1944            In order to actually boot the system you need to modify /etc/fstab.
1945            Change<pre>
1946            /dev/root               /               nfs     defaults        1 1
1947            #/dev/sdc1              /               ext2    defaults        1 1
1948            none                    /proc           proc    defaults        0 0
1949            none                    /dev/pts        devpts  mode=0622       0 0
1950    
1951    </pre>to<pre>
1952            #/dev/root              /               nfs     defaults        1 1
1953            /dev/sda1               /               ext2    defaults        1 1
1954            none                    /proc           proc    defaults        0 0
1955            none                    /dev/pts        devpts  mode=0622       0 0
1956    
1957    </pre>(Note sda1 instead of sdc1.)
1958    </ol>
1959    
1960    <p>To boot Redhat linux from the disk image, use the following command line:<pre>
1961            <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>
1962    
1963    </pre>
1964    If you need to boot into single user mode, change options to
1965    <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.
1966    
1967    
1968    
1969    
1970    
1971    
1972    
# Line 1842  it works.</font> Line 1992  it works.</font>
1992  mailed Adaptec several times, asking for documentation, but never received  mailed Adaptec several times, asking for documentation, but never received
1993  any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't  any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't
1994  use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre>  use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre>
1995          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">bsd.rd</a>          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd">bsd.rd</a>
1996    
1997  </pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>.  </pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>.
1998    
# Line 1855  client. Performing this setup is quite t Line 2005  client. Performing this setup is quite t
2005  <ol>  <ol>
2006    <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.
2007          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
2008          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>.
2009          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
2010    <p>    <p>
2011    <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 1884  reboot</b> Line 2034  reboot</b>
2034  <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>
2035  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b>
2036  (log in as anonymous...)  (log in as anonymous...)
2037  <b>cd pub/OpenBSD/3.9/sgi  <b>cd pub/OpenBSD/4.0/sgi
2038  mget b*tgz c*tgz e* g* m*  mget b*tgz c*tgz e* g* m*
2039  quit  quit
2040  sh  sh
# Line 1895  dd if=/dev/zero of=swap bs=1024 count=32 Line 2045  dd if=/dev/zero of=swap bs=1024 count=32
2045  halt</b>  halt</b>
2046  </pre></td></tr></table>  </pre></td></tr></table>
2047    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>    <li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre>
2048          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd</a>          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd</a>
2049          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd</a>          <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd</a>
2050    
2051  </pre>  </pre>
2052    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
# Line 2135  fdisk and mke2fs, which are useful for c Line 2285  fdisk and mke2fs, which are useful for c
2285    
2286    
2287    
2288    <!--
2289    <p><br>
2290    <a name="linux_malta"></a>
2291    <h3>Linux/Malta:</h3>
2292    
2293    <p>The Malta emulation mode is best suited for running <a
2294    href="#netbsdevbmipsinstall">NetBSD/evbmips</a>, however, it is possible
2295    to experiment with Linux/Malta as well.
2296    
2297    <p>The general idea behind Linux/Malta seems to be that the end user
2298    always compiles his/her own kernel, applies patches, downloads
2299    userland separately, etc. For that reason, Linux/Malta support in the
2300    emulator is not tested for every release (sometimes it works, sometimes it
2301    doesn't work), and these instructions are kind of "fuzzy".
2302    
2303    <p><ol start="1">
2304      <li>Create an empty harddisk image, which will be the root disk
2305            that Linux/Malta will be installed onto:<pre>
2306            <b>dd if=/dev/zero of=linux.img bs=1024 count=1 seek=5000000</b>
2307    
2308    </pre>
2309      <li>Download a MIPS root filesystem tree:<pre>
2310            <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>
2311            19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
2312    
2313    </pre>
2314            This is an old Redhat tree from 2001, but it seems to almost work.
2315      <p>
2316      <li>Download one precompiled Malta kernel, with ramdisk,
2317            and one without ramdisk (which will be used later on
2318            when booting from disk):<pre>
2319            TODO
2320    
2321    </pre>
2322      <li>Start the emulator with the ramdisk kernel, create a MS-DOS style
2323            MBR on the disk, create the filesystem, and extract the
2324            userland files:<pre>
2325            <b>gunzip vmlinux_2.*
2326            gunzip mipsel-root-20011216.tar
2327            gxemul -xemalta -d linux.img -d mipsel-root-20011216.tar vmlinux_2.4.33.2-ide-pci-ramdisk.elf</b>
2328            Inside GXemul: Log in as root and execute the following commands:
2329            <b>fdisk /dev/hda</b>
2330            (enter suitable commands, e.g. <b>n, p, 1, 1, 9921, w</b>)
2331            <b>mkfs /dev/hda1
2332            mount /dev/hda1 /mnt
2333            cd /mnt; tar -xf /dev/hdb; cd ..
2334            umount /mnt; sync; reboot</b>
2335    
2336    </pre>
2337    </ol>
2338    
2339    <p>It should now be possible to boot from the disk image, using the
2340    following command:
2341    
2342    <p><pre>
2343    <b>     gxemul -xemalta -d linux.img -o "root=/dev/hda1 rw" vmlinux_2.6.18-rc4-ide-pci-novty.elf</b>
2344    </pre>
2345    
2346    <p>There's a slight problem with this specific Redhat tree, so when you
2347    see the message "Configuring kernel parameters:  [  OK  ]", press CTRL-C
2348    once.
2349    -->
2350    
2351    
2352    
2353    
2354    
2355    
2356  <p><br>  <p><br>
2357  <a name="linux_qemu_mips"></a>  <a name="linux_qemu_mips"></a>
# Line 2144  I've added a semi-bogus machine mode whi Line 2361  I've added a semi-bogus machine mode whi
2361  mimic the MIPS machine mode used in Fabrice Bellard's  mimic the MIPS machine mode used in Fabrice Bellard's
2362  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
2363    
2364  <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>
2365  ramdisk kernel:  from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
2366    and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
2367    
2368  <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>  
2369          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
2370                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
2371                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
# Line 2160  ramdisk kernel: Line 2373  ramdisk kernel:
2373  </pre>  </pre>
2374  </ol>  </ol>
2375    
 <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.  
   
2376    
2377    
2378    
# Line 2205  such hardware well enough to fool Window Line 2391  such hardware well enough to fool Window
2391  that it is running on a real machine.  that it is running on a real machine.
2392  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2393    
2394  <p>Something like this would be done to install  <p>Installation steps similar to these would be required to install
2395  Windows NT onto a disk image:  Windows NT onto a disk image:
2396    
2397  <ol>  <ol>
# Line 2243  but then it crashes because of incomplet Line 2429  but then it crashes because of incomplet
2429    
2430    
2431  <p><br>  <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>  
   
   
   
   
   
   
   
   
   
   
   
   
 <p><br>  
2432  <a name="netbsdbeboxinstall"></a>  <a name="netbsdbeboxinstall"></a>
2433  <h3>NetBSD/bebox:</h3>  <h3>NetBSD/bebox:</h3>
2434    
# Line 2374  trying to run /sbin/init. Line 2508  trying to run /sbin/init.
2508    
2509    
2510    
2511    
2512    
2513    
2514    
2515    
2516    <p><br>
2517    <a name="netbsdlandiskinstall"></a>
2518    <h3>NetBSD/landisk:</h3>
2519    
2520    <a href="http://www.netbsd.org/Ports/landisk/">NetBSD/landisk</a> can
2521    run in GXemul.
2522    
2523    <p><font color="#ff0000">NOTE: This is still too
2524    unstable to be considered really working! Snapshots from April 2007
2525    or so will probably not work, unless an #if 0 is changed to
2526    #if 1 in the implementation of the 'LDC Rm,SR' instruction
2527    (in src/cpus/cpu_sh_instr.c).</font>
2528    
2529    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2530    <a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a>
2531    
2532    <p>At the time of writing this, there are not yet any formal releases
2533    of NetBSD/landisk, only daily snapshot builds.
2534    
2535    <p>The NetBSD/landisk distribution does not include any INSTALL kernel,
2536    so it must be installed using another (emulated) machine.
2537    
2538    <p>The following instructions will let you install NetBSD/landisk onto a disk
2539    image, using an emulated CATS machine:
2540    
2541    <p>
2542    <ol>
2543      <li>Download a NetBSD/cats install kernel:<pre>
2544            <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>
2545    </pre>
2546      <p>
2547      <li>Create an empty harddisk image, which will be the disk image
2548            that you will install NetBSD/landisk onto:<pre>
2549            <b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b>
2550    
2551    </pre>
2552      <p>
2553      <li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image
2554            of it: (replace 200704110002Z with whatever is the latest one)<pre>
2555            <b>wget -np -l 0 -r ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/200704110002Z/landisk
2556            mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b>
2557    </pre>
2558    
2559      <p>
2560      <li>Start the emulated CATS machine like this:<pre>
2561            <b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b>
2562    
2563    </pre>
2564      <li>Exit the installer, then execute the following commands:
2565    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2566    <b>disklabel -i -I wd0</b>    (for example 'a', '4.2BSD', '1c',
2567        '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')
2568    <b>newfs /dev/wd0a
2569    mount /dev/cd0c /mnt
2570    mkdir /mnt2; mount /dev/wd0a /mnt2
2571    cd /mnt2; sh
2572    for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
2573    exit
2574    cd dev; sh ./MAKEDEV all; cd ../etc
2575    echo rc_configured=YES >> rc.conf
2576    echo "/dev/wd0a / ffs rw 1 1" > fstab
2577    echo "/dev/wd0b none swap sw 0 0" >> fstab
2578    cd /; umount /mnt; umount /mnt2; halt</b>
2579    </pre></td></tr></table>
2580    </ol>
2581    
2582    <p>You should now be able to boot NetBSD/landisk using this command:<pre>
2583            <b>gxemul -x -E landisk -d nbsd_landisk.img netbsd-GENERIC.gz</b>
2584    </pre>
2585    
2586    
2587    
2588    
2589    
2590    

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

  ViewVC Help
Powered by ViewVC 1.1.26