Using Pidp-11
Set the switches on the PIDP11 console to 0102.
Boot the raspberry pi.
ssh jean@192.168.13.106 (raspbian ip)
(jean, xtof, pi will work if you know the password)
Execute on the pi
sudo bash startbsd211.sh
startbsd211.sh starts the pdp11 simulator and connects using screen to it.
[sudo] password for jean: PATH /sbin:/usr/sbin:/bin:/usr/bin pidp_bin bsd211.sh pidp_dir /opt/pidp11/bin pidp11 ./bsd211.sh Authorization required, but no authorization protocol specified xhost: unable to open display ":0" *** Start portmapper for RPC service, OK to fail if already running Ignoring SR switches, argument provided to script: ./bsd211.sh *** booting 211bsd *** *** Start client/server *** PiDP-11 FP 2023 PDP-11 simulator V4.0-0 Current REALCONS build Dec 19 2023 Disabling XQ DZ address=17760100-17760107*, vector=300-304*, BR5, lines=8 not attached, 7b Eth: opened OS device eth0 XU address=17774510-17774517, vector=120, BR5, MAC=08:00:2B:5F:7B:DA type=DELUA, throttle=disabled attached to eth0 ETH devices: eth0 eth0 (No description available) eth1 wlan0 (No description available) eth2 tap:tapN (Integrated Tun/Tap support) eth3 nat:{optional-nat-parameters} (Integrated NAT (SLiRP) support) eth4 udp:sourceport:remotehost:remoteport (Integrated UDP bridge support) Open ETH Devices: XU eth0 (No description available) Ethernet Device: Name: eth0 Reflections: 0 Self Loopbacks Sent: 2 Self Loopbacks Rcvd: 0 Host NIC Address: D8:3A:DD:CF:F1:21 Packets Sent: 2 Packets Received: 2 Asynch Interrupts: Disabled Read Queue: Count: 0 Read Queue: High: 2 Read Queue: Loss: 0 Peak Write Queue Size: 0 BPF Filter: (((ether dst 08:00:2B:5F:7B:DA))) Searching realcons controller "11/70" ... Connecting to host localhost ... boot.ini-60> attach -m dz 4000 Listening on port 4000 Modem control activated 70Boot from ra(0,0,0) at 0172150 :
Type unix to boot unix 2.11 bsd
Boot: unix
bootdev=02400 bootcsr=0172150 2.11 BSD UNIX #11: Sep 9 16:28:47 PDT 2019 root@Mon:/usr/src/sys/PIDP11 ra0: Ver 3 mod 3 ra0: RA82 size=1954000 attaching de0 csr 174510 attaching lo0 phys mem = 3932160 avail mem = 3553280 user mem = 307200 July 4 09:24:59 init: configure system dz 0 csr 160100 vector 310 attached ra 0 csr 172150 vector 154 vectorset attached rx 0 csr 177170 vector 264 attached tms 0 csr 174500 vector 260 vectorset attached cn 1 csr 176500 vector 300 skipped: No CSR. erase, kill ^U, intr ^C will execute stty -a old tty, speed 0 baud, 0 rows, 0 columns even odd -raw -nl echo -tandem -tabs -cbreak -rtscts erase kill intr quit start stop eof brk susp ^? ^U ^C ^\ ^Q ^S ^D <undef> ^Z dsusp rprnt flush werase lnext ^Y ^R ^O ^W ^V #
Now Unix 2.11 BSD is single user with only the root partition mounted.
Type Control D to start multiuser with tty lines enabled to login.
# Fast boot ... skipping disk checks
checking quotas: done.
Assuming NETWORKING system ...
add host pdp11.home.lan: gateway 127.0.0.1
add net default: gateway 192.168.13.1
starting system logger
Jul 4 09:28:26 pdp11 vmunix: ra0: Ver 3 mod 3
Jul 4 09:28:26 pdp11 vmunix: ra0: RA82 size=1954000
checking for core dump...
preserving editor files
clearing /tmp
standard daemons: update cron accounting.
starting network daemons: inetd rwhod printer.
starting local daemons:Jul 4 09:28:26 pdp11 July 4 09:28:26 lpd[80]: unable to get hostname for remote machine rpi
sendmail ntpd.
Fri Jul 5 02:39:42 PDT 2024
Jul 5 02:39:42 pdp11 July 5 02:39:42 init: kernel security level changed from 0 to 1
2.11 BSD UNIX (pdp11) (console)
login:#
http://modernhackers.com/create-users-on-bsd-2-11-unix/
I did use chpass to create a user with no password.
Login as that user and execute passwd....
2.11 BSD UNIX (pdp11) (console)
login: jean
Password:
Last login: Fri Jul 5 04:41:21 on console
2.11 BSD UNIX #11: Sep 9 16:28:47 PDT 2019
$ pwd
/home/jean
$ ls
NOT YET TESTED
After the pi is started :
Connected to the PDP-11 simulator DZ device, line 1
After 2,11 BSD is started multiuser
2.11 BSD UNIX (pdp11) (tty01) login:
# # name getty type status comments # console "/usr/libexec/getty std.9600" vt100 on secure # local tty00 "/usr/libexec/getty std.9600" vt100 on secure tty01 "/usr/libexec/getty std.9600" vt100 on secure tty02 "/usr/libexec/getty std.9600" vt100 on secure tty03 "/usr/libexec/getty std.9600" vt100 on secure tty04 "/usr/libexec/getty std.9600" vt100 on secure tty05 "/usr/libexec/getty std.9600" vt100 on secure tty06 "/usr/libexec/getty std.9600" vt100 on secure tty07 "/usr/libexec/getty std.9600" vt100 on secure
Only 8 serial lines are started
echo 'erase, kill ^U, intr ^C' #stty dec #stty erase stty pass8 echo will execute stty -a stty -a PATH=/bin:/sbin:/usr/sbin:/etc:/usr/ucb:/usr/bin:/usr/new export PATH HOME=/ export HOME export TERM
We assume only VT100 terminals. The option "stty pass8" is important to prevent parity errors on e.g. usb-serial adapters.
192.168.13.0/24
is your local network, 192.168.13.1 your local router, 192,168.13.106
your raspbian IP.
127.0.0.1 localhost
192.168.13.1 router.home.lan router
192.168.13.106 pidp70.home.lan pidp70
192.168.13.13 pdp11.home.lan pdp11
We use the local nameserver and google nameservers
domain home.lan nameserver 192.168.13.1 nameserver 8.8.8.8 nameserver 8.8.4.4
Change these lines
hostname=pdp11
netmask=255.255.255.0
broadcast=192.168.13.255
default=192.168.13.1
After starting in multiuser with the above file you should have a working
network interface and routing tables :
# ifconfig de0 de0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING> inet 192.168.13.2 netmask ffffff00 broadcast 192.168.13.255 # netstat -r Routing tables Destination Gateway Flags Refs Use Interface localhost localhost UH 0 0 lo0 pdp11.home.lan localhost UH 0 0 lo0 default compalhub.home UG 0 1 de0 192.168.13 pdp11.home.lan U 2 16 de0 # ping www.google.com PING www.google.com (74.125.133.103): 56 data bytes 64 bytes from 74.125.133.103: icmp_seq=0 ttl=58 time=33.334 ms 64 bytes from 74.125.133.103: icmp_seq=1 ttl=58 time=33.334 ms
You have to make sure that the DZ device is enabled in simh and connected
to the correct serial lines of the raspberry.
These commands enable a 8 line DZ and connect one line to /dev/ttyUSB0.
Add a similar line for every serial line devic you want to add.
Beware every letter is important.
set dz enabled set dz lines=8 set dz 7b set dz vector=310 attach -m dz 4000 attach -v dz line=1,connect=/dev/ttyUSB0 ;;show dz conn