1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GXemul: HPCmips emulation</title>
<meta name="robots" content="noarchive,nofollow,noindex">
</head>
<body style="font-family : sans-serif;">
<!-- 10 lines header. -->
<h1>GXemul: HPCmips emulation</h1>
<p>
<a href="./">Back to the index.</a>
<!--
Copyright (C) 2006-2021 Anders Gavare. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<p>The HPCmips modes are for emulating "<a href="https://en.wikipedia.org/wiki/Handheld_PC">Handheld
PCs</a>" based on MIPS processors, such as the MobilePro 770, 780, 800, and 880.
It is possible to install and run
<a href="#netbsdhpcmipsinstall">NetBSD/hpcmips</a> as a guest OS.
<p><br>
<a name="netbsdhpcmipsinstall"></a>
<h3>NetBSD/hpcmips:</h3>
<p><a href="http://www.netbsd.org/ports/hpcmips/">NetBSD/hpcmips</a> can be
installed onto a disk image, on an emulated MobilePro.
Not all MobilePro models work with all versions of NetBSD, most likely due
to bugs in the emulator.
<p>
<table border="0">
<tr>
<td><b>Model:</b></td>
<td width=20></td>
<td><b>Screen resolution:</b></td>
<td width=20></td>
<td><b>CPU:</b></td>
<td width=20></td>
<td><b>RAM:</b></td>
<td width=20></td>
<td><b>Comments:</b></td>
</tr>
<tr>
<td>MobilePro 770</td>
<td></td>
<td>640x240</td>
<td></td>
<td>VR4121</td>
<td></td>
<td>32 MB</td>
<td></td>
<td>Graphical framebuffer (-X) is broken with NetBSD 8.0 but
works with 8.1.</td>
</tr>
<tr>
<td>MobilePro 780</td>
<td></td>
<td>640x240</td>
<td></td>
<td>VR4121</td>
<td></td>
<td>32 MB</td>
<td></td>
<td>Unaligned framebuffer; may run a bit slower.</td>
</tr>
<tr>
<td>MobilePro 800</td>
<td></td>
<td>800x600</td>
<td></td>
<td>VR4121</td>
<td></td>
<td>32 MB</td>
<td></td>
<td>Graphical framebuffer (-X) is broken with NetBSD 8.0 but
works with 8.1.</td>
</tr>
<tr>
<td>MobilePro 880</td>
<td></td>
<td>800x600</td>
<td></td>
<td>VR4121</td>
<td></td>
<td>32 MB</td>
<td></td>
<td>Graphical framebuffer (-X) is broken with NetBSD 8.0 but
works with 8.1. Unaligned framebuffer; may run a bit slower.</td>
</tr>
</table>
<p><a href="20050427-netbsd-hpcmips-1.png"><img src="20050427-netbsd-hpcmips-1_small.png"></a>
<a href="20050427-netbsd-hpcmips-2.png"><img src="20050427-netbsd-hpcmips-2_small.png"></a>
<p>
These instructions show an example of how to install NetBSD/hpcmips:
<p>
<ol start="1">
<li>Create an empty harddisk image, which will be the root disk
that you will install NetBSD/hpcmips onto:<pre>
<b>dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=5000000</b>
</pre>
<li>Download the NetBSD/hpcmips ISO image, a generic kernel,
and the installer kernel (and optional symbols):<pre>
<a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/8.1/NetBSD-8.1-hpcmips.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/8.1/NetBSD-8.1-hpcmips.iso</a>
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/binary/kernel/netbsd-GENERIC.gz</a>
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/installation/netbsd.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/installation/netbsd.gz</a>
<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/installation/netbsd.symbols.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-8.1/hpcmips/installation/netbsd.symbols.gz</a>
</pre>
<p>
<li>Start the installation like this:<pre>
<b>gxemul -X -e mobilepro770 -d nbsd_hpcmips.img -d b:NetBSD-8.1-hpcmips.iso netbsd.gz netbsd.symbols.gz</b>
</pre>
and proceed like you would do if you were installing NetBSD on a real
MobilePro: Install onto wd0, choose "Use entire disk" when
doing the MBR partitioning, and choose to install from CD-ROM. Change
the CDROM device name from <tt>cd0a</tt> to <tt>cd0d</tt>.
</ol>
<p>
If everything worked, NetBSD should now be installed on the disk image.
Use the following command line to boot the emulated hpcmips machine:<pre>
<b>gxemul -e mobilepro770 -X -d nbsd_hpcmips.img netbsd-GENERIC.gz</b>
</pre>
<p>NOTE: It seems that the NetBSD installer only activates the graphical console.
You may need to edit <tt>/etc/ttys</tt> at the end of the install,
and enable <tt>/dev/console</tt> like this if you wish to be able to log in using serial console:
<pre><i>When the installer says "Exit Install System", select that option to get to a # prompt.</i>
# <b>mount /dev/wd0a /mnt</b>
# <b>echo 'console "/usr/libexec/getty std.9600" vt100 on secure' >> /mnt/etc/ttys</b>
# <b>umount /mnt</b>
# <b>sync</b>
# <b>halt -p</b>
</pre>
<p>When you have logged in as <tt>root</tt>, you can use <tt>startx</tt> to
start X Windows, but there is <font color="red">no mouse or touch support yet</font>,
so only keyboard input is available. This makes it a bit meaningless to use X.
<p>If you want to supply raw files such as .tar.gz files as disk images using
the <tt>-d</tt> command line option, those are accessible as the 'd' partition
in NetBSD/hpcmips, not c. So for example:<pre>
tar zxvf /dev/wd1d</pre>
<p>would extract files if the disk image is a .tar.gz archive.
<p><br>
</body>
</html>
|