File: [local] / www / Attic / vax-simh.html (download) (as text)
Revision 1.15, Sat Oct 3 09:14:39 2009 UTC (14 years, 7 months ago) by sthen
Branch: MAIN
Changes since 1.14: +6 -3 lines
Show people how to remap the interrupt key. This will save some people
quite a lot of time fsck'ing... Prompted by a suggestion from form@.
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>OpenBSD/vax on SIMH</title>
<link rev="made" href="mailto:www@openbsd.org">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="resource-type" content="document">
<meta name="description" content="the OpenBSD/vax SIMH page">
<meta name="keywords" content="openbsd,vax,simh">
<meta name="distribution" content="global">
<meta name="copyright" content="This document copyright 2004-2009 by OpenBSD.">
</head>
<body bgcolor="#ffffff" text="#000000" link="#23238e">
<a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
<p>
<h2><font color="#e00000">OpenBSD/vax on SIMH</font></h2>
<hr>
It is very easy to install OpenBSD/vax on the
<a href="http://simh.trailing-edge.com">SIMH</a> VAX simulator. All
you need is a reasonably fast machine, enough disk space for a 1.5GB
disk image and the vax <i>floppy45.fs</i> file.
Assuming you're going to run SIMH on an OpenBSD system, install the
<i>emulators/simh</i> package from <a href="ports.html">ports</a>.
Decide on an appropriate location for your OpenBSD/vax SIMH
environment and at that location, create a file <i>openbsd.simh</i>
with the following contents:
<blockquote>
<pre>
<strong>
set cpu 64m
at nvr openbsd.nvram
deposit rq qtime 1000000
set rq0 ra92
at rq0 openbsd.ra0.disk
set rq1 cdrom
at rq1 /dev/rcd0c
set rq2 cdrom
at rq2 floppy45.fs
at xq0 bge0
boot cpu
exit
</strong>
</pre>
</blockquote>
This configures SIMH to simulate a VAX with a whopping 64 MB of
memory, a RA92 1.5GB disk, a CD-ROM unit to hold CD1 of your CD-ROM
set, another CD-ROM unit to boot from, and a DELQA Qbus Ethernet
controller. You'll need to replace <strong>bge0</strong> with the
name of the network interface in your machine. You also might need to
replace <strong>/dev/rcd0c</strong> with the name of the raw device
corresponding to your real CD-ROM unit. By default pressing ^E
will interrupt the emulation; if you're accustomed to the emacs
editing keys, you might like to remap this (e.g. adding <strong>set
console wru=1e</strong> sets it to ^6, ascii code 0x1e). See the
SIMH documentation for more details.
<p>
Copy <i>4.5/vax/floppy45.fs</i> to the location of your
OpenBSD/vax SIMH environment.
Now fire up SIMH. At the boot prompt you should type <strong>boot
dua2:</strong>, after which SIMH should boot into the normal OpenBSD
installation program:
<blockquote>
<pre>
# <strong>simh-vax openbsd.simh</strong>
VAX simulator V3.8-0
NVR: buffering file in memory
Eth: opened bge0
Loading boot code from /usr/local/lib/simh/vax/ka655x.bin
KA655-B V5.3, VMB 2.7
Performing normal system tests.
40..39..38..37..36..35..34..33..32..31..30..29..28..27..26..25..
24..23..22..21..20..19..18..17..16..15..14..13..12..11..10..09..
08..07..06..05..04..03..
Tests completed.
>>><strong>boot dua2:</strong>
(BOOT/R5:0 DUA2
2..
-DUA2
1..0..
>> OpenBSD/vax boot [1.15] <<
>> Press enter to autoboot now, or any other key to abort: 0
> boot bsd
</pre>
</blockquote>
After you've finished the installation, restart SIMH, but now type:
<blockquote>
<pre>
>>><strong>boot dua0:</strong>
</pre>
</blockquote>
to boot from your newly installed disk image. You'll need a little
patience upon your first boot, since generating the SSH host keys can
take quite a bit of time. But it will eventually boot through and
present you with a friendly login prompt:
<blockquote>
<pre>
OpenBSD/vax (noname.my.domain) (console)
login:
</pre>
</blockquote>
When you are done installing any additional packages, you might want
to remove the lines referring to your real CD-ROM unit and
<i>floppy45.fs</i> from your <i>openbsd.simh</i> file.
<p>
Enjoy!
<hr>
<a href="vax.html">
<img height="24" width="24" src="back.gif" border="0" alt="OpenBSD/vax">
</a>
<br>
<small><a href="mailto:www@openbsd.org">www@openbsd.org</a></small>
<br>
<small>$OpenBSD: vax-simh.html,v 1.15 2009/10/03 09:14:39 sthen Exp $</small>
</body>
</html>