/[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 21 by dpavlin, Mon Oct 8 16:19:23 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 4  Line 4 
4  <table border=0 width=100% bgcolor="#d0d0d0"><tr>  <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5  <td width=100% align=center valign=center><table border=0 width=100%><tr>  <td width=100% align=center valign=center><table border=0 width=100%><tr>
6  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7  <b>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;</b></font>  <b>Gavare's eXperimental Emulator:</b></font><br>
8  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>
9  </font></td></tr></table></td></tr></table><p>  </font></td></tr></table></td></tr></table><p>
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.108 2005/11/25 22:50:32 debug Exp $  $Id: guestoses.html,v 1.124 2006/02/18 21:03:10 debug Exp $
14    
15  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2006  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="#netbsdinstall">NetBSD/pmax</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax</a>
52    <li><a href="#netbsdarcinstall">NetBSD/arc</a>    <li><a href="#netbsdarcinstall">NetBSD/arc</a>
53    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt</a>
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="#netbsdevbarminstall">NetBSD/evbarm</a>
59    <li><a href="#netbsdprepinstall">NetBSD/prep</a>    <li><a href="#netbsdprepinstall">NetBSD/prep</a>
60    <li><a href="#openbsdinstall">OpenBSD/pmax</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax</a>
   <li><a href="#openbsdarcinstall">OpenBSD/arc</a>  
61    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats</a>
62    <li><a href="#ultrixinstall">Ultrix/RISC</a>    <li><a href="#ultrixinstall">Ultrix/RISC</a>
63    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
# Line 70  you might find the following information Line 70  you might find the following information
70  <ul>  <ul>
71    <li><a href="#mach">Mach/PMAX</a>    <li><a href="#mach">Mach/PMAX</a>
72    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
73      <li><a href="#openbsdarcinstall">OpenBSD/arc</a>
74      <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
75    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder</a>
76  </ul>  </ul>
77    
# Line 100  system, the harddisk image looks and act Line 102  system, the harddisk image looks and act
102    
103    
104  <p><br>  <p><br>
105  <a name="netbsdinstall"></a>  <a name="netbsdpmaxinstall"></a>
106  <h3>NetBSD/pmax:</h3>  <h3>NetBSD/pmax:</h3>
107    
108  <p>  <p>
# Line 130  steps: Line 132  steps:
132    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
133          <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>
134          or          or
135          <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>          <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>
136    
137  </pre>  </pre>
138    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
139          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd.iso</b>          <b>gxemul -e 3max -A -d nbsd_pmax.img -d bc:pmaxcd-3.0.iso</b>
140            (or <b>pmaxcd.iso</b>)
141  </pre>  </pre>
142          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
143          DECstation. Remember to choose <tt>vt100</tt> as your terminal          DECstation. Remember to choose <tt>vt100</tt> as your terminal
# Line 148  For an ftp install, substitute steps 2 a Line 151  For an ftp install, substitute steps 2 a
151    <li>Download a NetBSD pmax INSTALL kernel:<pre>    <li>Download a NetBSD pmax INSTALL kernel:<pre>
152          <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>
153          or          or
154          <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>          <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>
155    
156  </pre>  </pre>
157    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
# Line 182  NetBSD from the harddisk image:<pre> Line 185  NetBSD from the harddisk image:<pre>
185          <b>gxemul -e 3max -d nbsd_pmax.img</b>          <b>gxemul -e 3max -d nbsd_pmax.img</b>
186  </pre>  </pre>
187    
188  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x  <p><font color="#ff0000">NOTE:</font> For some reason, NetBSD 2.x and 3.x
189  doesn't work with X out-of-the-box on pmax. It seems that this has to do  do not work with X out-of-the-box on pmax. It seems that this has to do
190  with NetBSD switching console system to "WSCONS" somewhere between 1.6.2  with NetBSD switching console system to "WSCONS" somewhere between 1.6.2
191  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.
192    
# Line 225  follow these instructions: Line 228  follow these instructions:
228    <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
229          kernel:<pre>          kernel:<pre>
230          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso</a>
   
231          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>
232    
233  </pre>  </pre>
234    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
235          <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 \
# Line 351  NetBSD/hpcmips on an emulated MobilePro Line 354  NetBSD/hpcmips on an emulated MobilePro
354          <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>
355    
356  </pre>  </pre>
357    <li>Download the NetBSD/hpcmips 2.1 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>
358          <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>          <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>
359    
360          <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>          <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>
361    
362  </pre>  </pre>
363    <p>    <p>
364    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
365          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \          <b>gxemul -e mobilepro770 -X -A -d nbsd_hpcmips.img  \
366            -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz</b>            -d b:hpcmipscd-3.0.iso -j hpcmips/installation/netbsd.gz</b>
367    
368  </pre>  </pre>
369          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 422  image, from an emulated DECstation 3MAX Line 425  image, from an emulated DECstation 3MAX
425    
426  </pre>  </pre>
427    <p>    <p>
428    <li>Install NetBSD/pmax 2.1 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
429          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
430    <p>    <p>
431    <li>Start NetBSD/pmax like this:<pre>    <li>Start NetBSD/pmax like this:<pre>
432          <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>          <b>gxemul -e3max -A -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img</b>
# Line 487  image, from an emulated DECstation 3MAX Line 490  image, from an emulated DECstation 3MAX
490    
491  <p>  <p>
492  <ol>  <ol>
493    <li>Install NetBSD/pmax 2.1 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
494          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
495    <p>    <p>
496    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
497          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>
# Line 579  time consuming, but necessary: Line 582  time consuming, but necessary:
582  <ol>  <ol>
583    <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.
584          This needs to have a 750 MB <tt>/tftpboot</tt> partition.          This needs to have a 750 MB <tt>/tftpboot</tt> partition.
585          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.
586          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
587    <p>    <p>
588    <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 758  To install NetBSD/cats onto a disk image Line 761  To install NetBSD/cats onto a disk image
761          <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>
762    
763  </pre>  </pre>
764    <li>Download the NetBSD/cats 2.1 ISO image and the generic and install kernels:<pre>    <li>Download the NetBSD/cats 3.0 ISO image and the generic and install kernels:<pre>
765          <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>          <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>
766          <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>          <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>
767          <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>          <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>
768    
769  </pre>  </pre>
770    <p>    <p>
771    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
772          <b>gxemul -XEcats -d nbsd_cats.img -d catscd.iso netbsd.aout-INSTALL.gz</b>          <b>gxemul -XEcats -d nbsd_cats.img -d catscd-3.0.iso netbsd.aout-INSTALL.gz</b>
773    
774  </pre>  </pre>
775          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 774  To install NetBSD/cats onto a disk image Line 777  To install NetBSD/cats onto a disk image
777  </ol>  </ol>
778    
779  <p>Alternatively, to install from FTP, you can skip downloading the ISO,  <p>Alternatively, to install from FTP, you can skip downloading the ISO,
780  and start the install without <tt>-d catscd.iso</tt>. Suitable network  and start the install without <tt>-d catscd-3.0.iso</tt>. Suitable network
781  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
782  255.0.0.0, nameserver 10.0.0.254.  255.0.0.0, nameserver 10.0.0.254.
783    
# Line 789  Use the following command line to boot t Line 792  Use the following command line to boot t
792    
793    
794    
795    
796    <p><br>
797    <a name="netbsdevbarminstall"></a>
798    <h3>NetBSD/evbarm:</h3>
799    
800    <a href="http://www.netbsd.org/Ports/evbarm/">NetBSD/evbarm</a> can
801    run in GXemul on an emulated IQ80321 evaluation board.
802    
803    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
804    <a href="20060218-netbsd-evbarm.png"><img src="20060218-netbsd-evbarm_small.png"></a>
805    
806    <p>It is tricky to install, because there is (as far as I know) no INSTALL
807    kernel. One way to install the NetBSD/evbarm distribution onto a disk
808    image is to install the files using another (emulated) machine.
809    
810    <p>The following instructions will let you install NetBSD/evbarm onto a disk
811    image, from an emulated CATS machine:
812    
813    <p>
814    <ol>
815      <li>Install NetBSD/cats 3.0 according to instructions
816            <a href="#netbsdcatsinstall">further up on this page</a>.
817      <p>
818      <li>Create an empty harddisk image, which will be the disk image
819            that you will install NetBSD onto:<pre>
820            <b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b>
821    
822    </pre>
823      <li>Download an IQ80321 kernel with wdc support, and the 2.1 ISO image:<pre>
824            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.1/evbarm/binary/kernel/netbsd-wd0-IQ80321.gz">netbsd-wd0-IQ80321.gz</a>
825            <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbarmcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/2.1/evbarmcd.iso</a>
826    
827    </pre>
828      <p>
829      <li>The first step is to copy the .tgz files we want onto the CATS
830            machine's harddisk. Start the CATS machine like this:<pre>
831            <b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b>
832    
833    </pre>and execute the following commands as <tt>root</tt>:
834    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
835    <b>mount /dev/cd0a /mnt; cd /root; cp /mnt/evbarm/binary/sets/[bcegmt]* .
836    sync; halt</b>
837    </pre></td></tr></table>
838      <p>
839      <li>Now let's extract the files onto the IQ80321's disk image. Start the
840            CATS machine again, with the following command line:<pre>
841            <b>gxemul -XEcats -d nbsd_cats.img -d nbsd_iq80321.img netbsd.aout-GENERIC.gz</b>
842    
843    </pre>and execute the following commands as <tt>root</tt>:
844    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
845    <b>disklabel -I -i wd1</b>
846        (enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b,
847         swap, a, 200M, P, W, y, Q</i>)
848    <b>newfs /dev/wd1a; mount /dev/wd1a /mnt; cd /mnt; sh
849    for a in /root/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done
850    exit
851    cd dev; sh ./MAKEDEV all; cd ../etc
852    echo rc_configured=YES &gt;&gt; rc.conf
853    echo "/dev/wd0a / ffs rw 1 1" &gt; fstab
854    echo "/dev/wd0b none swap sw 0 0" &gt;&gt; fstab
855    cd /; umount /mnt; sync; halt</b>
856    </pre></td></tr></table>
857    </ol>
858    
859    <p>You should now be able to boot NetBSD/evbarm using this command:<pre>
860            <b>gxemul -xEiq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b>
861    </pre>
862    
863    
864    
865    
866    
867    
868  <p><br>  <p><br>
869  <a name="netbsdprepinstall"></a>  <a name="netbsdprepinstall"></a>
870  <h3>NetBSD/prep:</h3>  <h3>NetBSD/prep:</h3>
871    
872  It is possible to install and run  It is possible to install and run
873  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul.  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> in GXemul
874    on an emulated IBM 6050 (PowerPC) machine.
875    
876  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
877  <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 815  It is possible to install and run Line 892  It is possible to install and run
892  </pre>  </pre>
893    <p>    <p>
894    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
895      <b>gxemul -x -Eprep -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>
896    
897  </pre>  </pre>
898    <p>    <p>
899    <li>Installation is a bit unsmooth, probably due to bugs in GXemul.    <li>Installation is a bit unsmooth, possibly due to bugs in GXemul,
900            possibly due to bugs in NetBSD itself; others have been having
901            problems on real hardware: <a href="http://mail-index.NetBSD.org/port-prep/2005/11/25/0004.html">http://mail-index.NetBSD.org/port-prep/2005/11/25/0004.html</a>.
902          Creating an MBR slice and a disklabel with sysinst bugs out, so          Creating an MBR slice and a disklabel with sysinst bugs out, so
903          some things have to be done manually.<p>          some things have to be done manually:<p>
904          At "<tt>(I)nstall, (S)hell, or (H)alt</tt>", choose          At "<tt>(I)nstall, (S)hell, or (H)alt</tt>", choose
905                  <tt><b><u>s</u></b></tt>.                  <tt><b><u>s</u></b></tt>.
906          <br><tt># <b><u>fdisk -u wd0</u></b></tt>          <br><tt># <b><u>fdisk -u wd0</u></b></tt>
# Line 866  It is possible to install and run Line 945  It is possible to install and run
945    
946  <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.
947  Use the following command line to boot the emulated machine:<pre>  Use the following command line to boot the emulated machine:<pre>
948          <b>gxemul -x -Eprep -d nbsd_prep.img netbsd-GENERIC.gz</b>          <b>gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>
949    
950  </pre>  </pre>
951    
# Line 880  system type, and init path. Line 959  system type, and init path.
959    
960    
961  <p><br>  <p><br>
962  <a name="openbsdinstall"></a>  <a name="openbsdpmaxinstall"></a>
963  <h3>OpenBSD/pmax:</h3>  <h3>OpenBSD/pmax:</h3>
964    
965  Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is  Installing <a href="http://www.openbsd.org/pmax.html">OpenBSD/pmax</a> is
966  a bit harder than installing NetBSD/pmax. You should first read the <a  a bit harder than installing NetBSD/pmax. You should first read the <a
967  href="#netbsdinstall">section above</a> on how to install NetBSD/pmax,  href="#netbsdpmaxinstall">section above</a> on how to install NetBSD/pmax,
968  before continuing here. If you have never installed OpenBSD on any  before continuing here. If you have never installed OpenBSD on any
969  architecture, then you need a great deal of patience to do this. If, on  architecture, then you need a great deal of patience to do this. If, on
970  the other hand you are used to installing OpenBSD, then this should be no  the other hand you are used to installing OpenBSD, then this should be no
# Line 932  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1011  chmod +w simpleroot28.fs</b>           &lt;--- ma
1011    
1012  </pre>  </pre>
1013    <li>Start the emulator with all three (!) disk images:<pre>    <li>Start the emulator with all three (!) disk images:<pre>
1014          <b>gxemul -e 3max -A -M64 -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>          <b>gxemul -e 3max -A -d obsd_pmax.img -d b:simpleroot28.fs -j bsd -d c:openbsd_pmax_2.8.iso</b>
1015    
1016  </pre>  </pre>
1017          (If you add <tt>-X</tt>, you will run with the graphical          (If you add <tt>-X</tt>, you will run with the graphical
# Line 1001  root password, and so on. Line 1080  root password, and so on.
1080  Once you have completed the installation procedure, the following command  Once you have completed the installation procedure, the following command
1081  will let you boot from the new rootdisk image:  will let you boot from the new rootdisk image:
1082  <pre>  <pre>
1083          <b>gxemul -e 3max -X -M64 -o '-aN' -d obsd_pmax.img -j bsd</b>          <b>gxemul -e 3max -X -o '-aN' -d obsd_pmax.img -j bsd</b>
1084  </pre>  </pre>
1085    
1086  <p>  <p>
# Line 1020  enter <b><tt>rcons</tt></b> if you are u Line 1099  enter <b><tt>rcons</tt></b> if you are u
1099    
1100    
1101    
 <p><br>  
 <a name="openbsdarcinstall"></a>  
 <h3>OpenBSD/arc:</h3>  
   
 It is possible to install and run OpenBSD/arc on an emulated Acer PICA-61  
 in the emulator.  
   
 <p>  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
 <a href="20041024-openbsd-arc-installed.gif"><img src="20041024-openbsd-arc-installed_small.gif"></a>  
   
 <p>  
 (You should be aware of the fact that OpenBSD for the ARC platform died at  
 release 2.3, so this will not give you an up-to-date OpenBSD system.  
 See  
 <a href="http://www.openbsd.org/arc.html">http://www.openbsd.org/arc.html</a>  
 for more information.)  
   
 <p>  
 To install OpenBSD/arc onto an emulated harddisk image, follow these  
 instructions:  
   
 <p>  
 <ol>  
   <li>Create an empty harddisk image, which will be the root disk  
         that OpenBSD installs itself onto:<pre>  
         <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>  
   
 </pre>  
   <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>  
         <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>  
   
 </pre>  
   
   <li>You now need to make an ISO image of the entire directory you downloaded.  
         (I recommend using <tt>mkisofs</tt> for that purpose. If you don't  
         already have <tt>mkisofs</tt> installed on your system, you need  
         to install it in order to do this.)<pre>  
         <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>  
   
 </pre>  
   <li>Start the emulator using this command line:<pre>  
         <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>  
   
 </pre>  
         and proceed like you would do if you were installing OpenBSD  
         on a real Acer PICA-61. (Answer 'no' when asked if you want to  
         configure networking, and then install from CD-ROM.)  
 </ol>  
   
 <p>  
 Once the install has finished, the following command should let you  
 boot from the harddisk image:  
 <p>  
 <pre>  
         <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>  
   
 </pre>  
   
   
   
   
   
   
1102    
1103    
1104  <p><br>  <p><br>
# Line 1143  may not have been written correctly to d Line 1158  may not have been written correctly to d
1158  boot from the harddisk image:  boot from the harddisk image:
1159    
1160  <p><pre>  <p><pre>
1161          <b>gxemul -X -x -Ecats -d obsd_cats.img bsd</b>          <b>gxemul -XEcats -d obsd_cats.img bsd</b>
1162    
1163  </pre>  </pre>
1164    
# Line 1180  The following instructions should let yo Line 1195  The following instructions should let yo
1195          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.          (On FreeBSD and similar systems, it is called <tt>/dev/cd0c</tt>.
1196          Replace that with the name of your CDROM drive, or the name of a          Replace that with the name of your CDROM drive, or the name of a
1197          .iso image file.) Then, start the emulator like this:<pre>          .iso image file.) Then, start the emulator like this:<pre>
1198          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -e 3max -d rootdisk.img -d bc:/dev/cd0c -j vmunix</b>
1199    
1200  </pre>  </pre>
1201    <li>Once the first stage of the installation is done (restoring the root    <li>Once the first stage of the installation is done (restoring the root
# Line 1188  The following instructions should let yo Line 1203  The following instructions should let yo
1203          new rootdisk, to continue the installation process.          new rootdisk, to continue the installation process.
1204          This is done by removing the bootflag ('<tt>b</tt>') from the second          This is done by removing the bootflag ('<tt>b</tt>') from the second
1205          diskimage argument:<pre>          diskimage argument:<pre>
1206          <b>gxemul -X -A -M64 -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>          <b>gxemul -X -A -e 3max -d rootdisk.img -d c:/dev/cd0c -j vmunix</b>
1207    
1208  </pre>  </pre>
1209  </ol>  </ol>
# Line 1196  The following instructions should let yo Line 1211  The following instructions should let yo
1211  <p>  <p>
1212  When the installation is completed, the following command should start    When the installation is completed, the following command should start  
1213  Ultrix from the harddisk image:<pre>  Ultrix from the harddisk image:<pre>
1214          <b>gxemul -X -A -M64 -e 3max -j vmunix -d rootdisk.img</b>          <b>gxemul -X -A -e 3max -j vmunix -d rootdisk.img</b>
1215  </pre>  </pre>
1216    
1217  <p>Ultrix mostly seems to work with dynamic binary translation (which can  <p>Ultrix mostly seems to work with dynamic binary translation (which can
# Line 1218  There is also a <b><tt>-z</tt></b> optio Line 1233  There is also a <b><tt>-z</tt></b> optio
1233  displays to use. The following example starts Ultrix on an emulated  displays to use. The following example starts Ultrix on an emulated
1234  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,  tripple-headed workstation, on three different displays (<tt>remote1:0.0</tt>,
1235  <tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre>  <tt>localhost:0.0</tt>, and <tt>remote2:0.0</tt>), using no scaledown:<pre>
1236          <b>gxemul -M64 -N -e 3max -jgenvmunix -d rootdisk.img \          <b>gxemul -A -N -e 3max -jgenvmunix -d rootdisk.img \
1237              -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>
1238  </pre>  </pre>
1239    
# Line 1325  start the X11 environment. Line 1340  start the X11 environment.
1340  <a name="declinux"></a>  <a name="declinux"></a>
1341  <h3>Debian GNU/Linux for DECstation:</h3>  <h3>Debian GNU/Linux for DECstation:</h3>
1342    
1343  <font color="#ef0000">NOTE: This is experimental, and <i>extremely</i>  It is possible to run Debian GNU/Linux for DECstation in the emulator,
1344  unstable. During my tests, even pressing the wrong key during the install  on an emulated 5000/200 ("3max"). Although the Debian project has released
1345  (for example the wrong cursor key) can cause a kernel Oops. My success  install ramdisk kernels for this purpose, these do not always work:
1346  rate is probably around 50%.</font>  <ul>
1347      <li>Serial console output doesn't work too well in GXemul. There are
1348  <p><font color="#ef0000">I <i>think</i> this has to do with interrupts          random oopses, which may be due to bugs in GXemul, but may
1349  from the serial controller. Hopefully using the <tt><b>-U</b></tt> command          also be due to bugs in the serial controller code in Linux.
1350  line option will reduce the risk for such crashes. (I haven't had time to          (The speed at which serial interrupts are generated can be
1351  come up with a clean solution to this yet; it feels like a buffer overflow          lowered with the <tt>-U</tt> command line option, but it only
1352  in Linux' serial driver for the 5000/200, but it is also likely that it is          reduces the risk, it doesn't take away the oopses completely.)
1353  a bug in GXemul.)</font>    <li>Old install kernels supported the graphical framebuffer on the
1354            3max, but not the keyboard.
1355  <p><font color="#ef0000">Everything runs extremely slow. Even if you have    <li>For quite some time, the MIPS linux cvs tree had support for the
1356  a very fast host machine, an install attempt can still take several hours!          keyboard, but it did <i>not</i> include Debian's patches for
1357  </font>          networking. (Perhaps this has been fixed now, I don't know.)
1358    </ul>
1359    
1360  <p>  <p>David Muse has made available a precompiled install kernel which
1361  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  has support for framebuffer, keyboard, and networking, which works
1362  <a href="20041212-debian_1.png"><img src="20041212-debian_1_small.gif"></a>  pretty well. Thanks David. :-)
 &nbsp;&nbsp;&nbsp;  
 <a href="20041212-debian_2.png"><img src="20041212-debian_2_small.gif"></a>  
 &nbsp;&nbsp;&nbsp;  
 <a href="20041213-debian_3.png"><img src="20041213-debian_3_small.gif"></a>  
 &nbsp;&nbsp;&nbsp;  
 <a href="20041213-debian_4.png"><img src="20041213-debian_4_small.gif"></a>  
1363    
1364  <p>  <p>
1365  The following steps should let you install Debian GNU/Linux for DECstation  The following steps should let you install Debian GNU/Linux for DECstation
# Line 1359  onto a harddisk image: Line 1369  onto a harddisk image:
1369  <ol>  <ol>
1370    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
1371          that Debian installs itself onto:<pre>          that Debian installs itself onto:<pre>
1372          <b>dd if=/dev/zero of=debian.img bs=1024 count=1 seek=3000000</b>          <b>dd if=/dev/zero of=debian_pmax.img bs=1024 count=1 seek=3300000</b>
1373    
1374  </pre>  </pre>
1375    <li>Download an install kernel:<pre>    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>
1376          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>          <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>
1377              <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/r3k-kn02/boot.img">installer-mipsel/current/images/r3k-kn02/boot.img</a>          <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>
1378    
1379  </pre>  </pre>
1380    <p>    <p>
1381    <li>For a text-mode installation, start the emulator like this:<pre>    <li>Start the installation like this:<pre>
1382          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img -O boot.img</b>          <b>gxemul -XAe3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>
1383    
1384  </pre>  </pre>
1385          (If you want to, you can try <b><tt>-X</tt></b> instead of          Everything is <i>really</i> slow, for several reasons (framebuffer is
1386          <b><tt>-o 'console=ttyS3'</tt></b> on the command line. This will          always slower than serial console, and Debian's install seems to be
1387          cause Linux to use the graphical framebuffer. Unfortunately, Linux          made up of scripts that run a lot slower in the emulator than pure
1388          does not seem to have a driver for the DZ11 keyboard controller yet,          C code would).
1389          so you cannot interact with the system. You will see the penguin in          <p>
1390          the upper lefthand corner while booting, and nicely rendered Unicode          There will be a <font color="#d00000">warning</font> about "Select
1391          characters, but that's about it.)          keyboard layout". Don't mind this. Continue by selecting "Detect and
1392            mount CD-ROM".
1393            <p>
1394            There will also be a <font color="#d00000">warning</font> about lack
1395            of loadable modules. Don't mind this, continue anyway.
1396          <p>          <p>
1397          You need to enter some values during the installation procedure, for          You need to enter some values during the installation procedure, for
1398          example network settings. The following should work:<pre>          example network settings. The following should work:<pre>
# Line 1391  onto a harddisk image: Line 1405  onto a harddisk image:
1405    <li>Once the first phase of the install has finished, the following command    <li>Once the first phase of the install has finished, the following command
1406          should let you boot into Debian, and perform post-install          should let you boot into Debian, and perform post-install
1407          configuration:<pre>          configuration:<pre>
1408          <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>          <b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
   
 </pre>Note: All these steps take a lot of time, so you will have plenty  
         of time to drink lots of cups of coffee.  
   <p>  
   <li>It seems that there's a problem with getting a login prompt on serial  
         console (at least when I've done test installs), so when the  
         installation is finished and you're supposed to get a login prompt,  
         you need to press CTRL-C and type <b><tt>quit</tt></b>, and then:  
         download a normal kernel (<i>not</i> a RAMDISK kernel):<pre>  
         <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/</a>  
             <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>  
1409    
1410  </pre>and boot Debian using the following command line:<pre>  </pre>The post-install step takes quite some time.
         <b>gxemul -e 3max -U -M64 -o \  
             'console=ttyS3 root=/dev/sda1 rw init=/bin/sh' \  
             -d debian.img vmlinux-2.4.27-r3k-kn02</b>  
   
 </pre>  
         You'll enter single-user mode. You need to add a line to  
         /etc/inittab, to enable logins via serial console.<pre>  
         sh-2.05b# <b>echo 'T3:23:respawn:/sbin/getty -L ttyS3 9600 vt100' >> /etc/inittab</b>  
         sh-2.05b# <b>echo 'ttyS3' >> /etc/securetty</b>  
         sh-2.05b# <b>sync; umount /</b>  
         sh-2.05b# <b>halt</b>  
 </pre>  
1411  </ol>  </ol>
1412    
1413  <p>  <p>Debian GNU/Linux for DECstation should now be installed. Use this command
1414  The system should now be ready for everyday use.  to boot from the installed disk image:<pre>
1415            <b>gxemul -XAe3max -o 'root=/dev/sda1' -d debian_pmax.img vmlinux-2.4.31</b>
 <p>  
 Use this command to boot from the completely installed disk image:<pre>  
         <b>gxemul -e 3max -U -M64 -o 'console=ttyS3' -d debian.img</b>  
1416    
1417  </pre>  </pre>
1418    
 <p>  
 [&nbsp;<font color="#ff0000">UPDATE 2005-01-19:</font>&nbsp;  
 Kaj-Michael Lang noticed that the current CVS-version of  
 <a href="http://www.linux-mips.org/">linux-mips</a> has  
 support for keyboards now, on DECstation 5000/200, so it is  
 possible to run Debian GNU/Linux with framebuffer/keyboard.  
 (Add <b><tt>-X</tt></b> (or <b><tt>-XY2</tt></b>) and remove the  
 <b><tt>console=ttyS3</tt></b> option.) He has made a kernel available here:  
 <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
 It has other problems (ethernet doesn't seem to work, for  
 example), but at least it doesn't Oops that often.&nbsp;]  
1419    
1420    
1421    
# Line 1449  example), but at least it doesn't Oops t Line 1426  example), but at least it doesn't Oops t
1426  <a name="declinuxredhat"></a>  <a name="declinuxredhat"></a>
1427  <h3>Redhat Linux for DECstation:</h3>  <h3>Redhat Linux for DECstation:</h3>
1428    
 <font color="#ff0000">NOTE: This is experimental, and <i>extremely</i>  
 unstable. Read the note about <b><tt>-U</tt></b> in the section on how to  
 install Debian.  
 </font>  
1429    
1430  <p>  <p>
1431  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1463  The following steps should let you run R Line 1436  The following steps should let you run R
1436    
1437  <p>  <p>
1438  <ol>  <ol>
1439    <li>Download a kernel. This is a Debian kernel, but it works fine:<pre>    <li>Download a kernel. David Muse' Debian-install kernel works fine, also with Redhat:<pre>
1440          <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">http://ftp.egr.msu.edu/debian/dists/stable/main/</a>          <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>
             <a href="http://ftp.egr.msu.edu/debian/dists/stable/main/installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02">installer-mipsel/current/images/cdrom/vmlinux-2.4.27-r3k-kn02</a>  
1441    
1442  </pre>  </pre>
1443    <li>Download a root filesystem tree:<pre>    <li>Download a root filesystem tree:<pre>
# Line 1474  The following steps should let you run R Line 1446  The following steps should let you run R
1446          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414          19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
1447    
1448  </pre>  </pre>
1449    <li>This is the tricky part: Create an ext2 filesystem image called redhat.img using    <li>Create a disk image which will contain the Redhat filesystem:<pre>
1450          the filesystem tree you just downloaded. The disk image should have a MS-DOS          <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>
1451          partition table (!), and then one or more ext2 partitions.  
1452          (Use loopback mount, or similar. This is probably easiest to do on a Linux host.)  </pre>
1453          However, in order to actually boot the system you need to modify /etc/fstab.    <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS
1454            (!) partition table, and then an ext2 partition. This is what Linux
1455            will then see as /dev/sda1.
1456            <p>On a Linux host, you could use a loopback mount, or similar. Otherwise,
1457            I recommend you run fdisk and mke2fs and untar the archive from within
1458            Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running
1459            inside the emulator. Use your imagination.
1460            <p>
1461            In order to actually boot the system you need to modify /etc/fstab.
1462          Change<pre>          Change<pre>
1463          /dev/root               /               nfs     defaults        1 1          /dev/root               /               nfs     defaults        1 1
1464          #/dev/sdc1              /               ext2    defaults        1 1          #/dev/sdc1              /               ext2    defaults        1 1
# Line 1492  The following steps should let you run R Line 1472  The following steps should let you run R
1472          none                    /dev/pts        devpts  mode=0622       0 0          none                    /dev/pts        devpts  mode=0622       0 0
1473    
1474  </pre>(Note sda1 instead of sdc1.)  </pre>(Note sda1 instead of sdc1.)
   <p>  
   <li>To boot Linux, start the emulator like this:<pre>  
         <b>gxemul -e 3max -U -M128 -o \  
             "console=ttyS3 root=/dev/sda1 ro" -d redhat.img vmlinux-2.4.27-r3k-kn02</b>  
   
 </pre>  
1475  </ol>  </ol>
1476    
1477  <p>  <p>To boot Redhat linux from the disk image, use the following command line:<pre>
1478  If you need to boot into single user mode, try the following:<pre>          <b>gxemul -XAe3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>
         <b>gxemul -e 3max -U -o "console=ttyS3 root=/dev/sda1 rw init=/bin/sh" \  
             -d redhat.img vmlinux-2.4.27-r3k-kn02</b>  
1479    
1480  </pre>  </pre>
1481    If you need to boot into single user mode, change options to
1482    <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.
1483    
 <p>Redhat Linux on DECstation in R3000 mode should work fine with dynamic  
 binary translation, but if things are buggy, it can be disabled by  
 using the <b><tt>-B</tt></b> command line option.  
   
 <p>  
 NOTE: You can add <b>-X</b> and remove <b>console=ttyS3</b> from the command  
 line, if you want to use a graphical framebuffer. Unfortunately, Linux  
 doesn't have support for keyboards on DECstation 5000/200 yet, so you cannot  
 actually interact with the sytem. :-(  
   
 <p>  
 [&nbsp;<font color="#ff0000">UPDATE 2005-01-22:</font>&nbsp;  
 Read the 2005-01-19 update in the Debian section above, and then, if  
 you do not need ethernet support, try Kaj-Michael Lang's kernel compiled  
 from <a href="http://www.linux-mips.org/">linux-mips</a>' CVS.  
 <a href="http://home.tal.org/~milang/o2/kernels/">http://home.tal.org/~milang/o2/kernels</a>/<a href="http://home.tal.org/~milang/o2/kernels/vmlinux-2.4.29-rc2-r3k-mipsel-decstation">vmlinux-2.4.29-rc2-r3k-mipsel-decstation</a>  
 It should work with framebuffer/keyboard.&nbsp;]  
1484    
1485    
1486    
# Line 1640  client. Performing this setup is quite t Line 1597  client. Performing this setup is quite t
1597  <ol>  <ol>
1598    <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.
1599          This needs to have a 800 MB <tt>/tftpboot</tt> partition.          This needs to have a 800 MB <tt>/tftpboot</tt> partition.
1600          <a href="#netbsdinstall">Install NetBSD/pmax 2.1 from CDROM</a>.          <a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.0 from CDROM</a>.
1601          (Don't forget to add the extra partition!)          (Don't forget to add the extra partition!)
1602    <p>    <p>
1603    <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 1789  fetch several cups of coffee for each of Line 1746  fetch several cups of coffee for each of
1746    
1747    
1748    
1749    
1750    <p><br>
1751    <a name="openbsdarcinstall"></a>
1752    <h3>OpenBSD/arc:</h3>
1753    
1754    It is (almost) possible to install and run OpenBSD/arc on an emulated Acer
1755    PICA-61 in the emulator.
1756    
1757    <p><font color="#e00000">Earlier, I had this guest OS listed as
1758    officially working in the emulator, but for several reasons, it has
1759    been moved down here to the "informative-but-not-really-working"
1760    section.</font>
1761    
1762    <p>
1763    <ul>
1764      <li>The last OpenBSD/arc release was 2.3. This means that it is very
1765            old, it would not give a fair picture of what OpenBSD is (if you
1766            are just looking to find out what it is like), and it is not
1767            worth experimenting with it. See
1768            <a href="http://www.openbsd.org/arc.html">http://www.openbsd.org/arc.html</a>
1769            for more information.
1770      <li>OpenBSD/arc was (if I understood things correctly) never really
1771            stable, even on real hardare. Problems with too small an interrupt
1772            stack. Bugs are triggered in the emulator that have to do with
1773            issues such as this.
1774    </ul>
1775    
1776    <p>
1777    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1778    <a href="20041024-openbsd-arc-installed.gif"><img src="20041024-openbsd-arc-installed_small.gif"></a>
1779    
1780    <p>
1781    <font color="#e00000">Currently, I don't test for every release whether
1782    or not OpenBSD/arc can be installed. Releases prior to 0.3.7
1783    (but probably <i>not</i> 0.3.7) should work. Anyway, here are the
1784    old installation instructions:</font>
1785    
1786    <p>To install OpenBSD/arc onto an emulated harddisk image, follow these
1787    instructions:
1788    
1789    <p>
1790    <ol>
1791      <li>Create an empty harddisk image, which will be the root disk
1792            that OpenBSD installs itself onto:<pre>
1793            <b>dd if=/dev/zero of=obsd_arc.img bs=1024 count=1 seek=700000</b>
1794    
1795    </pre>
1796      <li>Download the entire arc directory from the ftp server: (approx. 75 MB)<pre>
1797            <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/">ftp://ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/</a></b>
1798    
1799    </pre>
1800    
1801      <li>You now need to make an ISO image of the entire directory you downloaded.
1802            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
1803            already have <tt>mkisofs</tt> installed on your system, you need
1804            to install it in order to do this.)<pre>
1805            <b>mkisofs -o openbsd_arc_2.3.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
1806    
1807    </pre>
1808      <li>Start the emulator using this command line:<pre>
1809            <b>gxemul -e pica -X -A -d obsd_arc.img -d b:openbsd_arc_2.3.iso -j 2.3/arc/bsd.rd</b>
1810    
1811    </pre>
1812            and proceed like you would do if you were installing OpenBSD
1813            on a real Acer PICA-61. (Answer 'no' when asked if you want to
1814            configure networking, and then install from CD-ROM.)
1815    </ol>
1816    
1817    <p>
1818    Once the install has finished, the following command should let you
1819    boot from the harddisk image:
1820    <p>
1821    <pre>
1822            <b>gxemul -X -e pica -d obsd_arc.img ftp.se.openbsd.org/pub/OpenBSD/2.3/arc/bsd</b>
1823    
1824    </pre>
1825    
1826    The system is very sensitive to (I think) kernel stack overflow, so it
1827    crashes easily. If I remember correctly from mailing lists, this also
1828    happened on real hardware.
1829    
1830    
1831    
1832    
1833    
1834    
1835    
1836    
1837    
1838    
1839    
1840    <p><br>
1841    <a name="debiancats"></a>
1842    <h3>Debian GNU/Linux for CATS:</h3>
1843    
1844    Debian GNU/Linux for CATS (ARM) could <i>theoretically</i> run in GXemul,
1845    however:
1846    
1847    <ul>
1848      <li>The DEC 21143 NIC is not emulated well enough for Linux to accept it.
1849      <li>Development of Debian for CATS seems to have died? The latest
1850            install kernel is quite old.
1851    </ul>
1852    
1853    <p><font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1854    
1855    <p>The following installation instructions would theoretically work:
1856    
1857    <p>
1858    <ol>
1859      <li>Create an empty harddisk image, which will be the root disk
1860            that Debian installs itself onto:<pre>
1861            <b>dd if=/dev/zero of=debian_cats.img bs=1024 count=1 seek=3300000</b>
1862    
1863    </pre>
1864      <li>Download the tftpboot install kernel:<pre>
1865            <a href="http://ftp.debian.org/debian/dists/oldstable/main/disks-arm/current/cats/tftpboot.img">http://ftp.debian.org/debian/dists/oldstable/main/disks-arm/current/cats/tftpboot.img</a>
1866    
1867    </pre>
1868      <li>Start the installation using the following command line:<pre>
1869            <b>gxemul -XEcats -d debian_cats.img tftpboot.img</b>
1870    
1871    </pre>
1872    </ol>
1873    
1874    <p>It doesn't work, though, because the NIC isn't working well enough.
1875    
1876    <p>The only use of Debian/CATS in the emulator right now is as a way to
1877    manipulate Linux disk images, if you are on a non-Linux host. By choosing
1878    "Execute a shell" in the installer's menu, you can have access to tools such as
1879    fdisk and mke2fs, which are useful for creating Linux paritions on disk images.
1880    
1881    
1882    
1883    
1884    
1885    
1886    
1887  <p><br>  <p><br>
1888  <a name="netbsdnetwinderinstall"></a>  <a name="netbsdnetwinderinstall"></a>
1889  <h3>NetBSD/netwinder:</h3>  <h3>NetBSD/netwinder:</h3>
1890    
1891  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>  <a href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a>
1892  could possibly run in GXemul. <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  could possibly run in GXemul.
1893    <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
1894    
1895  <p>It is tricky to install, because there is (as far as I know) no INSTALL  <p>It is tricky to install, because there is (as far as I know) no INSTALL
1896  kernel. One way to install the NetBSD/netwinder distribution onto a disk  kernel. One way to install the NetBSD/netwinder distribution onto a disk
# Line 1806  distribution onto a disk image, from an Line 1902  distribution onto a disk image, from an
1902    
1903  <p>  <p>
1904  <ol>  <ol>
1905    <li>Install NetBSD/pmax 2.1 according to instructions    <li>Install NetBSD/pmax 3.0 according to instructions
1906          <a href="#netbsdinstall">further up on this page</a>.          <a href="#netbsdpmaxinstall">further up on this page</a>.
1907    <p>    <p>
1908    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
1909          that you will install NetBSD onto:<pre>          that you will install NetBSD onto:<pre>

Legend:
Removed from v.21  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26