Menu:


Navigation

 ·   Wiki Home
 ·   Wiki Help
 ·   Categories
 ·   Title List
 ·   Random Page
 ·   What Links Here
 ·   Uncategorized Pages
 ·   File Upload
 ·   Uploaded Files
 ·   Recent Changes
 ·   RSS
 ·   Atom

Members

 ·  Login
 ·  Register
 ·  Member List

Active Members:


Search:

 

Create or Find Page:

 

Wiki Home   >   Install4.3BSDQuasijarus

Article - Discuss Install4.3BSDQuasijarus

Category:Emulator -> SIMH
Category:OS -> 43BSD

See below for an annotated transcript of the installation procedure for 4.3BSD-Quasijarus0a on simh/Vax. If you have ever read “The Design and Implementation of the 4.3BSD UNIX Operating System”, now you can run the code inside the portable simh emulator.

I’d like to thank Warren Toomey, Michael Sokolov, and Joseph F. Young for their assistance and the work they put into the Unix Archive and the Quasijarus distribution. I’d also like to thank Bob Supnik for the SIMH emulator suite. To begin with, here is the simh configuration file used (simh.quasijarus0a):

set cpu 32m
set cpu conhalt
set tto 7b
set tti 7b

load -r ka655.bin

;; enable this after the initial install and
;; issue the command
;; set boot dua0:
;; at the chevron prompt
;at nvr nvr.bin

set rq0 ra82
at rq0 ra82-quasijarus0a.dsk

set rq1 ra82
at rq1 /dev/null

set rq2 ra82
at rq2 /dev/null

set rq3 ra82
at rq3 /dev/null


set tq tk50
at tq0 quasijarus0a.tap

set dz 7b
set dz lines=8
at -m dz0 2311

set xq mac=08-00-2B-12-34-56
at xq0 eth0

set lpt dis
set ts dis
set rl dis


;; uncomment the next three lines after the NVRAM
;; has been attached and the default boot device set
;dep bdr 0
;boot cpu
;exit

Please note that lines set in red are not optional. In the following installation transcript, user input is set in red and the annotations in green.

Assume that all the necessary files, including the vax binary,
the boot rom and installation tape image are in the current directory.

# ./vax simh.quasijarus0a

VAX simulator V3.0-1
RQ: creating new file
Listening on port 2311 (socket 9)
Modem control activated
Eth: opened eth0
sim> boot cpu

The first step is to boot the standalone tools off the tape and copy
the miniroot to the disk’s b partition. Please note that the disk
is unlabeled at this stage.

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.
>>>boot mua0:
(BOOT/R5:0 MUA0

2..
-MUA0
1..0..

=copy

cpu: uVAX 3000
From: tms(0,1)
To: ra(0,1)
ra0: unlabeled
Copy completed: 308 records copied
?06 HLT INST
PC = 00000006

The miniroot is in place; boot off the tape again to run it.

>>>boot mua0:
(BOOT/R5:0 MUA0


2..
-MUA0
1..0..
=boot

cpu: uVAX 3000

Boot
: ra(0,1)vmunix
ra0: unlabeled
327204+103384+130352 start 0x23a8
4.3 BSD Quasijarus UNIX #0: Sat Oct 2 22:15:38 CDT 1999
msokolov@luthien:/usr/src/sys/GENERIC
real mem = 33521664
SYSPTSIZE limits number of buffers to 80
avail mem = 31697920
using 80 buffers containing 655360 bytes of memory
MicroVAX 3000, ucode rev 6
tmscp0 at uba0 csr 174500 vec 774, ipl 15
tms0 at tmscp0 slave 0
tms1 at tmscp0 slave 1
uda0 at uba0 csr 172150 vec 770, ipl 15
uda0: version 3 model 3
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: no disk label: ra82, size = 1216665 sectors
ra1 at uda0 slave 1: no disk label: ra82, size = 1216665 sectors
ra2 at uda0 slave 2: no disk label: ra82, size = 1216665 sectors
ra3 at uda0 slave 3: no disk label: ra82, size = 1216665 sectors
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
qe0 at uba0 csr 174440 vec 764, ipl 15
qe0: delqa, hardware address 08:00:2b:12:34:56
root device? ra0*
WARNING: clock lost 9 days—CHECK AND RESET THE DATE!
erase ^?, kill ^U, intr ^C

Before restoring the root dump, it is necessary to label
the disk and install the disk bootstrap code. Please note that the
primary boot loader is rdboot, not raboot (thanks to Joseph Young)

# disklabel -rw ra0 ra82 “Quasijarus” /usr/mdec/rdboot /usr/mdec/bootra
# disk=ra0 type=ra82 tape=tms xtr
Build root file system
Warning: 361 sector(s) in last cylinder unallocated
/dev/rra0a: 15884 sectors in 19 cylinders of 15 tracks, 57 sectors
8.1MB in 2 cyl groups (16 c/g, 7.00MB/g, 3200 i/g)
super-block backups (for fsck -b #) at:
32, 13776,
Check the file system
** /dev/rra0a
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 7092 free (20 frags, 884 blocks, 0.3% fragmentation)
Rewind tape
Restore the dump image of the root
** /dev/rra0a
** Last Mounted on /a
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
425 files, 5198 used, 1895 free (15 frags, 235 blocks, 0.2% fragmentation)
Root filesystem extracted
If this is an 8650 or 8600, update the console rl02
If this is a 780 or 785, update the floppy
If this is a 730, update the cassette
# sync
# ^E (Control-E to stop simh)
Simulation stopped, PC: 800029B7 (BNEQ 800029CE)

Now we can boot off the disk and into the root filesystem we just restored.

sim> boot cpu

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.
>>>boot dua0:
(BOOT/R5:0 DUA0


2..
-DUA0
1..0..
loading boot

Boot
: /vmunix
327204+103384+130352 start 0x23a8
4.3 BSD Quasijarus UNIX #0: Sat Oct 2 22:15:38 CDT 1999
msokolov@luthien:/usr/src/sys/GENERIC
real mem = 33521664
SYSPTSIZE limits number of buffers to 80
avail mem = 31697920
using 80 buffers containing 655360 bytes of memory
MicroVAX 3000, ucode rev 6
tmscp0 at uba0 csr 174500 vec 774, ipl 15
tms0 at tmscp0 slave 0
tms1 at tmscp0 slave 1
uda0 at uba0 csr 172150 vec 770, ipl 15
uda0: version 3 model 3
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: ra82, size = 1216665 sectors
ra1 at uda0 slave 1: no disk label: ra82, size = 1216665 sectors
ra2 at uda0 slave 2: no disk label: ra82, size = 1216665 sectors
ra3 at uda0 slave 3: no disk label: ra82, size = 1216665 sectors
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
qe0 at uba0 csr 174440 vec 764, ipl 15
qe0: delqa, hardware address 08:00:2b:12:34:56
Changing root device to ra0a
Automatic reboot in progress…
Thu Sep 30 01:26:55 CDT 1999
Can’t open checklist file: /etc/fstab
Automatic reboot failed… help!
erase ^?, kill ^U, intr ^C

Create and mount filesystems:
ra0g for /usr
ra0h for /home

# newfs ra0g ra82
/dev/rra0g: 841320 sectors in 984 cylinders of 15 tracks, 57 sectors
430.8MB in 62 cyl groups (16 c/g, 7.00MB/g, 3200 i/g)
super-block backups (for fsck -b #) at:
32, 13776, 27520, 41264, 55008, 68752, 82496, 96240, 109984,
123728, 137472, 151216, 164960, 178704, 192448, 206192, 218912, 232656,
246400, 260144, 273888, 287632, 301376, 315120, 328864, 342608, 356352,
370096, 383840, 397584, 411328, 425072, 437792, 451536, 465280, 479024,
492768, 506512, 520256, 534000, 547744, 561488, 575232, 588976, 602720,
616464, 630208, 643952, 656672, 670416, 684160, 697904, 711648, 725392,
739136, 752880, 766624, 780368, 794112, 807856, 821600, 835344,
# newfs ra0h ra82
Warning: 209 sector(s) in last cylinder unallocated
/dev/rra0h: 291346 sectors in 341 cylinders of 15 tracks, 57 sectors
149.2MB in 22 cyl groups (16 c/g, 7.00MB/g, 3200 i/g)
super-block backups (for fsck -b #) at:
32, 13776, 27520, 41264, 55008, 68752, 82496, 96240, 109984,
123728, 137472, 151216, 164960, 178704, 192448, 206192, 218912, 232656,
246400, 260144, 273888, 287632,
# mkdir /home
# mount /dev/ra0g /usr

Create device files for the tape and terminals

# cd /dev
# MAKEDEV tmscp0
# MAKEDEV dz0

Restore /usr

# cd /usr
# mt rew
# mt fsf 3
# tar xpbf 20 /dev/rmt12

Restore the system and application sources

# mkdir src
# cd src
# mkdir sys
# cd sys
# tar xpbf 20 /dev/rmt12
tar: blocksize = 0
# tar xpbf 20 /dev/rmt12
# cd ..
# tar xpbf 20 /dev/rmt12
tar: blocksize = 0
# tar xpbf 20 /dev/rmt12

Create /etc/fstab

# cd /etc
# cat > fstab
/dev/ra0a:/:rw:1:1
/dev/ra0h:/home:rw:1:3
/dev/ra0g:/usr:rw:1:2
^D
(Control-D)
# reboot
syncing disks… done
?06 HLT INST
PC = 8002F700
Loading system software.
No default boot device has been specified.
Available devices.
-DUA0 (RA 82)
-DUA1 (RA 82)
-DUA2 (RA 82)
-DUA3 (RA 82)
-MUA0 (TK 50)
-MUA1 (TK 50)
-MUA2 (TK 50)
-MUA3 (TK 50)
-XQA0 (08-00-2B-12-34-56)
Device? [XQA0]: dua0:
(BOOT/R5:0 DUA0


2..
-DUA0
1..0..
loading boot

Boot
: /vmunix
327204+103384+130352 start 0x23a8
4.3 BSD Quasijarus UNIX #0: Sat Oct 2 22:15:38 CDT 1999
msokolov@luthien:/usr/src/sys/GENERIC
real mem = 33521664
SYSPTSIZE limits number of buffers to 80
avail mem = 31697920
using 80 buffers containing 655360 bytes of memory
MicroVAX 3000, ucode rev 6
tmscp0 at uba0 csr 174500 vec 774, ipl 15
tms0 at tmscp0 slave 0
tms1 at tmscp0 slave 1
uda0 at uba0 csr 172150 vec 770, ipl 15
uda0: version 3 model 3
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: ra82, size = 1216665 sectors
ra1 at uda0 slave 1: no disk label: ra82, size = 1216665 sectors
ra2 at uda0 slave 2: no disk label: ra82, size = 1216665 sectors
ra3 at uda0 slave 3: no disk label: ra82, size = 1216665 sectors
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
qe0 at uba0 csr 174440 vec 764, ipl 15
qe0: delqa, hardware address 08:00:2b:12:34:56
Changing root device to ra0a
Automatic reboot in progress…
Thu Sep 30 01:36:30 CDT 1999
/dev/ra0a: 447 files, 5200 used, 1893 free (21 frags, 234 blocks, 0.3%
fragmentation)
/dev/rra0h: 1 files, 1 used, 136503 free (15 frags, 17061 blocks, 0.0%
fragmentation)
/dev/rra0g: 12264 files, 71378 used, 323473 free (401 frags, 40384 blocks,
0.1% fragmentation)
Thu Sep 30 01:37:01 CDT 1999
checking quotas: done.
starting system logger
preserving editor files
clearing /tmp
standard daemons: update cron accounting.
starting network daemons: routed named inetd printer.
starting local daemons:.
Thu Sep 30 01:37:04 CDT 1999
Sep 30 01:37:03 myname named[87]: /etc/named.boot: No such file or directory
4.3 BSD UNIX (myname.my.domain) (console)

login: root
Sep 30 01:37:14 myname login: ROOT LOGIN console erase ^?, kill
^U, intr ^C
# halt
Sep 30 01:37:16 myname halt: halted by root Sep 30 01:37:17 myname syslogd:
exiting on signal 15 CAUTION: some process(es) wouldn’t die
syncing disks… done
?06 HLT INST
PC = 8002F6CA
>>>
Simulation stopped, PC: 200436AD (JSB @64(R11))
sim> quit
Goodbye

After the initial install, the emulated NVRAM can be buffered to file. As soon as a default boot device is configured at the chevron prompt, simh can be set to automatically boot 4.3BSD with further user prompts.

The network configuration still needs to be completed, but it is easy to enough to verify that the qe0 interface is functional.

The configuration file, installation tape image, and turn-key disk image can be found in the Download section.

Categories: