Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Last active October 8, 2016 12:23
Show Gist options
  • Save tuklusan/edf765fba70148be78b90f160a86bf8e to your computer and use it in GitHub Desktop.
Save tuklusan/edf765fba70148be78b90f160a86bf8e to your computer and use it in GitHub Desktop.
How to Build Your Own Digital DEC MicroVAX 3900 Running OpenVMS VAX VMS Operating System: SIMH on CentOS 7 Running OpenVMS/VAX 7.3: http://supratim-sanyal.blogspot.com/2016/10/how-to-build-your-own-digital-dec.html
; vax.ini
; autoboots from default disk, and exits emulator when vax halts
; provides two NICs
; uses a system disk larger than real vax can support
;
; See How to Build Your Own Digital DEC MicroVAX 3900 Running
; OpenVMS VAX VMS Operating System: SIMH on
; CentOS 7 Running OpenVMS/VAX 7.3:
; http://supratim-sanyal.blogspot.com/2016/10/how-to-build-your-own-digital-dec.html
;
; Tweaked based on information in simh documentation and OpenVMS Hobbyist forums
; Supratim Sanyal, October 2016
;
; ---------------------------
;
; Load CPU microcode
load -r ../data/ka655x.bin
;
; Attach non-volatile RAM to a file
attach nvr ../data/nvram.bin
;
; This virtual machine has 128M memory. Also try to release CPU cycles to host when idle.
set cpu 128M
set cpu idle
;
; Define disk drive types. RA92 is largest-supported VAX drive (1.5GB) unless
; vax was built with USE_INT64 in make command line, like mine
;
; System disk will be a 2GB disk (2*1024*1024*1024/512 = 4194304 blocks)
set rq0 ra92
set -L rq0 rauser=4194304
;
; Normal data disks (1.5GB RA92)
set rq1 ra92
set rq2 ra92
;
; CD ROM drive
set rq3 cdrom
;
; +++ NOTE
; if vax was built with USE_INT64 in make command line, larger disks can be used
; Examples - For 8GB system disk - 8*1024*1024*1024/512 = 16777216 blocks
;set rq0 ra92
;set -L rq0 rauser=16777216
;
;16GB data disks:
;set rq1 ra92
;set -L rq1 rauser=33553408
; ---
;
; Attach defined drives to local files
attach rq0 ../data/digital-ra92-disk0.dsk
attach rq1 ../data/digital-ra92-disk1.dsk
attach rq2 ../data/digital-ra92-disk2.dsk
;
; Attach the CD-ROM to its file (read-only)
attach -r rq3 ../data/OpenVMS VAX 073 OS.iso
;
;
; Disable unused devices. It's also possible to disable individual devices,
; using a construction like "set rq2 disable" if desired.
;
set rl disable
set ts disable
;
;
; Attach Ethernet to a network interface
; This provides two interfaces, though I really need one
;
set xq enabled
set xq type=DELQA
set xq mac=08-00-2B-56-4D-53
attach xq0 tap:tap0
;
set xqb enabled
set xqb type=DELQA
set xqb mac=08-00-2B-56-4D-54
attach xqb0 tap:tap1
;
;set xq mac=00-00-F8-56-4D-53
;attach xq eth0
;attach xq tap0
;attach xq tap:tap0
;
;
; Enable or Disable Autoboot by uncommenting one of the following two parameters.
; Disable autoboot when booting from CDROM to install OpenVMS, for example.
; Disable auto-boot
dep bdr 80
; Enable auto-boot
;dep bdr 0
;
;
; Choose one of the following lines. SET CPU CONHALT returns control to the
; VAX console monitor on a halt event (where behavior will be further
; determined by whether auto-boot is set--see above. SET CPU SIMHALT will
; cause the simulator to get control instead.
set cpu conhalt
;set cpu simhalt
;
;
; Now start the emulator
boot cpu
;
;
; When VAX is halted, exit the simulator
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment