[BACK]Return to vax-simh.html CVS log [TXT][DIR] Up to [local] / www

Annotation of www/vax-simh.html, Revision 1.31

1.1       kettenis    1: <!DOCTYPE HTML PUBLIC  "-//W3C//DTD HTML 4.01 Transitional//EN"
                      2:        "http://www.w3.org/TR/html4/loose.dtd">
                      3: <html>
                      4: <head>
                      5: <title>OpenBSD/vax on SIMH</title>
                      6: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                      7: <meta name="description" content="the OpenBSD/vax SIMH page">
1.14      martynas    8: <meta name="copyright" content="This document copyright 2004-2009 by OpenBSD.">
1.1       kettenis    9: </head>
                     10:
                     11: <body bgcolor="#ffffff" text="#000000" link="#23238e">
                     12: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
                     13: <p>
                     14:
                     15: <h2><font color="#e00000">OpenBSD/vax on SIMH</font></h2>
                     16:
                     17: <hr>
                     18:
                     19: It is very easy to install OpenBSD/vax on the
1.2       henning    20: <a href="http://simh.trailing-edge.com">SIMH</a> VAX simulator.  All
1.1       kettenis   21: you need is a reasonably fast machine, enough disk space for a 1.5GB
1.28      sthen      22: disk image and the vax <i>floppy53.fs</i> file.
1.1       kettenis   23:
                     24: Assuming you're going to run SIMH on an OpenBSD system, install the
1.18      steven     25: <i>emulators/simh</i> package from <a href="faq/ports/index.html">ports</a>.
1.1       kettenis   26: Decide on an appropriate location for your OpenBSD/vax SIMH
                     27: environment and at that location, create a file <i>openbsd.simh</i>
                     28: with the following contents:
                     29:
1.3       saad       30: <blockquote>
                     31: <pre>
1.1       kettenis   32: <strong>
1.24      okan       33: set cpu 128m
1.1       kettenis   34: at nvr openbsd.nvram
                     35:
1.8       kettenis   36: deposit rq qtime 1000000
1.1       kettenis   37:
                     38: set rq0 ra92
                     39: at rq0 openbsd.ra0.disk
                     40:
                     41: set rq1 cdrom
                     42: at rq1 /dev/rcd0c
                     43:
                     44: set rq2 cdrom
1.28      sthen      45: at rq2 floppy53.fs
1.1       kettenis   46:
1.26      sthen      47: at xq0 tap:tun0
1.1       kettenis   48:
                     49: boot cpu
                     50: exit
                     51: </strong>
1.3       saad       52: </pre>
                     53: </blockquote>
1.1       kettenis   54:
1.24      okan       55: This configures SIMH to simulate a VAX with a whopping 128 MB of
1.1       kettenis   56: memory, a RA92 1.5GB disk, a CD-ROM unit to hold CD1 of your CD-ROM
                     57: set, another CD-ROM unit to boot from, and a DELQA Qbus Ethernet
1.26      sthen      58: controller attached to the tun0 interface.
                     59: You might need to replace <strong>/dev/rcd0c</strong> with the
                     60: name of the raw device corresponding to your real CD-ROM unit.
1.21      sthen      61:
                     62: <p>
                     63:
                     64: By default pressing ^E will interrupt the emulation; if you're
                     65: accustomed to the emacs editing keys, you might like to remap this
                     66: (e.g. adding <strong>set console wru=1e</strong> sets it to ^6,
                     67: ascii code 0x1e).
                     68: If you prefer a larger disk, replace <strong>set rq0 ra92</strong>
                     69: with e.g. <strong>set rq0 rauser=15000</strong> (where 15000 is the
1.22      sthen      70: size in MB).
1.21      sthen      71: See the SIMH documentation for more details.
1.1       kettenis   72:
                     73: <p>
                     74:
1.26      sthen      75: Before starting SIMH, you will need to configure the network.
1.27      sthen      76: In most cases, the following bridge-based configuration will give
                     77: best results:
                     78:
                     79: <p>
                     80:
1.29      sthen      81: Create the tun0 network interface, set it into layer 2 mode and bring it up:
1.26      sthen      82:
                     83: <blockquote>
                     84: <pre>
                     85: # <strong>ifconfig tun0 create</strong>
                     86: # <strong>ifconfig tun0 link0</strong>
1.29      sthen      87: # <strong>ifconfig tun0 up</strong>
1.26      sthen      88: </pre>
                     89: </blockquote>
                     90:
                     91: Bridge it to your ethernet interface and enable the bridge:
                     92:
                     93: <blockquote>
                     94: <pre>
                     95: # <strong>ifconfig bridge0 create</strong>
                     96: # <strong>ifconfig bridge0 fwddelay 4</strong>
                     97: # <strong>ifconfig bridge0 add em0 add tun0</strong>
                     98: # <strong>ifconfig bridge0 up</strong>
                     99: </pre>
                    100: </blockquote>
                    101:
1.27      sthen     102: By setting appropriate permissions on /dev/tun0 you can avoid running
                    103: SIMH as root.
                    104:
                    105: <p>
                    106:
                    107: Alternatively, if you cannot use bridge(4) (for example with some
                    108: wireless drivers), you can use BPF to connect to the network.
                    109: In this case, you can skip the above <tt>ifconfig</tt> lines and
                    110: replace the "<tt>at xq0 tap:tun0</tt>" line with a line like this,
                    111: replacing iwn0 with your actual network interface as necessary:
                    112:
                    113: <blockquote><pre>
                    114: <strong>at xq0 iwn0</strong>
                    115: </pre></blockquote>
                    116:
1.26      sthen     117: <p>
                    118:
1.28      sthen     119: Copy <i>vax/floppy53.fs</i> to the location of your
1.12      miod      120: OpenBSD/vax SIMH environment.
1.1       kettenis  121:
                    122: Now fire up SIMH.  At the boot prompt you should type <strong>boot
                    123: dua2:</strong>, after which SIMH should boot into the normal OpenBSD
                    124: installation program:
                    125:
1.3       saad      126: <blockquote>
                    127: <pre>
1.1       kettenis  128: # <strong>simh-vax openbsd.simh</strong>
                    129:
1.25      sthen     130: VAX simulator V3.9-0
1.1       kettenis  131: NVR: buffering file in memory
1.26      sthen     132: Eth: opened OS device tun0
1.13      sthen     133: Loading boot code from /usr/local/lib/simh/vax/ka655x.bin
1.1       kettenis  134:
                    135:
                    136: KA655-B V5.3, VMB 2.7
                    137: Performing normal system tests.
                    138: 40..39..38..37..36..35..34..33..32..31..30..29..28..27..26..25..
                    139: 24..23..22..21..20..19..18..17..16..15..14..13..12..11..10..09..
                    140: 08..07..06..05..04..03..
                    141: Tests completed.
                    142: &gt;&gt;&gt;<strong>boot dua2:</strong>
                    143: (BOOT/R5:0 DUA2
                    144:
                    145:
                    146:
                    147:   2..
                    148: -DUA2
                    149:   1..0..
                    150:
                    151:
1.25      sthen     152: &gt;&gt; OpenBSD/vax boot [1.16] &lt;&lt;
1.1       kettenis  153: &gt;&gt; Press enter to autoboot now, or any other key to abort: 0
                    154: &gt; boot bsd
1.3       saad      155: </pre>
                    156: </blockquote>
1.1       kettenis  157:
                    158: After you've finished the installation, restart SIMH, but now type:
                    159:
1.3       saad      160: <blockquote>
                    161: <pre>
1.1       kettenis  162: &gt;&gt;&gt;<strong>boot dua0:</strong>
1.3       saad      163: </pre>
                    164: </blockquote>
1.1       kettenis  165:
                    166: to boot from your newly installed disk image.  You'll need a little
                    167: patience upon your first boot, since generating the SSH host keys can
                    168: take quite a bit of time.  But it will eventually boot through and
                    169: present you with a friendly login prompt:
                    170:
1.3       saad      171: <blockquote>
                    172: <pre>
1.1       kettenis  173: OpenBSD/vax (noname.my.domain) (console)
                    174:
                    175: login:
1.3       saad      176: </pre>
                    177: </blockquote>
1.1       kettenis  178:
                    179: When you are done installing any additional packages, you might want
                    180: to remove the lines referring to your real CD-ROM unit and
1.28      sthen     181: <i>floppy53.fs</i> from your <i>openbsd.simh</i> file.
1.1       kettenis  182:
                    183: <p>
                    184:
                    185: Enjoy!
                    186:
                    187: </body>
                    188: </html>