/[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 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC revision 38 by dpavlin, Mon Oct 8 16:21:53 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.187 2006/11/06 05:31:38 debug Exp $  $Id: guestoses.html,v 1.212 2007/04/14 05:38:00 debug Exp $
14    
15  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.
16    
17  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
18  modification, are permitted provided that the following conditions are met:  modification, are permitted provided that the following conditions are met:
# Line 59  SUCH DAMAGE. Line 59  SUCH DAMAGE.
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.1</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.1</a>
61    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
62    <li><a href="#netbsddreamcast">NetBSD/dreamcast 3.1</a>    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.1</a>
63      <li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a>
64      <li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a>
65    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
66    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>
67    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
68    <li><a href="#sprite">Sprite for DECstation</a>    <li><a href="#sprite">Sprite for DECstation</a>
69    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>    <li><a href="#declinux">Debian GNU/Linux for DECstation</a>
   <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>  
70  </ul>  </ul>
71    
72    
# Line 93  updated; if new versions have been relea Line 94  updated; if new versions have been relea
94  well.  well.
95    
96  <p>In addition to the "working" guest operating systems listed above,  <p>In addition to the "working" guest operating systems listed above,
97  you might find the following information interesting: (Some of these might  you might find the following information interesting:
 not be relevant for this specific release of GXemul.)  
98    
99  <ul>  <ul>
100    <li><a href="#mach">Mach/PMAX</a>    <li><a href="#mach">Mach/PMAX</a>
101      <li><a href="#declinuxredhat">Redhat Linux for DECstation</a>
102    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
103    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
104    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
105    <!-- <li><a href="#linux_malta">Linux/Malta</a> -->    <!-- <li><a href="#linux_malta">Linux/Malta</a> -->
106    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
107    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
   <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>  
108    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
109      <li><a href="#netbsdlandiskinstall">NetBSD/landisk</a>
110      <li><a href="#openbsdlandiskinstall">OpenBSD/landisk</a>
111  </ul>  </ul>
112    
113    <p><b><font color="#ff0000">NOTE:</b>
114    Some of these sections may not be relevant to this
115    specific release of GXemul,</font> for example some of these
116    modes may be legacy modes that worked before but not any longer,
117    or are not yet working but could be in the future.
118    
119  <p>Some operating systems are listed with a version number <i>less</i>  <p>Some operating systems are listed with a version number <i>less</i>
120  than what was available at the time of this GXemul release (e.g.  than what was available at the time of this GXemul release (e.g.
121  NetBSD/prep). The reasons for this is because of incompleteness in  NetBSD/prep). The reasons for this is because of incompleteness in
# Line 812  To install NetBSD/cats onto a disk image Line 820  To install NetBSD/cats onto a disk image
820  <ol start="1">  <ol start="1">
821    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
822          that you will install NetBSD/cats onto:<pre>          that you will install NetBSD/cats onto:<pre>
823          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=nbsd_cats.img bs=1024 count=1 seek=3000000</b>
824    
825  </pre>  </pre>
826    <li>Download the NetBSD/cats 3.1 ISO image and the generic and install kernels:<pre>    <li>Download the NetBSD/cats 3.1 ISO image and the generic and install kernels:<pre>
# Line 1023  generic kernel:<pre> Line 1031  generic kernel:<pre>
1031  <a name="netbsdprepinstall"></a>  <a name="netbsdprepinstall"></a>
1032  <h3>NetBSD/prep:</h3>  <h3>NetBSD/prep:</h3>
1033    
1034  It is possible to install and run  It is possible to install and run <a
1035  <a href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul  href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul on
1036  on an emulated IBM 6050 (PowerPC) machine. (NetBSD 3.0 uses the wdc  an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use
1037  controller in a way which isn't implemented in GXemul yet.)  the wdc controller in a way which isn't implemented in GXemul yet, or
1038    there are bugs in GXemul's PowerPC CPU emulation.)
1039    
1040  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1041  <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 1047  controller in a way which isn't implemen Line 1056  controller in a way which isn't implemen
1056  </pre>  </pre>
1057    <p>    <p>
1058    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1059      <b>gxemul -x -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>      <b>gxemul -X -e ibm6050 -d nbsd_prep.img -d rdb:prepcd.iso -j prep/binary/kernel/netbsd-INSTALL.gz</b>
1060    
1061  </pre>  </pre>
1062    <p>    <p>
# Line 1100  controller in a way which isn't implemen Line 1109  controller in a way which isn't implemen
1109    
1110  <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.
1111  Use the following command line to boot the emulated machine:<pre>  Use the following command line to boot the emulated machine:<pre>
1112          <b>gxemul -x -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>          <b>gxemul -X -e ibm6050 -d nbsd_prep.img netbsd-GENERIC.gz</b>
1113    
1114  </pre>  </pre>
1115    
# Line 1119  system type, and init path. Line 1128  system type, and init path.
1128    
1129    
1130    
1131    <p><br>
1132    <a name="netbsdmacppcinstall"></a>
1133    <h3>NetBSD/macppc:</h3>
1134    
1135    It is possible to install and run <a
1136    href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul on
1137    an emulated generic PowerPC machine. No specific Machintosh model is
1138    emulated, but it is enough to for NetBSD to recognize it.
1139    
1140  <p><br>  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1141  <a name="netbsddreamcast"></a>  <a href="20070318-netbsd-macppc.png"><img src="20070318-netbsd-macppc_small.png"></a>
1142  <h3>NetBSD/dreamcast:</h3>  
1143    <p>To install NetBSD/macppc onto a disk image, follow these instructions:
1144    
1145  <font color="#000095">SuperH emulation is very new in GXemul. This is  <p>
1146  still highly experimental.</font>  <ol start="1">
1147      <li>Create an empty harddisk image, which will be the root disk
1148            that you will install NetBSD/macppc onto:<pre>
1149        <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b>
1150    
1151  <p>It is possible to run <a href="http://www.netbsd.org/Ports/dreamcast/">NetBSD/dreamcast</a>  </pre>
1152  3.1 in GXemul. Only enough of the Dreamcast is emulated to let a NetBSD    <li>Download the NetBSD/macppc 3.1 ISO image and a generic kernel:<pre>
1153  ramdisk kernel reach userland; no network interface is emulated yet, so      <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso</a>
1154  root-on-nfs is not possible.      <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>
1155    
1156  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </pre>
1157  <a href="20061029-netbsd-dreamcast.png"><img src="20061029-netbsd-dreamcast_small.png"></a>    <p>
1158      <li>Start the installation like this:<pre>
1159        <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.1.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>
1160    
1161    </pre>
1162            and continue as you would do when installing NetBSD on a real
1163            machine.
1164      <p>
1165      <li>Before turning the emulated machine off, quit the NetBSD installer
1166            and execute the following commands:<pre>
1167            <b>cd /; mount /dev/wd0a /mnt
1168            echo 'console "/usr/libexec/getty std.38400" vt100 on secure' > /mnt/etc/ttys
1169            echo 'rc_configured=YES' >> /mnt/etc/rc.conf
1170            umount /mnt; sync
1171            reboot</b>
1172    
 <p>Download the 3.1 kernel and symbols here:<pre>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.gz</a>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.symbols.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.symbols.gz</a>  
1173  </pre>  </pre>
1174    </ol>
1175    
1176  <p>Start NetBSD/dreamcast using the following command line:<pre>  <p>If everything worked, NetBSD/macppc should now be installed on
1177          <b>gxemul -XEdreamcast netbsd-GENERIC_MD.*</b>  the disk image.
1178    
1179    <p>Use the following command line to boot the emulated machine:<pre>
1180            <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>
1181    
1182  </pre>  </pre>
1183    
1184    <p>If asked about <tt>root device</tt>, enter <tt><b>wd0</b></tt>.
1185    
1186    
1187    
1188    
1189    
1190    
1191    
1192    
1193    
1194    
1195    
1196    
1197    
1198    <p><br>
1199    <a name="netbsddreamcast"></a>
1200    <h3>NetBSD/dreamcast:</h3>
1201    
1202    Moved <a href="dreamcast.html#netbsd_generic_md">here</a>.
1203    
1204    
1205    
1206    
# Line 1234  chmod +w simpleroot28.fs</b>           &lt;--- ma Line 1287  chmod +w simpleroot28.fs</b>           &lt;--- ma
1287            <li>At the # prompt, do the following:<pre>            <li>At the # prompt, do the following:<pre>
1288          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)          <b>fsck /dev/rz1a</b>        (and mark the filesystem as clean)
1289          <b>mount /dev/rz1a /</b>          <b>mount /dev/rz1a /</b>
1290            <b>mkdir /kern</b>
1291            <b>mkdir /mnt2</b>
1292          <b>mount -t kernfs kern kern</b>          <b>mount -t kernfs kern kern</b>
1293          <b>./install</b>          <b>./install</b>
1294    
# Line 1596  DECstation onto a harddisk image in the Line 1651  DECstation onto a harddisk image in the
1651          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>
1652    
1653  </pre>  </pre>
1654            <font color="#ff0000">NOTE 2007-04-14: It seems that the ISO image
1655            has been removed from the cdimage site. You may need to search
1656            for it elsewhere. :-/ Alternatively, you can follow
1657            Michel Lespinasse's instructions at
1658            <a href="http://people.zoy.org/~walken/gxemul-etch/HOWTO.html">http://people.zoy.org/~walken/gxemul-etch/HOWTO.html</a>.</font>
1659    <p>    <p>
1660    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1661          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>
# Line 1682  Use this command to boot from the instal Line 1742  Use this command to boot from the instal
1742    
1743    
1744  <p><br>  <p><br>
 <a name="declinuxredhat"></a>  
 <h3>Redhat Linux for DECstation:</h3>  
   
   
 <p>  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
 <a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a>  
   
 <p>  
 The following steps should let you run Redhat Linux for DECstation in GXemul:  
   
 <p>  
 <ol>  
   <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>  
         <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>  
   
 </pre>  
   <li>Download a root filesystem tree:<pre>  
         <a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a>  
         19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414  
   
 </pre>  
   <li>Create a disk image which will contain the Redhat filesystem:<pre>  
         <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>  
   
 </pre>  
   <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS  
         (!) partition table, and then an ext2 partition. This is what Linux  
         will then see as /dev/sda1.  
         <p>I recommend you run fdisk and mke2fs and untar the archive from within  
         Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running  
         inside the emulator. (Alternatively, if you are on a Linux host,  
         you could use a loopback mount, or similar. This might require  
         root access. See e.g.  
         <a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.)  
         <p>  
         In order to actually boot the system you need to modify /etc/fstab.  
         Change<pre>  
         /dev/root               /               nfs     defaults        1 1  
         #/dev/sdc1              /               ext2    defaults        1 1  
         none                    /proc           proc    defaults        0 0  
         none                    /dev/pts        devpts  mode=0622       0 0  
   
 </pre>to<pre>  
         #/dev/root              /               nfs     defaults        1 1  
         /dev/sda1               /               ext2    defaults        1 1  
         none                    /proc           proc    defaults        0 0  
         none                    /dev/pts        devpts  mode=0622       0 0  
   
 </pre>(Note sda1 instead of sdc1.)  
 </ol>  
   
 <p>To boot Redhat linux from the disk image, use the following command line:<pre>  
         <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>  
   
 </pre>  
 If you need to boot into single user mode, change options to  
 <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.  
   
   
   
   
   
   
   
 <p><br>  
1745  <hr>  <hr>
1746    
1747    
# Line 1781  for DECstation in the emulator: Line 1775  for DECstation in the emulator:
1775    
1776  <p>  <p>
1777  <ol>  <ol>
   <li>Compile gxemul with cache emulation: (<b>NOTE: --enable-caches</b>)<pre>  
         <b>./configure --enable-caches; make</b>  
   
 </pre>  
1778    <li>Download the pmax binary distribution for Mach 3.0:<pre>    <li>Download the pmax binary distribution for Mach 3.0:<pre>
1779          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/</a>          <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">http://lost-contact.mit.edu/afs/athena/user/d/a/</a>
1780              <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">daveg/Info/Links/Mach/src/release/pmax.tar.Z</a>              <a href="http://lost-contact.mit.edu/afs/athena/user/d/a/daveg/Info/Links/Mach/src/release/pmax.tar.Z">daveg/Info/Links/Mach/src/release/pmax.tar.Z</a>
# Line 1813  for DECstation in the emulator: Line 1803  for DECstation in the emulator:
1803          cd /; sync; umount /mnt</i>)          cd /; sync; umount /mnt</i>)
1804          <p>          <p>
1805    <li>Start the emulator with the following command:<pre>    <li>Start the emulator with the following command:<pre>
1806          <b>gxemul -e 3max -X -d disk.img \          <b>gxemul -c 'put w 0x800990e0, 0' -c 'put w 0x80099144, 0' \
1807                -c 'put w 0x8004aae8, 0' -e 3max -X -d disk.img \
1808              pmax_mach/special/mach.boot.MK83.STD+ANY</b>              pmax_mach/special/mach.boot.MK83.STD+ANY</b>
1809    
1810  </pre>  </pre>
1811  </ol>  </ol>
1812    
1813    <p>Earlier versions of GXemul had a configure option to enable better
1814    R3000 cache emulation, but since Mach was more or less the only thing that
1815    used it, I removed it. Today's version of GXemul can thus not boot
1816    mach.boot.MK83.STD+ANY straight off, it has to be patched to skip the
1817    cache detection.
1818    
1819    <p>The -c commands above patch the kernel to get past the cache detection.
1820    Thanks to Artur Bujdoso for these values.
1821    
1822    <p>TODO: Better instructions on how to create the old-style UFS disk
1823    image.
1824    
1825    
1826    
1827    
1828    
1829    
1830    
1831    <p><br>
1832    <a name="declinuxredhat"></a>
1833    <h3>Redhat Linux for DECstation:</h3>
1834    
1835    
1836    <p>
1837    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1838    <a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a>
1839    
1840    <p>
1841    The following steps should let you run Redhat Linux for DECstation in GXemul:
1842    
1843    <p>
1844    <ol>
1845      <li>Download a kernel. David Muse' Debian-install kernel works fine:<pre>
1846            <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>
1847    
1848    </pre>
1849      <li>Download a root filesystem tree:<pre>
1850            <a href="ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz">ftp://ftp.linux-mips.org/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz</a>
1851            19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414
1852    
1853    </pre>
1854      <li>Create a disk image which will contain the Redhat filesystem:<pre>
1855            <b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b>
1856    
1857    </pre>
1858      <li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS
1859            (!) partition table, and then an ext2 partition. This is what Linux
1860            will then see as /dev/sda1.
1861            <p>I recommend you run fdisk and mke2fs and untar the archive from within
1862            Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running
1863            inside the emulator. (Alternatively, if you are on a Linux host,
1864            you could use a loopback mount, or similar. This might require
1865            root access. See e.g.
1866            <a href="http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux">http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux</a>.)
1867            <p>
1868            In order to actually boot the system you need to modify /etc/fstab.
1869            Change<pre>
1870            /dev/root               /               nfs     defaults        1 1
1871            #/dev/sdc1              /               ext2    defaults        1 1
1872            none                    /proc           proc    defaults        0 0
1873            none                    /dev/pts        devpts  mode=0622       0 0
1874    
1875    </pre>to<pre>
1876            #/dev/root              /               nfs     defaults        1 1
1877            /dev/sda1               /               ext2    defaults        1 1
1878            none                    /proc           proc    defaults        0 0
1879            none                    /dev/pts        devpts  mode=0622       0 0
1880    
1881    </pre>(Note sda1 instead of sdc1.)
1882    </ol>
1883    
1884    <p>To boot Redhat linux from the disk image, use the following command line:<pre>
1885            <b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b>
1886    
1887    </pre>
1888    If you need to boot into single user mode, change options to
1889    <tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>.
1890    
1891    
1892    
1893    
1894    
1895    
1896    
# Line 2213  I've added a semi-bogus machine mode whi Line 2285  I've added a semi-bogus machine mode whi
2285  mimic the MIPS machine mode used in Fabrice Bellard's  mimic the MIPS machine mode used in Fabrice Bellard's
2286  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.  <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
2287    
2288  <p>Follow these steps to download and run the Linux/QEMU_MIPS test  <p>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>
2289  ramdisk kernel:  from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
2290    and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
2291    
2292  <p><ol>  <p>Test it in GXemul using the following command line:<pre>
   <li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>  
         from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,  
         and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).  
   <p>  
   <li>Test it in GXemul using the following command line:<pre>  
2293          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram          <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
2294                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'                  rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
2295                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>                  0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
# Line 2229  ramdisk kernel: Line 2297  ramdisk kernel:
2297  </pre>  </pre>
2298  </ol>  </ol>
2299    
 <p><i>"QEMU is a FAST! processor emulator"</i> according to <a  
 href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>.  
 Sometimes QEMU is faster than GXemul, sometimes it is the other way  
 around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32,  
 in AMD64 mode) comparing QEMU 0.8.2 (installed from FreeBSD ports)  
 with GXemul gave the following result:  
   
 <p><pre>  
         <b>while true; do ls -l > /dev/null; echo -n .; done</b>  
         (80 x 36 dots)  
         QEMU 0.8.2:       13 min 52 sec  
         GXemul 0.4.2:      4 min 31 sec  
   
         <b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b>  
         (80 dots)  
         QEMU 0.8.2:        2 min  8 sec  
         GXemul 0.4.2:      5 min 18 sec  
   
         <b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b>  
         (80 dots)  
         QEMU 0.8.2:        9 min 57 sec  
         GXemul 0.4.2:      1 min 36 sec  
 </pre>  
   
 <p>The commands were run inside the emulators, using the ramdisk kernel  
 mentioned above.  
   
2300    
2301    
2302    
# Line 2274  such hardware well enough to fool Window Line 2315  such hardware well enough to fool Window
2315  that it is running on a real machine.  that it is running on a real machine.
2316  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2317    
2318  <p>Something like this would be done to install  <p>Installation steps similar to these would be required to install
2319  Windows NT onto a disk image:  Windows NT onto a disk image:
2320    
2321  <ol>  <ol>
# Line 2312  but then it crashes because of incomplet Line 2353  but then it crashes because of incomplet
2353    
2354    
2355  <p><br>  <p><br>
 <a name="netbsdmacppcinstall"></a>  
 <h3>NetBSD/macppc:</h3>  
   
 It is <font color="#ff0000"><b>ALMOST</b></font> possible to install and run  
 <a href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul  
 on an emulated generic PowerPC machine. No specific Machintosh model  
 is emulated, but it is enough to for NetBSD to recognize it.  
   
 <p>To install NetBSD/macppc onto a disk image, follow these instructions:  
   
 <p>  
 <ol start="1">  
   <li>Create an empty harddisk image, which will be the root disk  
         that you will install NetBSD/macppc onto:<pre>  
     <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=2000000</b>  
   
 </pre>  
   <li>Download the NetBSD/macppc 3.0 ISO image and a generic kernel:<pre>  
     <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.0/macppccd-3.0.iso</a>  
     <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>  
   
 </pre>  
   <p>  
   <li>Start the installation like this:<pre>  
     <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.0.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>  
   
 </pre>  
 </ol>  
   
 <p>If everything worked, NetBSD/macppc should now be installed on the disk image.  
   
 <p><font color="#ff0000"><b>2006-02-26:</b></font> That's it. The installation  
 succeeds, but it is not possible to start from the newly installed disk.  
 /sbin/init dies, so the following command doesn't really work yet:  
   
 <p>Use the following command line to boot the emulated machine:<pre>  
         <b>gxemul -x -e g4 -d nbsd_macppc.img netbsd-GENERIC.MP.gz</b>  
   
 </pre>  
   
   
   
   
   
   
   
   
   
   
   
   
 <p><br>  
2356  <a name="netbsdbeboxinstall"></a>  <a name="netbsdbeboxinstall"></a>
2357  <h3>NetBSD/bebox:</h3>  <h3>NetBSD/bebox:</h3>
2358    
# Line 2445  trying to run /sbin/init. Line 2434  trying to run /sbin/init.
2434    
2435    
2436    
2437    
2438    
2439    
2440    <p><br>
2441    <a name="netbsdlandiskinstall"></a>
2442    <h3>NetBSD/landisk:</h3>
2443    
2444    <a href="http://www.netbsd.org/Ports/landisk/">NetBSD/landisk</a> can
2445    run in GXemul.
2446    
2447    <p><font color="#ff0000">NOTE: This is still too
2448    unstable to be considered really working!</font>
2449    
2450    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2451    <a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a>
2452    
2453    <p>At the time of writing this, there are not yet any formal releases
2454    of NetBSD/landisk, only daily snapshot builds.
2455    
2456    <p>The NetBSD/landisk distribution does not include any INSTALL kernel,
2457    so it must be installed using another (emulated) machine.
2458    
2459    <p>The following instructions will let you install NetBSD/landisk onto a disk
2460    image, using an emulated CATS machine:
2461    
2462    <p>
2463    <ol>
2464      <li>Download a NetBSD/cats install kernel:<pre>
2465            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
2466    </pre>
2467      <p>
2468      <li>Create an empty harddisk image, which will be the disk image
2469            that you will install NetBSD/landisk onto:<pre>
2470            <b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b>
2471    
2472    </pre>
2473      <p>
2474      <li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image
2475            of it: (replace 200704110002Z with whatever is the latest one)<pre>
2476            <b>wget -np -l 0 -r ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/200704110002Z/landisk
2477            mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b>
2478    </pre>
2479    
2480      <p>
2481      <li>Start the emulated CATS machine like this:<pre>
2482            <b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b>
2483    
2484    </pre>
2485      <li>Exit the installer, then execute the following commands:
2486    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2487    <b>disklabel -i -I wd0</b>    (for example 'a', '4.2BSD', '1c',
2488        '700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q')
2489    <b>newfs /dev/wd0a
2490    mount /dev/cd0c /mnt
2491    mkdir /mnt2; mount /dev/wd0a /mnt2
2492    cd /mnt2; sh
2493    for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
2494    exit
2495    cd dev; sh ./MAKEDEV all; cd ../etc
2496    echo rc_configured=YES >> rc.conf
2497    echo "/dev/wd0a / ffs rw 1 1" > fstab
2498    echo "/dev/wd0b none swap sw 0 0" >> fstab
2499    cd /; umount /mnt; umount /mnt2; halt</b>
2500    </pre></td></tr></table>
2501    </ol>
2502    
2503    <p>You should now be able to boot NetBSD/landisk using this command:<pre>
2504            <b>gxemul -x -E landisk -d nbsd_landisk.img netbsd-GENERIC.gz</b>
2505    </pre>
2506    
2507    
2508    
2509    
2510    
2511    
2512    
2513    
2514    
2515    <p><br>
2516    <a name="openbsdlandiskinstall"></a>
2517    <h3>OpenBSD/landisk:</h3>
2518    
2519    It is possible to install and run
2520    <a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a>
2521    in GXemul. There is at the time of writing this no stable release
2522    yet of OpenBSD/landisk, but there are snapshots available on the
2523    OpenBSD ftp site.
2524    
2525    <p><font color="#ff0000">NOTE: This is still too
2526    unstable to be considered really working!</font>
2527    
2528    <p>To install OpenBSD/landisk onto an emulated harddisk image,
2529    follow these instructions:
2530    
2531    <p>
2532    <ol>
2533      <li>Create an empty harddisk image, which will be the root disk
2534            that OpenBSD installs itself onto:<pre>
2535            <b>dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=900000</b>
2536    
2537    </pre>
2538      <li>Download the entire landisk directory from the ftp server:<pre>
2539            <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/">ftp://ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/</a></b>
2540            <b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd .</b>
2541            <b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd.rd .</b>
2542    
2543    </pre>
2544            (Replace ftp.se.openbsd.org with a server closer to you, for
2545            increased download speed.)
2546      <p>
2547      <li>You now need to make an ISO image of the entire directory you downloaded.
2548            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
2549            already have <tt>mkisofs</tt> installed on your system, you need
2550            to install it in order to do this.)<pre>
2551            <b>mkisofs -allow-lowercase -o openbsd_landisk_snapshot.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
2552            <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
2553    
2554    </pre>
2555      <li>Start the emulator using this command line:<pre>
2556            <b>gxemul -x -Elandisk -d obsd_landisk.img -d d:openbsd_landisk_snapshot.iso bsd.rd</b>
2557    
2558    </pre>
2559            and proceed like you would do if you were installing OpenBSD
2560            on a real landisk. The following hints are useful to get you
2561            through the installation:
2562            <ul>
2563              <li>Terminal type = <b>xterm</b>
2564              <li>root disk = <b>wd0</b> (the disk to install onto)
2565              <li>Use the entire disk for OpenBSD = <b>yes</b>
2566              <li>Create one big root partition (a) and a small swap partition (b). c is the entire disk.
2567              <li>Do <b>not</b> configure the network.
2568              <li>Location of sets = <b>disk</b>
2569              <li>Is the disk partition already mounted = <b>no</b>
2570              <li>Disk containing the install media = <b>wd1</b>
2571              <li>Pathname to the sets = <b>snapshot/landisk</b>
2572            </ul>
2573    </ol>
2574    
2575    <p>Once the install has finished, the following command should let you
2576    boot from the disk image:
2577    
2578    <p><pre>
2579            <b>gxemul -x -E landisk -d obsd_landisk.img bsd</b>
2580    
2581    </pre>
2582    
2583    
2584    
2585    
2586    
2587    

Legend:
Removed from v.32  
changed lines
  Added in v.38

  ViewVC Help
Powered by ViewVC 1.1.26