[Simh] 4.2BSD booted multiuser!

Jason jsteve at vaxenrule.com
Tue Jan 31 22:21:33 EST 2006


Ok this is going to be a bit long... Sorry in advance. But if you skip down
to the bottom, you'll see I got 4.2 in multiuser!

I still am pretty fuzzy for a way to create .tap files, so what I settled on
is to ftp them to a Quasijarus box I have running & write them out to
'virtual tape'.  I tried to follow the 'format' guide, however I have issues
doing the copy & boot. ( I used
http://www.tribug.org/pub/tuhs/4BSD/Distributions/4.2BSD/Per_Andersson/ )

On the Quasijarus computer, I then just simply dd'd the files onto a virtual
tk50 (does it matter?)

I used the following commands:

dd of=/dev/rmt12 bs=20b conv=sync if=tape1-file2
dd of=/dev/rmt12 bs=20b conv=sync if=tape1-file3
dd of=/dev/rmt12 bs=20b conv=sync if=tape1-file4
dd of=/dev/rmt12 bs=20b conv=sync if=tape1-file5
dd of=/dev/rmt12 bs=20b conv=sync if=tape1-file6

eject the 'tape' 
dd of=/dev/rmt12 bs=20b conv=sync if=tape2-file1
dd of=/dev/rmt12 bs=20b conv=sync if=tape2-file2
dd of=/dev/rmt12 bs=20b conv=sync if=tape2-file3

Now you have the 2 4.2BSD tapes that I have.  On the host pc side we are
going to need to get the bootloader out of the syssrc.tar (
srcsys/floppy/boot ).  Just tar -xvf it somewhere and copy the boot program
to boot42 .  Now copy the tape1-file3 as miniroot and we should be good to
go!

Now for my 2 ini files, here is boot42.ini:
----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
set rq0 ra81
at rq0 miniroot
set rq1 ra81
at rq1 rq.dsk
set rq1 dis
set rq2 dis
set rq3 dis
set rp dis
set lpt dis
set rl dis
set tq dis
set tu dis
att ts 42-1.tap
set tti 7b
set tto 7b
load -o boot42 0
d r10 9
d r11 0
run 2
----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
And finally the boot42-2.ini

----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
set rq0 ra81
att rq0 rq.dsk
set rq1 dis
set rq2 dis
set rq3 dis
set rp dis
set lpt dis
set rl dis
set tq dis
set tu dis
att ts 42-1.tap
set tti 7b
set tto 7b
load -o boot42 0
d r10 9
d r11 0
run 2

----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
Here is what I have in my 'working directory'

-rw-r--r--   1 user  user  32670652 Jan 31 20:57 42-1.tap
-rw-r--r--   1 user  user     19296 Jan 31 09:43 boot42
-rw-r--r--   1 user  user       197 Jan 31 21:57 boot42-2.ini
-rw-r--r--   1 user  user       262 Jan 31 21:43 boot42.ini
-rw-r--r--   1 user  user   2099200 Jan 31 21:46 miniroot
-rwxr-xr-x   1 user  user    980132 Jan 29 16:28 vax780
-rw-r--r--   1 user  user     44544 Jan 29 16:28 vmb.exe

----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
Ok now lets start installing!

vax780 boot42.ini

VAX780 simulator V3.5-2
RQ: creating new file
Command not allowed

Boot
: ra(0,0)vmunix
199488+56036+51360 start 0x11a0
4.2 BSD UNIX #9: Wed Nov 2 16:00:29 PST 1983
real mem  = 8384512
avail mem = 7073792
using 102 buffers containing 835584 bytes of memory
mcr0 at tr1
mcr1 at tr2
uba0 at tr3
hk0 at uba0 csr 177440 vec 210, ipl 15
rk0 at hk0 slave 0
rk1 at hk0 slave 1
uda0 at uba0 csr 172150 vec 774, ipl 15
ra0 at uda0 slave 0
ra1 at uda0 slave 1
zs0 at uba0 csr 172520 vec 224, ipl 15
ts0 at zs0 slave 0
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
dz2 at uba0 csr 160120 vec 320, ipl 15
dz3 at uba0 csr 160130 vec 330, ipl 15
root on ra0
WARNING: should run interleaved swap with >= 2Mb
erase ^?, kill ^U, intr ^C
# cd /dev
# ./MAKEDEV ra1
# cd /
# disk=ra1 type=ra81 tape=ts xtr
Build root file system
Warning: 538 sector(s) in last cylinder unallocated
/dev/rra1a:     15884 sectors in 23 cylinders of 14 tracks, 51 sectors
        8.1Mb in 2 cyl groups (16 c/g, 5.85Mb/g, 1856 i/g)
super-block backups (for fsck -b#) at:
 32, 11520,
Check the file system
** /dev/rra1a
** 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
2 files, 9 used, 7420 free (20 frags, 925 blocks)
Rewind tape
Restore the dump image of the root
Warning: ./lost+found: File exists
** /dev/rra1a
** 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
313 files, 3568 used, 3861 free (21 frags, 480 blocks)
Root filesystem extracted

If this is a 780, update floppy
If this is a 730, update the cassette
# sync
# sync
#
Simulation stopped, PC: 80001620 (FFS #0,#20,8003ED44,R0)
sim> quit
Goodbye
----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<

Alright now we have used the miniroot to load the dump image onto the virgin
ra1 disk.  I still don't know why the copy program seems to fail, but
booting off of the miniroot works fine too.  Now we just need to format the
rest of the disk & restore /usr .  Im switching to the boot42-2.ini now.


----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
vax780 boot42-2.ini

VAX780 simulator V3.5-2
loading ra(0,0)boot
Boot
: ra(0,0)vmunix
199488+56036+51360 start 0x11a0
4.2 BSD UNIX #9: Wed Nov 2 16:00:29 PST 1983
real mem  = 8384512
avail mem = 7073792
using 102 buffers containing 835584 bytes of memory
mcr0 at tr1
mcr1 at tr2
uba0 at tr3
hk0 at uba0 csr 177440 vec 210, ipl 15
rk0 at hk0 slave 0
rk1 at hk0 slave 1
uda0 at uba0 csr 172150 vec 774, ipl 15
ra0 at uda0 slave 0
ra1 at uda0 slave 1
zs0 at uba0 csr 172520 vec 224, ipl 15
ts0 at zs0 slave 0
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
dz2 at uba0 csr 160120 vec 320, ipl 15
dz3 at uba0 csr 160130 vec 330, ipl 15
root on ra0
WARNING: should run interleaved swap with >= 2Mb
Automatic reboot in progress...
Tue Jan 31 13:46:41 PST 1984
Can't open checklist file: /etc/fstab
Automatic reboot failed... help!
erase ^?, kill ^U, intr ^C
# disk=ra
# name=ra0h;type=ra81
# cd /dev
# ./MAKEDEV ts0;sync
# cd /
# newfs $name $type
Warning: 28 sector(s) in last cylinder unallocated
/dev/rra0h:     759668 sectors in 1064 cylinders of 14 tracks, 51 sectors
        389.0Mb in 67 cyl groups (16 c/g, 5.85Mb/g, 2048 i/g)
super-block backups (for fsck -b#) at:
 32, 11512, 22992, 34472, 45952, 57432, 68912, 80392, 91872, 103352,
 114832, 126312, 137792, 149272, 160752, 172232, 182816, 194296, 205776,
217256,
 228736, 240216, 251696, 263176, 274656, 286136, 297616, 309096, 320576,
332056,
 343536, 355016, 365600, 377080, 388560, 400040, 411520, 423000, 434480,
445960,
 457440, 468920, 480400, 491880, 503360, 514840, 526320, 537800, 548384,
559864,
 571344, 582824, 594304, 605784, 617264, 628744, 640224, 651704, 663184,
674664,
 686144, 697624, 709104, 720584, 731168, 742648, 754128,
# mount /dev/$name /usr
# cd /usr
# mkdir sys
# cd sys
# mt rew
# mt fsf 3
# tar xpbf 20 /dev/rmt12
# cd ..
# mt fsf
# tar xpbf 20 /dev/rmt12
# cd /
# chmod 755 / /usr /usr/sys
# rm -rf sys
# ln -s /usr/sys sys
# umount /dev/$name
# fsck /dev/r$name
** /dev/rra0h
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
3735 files, 25550 used, 336310 free (166 frags, 84036 blocks)
# cd /etc
# cp fstab.ra81 fstab
# newfs ra0g ra81
Warning: 30 sector(s) in last cylinder unallocated
/dev/rra0g:     82080 sectors in 115 cylinders of 14 tracks, 51 sectors
        42.0Mb in 8 cyl groups (16 c/g, 5.85Mb/g, 2048 i/g)
super-block backups (for fsck -b#) at:
 32, 11512, 22992, 34472, 45952, 57432, 68912, 80392,
# sync
# reboot
syncing disks... done

Reboot requested, PC: 80021716 (ADDL2 #8,SP)
sim>
----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<
Now we are all set and ready to go! Here is 4.2BSD in multiuser under simh!

----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<

vax780 boot42-2.ini

VAX780 simulator V3.5-2
loading ra(0,0)boot
Boot
: ra(0,0)vmunix
199488+56036+51360 start 0x11a0
4.2 BSD UNIX #9: Wed Nov 2 16:00:29 PST 1983
real mem  = 8384512
avail mem = 7073792
using 102 buffers containing 835584 bytes of memory
mcr0 at tr1
mcr1 at tr2
uba0 at tr3
hk0 at uba0 csr 177440 vec 210, ipl 15
rk0 at hk0 slave 0
rk1 at hk0 slave 1
uda0 at uba0 csr 172150 vec 774, ipl 15
ra0 at uda0 slave 0
ra1 at uda0 slave 1
zs0 at uba0 csr 172520 vec 224, ipl 15
ts0 at zs0 slave 0
dz0 at uba0 csr 160100 vec 300, ipl 15
dz1 at uba0 csr 160110 vec 310, ipl 15
dz2 at uba0 csr 160120 vec 320, ipl 15
dz3 at uba0 csr 160130 vec 330, ipl 15
root on ra0
WARNING: should run interleaved swap with >= 2Mb
Automatic reboot in progress...
Tue Jan 31 13:54:16 PST 1984
/dev/ra0a: 326 files, 3569 used, 3860 free (20 frags, 480 blocks)
/dev/rra0h: 3735 files, 25550 used, 336310 free (166 frags, 84036 blocks)
/dev/rra0g: 2 files, 9 used, 77750 free (14 frags, 9717 blocks)
Tue Jan 31 13:54:36 PST 1984
check quotas: done.
local daemons: routed telnetd ftpd talkd syslog sendmail.
preserving editor files
clearing /tmp
standard daemons: update cron accounting mail printer.
starting network: rshd rexecd rlogind rwhod.
Tue Jan 31 13:54:39 PST 1984


4.2 BSD UNIX (myname)

login: root
4.2 BSD UNIX #9: Wed Nov 2 16:00:29 PST 1983

Would you like to play a game?

You have mail.
Don't login as root, use su
myname#

----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<

Once more again, thanks to Scott Taylor who pointed out how to boot the 780
with the stand programs rather than fighting with the media issues.  If
anyone can point me in a better direction in creating .tap images, Id
greatly appreciate it!

Special thanks to Bob Supnik for simh & the people from Berkley & AT&T that
made BSD!



More information about the Simh mailing list