/[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 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.149 2006/06/25 02:36:46 debug Exp $  $Id: guestoses.html,v 1.157 2006/07/22 10:23:39 debug Exp $
14    
15  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
16    
# Line 98  not be relevant for this specific releas Line 98  not be relevant for this specific releas
98    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>    <li><a href="#openbsdsgiinstall">OpenBSD/sgi</a>
99    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>    <li><a href="#openbsdarcinstall">OpenBSD/arc 2.3</a>
100    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>    <li><a href="#debiancats">Debian GNU/Linux for CATS</a>
101      <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
102      <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
103    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 2.1</a>
104    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.0</a>
105  </ul>  </ul>
# Line 118  GXemul's machine, device, and/or process Line 120  GXemul's machine, device, and/or process
120  <h3>NetBSD/pmax:</h3>  <h3>NetBSD/pmax:</h3>
121    
122  <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
123  first guest OS that could be installed onto a disk image in GXemul. The  first guest OS that could be
124  device emulation of the DECstation 5000/200 is reasonably complete; it  <a href="http://mail-index.netbsd.org/port-pmax/2004/04/18/0000.html">installed</a>
125  should be enough to emulate a networked X-windows-capable workstation.  onto a disk image in GXemul. The device emulation of the DECstation
126    5000/200 is reasonably complete; it should be enough to emulate a
127    networked X-windows-capable workstation.
128    
129  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,  <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,
130  newer NetBSD releases have changed slightly, and nowadays X does not  newer NetBSD releases have changed slightly, and nowadays X does not
# Line 372  NetBSD/hpcmips on an emulated MobilePro Line 376  NetBSD/hpcmips on an emulated MobilePro
376  <ol start="1">  <ol start="1">
377    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
378          that you will install NetBSD/hpcmips onto:<pre>          that you will install NetBSD/hpcmips onto:<pre>
379          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000</b>          <b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=999000</b>
380    
381  </pre>  </pre>
382    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>    <li>Download the NetBSD/hpcmips 3.0 ISO image, and a generic kernel:<pre>
# Line 437  image, from an emulated DECstation 3MAX Line 441  image, from an emulated DECstation 3MAX
441  <ol>  <ol>
442    <li>Create an empty harddisk image, which will be the disk image    <li>Create an empty harddisk image, which will be the disk image
443          that you will install NetBSD/cobalt onto:<pre>          that you will install NetBSD/cobalt onto:<pre>
444          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000</b>          <b>dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=999000</b>
445    
446  </pre>  </pre>
447    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>    <li>Download the generic kernel for Cobalt and the 2.1 ISO image:<pre>
# Line 494  generic kernel:<pre> Line 498  generic kernel:<pre>
498  <a name="netbsdevbmipsinstall"></a>  <a name="netbsdevbmipsinstall"></a>
499  <h3>NetBSD/evbmips:</h3>  <h3>NetBSD/evbmips:</h3>
500    
501  <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
502  in GXemul on an emulated Malta evaluation board (with a 5Kc or 4Kc CPU).  in GXemul on an emulated Malta evaluation board, with a 5Kc (MIPS64) or
503    4Kc (MIPS32) processor. 5Kc is the default.
504    
505  <p>  <p>
506  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Line 1930  fdisk and mke2fs, which are useful for c Line 1935  fdisk and mke2fs, which are useful for c
1935    
1936    
1937    
1938    
1939    
1940    
1941    
1942    
1943    <p><br>
1944    <a name="linux_qemu_mips"></a>
1945    <h3>Linux/QEMU_MIPS:</h3>
1946    
1947    I've added a semi-bogus machine mode which tries to
1948    mimic the MIPS machine mode used in Fabrice Bellard's
1949    <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.
1950    
1951    <p>Follow these steps to download and run the Linux/QEMU_MIPS test
1952    ramdisk kernel:
1953    
1954    <p><ol>
1955      <li>Download <a href="http://fabrice.bellard.free.fr/qemu/mips-test-0.1.tar.gz">mips-test-0.1.tar.gz</a>
1956            from <a href="http://fabrice.bellard.free.fr/qemu/download.html">http://fabrice.bellard.free.fr/qemu/download.html</a>,
1957            and extract its contents (<tt>tar zxvf mips-test-0.1.tar.gz</tt>).
1958      <p>
1959      <li>Test it in GXemul using the following command line:<pre>
1960            <b>gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
1961                    rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
1962                    0x80800000:mips-test/initrd mips-test/vmlinux-r1</b>
1963    
1964    </pre>
1965    </ol>
1966    
1967    <p><i>"QEMU is a FAST! processor emulator"</i> according to <a
1968    href="http://fabrice.bellard.free.fr/qemu/qemu-doc.html">http://fabrice.bellard.free.fr/qemu/qemu-doc.html</a>.
1969    Sometimes QEMU is faster than GXemul, sometimes it is the other way
1970    around. A quick (and quite unfair) test on my laptop (1.8 GHz Turion ML32,
1971    I think, in AMD64 mode) comparing QEMU 0.8.1 installed as a binary package
1972    from FreeBSD ports with GXemul gave the following result:
1973    
1974    <p><pre>
1975            <b>while true; do ls -l > /dev/null; echo -n .; done</b>
1976            (80 x 36 dots)
1977            QEMU 0.8.1:       13 min 48 sec
1978            GXemul 20060711:   7 min 54 sec
1979            GXemul 0.4.1:      4 min 59 sec
1980    
1981            <b>while true; do /usr/bin/md5sum /usr/bin/* > /dev/null; echo -n .; done</b>
1982            (80 dots)
1983            QEMU 0.8.1:        2 min  9 sec
1984            GXemul 20060711:   8 min 49 sec
1985            GXemul 0.4.1:      6 min 54 sec
1986    
1987            <b>while true; do grep hej lib/libtextwrap.so.1 > /dev/null; echo -n .; done</b>
1988            (80 dots)
1989            QEMU 0.8.1:       10 min  5 sec
1990            GXemul 20060711:   3 min  8 sec
1991            GXemul 0.4.1:      1 min 42 sec
1992    </pre>
1993    
1994    <p>The commands were run inside the emulators, using the ramdisk kernel
1995    mentioned above. (For GXemul, 2006-07-11 was the date when the QEMU_MIPS
1996    mode was added. Performance has since gotten a bit better in general, for
1997    non-R3000 MIPS emulation.)
1998    
1999    
2000    
2001    
2002    
2003    
2004    
2005    
2006    <p><br>
2007    <a name="windows_nt_mips"></a>
2008    <h3>Windows NT/MIPS:</h3>
2009    
2010    Old versions of Windows NT could run on MIPS hardware, e.g.
2011    the PICA 61. It is theoretically possible that the emulation provided by
2012    GXemul some day could be stable/complete enough to emulate
2013    such hardware well enough to fool Windows NT into thinking
2014    that it is running on a real machine.
2015    <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2016    
2017    <p>Something like this would be done to install
2018    Windows NT onto a disk image:
2019    
2020    <ol>
2021            <li>Put a "Windows NT 4.0 for MIPS" CDROM (or similar) into
2022                    your CDROM drive. (On FreeBSD systems, it is
2023                    usually called <tt>/dev/cd0c</tt> or similar. Change
2024                    that to whatever the CDROM is called on your system,
2025                    or the name of a raw .iso image. I have tried this
2026                    with the Swedish version, but it might work with
2027                    other versions too.)
2028            <p>
2029            <li>Create an empty harddisk image, which will be the disk image
2030                    that you will install Windows NT onto:<pre>
2031            $ <b><tt>dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000</tt></b>
2032    
2033    </pre>
2034            <li>Run the ARC installer, to partition the disk image:<pre>
2035            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST</tt></b>
2036    </pre>
2037            Note that <tt>ARCINST</tt> <i>almost</i> works, but not quite.
2038            <p>
2039            <li>Run the SETUP program:<pre>
2040            $ <b><tt>gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR</tt></b>
2041    </pre>
2042    </ol>
2043    
2044    <p><tt>SETUPLDR</tt> manages to load some drivers from the cdrom,
2045    but then it crashes because of incomplete emulation of some hardware devices.
2046    
2047    
2048    
2049    
2050    
2051    

Legend:
Removed from v.26  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26