/[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 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.96 2005/10/22 17:24:19 debug Exp $  $Id: guestoses.html,v 1.108 2005/11/25 22:50:32 debug Exp $
14    
15  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.
16    
# Line 55  SUCH DAMAGE. Line 55  SUCH DAMAGE.
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips</a>
56    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>    <li><a href="#netbsdsgimips">NetBSD/sgimips</a>
57    <li><a href="#netbsdcatsinstall">NetBSD/cats</a>    <li><a href="#netbsdcatsinstall">NetBSD/cats</a>
58      <li><a href="#netbsdprepinstall">NetBSD/prep</a>
59    <li><a href="#openbsdinstall">OpenBSD/pmax</a>    <li><a href="#openbsdinstall">OpenBSD/pmax</a>
60    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc</a>
61    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>
# Line 129  steps: Line 130  steps:
130    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
131          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/pmaxcd.iso</a>
132          or          or
133          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/pmaxcd.iso</a>
134    
135  </pre>  </pre>
136    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 147  For an ftp install, substitute steps 2 a Line 148  For an ftp install, substitute steps 2 a
148    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
149          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>
150          or          or
151          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>
152    
153  </pre>  </pre>
154    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 181  NetBSD from the harddisk image:<pre> Line 182  NetBSD from the harddisk image:<pre>
182          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
183  </pre>  </pre>
184    
185  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.0.2  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x
186  doesn't work with X out-of-the-box on pmax. It seems that this has to do  doesn't work with X out-of-the-box on pmax. It seems that this has to do
187  with NetBSD switching console system to "WSCONS" somewhere between 1.6.2  with NetBSD switching console system to "WSCONS" somewhere between 1.6.2
188  and 2.0. For now, if you want X, then try NetBSD 1.6.2.  and 2.0. For now, if you want X, then try NetBSD 1.6.2.
# Line 350  NetBSD/hpcmips on an emulated MobilePro Line 351  NetBSD/hpcmips on an emulated MobilePro
351          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>
352    
353  </pre>  </pre>
354    <li>Download the NetBSD/hpcmips 2.0.2 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 2.1 ISO image, and a generic kernel:<pre>
355          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/hpcmipscd.iso">hpcmipscd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/hpcmipscd.iso">hpcmipscd.iso</a>
356    
357          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">netbsd-GENERIC.gz</a>
358    
359  </pre>  </pre>
360    <p>    <p>
# Line 364  NetBSD/hpcmips on an emulated MobilePro Line 365  NetBSD/hpcmips on an emulated MobilePro
365  </pre>  </pre>
366          and proceed like you would do if you were installing NetBSD on a real          and proceed like you would do if you were installing NetBSD on a real
367          MobilePro 770. (Install onto wd0, choose "Use entire disk" when          MobilePro 770. (Install onto wd0, choose "Use entire disk" when
368          doing the MBR partitioning, and choose wd1d (not cd0c) as the          doing the MBR partitioning, and choose to install from CD-ROM.)
         CDROM device to install from.)  
369  </ol>  </ol>
370    
371  <p>  <p>
# Line 416  image, from an emulated DECstation 3MAX Line 416  image, from an emulated DECstation 3MAX
416          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>
417    
418  </pre>  </pre>
419    <li>Download the generic kernel for Cobalt and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>
420          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cobalt/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cobalt/binary/kernel/netbsd-GENERIC.gz</a>
421          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/cobaltcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/cobaltcd.iso</a>
422    
423  </pre>  </pre>
424    <p>    <p>
425    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 2.1 according to instructions
426          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdinstall">further up on this page</a>.
427    <p>    <p>
428    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
# Line 487  image, from an emulated DECstation 3MAX Line 487  image, from an emulated DECstation 3MAX
487    
488  <p>  <p>
489  <ol>  <ol>
490    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 2.1 according to instructions
491          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdinstall">further up on this page</a>.
492    <p>    <p>
493    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
# Line 495  image, from an emulated DECstation 3MAX Line 495  image, from an emulated DECstation 3MAX
495          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>          <b>dd if=/dev/zero of=nbsd_malta.img bs=1024 count=1 seek=999000</b>
496    
497  </pre>  </pre>
498    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel and the 2.1 ISO image:<pre>
499          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbmips-mipsel/binary/kernel/netbsd-MALTA.gz</a>
500          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/evbmips-mipselcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbmips-mipselcd.iso</a>
501    
502  </pre>  </pre>
503    <p>    <p>
# Line 523  cd /; umount /mnt; umount /mnt2; halt</b Line 523  cd /; umount /mnt; umount /mnt2; halt</b
523          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>          <b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b>
524  </pre>  </pre>
525    
526  <p>Note 1: NetBSD detects a very fast CPU although the emulation isn't  <p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc
 really that fast, so emulated delays are very slow. Even on a multi-GHz  
 host, you will need a lot of patience.  
   
 <p>Note 2: To select a 4Kc (MIPS32) CPU instead of the default 5Kc  
527  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD  (MIPS64) CPU, add <tt><b>-C 4Kc</b></tt> to the command line. With NetBSD
528  2.0.2, however, there will be little or no difference in functionality, as  2.1, however, there will be little or no difference in functionality, as
529  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. The only difference  NetBSD still runs in 32-bit mode on 64-bit MIPS CPUs. There are two things
530  it makes in practice is that GXemul's binary translation subsystem might  that differ:<ol>
531  run a bit faster (because there are some optimizations for 32-bit    <li>GXemul's binary translation subsystem might run a bit faster
532  emulation that don't work with 64-bit emulation).          in 32-bit mode (because there are some optimizations that don't
533            work with 64-bit emulation)
534      <li>4Kc only has 16 TLB entries, whereas 5Kc has 48. This makes 4Kc
535            slower.
536    </ol>
537    
538  <p>Note 3: The installation instructions above create a filesystem  <p>The installation instructions above create a filesystem
539  <i>without</i> a disklabel, so there is only one ffs partition and no  <i>without</i> a disklabel, so there is only one ffs partition and no
540  swap. You will need to enter the following things when booting with the  swap. You will need to enter the following things when booting with the
541  generic kernel:<pre>  generic kernel:<pre>
# Line 565  emulate the AHC PCI SCSI controller in t Line 565  emulate the AHC PCI SCSI controller in t
565  several times, asking for documentation, but never received any reply.)  several times, asking for documentation, but never received any reply.)
566  NetBSD can still run in the emulator, as long as it doesn't use SCSI.  NetBSD can still run in the emulator, as long as it doesn't use SCSI.
567    
568  <p>For a simple test with the 2.0.2 ramdisk (install) kernel, try  <p>For a simple test with the 2.1 ramdisk (install) kernel, try
569  dowloading<pre>  dowloading<pre>
570          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
571    
572  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.  </pre>and run&nbsp;&nbsp;<b><tt>gxemul -e o2 netbsd-INSTALL32_IP3x.gz</tt></b>.
573    
# Line 579  time consuming, but necessary: Line 579  time consuming, but necessary:
579  <ol>  <ol>
580    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
581          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
582          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.
583          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
584    <p>    <p>
585    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 618  reboot</b> Line 618  reboot</b>
618  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
619  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>  <b>cd /tftpboot; ftp -i ftp.uk.netbsd.org</b>
620  (log in as anonymous...)  (log in as anonymous...)
621  <b>cd /pub/NetBSD/NetBSD-2.0.2/sgimips/binary/sets  <b>cd /pub/NetBSD/NetBSD-2.1/sgimips/binary/sets
622  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz  mget base.tgz comp.tgz etc.tgz games.tgz man.tgz misc.tgz text.tgz
623  quit  quit
624  sh  sh
# Line 629  dd if=/dev/zero of=swap bs=1024 count=32 Line 629  dd if=/dev/zero of=swap bs=1024 count=32
629  halt</b>  halt</b>
630  </pre></td></tr></table>  </pre></td></tr></table>
631    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>    <li>Download the NetBSD/sgimips GENERIC and INSTALL kernels:<pre>
632          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-GENERIC32_IP3x.gz</a>
633          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>          <a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.1/sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz</a>
634    
635  </pre>  </pre>
636    <li>Create a configuration file called <tt>config_client</tt>:    <li>Create a configuration file called <tt>config_client</tt>:
# Line 745  to IPv4. Line 745  to IPv4.
745  It is possible to install and run  It is possible to install and run
746  <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.  <a href="http://www.netbsd.org/Ports/cats/">NetBSD/cats</a> in GXemul.
747    
748  <p>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
749  <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>  <a href="20051007-netbsd-cats-installed.png"><img src="20051007-netbsd-cats-installed_small.png"></a>
750    
751  <p>  <p>
# Line 756  To install NetBSD/cats onto a disk image Line 755  To install NetBSD/cats onto a disk image
755  <ol start="1">  <ol start="1">
756    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
757          that you will install NetBSD/cats onto:<pre>          that you will install NetBSD/cats onto:<pre>
758          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>
759    
760  </pre>  </pre>
761    <li>Download the NetBSD/cats 2.0.2 ISO image and generic + install kernels:<pre>    <li>Download the NetBSD/cats 2.1 ISO image and the generic and install kernels:<pre>
762          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/catscd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/catscd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/catscd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/catscd.iso</a>
763          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-GENERIC.gz</a>
764          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
765    
766  </pre>  </pre>
767    <p>    <p>
# Line 771  To install NetBSD/cats onto a disk image Line 770  To install NetBSD/cats onto a disk image
770    
771  </pre>  </pre>
772          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
773          CATS from CDROM. (Install onto wd0, and choose wd1c (not cd0c) as the          CATS from CDROM.
         CDROM device to install from.)  
774  </ol>  </ol>
775    
776    <p>Alternatively, to install from FTP, you can skip downloading the ISO,
777    and start the install without <tt>-d catscd.iso</tt>. Suitable network
778    settings are IP 10.0.0.1, gateway/default route 10.0.0.254, netmask
779    255.0.0.0, nameserver 10.0.0.254.
780    
781  <p>If everything worked, NetBSD should now be installed on the disk image.  <p>If everything worked, NetBSD should now be installed on the disk image.
782  Use the following command line to boot the emulated CATS machine:<pre>  Use the following command line to boot the emulated CATS machine:<pre>
783          <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img netbsd.aout-GENERIC.gz</b>
784    
785  </pre>  </pre>
786    
787  <p>When asked for root device, enter <tt>wd0</tt>.  
788    
789    
790    
791    
792    <p><br>
793    <a name="netbsdprepinstall"></a>
794    <h3>NetBSD/prep:</h3>
795    
796    It is possible to install and run
797    <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul.
798    
799    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
800    <a href="20051123-netbsd-prep.png"><img src="20051123-netbsd-prep_small.png"></a>
801    
802    <p>To install NetBSD/prep onto a disk image, follow these instructions:
803    
804    <p>
805    <ol start="1">
806      <li>Create an empty harddisk image, which will be the root disk
807            that you will install NetBSD/prep onto:<pre>
808        <b>dd if=/dev/zero of=nbsd_prep.img bs=1024 count=1 seek=1000000</b>
809    
810    </pre>
811      <li>Download the NetBSD/prep 2.1 ISO image and the generic kernel:<pre>
812        <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/prepcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/prepcd.iso</a>
813        <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/prep/binary/kernel/netbsd-GENERIC.gz</a>
814    
815    </pre>
816      <p>
817      <li>Start the installation like this:<pre>
818        <b>gxemul -x -Eprep -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>
819    
820    </pre>
821      <p>
822      <li>Installation is a bit unsmooth, probably due to bugs in GXemul.
823            Creating an MBR slice and a disklabel with sysinst bugs out, so
824            some things have to be done manually.<p>
825            At "<tt>(I)nstall, (S)hell, or (H)alt</tt>", choose
826                    <tt><b><u>s</u></b></tt>.
827            <br><tt># <b><u>fdisk -u wd0</u></b></tt>
828            <br><tt>Do you want to change our idea of what BIOS thinks? [n]</tt>
829                    (just press <b>ENTER</b>)
830            <br><tt>Which partition do you want to change?: [none] <b><u>0</u></b></tt>
831            <br><tt>sysid: ... </tt> (just press <B>ENTER</b>)
832            <br><tt>start: ... <b><u>1cyl</u></b></tt>
833            <br><tt>size: ... </tt> (just press <B>ENTER</b>)
834            <br><tt>Which partition do you want to change?: [none]</tt> (press <b>ENTER</b>)
835            <br><tt>Should we write new partition table? [n] <b><u>y</u></b></tt>
836            <br><tt># <b><u>disklabel -I -i wd0</u></b></tt>
837            <br><tt>partition&gt; <b><u>a</u></b></tt>
838            <br><tt>Filesystem type [?] [unused]: <b><u>4.2BSD</u></b></tt>
839            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>1c</u></b></tt>
840            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>900M</u></b></tt>
841            <br><tt>partition&gt; <b><u>b</u></b></tt>
842            <br><tt>Filesystem type [?] [unused]: <b><u>swap</u></b></tt>
843            <br><tt>Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: <b><u>a</u></b></tt>
844            <br><tt>Partition size ('$' for all remaining) [0c, 0s, 0M]: <b><u>$</u></b></tt>
845            <br><tt>partition&gt; <b><u>W</u></b></tt>
846            <br><tt>Label disk [n]? <b><u>y</u></b></tt>
847            <br><tt>partition&gt; <b><u>Q</u></b></tt>
848            <br><tt># <b><u>newfs wd0a</u></b></tt>
849            <br><tt># <b><u>sysinst</u></b></tt>
850            <br>Choose to install onto <b>wd0</b>. Choose
851                    "<tt>a: Edit the MBR partition table</tt>"
852                    when presented with that option.
853            <br>Choose the 'a' partition/slice,
854                    set the 'e' ("active") and 'f' ("install") fields to <b>Yes</b>,
855                    and then choose "<tt>x: Partition table OK</tt>".
856            <br>Choose "<tt>b: Use existing partition sizes</tt>" in the next
857                    menu.
858            <br>Select partition 'a' and press ENTER. Set field 'k' (mount point)
859                    to '<tt><b>/</b></tt>'.
860            <br>Get out of the partitioner by selecting
861                    "<tt>x: Partition sizes ok</tt>" twice.
862            <br>At "<tt>Write outside MBR partition? [n]:</tt>", just press
863                    <b>ENTER</b>.
864            <br>Install from CD-ROM, device <b>wd1c</b>.
865    </ol>
866    
867    <p>If everything worked, NetBSD should now be installed on the disk image.
868    Use the following command line to boot the emulated machine:<pre>
869            <b>gxemul -x -Eprep -d nbsd_prep.img netbsd-GENERIC.gz</b>
870    
871    </pre>
872    
873    <p>When asked which the root device is, type <tt><b>wd0</b></tt> and
874    just press ENTER to select the default values for dump device, file
875    system type, and init path.
876    
877    
878    
# Line 1017  follow these instructions: Line 1108  follow these instructions:
1108    
1109  </pre>  </pre>
1110    <li>Download the entire cats directory from the ftp server:<pre>    <li>Download the entire cats directory from the ftp server:<pre>
1111          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.7/cats/</a></b>          <b>wget -np -l 0 -r <a href="ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/">ftp://ftp.openbsd.org/pub/OpenBSD/3.8/cats/</a></b>
1112          <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/cats/bsd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd .</b>
1113          <b>cp ftp.openbsd.org/pub/OpenBSD/3.7/cats/bsd.rd .</b>          <b>cp ftp.openbsd.org/pub/OpenBSD/3.8/cats/bsd.rd .</b>
1114    
1115  </pre>  </pre>
1116    
# Line 1027  follow these instructions: Line 1118  follow these instructions:
1118          (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
1119          already have <tt>mkisofs</tt> installed on your system, you need          already have <tt>mkisofs</tt> installed on your system, you need
1120          to install it in order to do this.)<pre>          to install it in order to do this.)<pre>
1121          <b>mkisofs -allow-lowercase -o openbsd_cats_3.7.iso ftp.openbsd.org/pub/OpenBSD/3.7/cats</b>          <b>mkisofs -allow-lowercase -o openbsd_cats_3.8.iso ftp.openbsd.org/pub/OpenBSD/</b>
1122    
1123  </pre>  </pre>
1124    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
1125          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.7.iso bsd.rd</b>          <b>gxemul -XEcats -d obsd_cats.img -d openbsd_cats_3.8.iso bsd.rd</b>
1126    
1127  </pre>  </pre>
1128          and proceed like you would do if you were installing OpenBSD          and proceed like you would do if you were installing OpenBSD
1129          on a real CATS. (Install onto <tt>wd0</tt>, don't configure the          on a real CATS. (Install onto <tt>wd0</tt>, don't configure the
1130          network, choose to install distribution sets from <i>disk</i>          network, install from CD.)
         <tt>wd1</tt> (i.e. not CDROM) partition '<tt>a</tt>',  
         relative path '<tt>/</tt>'.)  
1131  </ol>  </ol>
1132    
1133    <p>(Although it <i>is</i> possible to configure the network, IPv4 address
1134    10.0.0.1, netmask 255.0.0.0, gateway/default route 10.0.0.254, and
1135    nameserver 10.0.0.254, the userland NAT-like networking layer is not
1136    stable enough yet to support a full install via ftp.)
1137    
1138  <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>  <p><b>NOTE:</b> Make sure that you <tt>sync</tt> and <tt>reboot</tt>
1139  correctly once the installation is finished, or the <tt>/dev</tt> nodes  correctly once the installation is finished, or the <tt>/dev</tt> nodes
1140  may not have been written correctly to disk.  may not have been written correctly to disk.
# Line 1049  may not have been written correctly to d Line 1143  may not have been written correctly to d
1143  boot from the harddisk image:  boot from the harddisk image:
1144    
1145  <p><pre>  <p><pre>
1146          <b>gxemul -XEcats -d obsd_cats.img bsd</b>          <b>gxemul -X -x -Ecats -d obsd_cats.img bsd</b>
1147    
1148  </pre>  </pre>
1149    
# Line 1546  client. Performing this setup is quite t Line 1640  client. Performing this setup is quite t
1640  <ol>  <ol>
1641    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.    <li>First of all, the "<tt>nfs server</tt>" machine must be set up.
1642          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1643          <a href="#netbsdinstall">Install NetBSD/pmax 2.0.2 from CDROM</a>.          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.
1644          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1645    <p>    <p>
1646    <li>Configure the nfs server machine to act as an nfs server.    <li>Configure the nfs server machine to act as an nfs server.
# Line 1712  distribution onto a disk image, from an Line 1806  distribution onto a disk image, from an
1806    
1807  <p>  <p>
1808  <ol>  <ol>
1809    <li>Install NetBSD/pmax 2.0.2 according to instructions    <li>Install NetBSD/pmax 2.1 according to instructions
1810          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdinstall">further up on this page</a>.
1811    <p>    <p>
1812    <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 1720  distribution onto a disk image, from an Line 1814  distribution onto a disk image, from an
1814          <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>
1815    
1816  </pre>  </pre>
1817    <li>Download the generic kernel and the 2.0.2 ISO image:<pre>    <li>Download the generic kernel and the 2.1 ISO image:<pre>
1818          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/netwinder/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/netwinder/binary/kernel/netbsd-GENERIC.gz</a>
1819          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/netwindercd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.0.2/netwindercd.iso</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>
1820    
1821  </pre>  </pre>
1822    <p>    <p>
# Line 1744  cd /; umount /mnt; umount /mnt2; halt</b Line 1838  cd /; umount /mnt; umount /mnt2; halt</b
1838  </pre></td></tr></table>  </pre></td></tr></table>
1839  </ol>  </ol>
1840    
1841  <p>You should now be able to boot NetBSD/evbmips using this command:<pre>  <p>NetBSD/netwinder is now installed on the disk image. But actually
1842    running it does <b>not work yet</b>. Sorry.
1843    
1844    <p>Something like the following command line would be used to start
1845    NetBSD, if it worked:<pre>
1846          <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>          <b>gxemul -E netwinder -d nbsd_netwinder.img netbsd-GENERIC.gz</b>
1847  </pre>  </pre>
1848    

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

  ViewVC Help
Powered by ViewVC 1.1.26