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

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

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