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

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

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