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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GXemul: Artesyn PM/PPC emulation</title>
<meta name="robots" content="noarchive,nofollow,noindex">
</head>
<body style="font-family : sans-serif;">
<!-- 10 lines header. -->
<h1>GXemul: Artesyn PM/PPC emulation</h1>
<p>
<a href="./">Back to the index.</a>
<!--
Copyright (C) 2006-2019 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><a href="http://www.netbsd.org/ports/pmppc/">NetBSD/pmppc</a> can
run in GXemul on an emulated Artesyn PM/PPC board. Currently, no SCSI or other
disk controller is emulated for this machine type, but it is possible to run
NetBSD with root-on-nfs.
<p><br>
<a name="netbsdpmppc"></a>
<h3>NetBSD/pmppc:</h3>
<p>
<a href="20070616-netbsd-pmppc-diskless.png"><img src="20070616-netbsd-pmppc-diskless_small.png"></a>
<p>These setup steps will let you run NetBSD/pmppc with root-on-nfs:
<p>
<ol>
<li>First of all, the "<tt>nfs server</tt>" machine must be set up.
This needs to have a 750 MB <tt>/tftpboot</tt> partition.
<a href="#netbsdpmaxinstall">Install NetBSD/pmax 3.1 from CDROM</a>.
(Don't forget to add the extra partition!)
<p>
<li>Configure the nfs server machine to act as an nfs server.
Start up the emulated DECstation:<pre>
<b>gxemul -e 3max -d nbsd_pmax.img</b>
</pre>and enter the following commands as <tt>root</tt>
inside the emulator:
<p><table border="0"><tr><td><tt> </tt></td><td><pre>
<b>echo hostname=server >> /etc/rc.conf
echo ifconfig_le0=\"inet 10.0.0.2\" >> /etc/rc.conf
echo nameserver 10.0.0.254 >> /etc/resolv.conf
echo 10.0.0.254 > /etc/mygate
echo /tftpboot -maproot=root 10.0.0.1 > /etc/exports
echo rpcbind=YES >> /etc/rc.conf
echo nfs_server=YES >> /etc/rc.conf
echo mountd=YES >> /etc/rc.conf
echo bootparamd=YES >> /etc/rc.conf
printf "client root=10.0.0.2:/tftpboot \\\n swap=10.0.0.2:/tftpboot/swap\n" > /etc/bootparams
echo "bootps dgram udp wait root /usr/sbin/bootpd bootpd -d 4 -h 10.0.0.2" >> /etc/inetd.conf
cat >> /etc/bootptab
client:\
:ht=ether:\
:ha=102030000010:\
:sm=255.0.0.0:\
:lg=10.0.0.254:\
:ip=10.0.0.1:\
:rp=/tftpboot:
</b>(press CTRL-D)
<b>echo "10:20:30:00:00:10 client" > /etc/ethers
echo 10.0.0.1 client > /etc/hosts
reboot</b>
</pre></td></tr></table>
<p>
<li>Download the NetBSD/pmppc CD-ROM iso image, and the GENERIC kernel:<pre>
<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>
<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>
</pre>
<li>Start the DECstation emulation again:<pre>
<b>gxemul -e 3max -d nbsd_pmax.img -d pmppccd-3.1.iso</b>
</pre>and extract the files from the PM/PPC CD-ROM image to the
DECstation disk image:
<p><table border="0"><tr><td><tt> </tt></td><td><pre>
<b>cd /tftpboot; mount /dev/cd0a /mnt
for a in /mnt/*/binary/sets/[bcemt]*; do echo $a; tar zxfp $a; done
echo 10.0.0.2:/tftpboot / nfs rw 0 0 > /tftpboot/etc/fstab
echo rc_configured=YES >> /tftpboot/etc/rc.conf
echo 10.0.0.254 >> /tftpboot/etc/mygate
echo nameserver 10.0.0.254 >> /tftpboot/etc/resolv.conf
echo rc_configured=YES >> /tftpboot/etc/rc.conf
dd if=/dev/zero of=swap bs=1024 count=65536
cd /tftpboot/dev; sh MAKEDEV all
cd /; umount /mnt; halt</b>
</pre></td></tr></table>
<p>
<li>Create a configuration file called <tt>config_client</tt>:
<table border="0"><tr><td><tt> </tt></td><td><pre>
<font color="#2020cf">! Configuration file for running NetBSD/pmppc diskless with
! a NetBSD/pmax machine as the nfs server.</font>
<b>net(
add_remote("localhost:12444") </b>! the server<b>
local_port(12445) </b>! the client<b>
)
machine(
name("client machine")
serial_nr(1)
type("pmppc")
load("netbsd-PMPPC.gz")</b>
)
</b>
</pre></td></tr></table>
... and another configuration file for the server,
<tt>config_server</tt>:
<table border="0"><tr><td><tt> </tt></td><td><pre>
<b>net(
local_port(12444) </b>! the server<b>
add_remote("localhost:12445") </b>! the client<b>
)
machine(
name("nfs server")
serial_nr(2)
type("dec")
subtype("5000/200")
disk("nbsd_pmax.img")
)
</b>
</pre></td></tr></table>
</ol>
<p>It should now be possible to boot NetBSD/pmppc using the NetBSD/pmax
nfs server, using the following commands: (NOTE! Execute these two
commands in separate xterms!)<pre>
<b>gxemul @config_server</b>
<b>gxemul @config_client</b>
</pre>
<p>You might want to log in as <tt>root</tt> on the server machine, and
run <tt>tcpdump -lnvv</tt> or similar, to see that what the client machine
actually does on the network.
<p>When asked for "<tt>root device:</tt>" etc. on the client machine, enter
the following values:<pre>
root device: <b>tlp0</b>
dump device: <b>(leave blank)</b>
file system (default generic): <b>(leave blank)</b>
..
init path (default /sbin/init): <b>(leave blank)</b>
</pre>
<p><br>
</body>
</html>
|