10 |
|
|
11 |
<!-- |
<!-- |
12 |
|
|
13 |
$Id: guestoses.html,v 1.209 2007/03/18 03:33:25 debug Exp $ |
$Id: guestoses.html,v 1.226 2007/06/15 06:26:19 debug Exp $ |
14 |
|
|
15 |
Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
16 |
|
|
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="#netbsdmacppcinstall">NetBSD/macppc 3.1</a> |
<li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.1</a> |
63 |
|
<li><a href="#netbsdpmppc">NetBSD/pmppc 3.1</a> |
64 |
<li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a> |
<li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a> |
65 |
<li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a> |
<li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a> |
66 |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a> |
<li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a> |
67 |
<li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a> |
<li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a> |
68 |
|
<li><a href="#openbsdlandiskinstall">OpenBSD/landisk 4.1</a> |
69 |
<li><a href="#ultrixinstall">Ultrix/RISC 4.5</a> |
<li><a href="#ultrixinstall">Ultrix/RISC 4.5</a> |
70 |
<li><a href="#sprite">Sprite for DECstation</a> |
<li><a href="#sprite">Sprite for DECstation</a> |
71 |
<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> |
|
72 |
</ul> |
</ul> |
73 |
|
|
74 |
|
|
100 |
|
|
101 |
<ul> |
<ul> |
102 |
<li><a href="#mach">Mach/PMAX</a> |
<li><a href="#mach">Mach/PMAX</a> |
103 |
|
<li><a href="#declinuxredhat">Redhat Linux for DECstation</a> |
104 |
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
<li><a href="#openbsdsgiinstall">OpenBSD/sgi</a> |
105 |
<li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a> |
<li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a> |
106 |
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
<li><a href="#debiancats">Debian GNU/Linux for CATS</a> |
109 |
<li><a href="#windows_nt_mips">Windows NT/MIPS</a> |
<li><a href="#windows_nt_mips">Windows NT/MIPS</a> |
110 |
<li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a> |
<li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a> |
111 |
<li><a href="#netbsdlandiskinstall">NetBSD/landisk</a> |
<li><a href="#netbsdlandiskinstall">NetBSD/landisk</a> |
|
<li><a href="#openbsdlandiskinstall">OpenBSD/landisk</a> |
|
112 |
</ul> |
</ul> |
113 |
|
|
114 |
<p><b><font color="#ff0000">NOTE:</b> |
<p><b><font color="#ff0000">NOTE:</b> |
132 |
<a name="netbsdpmaxinstall"></a> |
<a name="netbsdpmaxinstall"></a> |
133 |
<h3>NetBSD/pmax:</h3> |
<h3>NetBSD/pmax:</h3> |
134 |
|
|
135 |
<p><a href="http://www.netbsd.org/Ports/pmax/">NetBSD/pmax</a> was the |
<p><a href="http://www.netbsd.org/ports/pmax/">NetBSD/pmax</a> was the |
136 |
first guest OS that could be |
first guest OS that could be |
137 |
<a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a> |
<a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a> |
138 |
onto a disk image in GXemul. The device emulation of the DECstation |
onto a disk image in GXemul. The device emulation of the DECstation |
155 |
<p>To install NetBSD/pmax onto a harddisk image in the emulator, |
<p>To install NetBSD/pmax onto a harddisk image in the emulator, |
156 |
follow these instructions: |
follow these instructions: |
157 |
|
|
158 |
<p><ol start="1"> |
<p><ol> |
159 |
<li>Create an empty harddisk image, which will be the root disk |
<li>Create an empty harddisk image, which will be the root disk |
160 |
that NetBSD installs itself onto:<pre> |
that NetBSD installs itself onto:<pre> |
161 |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b> |
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b> |
162 |
|
|
163 |
</pre> |
</pre> |
|
</ol> |
|
|
|
|
|
<p> |
|
|
From this point, there are two separate ways to continue the installation. |
|
|
You can either download a CD-ROM iso image (and let the installation |
|
|
program copy files from the CD-ROM image to the harddisk image), or you |
|
|
can install via ftp. For an installation from a CD-ROM image, follow these |
|
|
steps: |
|
|
<p> |
|
|
<ol start="2"> |
|
|
|
|
164 |
<li>Download a NetBSD CD-ROM iso image:<pre> |
<li>Download a NetBSD CD-ROM iso image:<pre> |
165 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a> |
166 |
or |
or |
168 |
|
|
169 |
</pre> |
</pre> |
170 |
<li>Start the emulator like this:<pre> |
<li>Start the emulator like this:<pre> |
171 |
<b>gxemul -e 3max -d nbsd_pmax.img -d bc:pmaxcd-3.1.iso</b> |
<b>gxemul -e 3max -d nbsd_pmax.img -d b:pmaxcd-3.1.iso</b> |
172 |
(or <b>pmaxcd.iso</b>) |
(or <b>pmaxcd.iso</b>) |
173 |
</pre> |
</pre> |
174 |
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 |
175 |
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
DECstation. Remember to choose <tt>vt100</tt> as your terminal |
176 |
type, and not <tt>rcons</tt>. |
type, and not <tt>rcons</tt>. |
177 |
</ol> |
</ol> |
178 |
|
|
179 |
|
<p>If you prefer to do an ftp install (usually much slower), you can |
180 |
|
follow these instructions instead: |
181 |
|
|
182 |
<p> |
<p> |
183 |
For an ftp install, substitute steps 2 and 3 above with these: |
<ol> |
184 |
<p> |
<li>Create an empty harddisk image, which will be the root disk |
185 |
<ol start="2"> |
that NetBSD installs itself onto:<pre> |
186 |
|
<b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b> |
187 |
|
|
188 |
|
</pre> |
189 |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
<li>Download a NetBSD pmax INSTALL kernel:<pre> |
190 |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a> |
191 |
or |
or |
210 |
</pre> |
</pre> |
211 |
(If using 10.0.0.254 as the nameserver fails, then try entering the |
(If using 10.0.0.254 as the nameserver fails, then try entering the |
212 |
IP number of a real-world nameserver instead.) |
IP number of a real-world nameserver instead.) |
213 |
|
<p> |
214 |
|
Note that NetBSD 1.6.2 is nowadays located at |
215 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2</a> |
216 |
|
(note <tt>NetBSD-archive</tt> part). |
217 |
</ol> |
</ol> |
218 |
|
|
219 |
<p>If you want to use a graphical framebuffer during the install, you can |
<p>If you want to use a graphical framebuffer during the install, you can |
245 |
<h3>NetBSD/arc:</h3> |
<h3>NetBSD/arc:</h3> |
246 |
|
|
247 |
It is possible to install and run an old version of <a |
It is possible to install and run an old version of <a |
248 |
href="http://www.netbsd.org/Ports/arc/">NetBSD/arc</a> |
href="http://www.netbsd.org/ports/arc/">NetBSD/arc</a> |
249 |
on an emulated Acer PICA-61 in the emulator. |
on an emulated Acer PICA-61 in the emulator. |
250 |
|
|
251 |
<p> |
<p> |
270 |
|
|
271 |
</pre> |
</pre> |
272 |
<li>Start the emulator using this command line:<pre> |
<li>Start the emulator using this command line:<pre> |
273 |
<b>gxemul -e pica -x -d nbsd_arc.img -d bc:arccd.iso -j arc/binary/kernel/netbsd.RAMDISK.gz</b> |
<b>gxemul -e pica -x -d nbsd_arc.img -d b:arccd.iso -j arc/binary/kernel/netbsd.RAMDISK.gz</b> |
274 |
|
|
275 |
</pre> |
</pre> |
276 |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
(Try removing <tt>-x</tt> if you have problems with the xterm.) |
316 |
<h3>NetBSD/hpcmips:</h3> |
<h3>NetBSD/hpcmips:</h3> |
317 |
|
|
318 |
It is possible to install <a |
It is possible to install <a |
319 |
href="http://www.netbsd.org/Ports/hpcmips/">NetBSD/hpcmips</a> onto a disk |
href="http://www.netbsd.org/ports/hpcmips/">NetBSD/hpcmips</a> onto a disk |
320 |
image, on an an emulated MobilePro 770 or 800. (MobilePro 780 and 880 might |
image, on an an emulated MobilePro 770 or 800. (MobilePro 780 and 880 might |
321 |
work too, but I don't test those for every release of the emulator. They |
work too, but I don't test those for every release of the emulator. They |
322 |
have unaligned framebuffers, and run a bit slower.) |
have unaligned framebuffers, and run a bit slower.) |
375 |
<a name="netbsdcobaltinstall"></a> |
<a name="netbsdcobaltinstall"></a> |
376 |
<h3>NetBSD/cobalt:</h3> |
<h3>NetBSD/cobalt:</h3> |
377 |
|
|
378 |
<a href="http://www.netbsd.org/Ports/cobalt/">NetBSD/cobalt</a> is tricky |
<a href="http://www.netbsd.org/ports/cobalt/">NetBSD/cobalt</a> is tricky |
379 |
to install, because the Cobalt machines were designed for Linux, and not |
to install, because the Cobalt machines were designed for Linux, and not |
380 |
very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt. |
very flexible. There is no traditional INSTALL kernel for NetBSD/cobalt. |
381 |
One way to install the NetBSD/cobalt distribution onto a disk image is to |
One way to install the NetBSD/cobalt distribution onto a disk image is to |
450 |
<a name="netbsdevbmipsinstall"></a> |
<a name="netbsdevbmipsinstall"></a> |
451 |
<h3>NetBSD/evbmips:</h3> |
<h3>NetBSD/evbmips:</h3> |
452 |
|
|
453 |
<a href="http://www.netbsd.org/Ports/evbmips/">NetBSD/evbmips</a> can run |
<a href="http://www.netbsd.org/ports/evbmips/">NetBSD/evbmips</a> can run |
454 |
in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or |
in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or |
455 |
4Kc (MIPS32) processor. 5Kc is the default. |
4Kc (MIPS32) processor. 5Kc is the default. |
456 |
|
|
502 |
</ol> |
</ol> |
503 |
|
|
504 |
<p>You should now be able to boot NetBSD/evbmips using this command:<pre> |
<p>You should now be able to boot NetBSD/evbmips using this command:<pre> |
505 |
<b>gxemul -e malta -d nbsd_malta.img netbsd-MALTA.gz</b> |
<b>gxemul -x -e malta -d nbsd_malta.img netbsd-MALTA.gz</b> |
506 |
</pre> |
</pre> |
507 |
|
|
508 |
<p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc |
<p>NOTE: To select a 4Kc (MIPS32) CPU instead of the default 5Kc |
543 |
<a name="netbsdalgorinstall"></a> |
<a name="netbsdalgorinstall"></a> |
544 |
<h3>NetBSD/algor:</h3> |
<h3>NetBSD/algor:</h3> |
545 |
|
|
546 |
<a href="http://www.netbsd.org/Ports/algor/">NetBSD/algor</a> can |
<a href="http://www.netbsd.org/ports/algor/">NetBSD/algor</a> can |
547 |
run in GXemul on an emulated Algorithmics P5064 evaluation board. |
run in GXemul on an emulated Algorithmics P5064 evaluation board. |
548 |
|
|
549 |
<p> |
<p> |
625 |
|
|
626 |
<a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a> |
<a href="20060623-netbsd-sgimips-3.0.png"><img src="20060623-netbsd-sgimips-3.0_small.png"></a> |
627 |
|
|
628 |
<p><a href="http://www.netbsd.org/Ports/sgimips/">NetBSD/sgimips</a> can run |
<p><a href="http://www.netbsd.org/ports/sgimips/">NetBSD/sgimips</a> can run |
629 |
in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet |
in GXemul on an emulated O2 (SGI-IP32). However, GXemul does not yet |
630 |
emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec |
emulate the AHC PCI SCSI controller in the O2. (I have mailed Adaptec |
631 |
several times, asking for documentation, but never received any reply.) |
several times, asking for documentation, but never received any reply.) |
693 |
DECstation disk image: |
DECstation disk image: |
694 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
695 |
<b>cd /tftpboot; mount /dev/cd0a /mnt |
<b>cd /tftpboot; mount /dev/cd0a /mnt |
696 |
for a in /mnt/sgimips/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done |
for a in /mnt/*/binary/sets/[bcegmt]*; do echo $a; tar zxfp $a; done |
697 |
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
698 |
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
699 |
echo 10.0.0.254 >> /tftpboot/etc/mygate |
echo 10.0.0.254 >> /tftpboot/etc/mygate |
708 |
<font color="#2020cf">! Configuration file for running NetBSD/sgimips diskless with |
<font color="#2020cf">! Configuration file for running NetBSD/sgimips diskless with |
709 |
! a NetBSD/pmax machine as the nfs server.</font> |
! a NetBSD/pmax machine as the nfs server.</font> |
710 |
|
|
711 |
<b> net( |
<b>net( |
712 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
713 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
714 |
) |
) |
715 |
|
|
716 |
machine( |
machine( |
717 |
name("client machine") |
name("client machine") |
718 |
serial_nr(1) |
serial_nr(1) |
719 |
|
|
722 |
|
|
723 |
load("netbsd-INSTALL32_IP3x.gz")</b> |
load("netbsd-INSTALL32_IP3x.gz")</b> |
724 |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
! load("netbsd-GENERIC32_IP3x.gz")<b> |
725 |
) |
) |
726 |
</b> |
</b> |
727 |
</pre></td></tr></table> |
</pre></td></tr></table> |
728 |
... and another configuration file for the server, |
... and another configuration file for the server, |
729 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
730 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
731 |
<b> net( |
<b>net( |
732 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
733 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
734 |
) |
) |
735 |
|
|
736 |
machine( |
machine( |
737 |
name("nfs server") |
name("nfs server") |
738 |
serial_nr(2) |
serial_nr(2) |
739 |
|
|
741 |
subtype("5000/200") |
subtype("5000/200") |
742 |
|
|
743 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
744 |
) |
) |
745 |
</b> |
</b> |
746 |
</pre></td></tr></table> |
</pre></td></tr></table> |
747 |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
<li>Boot the "<tt>nfs server</tt>" and the NetBSD/sgimips |
808 |
<h3>NetBSD/cats:</h3> |
<h3>NetBSD/cats:</h3> |
809 |
|
|
810 |
It is possible to install and run |
It is possible to install and run |
811 |
<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. |
812 |
|
|
813 |
<p> |
<p> |
814 |
<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> |
859 |
<a name="netbsdevbarminstall"></a> |
<a name="netbsdevbarminstall"></a> |
860 |
<h3>NetBSD/evbarm:</h3> |
<h3>NetBSD/evbarm:</h3> |
861 |
|
|
862 |
<a href="http://www.netbsd.org/Ports/evbarm/">NetBSD/evbarm</a> can |
<a href="http://www.netbsd.org/ports/evbarm/">NetBSD/evbarm</a> can |
863 |
run in GXemul on an emulated IQ80321 evaluation board. |
run in GXemul on an emulated IQ80321 evaluation board. |
864 |
|
|
865 |
<p> |
<p> |
874 |
|
|
875 |
<p> |
<p> |
876 |
<ol> |
<ol> |
877 |
<li>Install NetBSD/cats 3.1 according to instructions |
<li>Download a NetBSD/cats 3.1 ramdisk kernel:<pre> |
878 |
<a href="#netbsdcatsinstall">further up on this page</a>. |
<b>wget <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a></b> |
879 |
<p> |
|
880 |
|
</pre> |
881 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
882 |
that you will install NetBSD onto:<pre> |
that you will install NetBSD/evbarm onto:<pre> |
883 |
<b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b> |
<b>dd if=/dev/zero of=nbsd_iq80321.img bs=1024 count=1 seek=999000</b> |
884 |
|
|
885 |
</pre> |
</pre> |
889 |
|
|
890 |
</pre> |
</pre> |
891 |
<p> |
<p> |
892 |
<li>The first step is to copy the distribution .tgz files onto the CATS |
<li>Now let's extract the files from the CD-ROM image onto the IQ80321's disk image. Start the |
893 |
machine's harddisk. Start the CATS machine like this:<pre> |
CATS machine using the following command line:<pre> |
894 |
<b>gxemul -XEcats -d nbsd_cats.img -d evbarmcd.iso netbsd.aout-GENERIC.gz</b> |
<b>gxemul -XEcats -d nbsd_iq80321.img -d evbarmcd.iso netbsd.aout-INSTALL.gz</b> |
895 |
|
|
896 |
</pre>and execute the following commands as <tt>root</tt>: |
</pre>Exit from the installer, and execute the following commands as <tt>root</tt>: |
897 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
|
<b>mount /dev/cd0a /mnt; cd /root; cp /mnt/evbarm/binary/sets/[bcegmt]* . |
|
|
sync; halt</b> |
|
|
</pre></td></tr></table> |
|
|
<p> |
|
|
<li>Now let's extract the files onto the IQ80321's disk image. Start the |
|
|
CATS machine again, with the following command line:<pre> |
|
|
<b>gxemul -XEcats -d nbsd_cats.img -d nbsd_iq80321.img netbsd.aout-GENERIC.gz</b> |
|
898 |
|
|
899 |
</pre>and execute the following commands as <tt>root</tt>: |
<b>disklabel -I -i wd0</b> |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
|
|
<b>disklabel -I -i wd1</b> |
|
900 |
(enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b, |
(enter suitable commands, e.g. <i>a, 4.2BSD, 1c, 750M, b, |
901 |
swap, a, 200M, P, W, y, Q</i>) |
swap, a, 200M, P, W, y, Q</i>) |
902 |
<b>newfs /dev/wd1a; mount /dev/wd1a /mnt; cd /mnt; sh |
<b>newfs /dev/wd0a; mount /dev/wd0a /mnt2; cd /mnt2 |
903 |
for a in /root/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done |
mount /dev/cd0a /mnt; sh |
904 |
|
for a in /mnt/*/binary/sets/[bcegmt]*.tgz; do echo $a; tar zxfp $a; done |
905 |
exit |
exit |
906 |
cd dev; sh ./MAKEDEV all; cd ../etc |
cd dev; sh ./MAKEDEV all; cd ../etc |
907 |
echo rc_configured=YES >> rc.conf |
echo rc_configured=YES >> rc.conf |
908 |
echo "/dev/wd0a / ffs rw 1 1" > fstab |
echo "/dev/wd0a / ffs rw 1 1" > fstab |
909 |
echo "/dev/wd0b none swap sw 0 0" >> fstab |
echo "/dev/wd0b none swap sw 0 0" >> fstab |
910 |
cd /; umount /mnt; sync; halt</b> |
cd /; umount /mnt; umount /mnt2; sync; halt</b> |
911 |
</pre></td></tr></table> |
</pre></td></tr></table> |
912 |
</ol> |
</ol> |
913 |
|
|
914 |
<p>You should now be able to boot NetBSD/evbarm using this command:<pre> |
<p>You should now be able to boot NetBSD/evbarm using this command:<pre> |
915 |
<b>gxemul -xEiq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b> |
<b>gxemul -x -E iq80321 -d nbsd_iq80321.img netbsd-wd0-IQ80321.gz</b> |
916 |
</pre> |
</pre> |
917 |
|
|
918 |
|
|
928 |
<h3>NetBSD/netwinder:</h3> |
<h3>NetBSD/netwinder:</h3> |
929 |
|
|
930 |
It is possible to run <a |
It is possible to run <a |
931 |
href="http://www.netbsd.org/Ports/netwinder/">NetBSD/netwinder</a> |
href="http://www.netbsd.org/ports/netwinder/">NetBSD/netwinder</a> |
932 |
in GXemul. |
in GXemul. |
933 |
|
|
934 |
<p> |
<p> |
1025 |
<h3>NetBSD/prep:</h3> |
<h3>NetBSD/prep:</h3> |
1026 |
|
|
1027 |
It is possible to install and run <a |
It is possible to install and run <a |
1028 |
href="http://www.netbsd.org/Ports/prep/">NetBSD/prep</a> 2.1 in GXemul on |
href="http://www.netbsd.org/ports/prep/">NetBSD/prep</a> 2.1 in GXemul on |
1029 |
an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use |
an emulated IBM 6050 (PowerPC) machine. (Newer versions of NetBSD/prep use |
1030 |
the wdc controller in a way which isn't implemented in GXemul yet, or |
the wdc controller in a way which isn't implemented in GXemul yet, or |
1031 |
there are bugs in GXemul's PowerPC CPU emulation.) |
there are bugs in GXemul's PowerPC CPU emulation.) |
1126 |
<h3>NetBSD/macppc:</h3> |
<h3>NetBSD/macppc:</h3> |
1127 |
|
|
1128 |
It is possible to install and run <a |
It is possible to install and run <a |
1129 |
href="http://www.netbsd.org/Ports/macppc/">NetBSD/macppc</a> in GXemul on |
href="http://www.netbsd.org/ports/macppc/">NetBSD/macppc</a> in GXemul on |
1130 |
an emulated generic PowerPC machine. No specific Machintosh model is |
an emulated generic PowerPC machine. No specific Machintosh model is |
1131 |
emulated, but it is enough to for NetBSD to recognize it. |
emulated, but it is enough to for NetBSD to recognize it. |
1132 |
|
|
1186 |
|
|
1187 |
|
|
1188 |
|
|
1189 |
|
<p><br> |
1190 |
|
<a name="netbsdpmppc"></a> |
1191 |
|
<h3>NetBSD/pmppc:</h3> |
1192 |
|
|
1193 |
|
<p><a href="http://www.netbsd.org/ports/pmppc/">NetBSD/pmppc</a> can |
1194 |
|
run in GXemul on an emulated Artesyn PM/PPC board. Currently, no SCSI or other |
1195 |
|
disk controller is emulated for this machine type, but it is possible to run |
1196 |
|
NetBSD with root-on-nfs. |
1197 |
|
|
1198 |
<p><br> |
<p> |
1199 |
<a name="netbsddreamcast"></a> |
<a href="20070616-netbsd-pmppc-diskless.png"><img src="20070616-netbsd-pmppc-diskless_small.png"></a> |
|
<h3>NetBSD/dreamcast:</h3> |
|
1200 |
|
|
1201 |
Moved <a href="dreamcast.html#netbsd_generic_md">here</a>. |
<p>These setup steps will let you run NetBSD/pmppc with root-on-nfs: |
1202 |
|
|
1203 |
|
<p> |
1204 |
|
<ol> |
1205 |
|
<li>First of all, the "<tt>nfs server</tt>" machine must be set up. |
1206 |
|
This needs to have a 750 MB <tt>/tftpboot</tt> partition. |
1207 |
|
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>. |
1208 |
|
(Don't forget to add the extra partition!) |
1209 |
|
<p> |
1210 |
|
<li>Configure the nfs server machine to act as an nfs server. |
1211 |
|
Start up the emulated DECstation:<pre> |
1212 |
|
<b>gxemul -e 3max -d nbsd_pmax.img</b> |
1213 |
|
</pre>and enter the following commands as <tt>root</tt> |
1214 |
|
inside the emulator: |
1215 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
1216 |
|
<b>echo hostname=server >> /etc/rc.conf |
1217 |
|
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf |
1218 |
|
echo nameserver 10.0.0.254 >> /etc/resolv.conf |
1219 |
|
echo 10.0.0.254 > /etc/mygate |
1220 |
|
echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports |
1221 |
|
echo rpcbind=YES >> /etc/rc.conf |
1222 |
|
echo nfs_server=YES >> /etc/rc.conf |
1223 |
|
echo mountd=YES >> /etc/rc.conf |
1224 |
|
echo bootparamd=YES >> /etc/rc.conf |
1225 |
|
printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams |
1226 |
|
echo "bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 4 -h 10.0.0.2" >> /etc/inetd.conf |
1227 |
|
cat >> /etc/bootptab |
1228 |
|
client:\ |
1229 |
|
:ht=ether:\ |
1230 |
|
:ha=102030000010:\ |
1231 |
|
:sm=255.0.0.0:\ |
1232 |
|
:lg=10.0.0.254:\ |
1233 |
|
:ip=10.0.0.1:\ |
1234 |
|
:rp=/tftpboot: |
1235 |
|
</b>(press CTRL-D) |
1236 |
|
<b>echo "10:20:30:00:00:10 client" > /etc/ethers |
1237 |
|
echo 10.0.0.1 client > /etc/hosts |
1238 |
|
reboot</b> |
1239 |
|
</pre></td></tr></table> |
1240 |
|
<p> |
1241 |
|
<li>Download the NetBSD/pmppc CD-ROM iso image, and the GENERIC kernel:<pre> |
1242 |
|
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmppccd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmppccd-3.1.iso</a> |
1243 |
|
<a href="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/pmppc/binary/kernel/netbsd-PMPPC.gz">ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-3.1/pmppc/binary/kernel/netbsd-PMPPC.gz</a> |
1244 |
|
|
1245 |
|
</pre> |
1246 |
|
<li>Start the DECstation emulation again:<pre> |
1247 |
|
<b>gxemul -e 3max -d nbsd_pmax.img -d pmppccd-3.1.iso</b> |
1248 |
|
|
1249 |
|
</pre>and extract the files from the PM/PPC CD-ROM image to the |
1250 |
|
DECstation disk image: |
1251 |
|
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
1252 |
|
<b>cd /tftpboot; mount /dev/cd0a /mnt |
1253 |
|
for a in /mnt/*/binary/sets/[bcemt]*; do echo $a; tar zxfp $a; done |
1254 |
|
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab |
1255 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
1256 |
|
echo 10.0.0.254 >> /tftpboot/etc/mygate |
1257 |
|
echo nameserver 10.0.0.254 >> /tftpboot/etc/resolv.conf |
1258 |
|
echo rc_configured=YES >> /tftpboot/etc/rc.conf |
1259 |
|
dd if=/dev/zero of=swap bs=1024 count=65536 |
1260 |
|
cd /tftpboot/dev; sh MAKEDEV all |
1261 |
|
cd /; umount /mnt; halt</b> |
1262 |
|
</pre></td></tr></table> |
1263 |
|
<p> |
1264 |
|
<li>Create a configuration file called <tt>config_client</tt>: |
1265 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1266 |
|
<font color="#2020cf">! Configuration file for running NetBSD/pmppc diskless with |
1267 |
|
! a NetBSD/pmax machine as the nfs server.</font> |
1268 |
|
|
1269 |
|
<b>net( |
1270 |
|
add_remote("localhost:12444") </b>! the server<b> |
1271 |
|
local_port(12445) </b>! the client<b> |
1272 |
|
) |
1273 |
|
|
1274 |
|
machine( |
1275 |
|
name("client machine") |
1276 |
|
serial_nr(1) |
1277 |
|
|
1278 |
|
type("pmppc") |
1279 |
|
|
1280 |
|
load("netbsd-PMPPC.gz")</b> |
1281 |
|
) |
1282 |
|
</b> |
1283 |
|
</pre></td></tr></table> |
1284 |
|
... and another configuration file for the server, |
1285 |
|
<tt>config_server</tt>: |
1286 |
|
<table border="0"><tr><td><tt> </tt></td><td><pre> |
1287 |
|
<b>net( |
1288 |
|
local_port(12444) </b>! the server<b> |
1289 |
|
add_remote("localhost:12445") </b>! the client<b> |
1290 |
|
) |
1291 |
|
|
1292 |
|
machine( |
1293 |
|
name("nfs server") |
1294 |
|
serial_nr(2) |
1295 |
|
|
1296 |
|
type("dec") |
1297 |
|
subtype("5000/200") |
1298 |
|
|
1299 |
|
disk("nbsd_pmax.img") |
1300 |
|
) |
1301 |
|
</b> |
1302 |
|
</pre></td></tr></table> |
1303 |
|
</ol> |
1304 |
|
|
1305 |
|
<p>It should now be possible to boot NetBSD/pmppc using the NetBSD/pmax |
1306 |
|
nfs server, using the following commands: (NOTE! Execute these two |
1307 |
|
commands in separate xterms!)<pre> |
1308 |
|
<b>gxemul @config_server</b> |
1309 |
|
<b>gxemul @config_client</b> |
1310 |
|
</pre> |
1311 |
|
|
1312 |
|
<p>You might want to log in as <tt>root</tt> on the server machine, and |
1313 |
|
run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine |
1314 |
|
actually does on the network. |
1315 |
|
|
1316 |
|
<p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter |
1317 |
|
the following values:<pre> |
1318 |
|
root device: <b>tlp0</b> |
1319 |
|
dump device: <b>(leave blank)</b> |
1320 |
|
file system (default generic): <b>(leave blank)</b> |
1321 |
|
.. |
1322 |
|
init path (default /sbin/init): <b>(leave blank)</b> |
1323 |
|
</pre> |
1324 |
|
|
1325 |
|
|
1326 |
|
|
1327 |
|
|
1328 |
|
|
1329 |
|
|
1330 |
|
|
1331 |
|
|
1332 |
|
|
1333 |
|
<p><br> |
1334 |
|
<a name="netbsddreamcast"></a> |
1335 |
|
<h3>NetBSD/dreamcast:</h3> |
1336 |
|
|
1337 |
|
Moved <a href="dreamcast.html#netbsd_generic_md">here</a>. |
1338 |
|
|
1339 |
|
|
1340 |
|
|
1564 |
|
|
1565 |
|
|
1566 |
<p><br> |
<p><br> |
1567 |
|
<a name="openbsdlandiskinstall"></a> |
1568 |
|
<h3>OpenBSD/landisk:</h3> |
1569 |
|
|
1570 |
|
It is possible to install and run |
1571 |
|
<a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a> |
1572 |
|
in GXemul. |
1573 |
|
|
1574 |
|
<p> |
1575 |
|
<a href="20070419-openbsd-landisk.png"><img src="20070419-openbsd-landisk_small.png"></a> |
1576 |
|
|
1577 |
|
<p>To install OpenBSD/landisk onto an emulated harddisk image, |
1578 |
|
follow these instructions: |
1579 |
|
|
1580 |
|
<p> |
1581 |
|
<ol> |
1582 |
|
<li>Create an empty harddisk image, which will be the root disk |
1583 |
|
that OpenBSD installs itself onto:<pre> |
1584 |
|
<b>dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=2000000</b> |
1585 |
|
|
1586 |
|
</pre> |
1587 |
|
<li>Download the entire landisk directory from the ftp server:<pre> |
1588 |
|
<b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/</a></b> |
1589 |
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd .</b> |
1590 |
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/4.1/landisk/bsd.rd .</b> |
1591 |
|
|
1592 |
|
</pre> |
1593 |
|
(Replace ftp.se.openbsd.org with a server closer to you, for |
1594 |
|
increased download speed.) |
1595 |
|
<p> |
1596 |
|
<li>You now need to make an ISO image of the entire directory you downloaded. |
1597 |
|
(I recommend using <tt>mkisofs</tt> for that purpose. If you don't |
1598 |
|
already have <tt>mkisofs</tt> installed on your system, you need |
1599 |
|
to install it in order to do this.)<pre> |
1600 |
|
<b>mkisofs -U -o openbsd_landisk_4.1.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
1601 |
|
<b>rm -rf ftp.se.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
1602 |
|
|
1603 |
|
</pre> |
1604 |
|
<li>Start the emulator using this command line:<pre> |
1605 |
|
<b>gxemul -x -E landisk -d obsd_landisk.img -d d:openbsd_landisk_4.1.iso bsd.rd</b> |
1606 |
|
|
1607 |
|
</pre> |
1608 |
|
and proceed like you would do if you were installing OpenBSD |
1609 |
|
on a real landisk. The following hints are useful to get you |
1610 |
|
through the installation: |
1611 |
|
<ul> |
1612 |
|
<li>Terminal type = <b>xterm</b> |
1613 |
|
<li>root disk = <b>wd0</b> (the disk to install onto) |
1614 |
|
<li>Use the entire disk for OpenBSD = <b>yes</b> |
1615 |
|
<li>Create one big root partition (a) and a small swap partition (b). c is the entire disk. |
1616 |
|
<li>Do <b>not</b> configure the network. (The Realtek NIC |
1617 |
|
found in the Landisk machine is not implemented yet |
1618 |
|
in the emulator.) |
1619 |
|
<li>Location of sets = <b>disk</b> |
1620 |
|
<li>Is the disk partition already mounted = <b>no</b> |
1621 |
|
<li>Disk containing the install media = <b>wd1</b> |
1622 |
|
<li>Pathname to the sets = <b>4.1/landisk</b> |
1623 |
|
</ul> |
1624 |
|
</ol> |
1625 |
|
|
1626 |
|
<p>Once the install has finished, the following command should let you |
1627 |
|
boot from the disk image: |
1628 |
|
|
1629 |
|
<p><pre> |
1630 |
|
<b>gxemul -x -E landisk -d obsd_landisk.img bsd</b> |
1631 |
|
|
1632 |
|
</pre> |
1633 |
|
|
1634 |
|
<p>As with most emulation modes in GXemul, the NIC in this machine is |
1635 |
|
not emulated yet. If you want to transfer files to/from the emulated |
1636 |
|
landisk machine, see |
1637 |
|
<a href="misc.html#filexfer">this chapter</a> in the documentation. |
1638 |
|
|
1639 |
|
|
1640 |
|
|
1641 |
|
|
1642 |
|
|
1643 |
|
|
1644 |
|
|
1645 |
|
<p><br> |
1646 |
<a name="ultrixinstall"></a> |
<a name="ultrixinstall"></a> |
1647 |
<h3>Ultrix/RISC:</h3> |
<h3>Ultrix/RISC:</h3> |
1648 |
|
|
1860 |
<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> |
1861 |
|
|
1862 |
</pre> |
</pre> |
1863 |
|
<font color="#ff0000"><b>NOTE 2007-04-14:</b></font> It seems that the ISO image |
1864 |
|
has been removed from the cdimage site. You may need to search |
1865 |
|
for it elsewhere. Alternatively, you can follow Michel Lespinasse's instructions at |
1866 |
|
<a href="http://people.zoy.org/~walken/gxemul-etch/HOWTO.html">http://people.zoy.org/~walken/gxemul-etch/HOWTO.html</a>. |
1867 |
|
|
1868 |
|
<p><font color="#ff0000"><b>NOTE 2007-05-05:</b></font> John Reiser has been kind enough to |
1869 |
|
place a copy of debian-31r0a-mipsel-netinst.iso <a href="http://bitwagon.com/ftp/debian-31r0a-mipsel-netinst.iso">here</a>. |
1870 |
<p> |
<p> |
1871 |
<li>Start the installation like this:<pre> |
<li>Start the installation like this:<pre> |
1872 |
<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> |
1953 |
|
|
1954 |
|
|
1955 |
<p><br> |
<p><br> |
|
<a name="declinuxredhat"></a> |
|
|
<h3>Redhat Linux for DECstation:</h3> |
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
<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> |
|
1956 |
<hr> |
<hr> |
1957 |
|
|
1958 |
|
|
2037 |
|
|
2038 |
|
|
2039 |
|
|
2040 |
|
|
2041 |
|
|
2042 |
|
<p><br> |
2043 |
|
<a name="declinuxredhat"></a> |
2044 |
|
<h3>Redhat Linux for DECstation:</h3> |
2045 |
|
|
2046 |
|
|
2047 |
|
<p> |
2048 |
|
|
2049 |
|
<a href="20041129-redhat_mips.png"><img src="20041129-redhat_mips_small.png"></a> |
2050 |
|
|
2051 |
|
<p> |
2052 |
|
The following steps should let you run Redhat Linux for DECstation in GXemul: |
2053 |
|
|
2054 |
|
<p> |
2055 |
|
<ol> |
2056 |
|
<li>Download a kernel. David Muse' Debian-install kernel works fine:<pre> |
2057 |
|
<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> |
2058 |
|
|
2059 |
|
</pre> |
2060 |
|
<li>Download a root filesystem tree:<pre> |
2061 |
|
<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> |
2062 |
|
19486676 bytes, md5 = 5bcb725c90209479cd7ead8ad0c4a414 |
2063 |
|
|
2064 |
|
</pre> |
2065 |
|
<li>Create a disk image which will contain the Redhat filesystem:<pre> |
2066 |
|
<b>dd if=/dev/zero of=redhat_mips.img bs=1024 count=1 seek=2000000</b> |
2067 |
|
|
2068 |
|
</pre> |
2069 |
|
<!-- |
2070 |
|
dd if=/dev/zero of=/dev/stdout bs=1024 count=200 >> mipsel-root-20011216.tgz |
2071 |
|
gxemul -XY2 -e3max -d redhat_mips.img -d mipsel-root-20011216.tgz vmlinux-2.4.31 |
2072 |
|
In the three dialogs, choose English, United States, and Continue. |
2073 |
|
Then choose Execute a shell. |
2074 |
|
tar xfvz /dev/scsi/host0/bus0/target1/lun0/disc sbin/mke2fs sbin/fdisk |
2075 |
|
fdisk |
2076 |
|
--> |
2077 |
|
<li>This is the tricky part: on redhat_mips.img, you need to create an MS-DOS |
2078 |
|
(!) partition table, and then an ext2 partition. This is what Linux |
2079 |
|
will then see as /dev/sda1. |
2080 |
|
<p>I recommend you run fdisk and mke2fs and untar the archive from within |
2081 |
|
Debian/DECstation or <a href="#debiancats">Debian/CATS</a> running |
2082 |
|
inside the emulator. (Alternatively, if you are on a Linux host, |
2083 |
|
you could use a loopback mount, or similar. This might require |
2084 |
|
root access. See e.g. |
2085 |
|
<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>.) |
2086 |
|
<p> |
2087 |
|
In order to actually boot the system you need to modify /etc/fstab. |
2088 |
|
Change<pre> |
2089 |
|
/dev/root / nfs defaults 1 1 |
2090 |
|
#/dev/sdc1 / ext2 defaults 1 1 |
2091 |
|
none /proc proc defaults 0 0 |
2092 |
|
none /dev/pts devpts mode=0622 0 0 |
2093 |
|
|
2094 |
|
</pre>to<pre> |
2095 |
|
#/dev/root / nfs defaults 1 1 |
2096 |
|
/dev/sda1 / ext2 defaults 1 1 |
2097 |
|
none /proc proc defaults 0 0 |
2098 |
|
none /dev/pts devpts mode=0622 0 0 |
2099 |
|
|
2100 |
|
</pre>(Note sda1 instead of sdc1.) |
2101 |
|
</ol> |
2102 |
|
|
2103 |
|
<p>To boot Redhat linux from the disk image, use the following command line:<pre> |
2104 |
|
<b>gxemul -X -e3max -o "root=/dev/sda1 ro" -d redhat_mips.img vmlinux-2.4.31</b> |
2105 |
|
|
2106 |
|
</pre> |
2107 |
|
If you need to boot into single user mode, change options to |
2108 |
|
<tt><b>-o "root=/dev/sda1 rw init=/bin/sh"</b></tt>. |
2109 |
|
|
2110 |
|
|
2111 |
|
|
2112 |
|
|
2113 |
|
|
2114 |
|
|
2115 |
|
|
2116 |
|
|
2117 |
|
|
2118 |
|
|
2119 |
<p><br> |
<p><br> |
2120 |
<a name="openbsdsgiinstall"></a> |
<a name="openbsdsgiinstall"></a> |
2121 |
<h3>OpenBSD/sgi:</h3> |
<h3>OpenBSD/sgi:</h3> |
2135 |
mailed Adaptec several times, asking for documentation, but never received |
mailed Adaptec several times, asking for documentation, but never received |
2136 |
any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't |
any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't |
2137 |
use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre> |
use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading<pre> |
2138 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">bsd.rd</a> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi</a>/<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd">bsd.rd</a> |
2139 |
|
|
2140 |
</pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>. |
</pre>and run <b><tt>gxemul -xeo2 bsd.rd</tt></b>. |
2141 |
|
|
2177 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
2178 |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
<b>cd /tftpboot; ftp -i ftp.se.openbsd.org</b> |
2179 |
(log in as anonymous...) |
(log in as anonymous...) |
2180 |
<b>cd pub/OpenBSD/3.9/sgi |
<b>cd pub/OpenBSD/4.0/sgi |
2181 |
mget b*tgz c*tgz e* g* m* |
mget b*tgz c*tgz e* g* m* |
2182 |
quit |
quit |
2183 |
sh |
sh |
2188 |
halt</b> |
halt</b> |
2189 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2190 |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
<li>Download the OpenBSD/sgi GENERIC and RAMDISK kernels:<pre> |
2191 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd</a> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd</a> |
2192 |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd</a> |
<a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd">ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd</a> |
2193 |
|
|
2194 |
</pre> |
</pre> |
2195 |
<li>Create a configuration file called <tt>config_client</tt>: |
<li>Create a configuration file called <tt>config_client</tt>: |
2199 |
! |
! |
2200 |
! This config file is for the client.</font> |
! This config file is for the client.</font> |
2201 |
|
|
2202 |
<b> net( |
<b>net( |
2203 |
add_remote("localhost:12444") </b>! the server<b> |
add_remote("localhost:12444") </b>! the server<b> |
2204 |
local_port(12445) </b>! the client<b> |
local_port(12445) </b>! the client<b> |
2205 |
) |
) |
2206 |
|
|
2207 |
machine( |
machine( |
2208 |
name("client machine") |
name("client machine") |
2209 |
serial_nr(1) |
serial_nr(1) |
2210 |
|
|
2213 |
|
|
2214 |
</b>! load("bsd")<b> |
</b>! load("bsd")<b> |
2215 |
load("bsd.rd") |
load("bsd.rd") |
2216 |
) |
) |
2217 |
</b> |
</b> |
2218 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2219 |
... and another configuration file for the server, |
... and another configuration file for the server, |
2220 |
<tt>config_server</tt>: |
<tt>config_server</tt>: |
2221 |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
<table border="0"><tr><td><tt> </tt></td><td><pre> |
2222 |
<b> net( |
<b>net( |
2223 |
local_port(12444) </b>! the server<b> |
local_port(12444) </b>! the server<b> |
2224 |
add_remote("localhost:12445") </b>! the client<b> |
add_remote("localhost:12445") </b>! the client<b> |
2225 |
) |
) |
2226 |
|
|
2227 |
machine( |
machine( |
2228 |
name("nfs server") |
name("nfs server") |
2229 |
serial_nr(2) |
serial_nr(2) |
2230 |
|
|
2232 |
subtype("5000/200") |
subtype("5000/200") |
2233 |
|
|
2234 |
disk("nbsd_pmax.img") |
disk("nbsd_pmax.img") |
2235 |
) |
) |
2236 |
</b> |
</b> |
2237 |
</pre></td></tr></table> |
</pre></td></tr></table> |
2238 |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
<li>Boot the "<tt>nfs server</tt>" and the OpenBSD/sgi |
2500 |
<a name="linux_qemu_mips"></a> |
<a name="linux_qemu_mips"></a> |
2501 |
<h3>Linux/QEMU_MIPS:</h3> |
<h3>Linux/QEMU_MIPS:</h3> |
2502 |
|
|
2503 |
I've added a semi-bogus machine mode which tries to |
I've added a machine mode which emulates the MIPS machine mode used |
2504 |
mimic the MIPS machine mode used in Fabrice Bellard's |
in Fabrice Bellard's <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>. |
2505 |
<a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>. |
Starting with QEMU 0.9.0, there are other MIPS modes in QEMU (i.e. Malta); |
2506 |
|
the QEMU_MIPS mode in GXemul refers to the old QEMU-specific MIPS machine. |
|
<p>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>). |
|
2507 |
|
|
2508 |
<p>Test it in GXemul using the following command line:<pre> |
<p>The following steps should let you boot into the Linux/QEMU_MIPS |
2509 |
<b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram |
kernel, in way similar to the <tt>run-qemu</tt> script: |
2510 |
|
|
2511 |
|
<p> |
2512 |
|
<ol> |
2513 |
|
<li>Download the archive from |
2514 |
|
<a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a> and extract it:<pre> |
2515 |
|
<b>wget <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.2.tar.gz">http://fabrice.bellard.free.fr/qemu/mips-test-0.2.tar.gz</a> |
2516 |
|
tar zxvf mips-test-0.2.tar.gz</b> |
2517 |
|
|
2518 |
|
</pre> |
2519 |
|
<li>Start GXemul using the following command line:<pre> |
2520 |
|
<b>gxemul -E qemu_mips -x -M 128 -o 'console=ttyS0 |
2521 |
rd_start=0x80800000 rd_size=10000000 init=/bin/sh' |
rd_start=0x80800000 rd_size=10000000 init=/bin/sh' |
2522 |
0x80800000:mips-test/initrd mips-test/vmlinux-r1</b> |
0x80800000:mips-test/initrd.gz mips-test/vmlinux-2.6.18-3-qemu</b> |
2523 |
|
|
2524 |
</pre> |
</pre> |
2525 |
</ol> |
</ol> |
2556 |
<p> |
<p> |
2557 |
<li>Create an empty harddisk image, which will be the disk image |
<li>Create an empty harddisk image, which will be the disk image |
2558 |
that you will install Windows NT onto:<pre> |
that you will install Windows NT onto:<pre> |
2559 |
$ <b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b> |
<b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b> |
2560 |
|
|
2561 |
</pre> |
</pre> |
2562 |
<li>Run the ARC installer, to partition the disk image:<pre> |
<li>Run the ARC installer, to partition the disk image:<pre> |
2563 |
$ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b> |
<b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b> |
2564 |
</pre> |
</pre> |
2565 |
Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite. |
Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite. |
2566 |
<p> |
<p> |
2567 |
<li>Run the SETUP program:<pre> |
<li>Run the SETUP program:<pre> |
2568 |
$ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b> |
<b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b> |
2569 |
</pre> |
</pre> |
2570 |
</ol> |
</ol> |
2571 |
|
|
2584 |
<h3>NetBSD/bebox:</h3> |
<h3>NetBSD/bebox:</h3> |
2585 |
|
|
2586 |
There is an old snapshot of |
There is an old snapshot of |
2587 |
<a href="http://www.netbsd.org/Ports/bebox/">NetBSD/bebox</a> |
<a href="http://www.netbsd.org/ports/bebox/">NetBSD/bebox</a> |
2588 |
from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox |
from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox |
2589 |
could theoretically run in GXemul. |
could theoretically run in GXemul. |
2590 |
<font color="#ff0000">IT DOES <b>NOT</b> WORK RIGHT NOW!</font> |
<font color="#ff0000">IT DOES <b>NOT</b> WORK RIGHT NOW!</font> |
2668 |
<a name="netbsdlandiskinstall"></a> |
<a name="netbsdlandiskinstall"></a> |
2669 |
<h3>NetBSD/landisk:</h3> |
<h3>NetBSD/landisk:</h3> |
2670 |
|
|
2671 |
<a href="http://www.netbsd.org/Ports/landisk/">NetBSD/landisk</a> can |
<a href="http://www.netbsd.org/ports/landisk/">NetBSD/landisk</a> can |
2672 |
run in GXemul. |
run in GXemul. |
2673 |
|
|
2674 |
<p><b><font color="#ff0000">NOTE:</b></font> This is still highly |
<p><font color="#ff0000">NOTE: This is still too |
2675 |
experimental. Installation is very unsmooth. |
unstable to be considered really working! Snapshots from April 2007 |
2676 |
|
or so will probably not work, unless an #if 0 is changed to |
2677 |
|
#if 1 in the implementation of the 'LDC Rm,SR' instruction |
2678 |
|
(in src/cpus/cpu_sh_instr.c).</font> |
2679 |
|
|
2680 |
<p> |
<p> |
2681 |
<a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a> |
<a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a> |
2700 |
<b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b> |
<b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b> |
2701 |
|
|
2702 |
</pre> |
</pre> |
2703 |
|
<p> |
2704 |
<b>TODO</b> |
<li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image |
2705 |
download the .iso image |
of it: (replace 200704110002Z with whatever is the latest one)<pre> |
2706 |
|
<b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/">ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/</a>200704110002Z/landisk |
2707 |
|
mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b> |
2708 |
|
</pre> |
2709 |
|
|
2710 |
<p> |
<p> |
2711 |
<li>TODO: Start the emulated CATS machine like this:<pre> |
<li>Start the emulated CATS machine like this:<pre> |
2712 |
<b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b> |
<b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b> |
2713 |
|
|
2714 |
</pre> |
</pre> |
2715 |
<li>Exit the installer, then execute the following commands: |
<li>Exit the installer, then execute the following commands: |
2716 |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
<p><table border="0"><tr><td><tt> </tt></td><td><pre> |
2717 |
<b> |
<b>disklabel -i -I wd0</b> (for example 'a', '4.2BSD', '1c', |
2718 |
disklabel -I -i wd0 |
'700M', 'b', 'swap', '701M', '$', 'P', 'W', 'y', and 'Q') |
2719 |
... TODO |
<b>newfs /dev/wd0a |
|
newfs /dev/wd0a |
|
2720 |
mount /dev/cd0c /mnt |
mount /dev/cd0c /mnt |
2721 |
mkdir /mnt2; mount /dev/wd0a /mnt2 |
mkdir /mnt2; mount /dev/wd0a /mnt2 |
2722 |
cd /mnt2; sh |
cd /mnt2; sh |
2735 |
</pre> |
</pre> |
2736 |
|
|
2737 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><br> |
|
|
<a name="openbsdlandiskinstall"></a> |
|
|
<h3>OpenBSD/landisk:</h3> |
|
|
|
|
|
It is possible to install and run |
|
|
<a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a> |
|
|
in GXemul. There is at the time of writing this no stable release |
|
|
yet of OpenBSD/landisk, but there are snapshots available on the |
|
|
OpenBSD ftp site. |
|
|
|
|
|
<p>To install OpenBSD/landisk 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_landisk.img bs=1024 count=1 seek=900000</b> |
|
|
|
|
|
</pre> |
|
|
<li>Download the entire landisk directory from the ftp server:<pre> |
|
|
<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> |
|
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd .</b> |
|
|
<b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd.rd .</b> |
|
|
|
|
|
</pre> |
|
|
(Replace ftp.se.openbsd.org with a server closer to you, for |
|
|
increased download speed.) |
|
|
<p> |
|
|
<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 -allow-lowercase -o openbsd_landisk_snapshot.iso ftp.se.openbsd.org/pub/OpenBSD/</b> |
|
|
<b>rm -rf ftp.se.openbsd.org</b> <i>(this directory is not needed anymore)</i> |
|
|
|
|
|
</pre> |
|
|
<li>Start the emulator using this command line:<pre> |
|
|
<b>gxemul -x -Elandisk -d obsd_landisk.img -d d:openbsd_landisk_snapshot.iso bsd.rd</b> |
|
|
|
|
|
</pre> |
|
|
and proceed like you would do if you were installing OpenBSD |
|
|
on a real landisk. The following hints are useful to get you |
|
|
through the installation: |
|
|
<ul> |
|
|
<li>Terminal type = <b>xterm</b> |
|
|
<li>root disk = <b>wd0</b> (the disk to install onto) |
|
|
<li>Use the entire disk for OpenBSD = <b>yes</b> |
|
|
<li>Create one big root partition (a) and a small swap partition (b). c is the entire disk. |
|
|
<li>Do <b>not</b> configure the network. |
|
|
<li>Location of sets = <b>disk</b> |
|
|
<li>Is the disk partition already mounted = <b>no</b> |
|
|
<li>Disk containing the install media = <b>wd1</b> |
|
|
<li>Pathname to the sets = <b>snapshot/landisk</b> |
|
|
</ul> |
|
|
</ol> |
|
|
|
|
|
<p>Once the install has finished, the following command should let you |
|
|
boot from the disk image: |
|
|
|
|
|
<p><pre> |
|
|
<b>gxemul -x -E landisk -d obsd_landisk.img bsd</b> |
|
|
|
|
|
</pre> |
|
|
|
|
|
|
|
2738 |
|
|
2739 |
|
|
2740 |
|
|