/[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 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.148 2006/06/23 20:23:40 debug Exp $  $Id: guestoses.html,v 1.169 2006/08/15 15:38:37 debug Exp $
14    
15  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
16    
# Line 48  SUCH DAMAGE. Line 48  SUCH DAMAGE.
48  <p>  <p>
49  <ul>  <ul>
50    <li><a href="#generalnotes">General notes on running "guest OSes"</a>    <li><a href="#generalnotes">General notes on running "guest OSes"</a>
51    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0 or 1.6.2</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.0.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</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.0.1</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 2.1</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.0.1</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 2.1</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.0.1</a>
56    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.0</a>    <li><a href="#netbsdalgorinstall">NetBSD/algor 3.0.1</a>
57    <li><a href="#netbsdcatsinstall">NetBSD/cats 3.0</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips 3.0.1</a>
58      <li><a href="#netbsdcatsinstall">NetBSD/cats 3.0.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>
61    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
62    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
63    <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 3.9</a>
# Line 98  not be relevant for this specific releas Line 100  not be relevant for this specific releas
100    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
101    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
102    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
103    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a>    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
104      <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
105    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>
106      <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
107  </ul>  </ul>
108    
109  <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>
# Line 118  GXemul's machine, device, and/or process Line 122  GXemul's machine, device, and/or process
122  <h3>NetBSD/pmax:</h3>  <h3>NetBSD/pmax:</h3>
123    
124  <p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the  <p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the
125  first guest OS that could be installed onto a disk image in GXemul. The  first guest OS that could be
126  device emulation of the DECstation 5000/200 is reasonably complete; it  <a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a>
127  should be enough to emulate a networked X-windows-capable workstation.  onto a disk image in GXemul. The device emulation of the DECstation
128    5000/200 is reasonably complete; it should be enough to emulate a
129    networked X-windows-capable workstation.
130    
131  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,
132  newer NetBSD releases have changed slightly, and nowadays X does not  newer NetBSD releases have changed slightly, and nowadays X does not
# Line 157  steps: Line 163  steps:
163    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
164          <a href="ftp://ftp.netbsd.org/pub/NetBSD/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>
165          or          or
166          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/pmaxcd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/pmaxcd-3.0.1.iso</a>
167    
168  </pre>  </pre>
169    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
170          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b>          <b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.0.1.iso</b>
171          (or <b>pmaxcd.iso</b>)          (or <b>pmaxcd.iso</b>)
172  </pre>  </pre>
173          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 176  For an ftp install, substitute steps 2 a Line 182  For an ftp install, substitute steps 2 a
182    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
183          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-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>
184          or          or
185          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
186    
187  </pre>  </pre>
188    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 372  NetBSD/hpcmips on an emulated MobilePro Line 378  NetBSD/hpcmips on an emulated MobilePro
378  <ol start="1">  <ol start="1">
379    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
380          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
381          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=999000</b>
382    
383  </pre>  </pre>
384    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.0.1 ISO image, and a generic kernel:<pre>
385          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/hpcmipscd-3.0.iso">hpcmipscd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/hpcmipscd-3.0.1.iso">hpcmipscd-3.0.1.iso</a>
386            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>  
387    
388  </pre>  </pre>
389    <p>    <p>
390    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
391          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img  \
392            -d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd-3.0.1.iso -j hpcmips/installation/netbsd.gz</b>
393    
394  </pre>  </pre>
395          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 427  do it from another (emulated) machine. Line 432  do it from another (emulated) machine.
432    
433  <p>  <p>
434  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
435  <a href="20050413-netbsd-cobalt.png"><img src="20050413-netbsd-cobalt_small.png"></a>  <a href="20060812-netbsd-cobalt-3.0.1.png"><img src="20060812-netbsd-cobalt-3.0.1_small.png"></a>
436    
437  <p>  <p>
438  The following instructions will let you install NetBSD/cobalt onto a disk  The following instructions will let you install NetBSD/cobalt onto a disk
# Line 435  image, from an emulated DECstation 3MAX Line 440  image, from an emulated DECstation 3MAX
440    
441  <p>  <p>
442  <ol>  <ol>
443      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
444            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
445    </pre>
446      <p>
447    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
448          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
449          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=700000</b>
450    
451  </pre>  </pre>
452    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 3.0.1 ISO image:<pre>
453          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
454          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/cobaltcd-3.0.1.iso</a>
455    
456  </pre>  </pre>
457    <p>    <li>Start the emulated DECstation machine like this:<pre>
458    <li>Install NetBSD/pmax 3.0 according to instructions          <b>gxemul -e 3max -d nbsd_cobalt.img -d cobaltcd-3.0.1.iso netbsd-INSTALL.gz</b>
         <a href="#netbsdpmaxinstall">further up on this page</a>.  
   <p>  
   <li>Start NetBSD/pmax like this:<pre>  
         <b>gxemul -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>  
459    
460  </pre>  </pre>
461    <li>Log in as root (on the emulated 3MAX machine), and execute the    <li>Log in as root (on the emulated 3MAX machine), and execute the
462          following commands: (adjust according to taste)          following commands: (adjust according to taste)
463  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
464  <b>newfs /dev/sd1c  <b>newfs /dev/sd0c
465  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
466  mkdir /mnt2; mount /dev/sd1c /mnt2  mkdir /mnt2; mount /dev/sd0c /mnt2
467  cd /mnt2; sh  cd /mnt2; sh
468  for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
469  exit  exit
470  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
471  echo rc_configured=YES &gt;&gt; rc.conf  echo rc_configured=YES >> rc.conf
472  echo "/dev/wd0d / ffs rw 1 1" > fstab  echo "/dev/wd0d / ffs rw 1 1" > fstab
473  cd /; umount /mnt; umount /mnt2; halt</b>  cd /; umount /mnt; umount /mnt2; halt</b>
474  </pre></td></tr></table>  </pre></td></tr></table>
# Line 471  cd /; umount /mnt; umount /mnt2; halt</b Line 476  cd /; umount /mnt; umount /mnt2; halt</b
476    
477  <p>  <p>
478  You should now be able to boot NetBSD/cobalt like this:<pre>  You should now be able to boot NetBSD/cobalt like this:<pre>
479          <b>gxemul -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>          <b>gxemul -E cobalt -d nbsd_cobalt.img netbsd-GENERIC.gz</b>
480  </pre>  </pre>
481    
482  Note that the installation instructions above create a filesystem  Note that the installation instructions above create a filesystem
# Line 494  generic kernel:<pre> Line 499  generic kernel:<pre>
499  <a name="netbsdevbmipsinstall"></a>  <a name="netbsdevbmipsinstall"></a>
500  <h3>NetBSD/evbmips:</h3>  <h3>NetBSD/evbmips:</h3>
501    
502  <a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run  <a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run
503  in GXemul on an emulated Malta evaluation board (with a 5Kc or 4Kc CPU).  in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or
504    4Kc (MIPS32) processor. 5Kc is the default.
505    
506  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
507  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a href="20060812-netbsd-malta-3.0.1.png"><img src="20060812-netbsd-malta-3.0.1_small.png"></a>
 <a href="20050622-netbsd-evbmips-malta.png"><img src="20050622-netbsd-evbmips-malta_small.png"></a>  
508    
509  <p>It is tricky to install, because there is (as far as I know) no INSTALL  <p>One way to install the NetBSD/evbmips distribution onto a disk
 kernel. One way to install the NetBSD/evbmips distribution onto a disk  
510  image is to install the files using another (emulated) machine.  image is to install the files using another (emulated) machine.
511    
512  <p>  <p>
# Line 511  image, from an emulated DECstation 3MAX Line 515  image, from an emulated DECstation 3MAX
515    
516  <p>  <p>
517  <ol>  <ol>
518    <li>Install NetBSD/pmax 3.0 according to instructions    <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
519          <a href="#netbsdpmaxinstall">further up on this page</a>.          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
520    </pre>
521    <p>    <p>
522    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
523          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
524          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=700000</b>
525    
526  </pre>  </pre>
527    <li>Download the generic kernel and the 2.1 ISO image:<pre>    <li>Download the Malta kernel and the 3.0.1 ISO image:<pre>
528          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
529          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/evbmips-mipselcd-3.0.1.iso</a>
530    
531  </pre>  </pre>
532    <p>    <p>
533    <li>Start NetBSD/pmax like this:<pre>    <li>Start the emulated DECstation machine like this:<pre>
534          <b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_malta.img -d evbmips-mipselcd.iso</b>          <b>gxemul -e 3max -d nbsd_malta.img -d evbmips-mipselcd-3.0.1.iso netbsd-INSTALL.gz</b>
535    
536  </pre>and execute the following commands as <tt>root</tt>:  </pre>
537      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
538    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
539  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
540  <b>newfs /dev/sd1c  <b>newfs /dev/sd0c
541  mount /dev/cd0c /mnt  mount /dev/cd0c /mnt
542  mkdir /mnt2; mount /dev/sd1c /mnt2  mkdir /mnt2; mount /dev/sd0c /mnt2
543  cd /mnt2; sh  cd /mnt2; sh
544  for a in /mnt/evbmips-mipsel/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  for a in /mnt/*/binary/sets/[bcemt]*.tgz; do echo $a; tar zxfp $a; done
545  exit  exit
546  cd dev; sh ./MAKEDEV all; cd ../etc  cd dev; sh ./MAKEDEV all; cd ../etc
547  echo rc_configured=YES >> rc.conf  echo rc_configured=YES >> rc.conf
# Line 549  cd /; umount /mnt; umount /mnt2; halt</b Line 556  cd /; umount /mnt; umount /mnt2; halt</b
556    
557  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
558  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD
559  2.1, however, there will be little or no difference in functionality, as  3.0.1, however, there will be little or no difference in functionality, as
560  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
561  that differ:<ol>  that differ:<ol>
562    <li>The dynamic translation core runs faster when emulating 32-bit    <li>The dynamic translation core runs faster when emulating 32-bit
# Line 563  that differ:<ol> Line 570  that differ:<ol>
570  swap. You will need to enter the following things when booting with the  swap. You will need to enter the following things when booting with the
571  generic kernel:<pre>  generic kernel:<pre>
572          root device (default wd0a): <b>wd0c</b>          root device (default wd0a): <b>wd0c</b>
573          dump device (default wd0b): <b>none</b>          dump device (default wd0b):             <i>(just press enter)</i>
574          file system (default generic): <b>ffs</b>          file system (default generic):          <i>(just press enter)</i>
575          init path (default /sbin/init):     <i>(just press enter here)</i>          init path (default /sbin/init):         <i>(just press enter)</i>
576  </pre>  </pre>
577    
578    
# Line 574  generic kernel:<pre> Line 581  generic kernel:<pre>
581    
582    
583    
584    
585    
586    
587    
588    
589    
590    
591    <p><br>
592    <a name="netbsdalgorinstall"></a>
593    <h3>NetBSD/algor:</h3>
594    
595    <a href="http://www.netbsd.org/Ports/algor/">NetBSD/algor</a> can
596    run in GXemul on an emulated Algorithmics P5064 evaluation board.
597    
598    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
599    <a href="20060814-netbsd-algor-3.0.1.png"><img src="20060814-netbsd-algor-3.0.1_small.png"></a>
600    
601    <p>One way to install the NetBSD/algor distribution onto a disk
602    image is to install the files using another (emulated) machine.
603    
604    <p>The following instructions will let you install NetBSD/algor onto a disk
605    image, from an emulated DECstation 3MAX machine:
606    
607    <p>
608    <ol>
609      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
610            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
611    </pre>
612      <p>
613      <li>Create an empty harddisk image, which will be the disk image
614            that you will install NetBSD/algor onto:<pre>
615            <b>dd if=/dev/zero of=nbsd_algor.img bs=1024 count=1 seek=700000</b>
616    
617    </pre>
618      <li>Download the P5064 Algor kernel and the 3.0.1 ISO image:<pre>
619            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/algor/binary/kernel/netbsd-P5064.gz</a>
620            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/algorcd-3.0.1.iso</a>
621    
622    </pre>
623      <p>
624      <li>Start the emulated DECstation machine like this:<pre>
625            <b>gxemul -e 3max -d nbsd_algor.img -d algorcd-3.0.1.iso netbsd-INSTALL.gz</b>
626    
627    </pre>
628      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
629    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
630    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
631    <b>newfs /dev/sd0c
632    mount /dev/cd0c /mnt
633    mkdir /mnt2; mount /dev/sd0c /mnt2
634    cd /mnt2; sh
635    for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
636    exit
637    cd dev; sh ./MAKEDEV all; cd ../etc
638    echo rc_configured=YES >> rc.conf
639    echo "/dev/wd0c / ffs rw 1 1" > fstab
640    cd /; umount /mnt; umount /mnt2; halt</b>
641    </pre></td></tr></table>
642    </ol>
643    
644    <p>You should now be able to boot NetBSD/algor using this command:<pre>
645            <b>gxemul -x -e p5064 -d nbsd_algor.img netbsd-P5064.gz</b>
646    </pre>
647    
648    <p>The installation instructions above create a filesystem
649    <i>without</i> a disklabel, so there is only one ffs partition and no
650    swap. You will need to enter the following things when booting with the
651    generic kernel:<pre>
652            root device (default wd0a): <b>wd0c</b>
653            dump device (default wd0b):             <i>(just press enter)</i>
654            file system (default generic):          <i>(just press enter)</i>
655            init path (default /sbin/init):         <i>(just press enter)</i>
656    </pre>
657    
658    
659    
660    
661    
662    
663    
664    
665    
666    
667    
668    
669  <p><br>  <p><br>
670  <a name="netbsdsgimips"></a>  <a name="netbsdsgimips"></a>
671  <h3>NetBSD/sgimips:</h3>  <h3>NetBSD/sgimips:</h3>
# Line 590  NetBSD can still run in the emulator, as Line 682  NetBSD can still run in the emulator, as
682    
683  <p>For a simple test with the ramdisk/install kernel, try  <p>For a simple test with the ramdisk/install kernel, try
684  dowloading<pre>  dowloading<pre>
685          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
686    
687  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -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>.
688    
# Line 602  time consuming, but necessary: Line 694  time consuming, but necessary:
694  <ol>  <ol>
695    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
696          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
697          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.
698          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
699    <p>    <p>
700    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 641  reboot</b> Line 733  reboot</b>
733  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
734  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.se.netbsd.org</b>
735  (log in as anonymous...)  (log in as anonymous...)
736  <b>cd /pub/NetBSD/NetBSD-3.0/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-3.0.1/sgimips/binary/sets
737  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz
738  quit  quit
739  sh  sh
# Line 652  dd if=/dev/zero of=swap bs=1024 count=32 Line 744  dd if=/dev/zero of=swap bs=1024 count=32
744  halt</b>  halt</b>
745  </pre></td></tr></table>  </pre></td></tr></table>
746    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
747          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
748          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.0.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
749    
750  </pre>  </pre>
751    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
# Line 776  To install NetBSD/cats onto a disk image Line 868  To install NetBSD/cats onto a disk image
868          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>
869    
870  </pre>  </pre>
871    <li>Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:<pre>    <li>Download the NetBSD/cats 3.0.1 ISO image and the generic and install kernels:<pre>
872          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/catscd-3.0.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/catscd-3.0.1.iso</a>
873          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
874          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
875    
876  </pre>  </pre>
877    <p>    <p>
878    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
879          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.1.iso netbsd.aout-INSTALL.gz</b>
880    
881  </pre>  </pre>
882          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
# Line 792  To install NetBSD/cats onto a disk image Line 884  To install NetBSD/cats onto a disk image
884  </ol>  </ol>
885    
886  <p>Alternatively, to install from FTP, you can skip downloading the ISO,  <p>Alternatively, to install from FTP, you can skip downloading the ISO,
887  and start the install without <tt>-d catscd-3.0.iso</tt>. Suitable network  and start the install without <tt>-d catscd-3.0.1.iso</tt>. Suitable network
888  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask  settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
889  255.0.0.0, nameserver 10.0.0.254.  255.0.0.0, nameserver 10.0.0.254.
890    
# Line 827  image, from an emulated CATS machine: Line 919  image, from an emulated CATS machine:
919    
920  <p>  <p>
921  <ol>  <ol>
922    <li>Install NetBSD/cats 3.0 according to instructions    <li>Install NetBSD/cats 3.0.1 according to instructions
923          <a href="#netbsdcatsinstall">further up on this page</a>.          <a href="#netbsdcatsinstall">further up on this page</a>.
924    <p>    <p>
925    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 880  cd /; umount /mnt; sync; halt</b> Line 972  cd /; umount /mnt; sync; halt</b>
972    
973    
974    
975    
976    
977    
978    <p><br>
979    <a name="netbsdnetwinderinstall"></a>
980    <h3>NetBSD/netwinder:</h3>
981    
982    It is possible to run <a
983    href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
984    in GXemul.
985    
986    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
987    <a href="20060724-netbsd-netwinder-1.png"><img src="20060724-netbsd-netwinder-1_small.png"></a>
988    &nbsp;&nbsp;&nbsp;<a href="20060724-netbsd-netwinder-2.png"><img src="20060724-netbsd-netwinder-2_small.png"></a>
989    
990    <p>There is no INSTALL ramdisk kernel, so one way to install the
991    NetBSD/netwinder distribution onto a disk image is to install the files
992    using another (emulated) machine. The following instructions will let you
993    install the NetBSD/netwinder distribution onto a disk image, from an
994    emulated DECstation 3MAX machine:
995    
996    <p>
997    <ol>
998      <li>Download a NetBSD/pmax (DECstation) install RAMDISK kernel:<pre>
999            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
1000    </pre>
1001      <p>
1002      <li>Create an empty harddisk image, which will be the disk image
1003            that you will install NetBSD onto:<pre>
1004            <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>
1005    
1006    </pre>
1007      <li>Download the generic kernel and the 3.0.1 ISO image:<pre>
1008            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
1009            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0.1/netwindercd-3.0.1.iso</a>
1010    
1011    </pre>
1012      <p>
1013      <li>Start the emulated DECstation machine like this:<pre>
1014            <b>gxemul -e 3max -d nbsd_netwinder.img -d netwindercd-3.0.1.iso netbsd-INSTALL.gz</b>
1015    
1016    </pre>
1017      <li>At the <tt>Terminal type? [rcons]</tt> prompt, type <b>CTRL-B</b>
1018    to simulate a CTRL-C sent to NetBSD/pmax. Then execute the following commands:
1019    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
1020    <b>newfs /dev/sd0c
1021    mount /dev/cd0c /mnt
1022    mkdir /mnt2; mount /dev/sd0c /mnt2
1023    cd /mnt2; sh
1024    for a in /mnt/*/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
1025    exit
1026    cd dev; sh ./MAKEDEV all; cd ../etc
1027    echo rc_configured=YES >> rc.conf
1028    echo "/dev/wd0c / ffs rw 1 1" > fstab
1029    cd /; umount /mnt; umount /mnt2; halt</b>
1030    </pre></td></tr></table>
1031    </ol>
1032    
1033    <p>NetBSD/netwinder is now installed on the disk image. The following command
1034    line can be used to start NetBSD/netwinder:<pre>
1035            <b>gxemul -X -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1036    </pre>
1037    
1038    <p>This will result in a 1024x768 framebuffer. Add <tt>-Y2</tt> to the
1039    command line if you want to scale it down to 512x384.
1040    
1041    <p>Note: The installation instructions above create a filesystem
1042    <i>without</i> a disklabel, so there is only one ffs partition and no
1043    swap. You will need to enter the following things when booting with the
1044    generic kernel:<pre>
1045            root device (default wd0a): <b>wd0c</b>
1046            dump device (default wd0b): <i>(just press enter)</i>
1047            file system (default generic):    <i>(just press enter)</i>
1048            init path (default /sbin/init):   <i>(just press enter)</i>
1049    </pre>
1050    
1051    <p>Known bugs/problems:
1052    
1053    <ul>
1054            <li>There is a long delay when starting up NetBSD/netwinder
1055                    (several seconds even on a very fast host machine),
1056                    so you need to be patient.
1057            <li>There is a minor bug in the keyboard device, so you need to
1058                    press a key (any key) before typing wd0c.
1059            <li>When halting/rebooting NetBSD/netwinder, the emulator
1060                    prints a message saying something about an internal
1061                    error. This doesn't matter; ignore the message.
1062    </ul>
1063    
1064    
1065    
1066    
1067    
1068    
1069    
1070    
1071    
1072    
1073    
1074    
1075  <p><br>  <p><br>
1076  <a name="netbsdprepinstall"></a>  <a name="netbsdprepinstall"></a>
1077  <h3>NetBSD/prep:</h3>  <h3>NetBSD/prep:</h3>
# Line 974  system type, and init path. Line 1166  system type, and init path.
1166    
1167    
1168    
1169    
1170    
1171    
1172    
1173    
1174    
1175    
1176    
1177    
1178  <p><br>  <p><br>
1179  <a name="openbsdpmaxinstall"></a>  <a name="openbsdpmaxinstall"></a>
1180  <h3>OpenBSD/pmax:</h3>  <h3>OpenBSD/pmax:</h3>
# Line 1193  boot from the harddisk image: Line 1394  boot from the harddisk image:
1394  <h3>Ultrix/RISC:</h3>  <h3>Ultrix/RISC:</h3>
1395    
1396  Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200.  Ultrix 4.x can run in GXemul on an emulated DECstation 5000/200.
1397  (Ultrix was the native OS for these machines, but NetBSD/pmax is  (Ultrix was the native OS for these machines, but
1398  also usable.)  <a href="#netbsdpmaxinstall">NetBSD/pmax</a> is also usable.)
1399    
1400  <p>  <p>
1401  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1202  also usable.) Line 1403  also usable.)
1403  &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;
1404  <a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.png"></a>  <a href="ultrix4.5-20040706.png"><img src="ultrix4.5-20040706_small.png"></a>
1405    
 <p><font color="#f00000"><b>NOTE:</b> This specific release of the  
 emulator is not very stable yet (because the MIPS emulation mode has been  
 completely rewritten, and I did not have much time over for debugging).  
 Ultrix 4.5 in R3000 mode has problems with interrupts. Ultrix 4.2 should  
 work, however, and Ultrix 4.5 with <tt>-C R4400</tt>.</font>  
   
1406  <p>  <p>
1407  The following instructions should let you install Ultrix onto a disk image:  The following instructions should let you install Ultrix onto a disk image:
1408    
# Line 1660  client. Performing this setup is quite t Line 1855  client. Performing this setup is quite t
1855  <ol>  <ol>
1856    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
1857          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1858          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0.1 from CDROM</a>.
1859          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1860    <p>    <p>
1861    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 1940  fdisk and mke2fs, which are useful for c Line 2135  fdisk and mke2fs, which are useful for c
2135    
2136    
2137    
 <p><br>  
 <a name="netbsdnetwinderinstall"></a>  
 <h3>NetBSD/netwinder:</h3>  
2138    
2139  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>  <p><br>
2140  could possibly run in GXemul.  <a name="linux_qemu_mips"></a>
2141  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  <h3>Linux/QEMU_MIPS:</h3>
2142    
2143  <p>It is tricky to install, because there is (as far as I know) no INSTALL  I've added a semi-bogus machine mode which tries to
2144  kernel. One way to install the NetBSD/netwinder distribution onto a disk  mimic the MIPS machine mode used in Fabrice Bellard's
2145  image is to install the files using another (emulated) machine.  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
2146    
2147  <p>  <p>Follow these steps to download and run the Linux/QEMU_MIPS test
2148  The following instructions will let you install the NetBSD/netwinder  ramdisk kernel:
 distribution onto a disk image, from an emulated DECstation 3MAX machine:  
2149    
2150  <p>  <p><ol>
2151  <ol>    <li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>
2152    <li>Install NetBSD/pmax 3.0 according to instructions          from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
2153          <a href="#netbsdpmaxinstall">further up on this page</a>.          and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
2154    <p>    <p>
2155    <li>Create an empty harddisk image, which will be the disk image    <li>Test it in GXemul using the following command line:<pre>
2156          that you will install NetBSD onto:<pre>          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
2157          <b>dd if=/dev/zero of=nbsd_netwinder.img bs=1024 count=1 seek=999000</b>                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
2158                    0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
2159    
2160  </pre>  </pre>
2161    <li>Download the generic kernel and the 2.1 ISO image:<pre>  </ol>
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/netwindercd.iso</a>  
2162    
2163  </pre>  <p><i>"QEMU is a FAST! processor emulator"</i> according to <a
2164    <p>  href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>.
2165    <li>Start NetBSD/pmax like this:<pre>  Sometimes QEMU is faster than GXemul, sometimes it is the other way
2166          <b>gxemul -e 3max -d nbsd_pmax.img -d nbsd_netwinder.img -d netwinder.iso</b>  around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32,
2167    I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package
2168    from FreeBSD ports with GXemul gave the following result:
2169    
2170  </pre>and execute the following commands as <tt>root</tt>:  <p><pre>
2171  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>          <b>while true; do ls -l > /dev/null; echo -n .; done</b>
2172  <b>newfs /dev/sd1c          (80 x 36 dots)
2173  mount /dev/cd0c /mnt          QEMU 0.8.1:       13 min 48 sec
2174  mkdir /mnt2; mount /dev/sd1c /mnt2          GXemul 0.4.2:      4 min 31 sec
 cd /mnt2; sh  
 for a in /mnt/netwinder/binary/sets/*.tgz; do echo $a; tar zxfp $a; done  
 exit  
 cd dev; sh ./MAKEDEV all; cd ../etc  
 echo rc_configured=YES >> rc.conf  
 echo "/dev/wd0c / ffs rw 1 1" > fstab  
 cd /; umount /mnt; umount /mnt2; halt</b>  
 </pre></td></tr></table>  
 </ol>  
2175    
2176  <p>NetBSD/netwinder is now installed on the disk image. But actually          <b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b>
2177  running it does <b>not work yet</b>. Sorry.          (80 dots)
2178            QEMU 0.8.1:        2 min  9 sec
2179            GXemul 0.4.2:      5 min 18 sec
2180    
2181  <p>Something like the following command line would be used to start          <b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b>
2182  NetBSD, if it worked:<pre>          (80 dots)
2183          <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>          QEMU 0.8.1:       10 min  5 sec
2184            GXemul 0.4.2:      1 min 36 sec
2185  </pre>  </pre>
2186    
2187  <p>Note: The installation instructions above create a filesystem  <p>The commands were run inside the emulators, using the ramdisk kernel
2188  <i>without</i> a disklabel, so there is only one ffs partition and no  mentioned above.
2189  swap. You will need to enter the following things when booting with the  
2190  generic kernel:<pre>  
2191          root device (default wd0a): <b>wd0c</b>  
2192          dump device (default wd0b): <b>none</b>  
2193          file system (default generic):    <i>(just press enter)</i>  
2194          init path (default /sbin/init):   <i>(just press enter)</i>  
2195    
2196    
2197    <p><br>
2198    <a name="windows_nt_mips"></a>
2199    <h3>Windows NT/MIPS:</h3>
2200    
2201    Old versions of Windows NT could run on MIPS hardware, e.g.
2202    the PICA 61. It is theoretically possible that the emulation provided by
2203    GXemul some day could be stable/complete enough to emulate
2204    such hardware well enough to fool Windows NT into thinking
2205    that it is running on a real machine.
2206    <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2207    
2208    <p>Something like this would be done to install
2209    Windows NT onto a disk image:
2210    
2211    <ol>
2212            <li>Put a "Windows NT 4.0 for MIPS" CDROM (or similar) into
2213                    your CDROM drive. (On FreeBSD systems, it is
2214                    usually called <tt>/dev/cd0c</tt> or similar. Change
2215                    that to whatever the CDROM is called on your system,
2216                    or the name of a raw .iso image. I have tried this
2217                    with the Swedish version, but it might work with
2218                    other versions too.)
2219            <p>
2220            <li>Create an empty harddisk image, which will be the disk image
2221                    that you will install Windows NT onto:<pre>
2222            $ <b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b>
2223    
2224  </pre>  </pre>
2225            <li>Run the ARC installer, to partition the disk image:<pre>
2226            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b>
2227    </pre>
2228            Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite.
2229            <p>
2230            <li>Run the SETUP program:<pre>
2231            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b>
2232    </pre>
2233    </ol>
2234    
2235    <p><tt>SETUPLDR</tt> manages to load some drivers from the cdrom,
2236    but then it crashes because of incomplete emulation of some hardware devices.
2237    
2238    
2239    
# Line 2058  succeeds, but it is not possible to star Line 2285  succeeds, but it is not possible to star
2285    
2286    
2287    
2288    
2289    
2290    
2291    
2292    
2293    
2294    
2295    
2296    
2297    <p><br>
2298    <a name="netbsdbeboxinstall"></a>
2299    <h3>NetBSD/bebox:</h3>
2300    
2301    There is an old snapshot of
2302    <a href="http://www.netbsd.org/Ports/bebox/">NetBSD/bebox</a>
2303    from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox
2304    could theoretically run in GXemul.
2305    <font color="#ff0000">IT DOES <b>NOT</b> WORK RIGHT NOW!</font>
2306    
2307    <p>The following instructions will let you install NetBSD/bebox onto a
2308    disk image, using a NetBSD/prep kernel temporarily during the install:
2309    
2310    <p>
2311    <ol>
2312      <li>Download a NetBSD/prep 2.1 install ramdisk kernel:<pre>
2313            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-INSTALL.gz</a>
2314    </pre>
2315      <p>
2316      <li>Create an empty harddisk image, which will be the disk image
2317            that you will install NetBSD onto:<pre>
2318            <b>dd if=/dev/zero of=nbsd_bebox.img bs=1024 count=1 seek=999000</b>
2319    </pre>
2320      <p>
2321      <li>Download the NetBSD/bebox snapshot, and create a suitable .iso
2322            image of the files:
2323    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2324    <b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/">ftp://ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/</a>
2325    mv ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119/kern.tgz .
2326    tar zxvf kern.tgz
2327    rm -f kern.tgz
2328    mkisofs -o netbsd-bebox-19981119.iso ftp.netbsd.org/pub/NetBSD/arch/bebox/snapshot/19981119</b>
2329    </pre></td></tr></table>
2330      <p>
2331      <li>Now let's extract the files onto the Bebox disk image. Start NetBSD/prep
2332            with the following command line:<pre>
2333            <b>gxemul -x -e ibm6050 -d d:netbsd-bebox-19981119.iso -d nbsd_bebox.img netbsd-INSTALL.gz</b>
2334    
2335    </pre>Choose (S) for Shell, and execute the following commands:
2336    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2337    <b>disklabel -I -i wd1
2338    a
2339    4.2BSD
2340    1c
2341    750M
2342    b
2343    swap
2344    a
2345    200M
2346    W
2347    y
2348    Q
2349    newfs /dev/wd1a
2350    mount_cd9660 /dev/wd0c /mnt
2351    mount /dev/wd1a /mnt2
2352    cd mnt2
2353    for a in /mnt/*.tgz; do echo $a; tar zxfp $a; done
2354    cd dev; sh ./MAKEDEV all; cd ../etc
2355    echo rc_configured=YES &gt;&gt; rc.conf
2356    echo "/dev/wd0a / ffs rw 1 1" &gt; fstab
2357    echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab
2358    cd /; umount /mnt; umount /mnt2
2359    sync; halt</b>
2360    </pre></td></tr></table>
2361    </ol>
2362    
2363    <p>You should now be able to boot NetBSD/bebox using this command:<pre>
2364            <b>gxemul -X -E bebox -d nbsd_bebox.img netbsd</b>
2365    </pre>
2366    
2367    <p>When asked for the root device, enter <b><tt>wd0a</tt></b>.
2368    
2369    <p><font color="#ff0000">IT DOES <b>NOT</b> WORK YET</font>, there are
2370    errors while uncompressing the tgz files, and the machine crashes when
2371    trying to run /sbin/init.
2372    
2373    
2374    
2375    
2376    
2377    
2378    
2379    
2380    
2381    
2382    
2383  </p>  </p>

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

  ViewVC Help
Powered by ViewVC 1.1.26