Difference between revisions of "Installing 4.3 BSD RENO on SIMH"

From Computer History Wiki
Jump to: navigation, search
(install.ini)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is the procedure that I have used to install [[4.3 BSD]] onto [[SIMH]]'s vax 11/780 emulator.  Please note that this is 4.3 BSD RENO.
+
This is the procedure that I have used to install [[4.3 BSD]] onto [[SIMH]]'s [[MicroVAX II]] emulator.  Please note that this is 4.3 BSD RENO.
 +
 
 +
*NOTE that the tape does NOT boot under SIMH.  Instead you also need a 4.3 BSD system to build the bootable disk to be used for RENO.
  
  
Line 8: Line 10:
 
*A working perl interpeter to make the tape images.<br>
 
*A working perl interpeter to make the tape images.<br>
 
*A copy of gzip.<br>
 
*A copy of gzip.<br>
*A method of extracting the boot file from either the binaries (tar/gzip) or uudecode to extract it from [[boot42|here]].<br>
+
*A working installation of 4.3 BSD (stock).<br>
*A compiled binary of vax780 from [[SIMH]], along with the vmb.exe again from [[SIMH]].
+
*A compiled binary of vax from [[SIMH]], along with the ka655x.bin again from [[SIMH]].
  
  
Line 41: Line 43:
 
</pre>
 
</pre>
  
==  Boot 1. ==
+
==  Cross installation notes ==
 
 
We are going to use the following config file to start the first phase of the installation.  Save the following configuration into a file such as 'install.ini'.  Since we are going to boot directly into the miniroot the rq1 disk will hold the installation target.  Since the 'normal' way to install is to install from tape onto the first disk, we will have to add a device file uppon boot for the second disk, and be sure to point the xtr program to the second disk.
 
 
 
=== install.ini ===
 
<pre>
 
set rq0 ra82
 
at rq0 reno.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 43.tap
 
set tti 7b
 
set tto 7b
 
boot cpu
 
</pre>
 
  
=== Booting the emulator ===
+
For the fun of it I re-installed 4.3 then made a copy of the 4.3 disk & put
 +
it in the ra1 position, and used that as a starting place to manually
 +
restore reno onto ra1..
  
You then simply run the emulator and pass it the config file.
+
Here are my steps for anyone interested:
  
 
<pre>
 
<pre>
C:\4.3BSD\work>vax780.exe install.ini
+
-inside 4.3-----
 
+
newfs /dev/ra1a ra81
VAX780 simulator V3.8-0
+
mount /dev/ra1a /mnt2
RQ: creating new file
+
cd /mnt2
install.ini> set rq1 dis
+
mt rew
Command not allowed
+
mt fsf 2
loading ra(0,0)boot
+
restore r
Boot
+
newfs /dev/ra1g ra81
: ra(0,0)vmunix
+
mount /dev/ra1g /mnt2/usr
279844+80872+100324 start 0x12f8
+
cd /mnt2/usr
4.3 BSD UNIX #1: Fri Jun  6 19:55:29 PDT 1986
+
mt rew
    karels@monet.Berkeley.EDU:/usr/src/sys/GENERIC
+
mt fsf 3
real mem  = 8388608
+
tar xpbf 20 /dev/rmt12
SYSPTSIZE limits number of buffers to 140
+
----
avail mem = 7187456
 
using 140 buffers containing 524288 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
 
rk2 at hk0 slave 2
 
rk3 at hk0 slave 3
 
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
 
Changing root device to ra0a
 
WARNING: clock lost 121 days -- CHECK AND RESET THE DATE!
 
erase ^?, kill ^U, intr ^C
 
#
 
 
</pre>
 
</pre>
 
+
inject the following into /mnt2/etc/rc after export $PATH
=== Restoring the rootdump ===
 
 
 
From here we are now running from the miniroot.  The next steps are as follows:
 
  
 
<pre>
 
<pre>
# cd /dev
+
---8<---8<---8<---8<---8<
# ./MAKEDEV ra1
+
mount -uw /dev/ra0a /
# cd /
+
echo 'here we go'
# disk=ra1 type=ra81 tape=ts xtr
+
sh
 +
---8<---8<---8<---8<---8<
 
</pre>
 
</pre>
 
This will create a 'device' for the ra1 disk, then run the xtr program to restore the root dump.  Take note that the chgrp & chmod commands are not found, however the install will proceed as normal.
 
 
 
<pre>
 
<pre>
erase ^?, kill ^U, intr ^C
+
cp /mnt2/usr/mdec/* /mnt2/mdec
# cd /dev
 
# ./MAKEDEV ra1
 
./MAKEDEV: chgrp: not found
 
./MAKEDEV: chmod: not found
 
# 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, 0.3% fragmentation)
 
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
 
317 files, 4199 used, 3230 free (6 frags, 403 blocks, 0.1% 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
 
#
 
 
</pre>
 
</pre>
  
After this stage, I just sync the disk a few times, then halt the emulator (CONTROL+E) and exit out.  Now we are ready for stage two.
+
time to create /mnt2/etc/fstab
  
 
<pre>
 
<pre>
If this is a 730, update the cassette
+
---8<---8<---8<---8<---8<
# sync
+
cat > /mnt2/etc/fstab
# sync
+
/dev/ra0a / ufs rw 1 1
# sync
+
/dev/ra0g /usr ufs rw 1 2
 +
---8<---8<---8<---8<---8<
  
Simulation stopped, PC: 800018AE (BRB 800018A3)
+
touch /mnt2/var/spool/uucp/ERRORS
sim> q
+
touch /mnt2/etc/sendmail.cf
Goodbye
+
touch /mnt2/etc/named.boot
 +
touch /mnt2/etc/exports
  
C:\4.3BSD\work>
 
 
</pre>
 
</pre>
  
==  Boot 2. ==
+
comment out the following lines in /mnt2/etc/netstart
 
 
Now that the install disk is prepared, we need to use a different config file to reflect us going back to a single disk/tape configuration.  The new configuration is as follows:
 
  
=== boot.ini ===
 
 
<pre>
 
<pre>
set rq0 ra81
+
---8<---8<---8<---8<---8<
att rq0 rq.dsk
+
#ifconfig imp0 inet $hostname
set rq1 dis
+
#ifconfig ace0 inet $hostname netmask my-netmask
set rq2 dis
+
#ifconfig ex0 inet $hostname netmask my-netmask
set rq3 dis
+
#ifconfig en0 inet $hostname netmask my-netmask
set rp dis
+
---8<---8<---8<---8<---8<
set lpt dis
 
set rl dis
 
set tq dis
 
set tu dis
 
att ts 43.tap
 
set tti 7b
 
set tto 7b
 
load -o boot42 0
 
d r10 9
 
d r11 0
 
run 2
 
 
</pre>
 
</pre>
 
=== Booting the emulator ===
 
 
Now boot up the emulator with the boot.ini
 
  
 
<pre>
 
<pre>
C:\4.3BSD\work>vax780.exe boot.ini
+
umount /dev/ra1g
 
+
umount /dev/ra1a
VAX780 simulator V3.8-0
+
halt
loading ra(0,0)boot
 
Boot
 
: ra(0,0)vmunix
 
279844+80872+100324 start 0x12f8
 
4.3 BSD UNIX #1: Fri Jun  6 19:55:29 PDT 1986
 
    karels@monet.Berkeley.EDU:/usr/src/sys/GENERIC
 
real mem  = 8388608
 
SYSPTSIZE limits number of buffers to 140
 
avail mem = 7187456
 
using 140 buffers containing 524288 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
 
rk2 at hk0 slave 2
 
rk3 at hk0 slave 3
 
uda0 at uba0 csr 172150 vec 774, ipl 15
 
ra0 at uda0 slave 0
 
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
 
Changing root device to ra0a
 
Automatic reboot in progress...
 
Thu Feb  6 07:35:07 PST 1986
 
Can't open checklist file: /etc/fstab
 
Automatic reboot failed... help!
 
erase ^?, kill ^U, intr ^C
 
#
 
 
</pre>
 
</pre>
  
=== Preparing the disk ===
+
Now boot into 4.3RENO
 
 
Now we have to prep the machine for both the tape, and the type of disk.  Type in the following commands.
 
  
 
<pre>
 
<pre>
# disk=ra
+
mount /dev/ra0g /usr
# name=ra0h;type=ra81
+
cd /dev
# cd /dev
+
./MAKEDEV ts0
# sh ./MAKEDEV ts0;sync
+
./MAKEDEV dz0
# cd /
+
./MAKEDEV pty0
# newfs $name $type
 
 
</pre>
 
</pre>
  
The output will be like this:
 
 
<pre>
 
# disk=ra
 
# name=ra0h;type=ra81
 
# cd /dev
 
# sh ./MAKEDEV ts0;sync
 
# cd /
 
# newfs $name $type
 
Warning: 680 sector(s) in last cylinder unallocated
 
/dev/rra0h:    291346 sectors in 409 cylinders of 14 tracks, 51 sectors
 
        149.2Mb in 26 cyl groups (16 c/g, 5.85Mb/g, 2048 i/g)
 
super-block backups (for fsck -b#) at:
 
32, 11520, 23008, 34496, 45984, 57472, 68960, 80448, 91936, 103424,
 
114912, 126400, 137888, 149376, 160864, 172352, 182816, 194304, 205792, 217280,
 
228768, 240256, 251744, 263232, 274720, 286208,
 
#
 
</pre>
 
  
=== Restoring the usr slice ===
+
Now we can finally remove the lines we injected into /etc/rc & reboot.
  
The disk's /usr slice will not have been formatted.  We can not go ahead and mount it, and restore the /usr files.  Then we unmount the slice, and run fsck to make sure everything is ok.
+
Since we are still in the 11/780 mode, you will want to lay down a disklabel that the MicroVAX II can understand.
  
 
<pre>
 
<pre>
# mount /dev/$name /usr
+
disklabel -rw ra0 ra81 “Reno” /usr/mdec/rdboot /usr/mdec/bootra
# 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
 
 
</pre>
 
</pre>
  
Likewise, the output should be similar to this:
+
You should get something like this:
 
 
 
<pre>
 
<pre>
# mount /dev/$name /usr
+
---8<---8<---8<---8<---8<
# 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
 
4645 files, 35630 used, 102954 free (162 frags, 12849 blocks, 0.1% fragmentation)
 
#
 
</pre>
 
  
=== Configuring the fstab ===
+
VAX780 simulator V3.5-2
 
+
Listening on port 2311 (socket 7)
Now we just need to create the fstab, format the 'home' slice, and then we can reboot the emulator into multiuser mode. Enter in the following commands:
+
Modem control activated
 
+
loading ra(0,0)boot
<pre>
 
# cd /etc
 
# cp fstab.ra81 fstab
 
# newfs ra0g ra81
 
# sync
 
# reboot
 
</pre>
 
 
 
And the expected output is as follows:
 
 
 
<pre>
 
# cp fstab.ra81 fstab
 
# newfs ra0g ra81
 
/dev/rra0g:    515508 sectors in 722 cylinders of 14 tracks, 51 sectors
 
        263.9Mb in 46 cyl groups (16 c/g, 5.85Mb/g, 2048 i/g)
 
super-block backups (for fsck -b#) at:
 
32, 11520, 23008, 34496, 45984, 57472, 68960, 80448, 91936, 103424,
 
114912, 126400, 137888, 149376, 160864, 172352, 182816, 194304, 205792, 217280,
 
 
 
228768, 240256, 251744, 263232, 274720, 286208, 297696, 309184, 320672, 332160,
 
 
 
343648, 355136, 365600, 377088, 388576, 400064, 411552, 423040, 434528, 446016,
 
 
 
457504, 468992, 480480, 491968, 503456, 514944,
 
# sync
 
# reboot
 
syncing disks... done
 
 
 
Reboot requested, PC: 8002B03A (MOVL 8004F628,R0)
 
sim> q
 
Goodbye
 
</pre>
 
 
 
== First Multiuser Boot ==
 
 
 
Now we can just re-run the last command, and we should boot multiuser!  By default there is no root password.  Also the system will run fsck uppon boot, so depending on your host computer this could take a while.
 
 
 
 
 
<pre>
 
C:\4.3BSD\work>vax780.exe boot.ini
 
  
VAX780 simulator V3.8-0
 
loading ra(0,0)boot
 
 
Boot
 
Boot
: ra(0,0)vmunix
+
: /vmunix
279844+80872+100324 start 0x12f8
+
ra0: unlabeled
4.3 BSD UNIX #1: Fri Jun  6 19:55:29 PDT 1986
+
441420+129124+180204 start 0x239c
     karels@monet.Berkeley.EDU:/usr/src/sys/GENERIC
+
4.3 BSD Reno UNIX #4: Sat Jul 28 13:24:08 PDT 1990
real mem = 8388608
+
     trent at kerberos.berkeley.edu:/nbsd/usr/src/sys/GENERIC.allvax
SYSPTSIZE limits number of buffers to 140
+
real mem = 8388608
avail mem = 7187456
+
SYSPTSIZE limits number of buffers to 104
using 140 buffers containing 524288 bytes of memory
+
avail mem = 6887424
 +
using 104 buffers containing 524288 bytes of memory
 +
VAX 11/780, serial# 1234(0), hardware ECO level 7(112)
 
mcr0 at tr1
 
mcr0 at tr1
 
mcr1 at tr2
 
mcr1 at tr2
Line 395: Line 161:
 
rk3 at hk0 slave 3
 
rk3 at hk0 slave 3
 
uda0 at uba0 csr 172150 vec 774, ipl 15
 
uda0 at uba0 csr 172150 vec 774, ipl 15
ra0 at uda0 slave 0
+
uda0: version 3 model 6
 +
uda0: DMA burst size set to 4
 +
ra0 at uda0 slave 0: no disk label: ra81, size = 891072 sectors
 
zs0 at uba0 csr 172520 vec 224, ipl 15
 
zs0 at uba0 csr 172520 vec 224, ipl 15
 
ts0 at zs0 slave 0
 
ts0 at zs0 slave 0
 
dz0 at uba0 csr 160100 vec 300, ipl 15
 
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
 
 
Changing root device to ra0a
 
Changing root device to ra0a
 
Automatic reboot in progress...
 
Automatic reboot in progress...
Thu Feb  6 07:43:43 PST 1986
+
/dev/rra0a: 355 files, 3094 used, 4335 free (15 frags, 540 blocks, 0.2%
/dev/ra0a: 330 files, 4200 used, 3229 free (5 frags, 403 blocks, 0.1% fragmentat
+
fragmentation)
ion)
+
/dev/rra0g: 3705 files, 42280 used, 202945 free (489 frags, 25307 blocks,0.2% fragmentation)
/dev/rra0h: 4645 files, 35630 used, 102954 free (162 frags, 12849 blocks, 0.1% f
+
starting network
ragmentation)
+
add host myname.my.domain: gateway localhost
/dev/rra0g: 2 files, 9 used, 245216 free (16 frags, 30650 blocks, 0.0% fragmenta
+
starting system logger, time daemon.
tion)
 
Thu Feb  6 07:43:50 PST 1986
 
 
checking quotas: done.
 
checking quotas: done.
starting system logger
+
Feb  3 00:16:59 myname timed[31]: No network usable
checking for core dump... /a/crash: No such file or directory
 
 
 
Feb  6 07:43:51 myname savecore: /a/crash: No such file or directory
 
starting local daemons:Feb  6 07:43:51 myname named[53]: /etc/named.boot: No suc
 
h file or directory
 
named sendmail.
 
 
preserving editor files
 
preserving editor files
 
clearing /tmp
 
clearing /tmp
standard daemons: update cron accounting.
+
turning on accounting
starting network daemons: rwhod inetd printer.
+
accton: No such file or directory
Thu Feb  6 07:43:52 PST 1986
+
standard daemons: update cron.
Feb 6 07:43:54 myname getty: /dev/tty03: No such file or directory
+
starting network daemons: routed namedFeb 3 00:17:08 myname named[64]:
Feb 6 07:43:54 myname getty: /dev/tty02: No such file or directory
+
/etc/named.boot: No such file or directory
Feb  6 07:43:54 myname getty: /dev/tty05: No such file or directory
+
  inetd printer portmap mountdFeb  3 00:17:09 myname mountd:[77]: Can't open
Feb  6 07:43:54 myname getty: /dev/tty04: No such file or directory
+
/etc/exports
Feb  6 07:43:54 myname getty: /dev/tty07: No such file or directory
+
nfsd nfsiod sendmailcannot open /etc/sendmail.cf: No such file or directory
Feb  6 07:43:54 myname getty: /dev/tty06: No such file or directory
+
.
Feb  6 07:43:54 myname getty: /dev/tty00: No such file or directory
+
starting local daemons:.
Feb  6 07:43:54 myname getty: /dev/tty01: No such file or directory
+
Mon Feb  3 00:17:12 GMT 1986
 +
Feb  3 00:17:14 myname getty: /dev/tty07: Unknown error: -2146915672
 +
Feb  3 00:17:14 myname getty: /dev/tty06: Unknown error: 1024
 +
Feb  3 00:17:14 myname getty: /dev/tty02: Unknown error: 1024
 +
Feb  3 00:17:14 myname getty: /dev/tty00: Unknown error: 1024
 +
Feb  3 00:17:14 myname getty: /dev/tty01: Unknown error: 1024
  
  
 
4.3 BSD UNIX (myname.my.domain) (console)
 
4.3 BSD UNIX (myname.my.domain) (console)
  
login:
+
login: Feb  3 00:17:14 myname getty: /dev/tty05: Unknown error: 1024
 +
Feb  3 00:17:14 myname getty: /dev/tty03: Unknown error: 1024
 +
Feb  3 00:17:14 myname getty: /dev/tty04: Unknown error: 1024
 +
root
 +
Feb  3 00:17:21 myname login: ROOT LOGIN ON console
 +
Feb  3 00:17:21 myname login: ROOT LOGIN ON console
 +
Warning: no Kerberos tickets issued.
 +
4.3 BSD Reno UNIX #4: Sat Jul 28 13:24:08 PDT 1990
 +
 
 +
Would you like to play a game?
 +
 
 +
TERM = (unknown)
 +
---8<---8<---8<---8<---8<
 
</pre>
 
</pre>
 +
Unfortunately the dz0 doesn't seem to work...
 +
 +
And for completeness here is the config file I used to go between 4.3 & 4.3 RENO
 +
 +
<pre>
 +
;4.3BSD RENO
 +
;Note you can find the install instructions in the usr.tar
 +
;/usr/doc/smm/01.setup/2.t
 +
;
 +
;*NOTE that 4.3BSD RENO has only been tested with the VAX 11/780
 +
;emulator simh v3-5.2
 +
;Setup the RQ controller with a single ra81 disk. AFAIK 4.3 doesn't support
 +
;anything larger.
  
 +
;Use this set to stage the RENO install with 2 disks
 +
;set rq0 ra81
 +
;att rq0 43/ra81.dsk
 +
;set rq1 ra81
 +
;att rq1 43RENO/ra81.dsk
  
Now we can simply logon as root.
+
;Use this set to boot into RENO
 +
set rq0 ra81
 +
att rq0 43RENO/ra81.dsk
 +
set rq1 dis
  
<pre>
+
set rq2 dis
login: root
+
set rq3 dis
Feb 6 07:43:56 myname login: ROOT LOGIN console
+
;Too many devices confuse BSD so disable them. Also not that the hp works
4.3 BSD UNIX #1: Fri Jun 6 19:55:29 PDT 1986
+
;in standalone, but causes BSD to hang..
 +
set rp dis
 +
set lpt dis
 +
set rl dis
 +
set tq dis
 +
set tu dis
 +
 
 +
;Install tape, the FORMAT document describes 3 tapes for 4.3BSD RENO
 +
at ts 43RENO/reno.tap
 +
;Install tapes, the FORMAT document describes 3 tapes for 4.3BSD
 +
;at ts 43/43-1.tap
 +
;at ts 43/43-2.tap
 +
;at ts 43/43-3.tap
 +
 
 +
;Once Installed you can disable the tape drive, or just leave it
 +
;alone.. Its up to you.
 +
;set ts dis
 +
;
 +
;Set the console to 7bit for 'normal' operations.
 +
set tti 7b
 +
set tto 7b
 +
;Setup the dz tty's with 8 lines. You can telnet to the localhost on
 +
;port 2311 and 'login'. Usefull until the networking gets sorted out.
 +
set dz 7b
 +
set dz lines=8
 +
at -m dz0 2311
 +
;
 +
;
 +
;Ethernet support... currently broken :|
 +
;set xu ena
 +
;
 +
;Until I can figure out how to boot off of tape, I extract the following
 +
;standalone programs and 'inject' them into core and run them directly
 +
;sure its cheating, but it works.. for now.
 +
;*note that these standalone programs are from 43 not RENO.
 +
;
 +
;Uncomment the one line to run the 'copy' program
 +
;load -o copy43 0
 +
 
 +
;Uncomment the next 3 lines to run the interactive boot program
 +
;load -o boot43 0
 +
;d r10 9
 +
;d r11 0
  
Would you like to play a game?
+
;Uncomment the next 3 lines to run the bootra (less prompting the user!)
 +
program.
 +
load -o bootra43 0
 +
d r10 9
 +
d r11 0
  
Don't login as root, use su
+
;Run the emulator!
myname#
+
run 2
 
</pre>
 
</pre>
 
From here you can explore the system.  All of the man pages are installed, and there is enough of a base system to get going.  Sadly there are bugs in how [[4.2 BSD]] and how [[SIMH]] interact with  the networking, and it is not reliable. As sad as it is to be an 'island' you can however setup the dz serial interface to allow more than one user.
 
  
 
=== Enabling remote users ===
 
=== Enabling remote users ===
Line 477: Line 316:
  
  
[[Category:Tutorials]]
+
[[Category:SIMH Tutorials]]

Latest revision as of 14:40, 18 August 2009

This is the procedure that I have used to install 4.3 BSD onto SIMH's MicroVAX II emulator. Please note that this is 4.3 BSD RENO.

  • NOTE that the tape does NOT boot under SIMH. Instead you also need a 4.3 BSD system to build the bootable disk to be used for RENO.


Requirements

You will need the following materials to put together a 4.3 BSD RENO installation:

  • A working perl interpeter to make the tape images.
  • A copy of gzip.
  • A working installation of 4.3 BSD (stock).
  • A compiled binary of vax from SIMH, along with the ka655x.bin again from SIMH.


You will need the following files from any 4 BSD archive from the 4.3BSD-Reno directory. I have used the files from archive.huihoo.org. You can use whatever method you like to download them, wget, a web browser etc..


contrib.tar.gz
miniroot.gz
rootdump.gz
src.tar.gz
srcsys.tar.gz
stand.gz
usr.tar.gz

Preparing for installation

With the files downloaded you will need to uncompress them all and then create the tape file.

The following command will decompress the tape files.

gzip -d *.gz

The tape needs to be created with the mkdisttap.pl program. Simply run the program and redirect it into a file called 42.tap .

% ./mkdisttap.pl > 43reno.tap
% ls -l 43reno.tap
-rw-r--r--  1 Neozeed  None_ploc  151832520 Feb  6 22:25 43reno.tap

Cross installation notes

For the fun of it I re-installed 4.3 then made a copy of the 4.3 disk & put it in the ra1 position, and used that as a starting place to manually restore reno onto ra1..

Here are my steps for anyone interested:

-inside 4.3-----
newfs /dev/ra1a ra81
mount /dev/ra1a /mnt2
cd /mnt2
mt rew
mt fsf 2
restore r
newfs /dev/ra1g ra81
mount /dev/ra1g /mnt2/usr
cd /mnt2/usr
mt rew
mt fsf 3
tar xpbf 20 /dev/rmt12
----

inject the following into /mnt2/etc/rc after export $PATH

---8<---8<---8<---8<---8<
mount -uw /dev/ra0a /
echo 'here we go'
sh
---8<---8<---8<---8<---8<
cp /mnt2/usr/mdec/* /mnt2/mdec

time to create /mnt2/etc/fstab

---8<---8<---8<---8<---8<
cat > /mnt2/etc/fstab
/dev/ra0a	/	ufs	rw	1 1
/dev/ra0g	/usr	ufs	rw	1 2
---8<---8<---8<---8<---8<

touch /mnt2/var/spool/uucp/ERRORS
touch /mnt2/etc/sendmail.cf
touch /mnt2/etc/named.boot
touch /mnt2/etc/exports

comment out the following lines in /mnt2/etc/netstart

---8<---8<---8<---8<---8<
#ifconfig imp0 inet $hostname
#ifconfig ace0 inet $hostname netmask my-netmask
#ifconfig ex0 inet $hostname netmask my-netmask
#ifconfig en0 inet $hostname netmask my-netmask
---8<---8<---8<---8<---8<
umount /dev/ra1g
umount /dev/ra1a
halt

Now boot into 4.3RENO

mount /dev/ra0g /usr
cd /dev
./MAKEDEV ts0
./MAKEDEV dz0
./MAKEDEV pty0


Now we can finally remove the lines we injected into /etc/rc & reboot.

Since we are still in the 11/780 mode, you will want to lay down a disklabel that the MicroVAX II can understand.

disklabel -rw ra0 ra81 “Reno” /usr/mdec/rdboot /usr/mdec/bootra

You should get something like this:

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

VAX780 simulator V3.5-2
Listening on port 2311 (socket 7)
Modem control activated
loading ra(0,0)boot

Boot
: /vmunix
ra0: unlabeled
441420+129124+180204 start 0x239c
4.3 BSD Reno UNIX #4: Sat Jul 28 13:24:08 PDT 1990
    trent at kerberos.berkeley.edu:/nbsd/usr/src/sys/GENERIC.allvax
real mem = 8388608
SYSPTSIZE limits number of buffers to 104
avail mem = 6887424
using 104 buffers containing 524288 bytes of memory
VAX 11/780, serial# 1234(0), hardware ECO level 7(112)
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
rk2 at hk0 slave 2
rk3 at hk0 slave 3
uda0 at uba0 csr 172150 vec 774, ipl 15
uda0: version 3 model 6
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: no disk label: ra81, size = 891072 sectors
zs0 at uba0 csr 172520 vec 224, ipl 15
ts0 at zs0 slave 0
dz0 at uba0 csr 160100 vec 300, ipl 15
Changing root device to ra0a
Automatic reboot in progress...
/dev/rra0a: 355 files, 3094 used, 4335 free (15 frags, 540 blocks, 0.2%
fragmentation)
/dev/rra0g: 3705 files, 42280 used, 202945 free (489 frags, 25307 blocks,0.2% fragmentation)
starting network
add host myname.my.domain: gateway localhost
starting system logger, time daemon.
checking quotas: done.
Feb  3 00:16:59 myname timed[31]: No network usable
preserving editor files
clearing /tmp
turning on accounting
accton: No such file or directory
standard daemons: update cron.
starting network daemons: routed namedFeb  3 00:17:08 myname named[64]:
/etc/named.boot: No such file or directory
 inetd printer portmap mountdFeb  3 00:17:09 myname mountd:[77]: Can't open
/etc/exports
 nfsd nfsiod sendmailcannot open /etc/sendmail.cf: No such file or directory
.
starting local daemons:.
Mon Feb  3 00:17:12 GMT 1986
Feb  3 00:17:14 myname getty: /dev/tty07: Unknown error: -2146915672
Feb  3 00:17:14 myname getty: /dev/tty06: Unknown error: 1024
Feb  3 00:17:14 myname getty: /dev/tty02: Unknown error: 1024
Feb  3 00:17:14 myname getty: /dev/tty00: Unknown error: 1024
Feb  3 00:17:14 myname getty: /dev/tty01: Unknown error: 1024


4.3 BSD UNIX (myname.my.domain) (console)

login: Feb  3 00:17:14 myname getty: /dev/tty05: Unknown error: 1024
Feb  3 00:17:14 myname getty: /dev/tty03: Unknown error: 1024
Feb  3 00:17:14 myname getty: /dev/tty04: Unknown error: 1024
root
Feb  3 00:17:21 myname login: ROOT LOGIN ON console
Feb  3 00:17:21 myname login: ROOT LOGIN ON console
Warning: no Kerberos tickets issued.
4.3 BSD Reno UNIX #4: Sat Jul 28 13:24:08 PDT 1990

Would you like to play a game?

TERM = (unknown)
---8<---8<---8<---8<---8<

Unfortunately the dz0 doesn't seem to work...

And for completeness here is the config file I used to go between 4.3 & 4.3 RENO

;4.3BSD RENO
;Note you can find the install instructions in the usr.tar
;/usr/doc/smm/01.setup/2.t
;
;*NOTE that 4.3BSD RENO has only been tested with the VAX 11/780
;emulator simh v3-5.2
;Setup the RQ controller with a single ra81 disk. AFAIK 4.3 doesn't support
;anything larger.

;Use this set to stage the RENO install with 2 disks
;set rq0 ra81
;att rq0 43/ra81.dsk
;set rq1 ra81
;att rq1 43RENO/ra81.dsk

;Use this set to boot into RENO
set rq0 ra81
att rq0 43RENO/ra81.dsk
set rq1 dis

set rq2 dis
set rq3 dis
;Too many devices confuse BSD so disable them.  Also not that the hp works
;in standalone, but causes BSD to hang..
set rp dis
set lpt dis
set rl dis
set tq dis
set tu dis

;Install tape, the FORMAT document describes 3 tapes for 4.3BSD RENO
at ts 43RENO/reno.tap
;Install tapes, the FORMAT document describes 3 tapes for 4.3BSD
;at ts 43/43-1.tap
;at ts 43/43-2.tap
;at ts 43/43-3.tap

;Once Installed you can disable the tape drive, or just leave it
;alone.. Its up to you.
;set ts dis
;
;Set the console to 7bit for 'normal' operations.
set tti 7b
set tto 7b
;Setup the dz tty's with 8 lines. You can telnet to the localhost on
;port 2311 and 'login'.  Usefull until the networking gets sorted out.
set dz 7b
set dz lines=8
at -m dz0 2311
;
;
;Ethernet support... currently broken :|
;set xu ena
;
;Until I can figure out how to boot off of tape, I extract the following
;standalone programs and 'inject' them into core and run them directly
;sure its cheating, but it works.. for now.
;*note that these standalone programs are from 43 not RENO.
;
;Uncomment the one line to run the 'copy' program
;load -o copy43 0

;Uncomment the next 3 lines to run the interactive boot program
;load -o boot43 0
;d r10 9
;d r11 0

;Uncomment the next 3 lines to run the bootra (less prompting the user!)
program.
load -o bootra43 0
d r10 9
d r11 0

;Run the emulator!
run 2

Enabling remote users

Inside of BSD 4.3 you will have to create the dz device files. Simply logon as root, and run the following commands:

cd /dev
sh ./MAKEDEV dz0

Next, shutdown the OS, and add the following lines into the boot.ini (just make sure they are above the boot command or it'll not work correctly..). This will allow for 8 users to connect on tcp port 8888.

set dz lines=8
att dz 8888
set dz 7b

I would also recommend to windows users, either putty, or syncterm. The default telnet client sucks.