From 40ba7029d4688bfc01d4ad37dfa96790a89b2a9f Mon Sep 17 00:00:00 2001 From: wfjm Date: Sun, 2 Jul 2017 14:26:41 +0200 Subject: [PATCH] Added Unix 7th Edition oskit; rename 5th Edition kit - u5ed_rk: renamed from unix-v5_rk - u7ed_rp: added, very preliminary, boots on CmodA7, further testing be be done --- doc/CHANGELOG.md | 3 + tools/oskit/u5ed_rk/README.md | 12 +-- tools/oskit/u5ed_rk/u5ed_rk_boot.scmd | 8 +- tools/oskit/u5ed_rk/u5ed_rk_boot.tcl | 8 +- tools/oskit/u7ed_rp/.gitignore | 4 + tools/oskit/u7ed_rp/README.md | 112 ++++++++++++++++++++++++++ tools/oskit/u7ed_rp/u7ed_rp_boot.scmd | 20 +++++ tools/oskit/u7ed_rp/u7ed_rp_boot.tcl | 24 ++++++ 8 files changed, 177 insertions(+), 14 deletions(-) create mode 100644 tools/oskit/u7ed_rp/.gitignore create mode 100644 tools/oskit/u7ed_rp/README.md create mode 100644 tools/oskit/u7ed_rp/u7ed_rp_boot.scmd create mode 100644 tools/oskit/u7ed_rp/u7ed_rp_boot.tcl diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index e9f25c70..e1029ce6 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -18,6 +18,9 @@ The full set of tests is only run for tagged releases. ### Summary +- Added Unix 7th Edition oskit; rename 5th Edition kit + - u5ed_rk: renamed from unix-v5_rk + - u7ed_rp: added, very preliminary, boots on CmodA7, further testing be be done - Add Digilent Cmod A7 (35 die size) support - general board support - c7_sram_memctl: SRAM memory controller (incl tb) diff --git a/tools/oskit/u5ed_rk/README.md b/tools/oskit/u5ed_rk/README.md index f89ab4b8..8d91585e 100644 --- a/tools/oskit/u5ed_rk/README.md +++ b/tools/oskit/u5ed_rk/README.md @@ -1,4 +1,4 @@ -## Notes on oskit: Unix V5 system on RK05 volumes +## Notes on oskit: Unix 5th Edition system on RK05 volumes ### General remarks See notes in [w11a_os_guide.md](../../../doc/w11a_os_guide.md) on @@ -9,14 +9,14 @@ See notes in [w11a_os_guide.md](../../../doc/w11a_os_guide.md) on ### Installation A disk set is available from -http://www.retro11.de/data/oc_w11/oskits/unix_v5_rkset.tgz +http://www.retro11.de/data/oc_w11/oskits/u5ed_rkset.tgz Download, unpack and copy the disk images (*.dsk), e.g. ```bash - cd $RETROBASE/tools/oskit/unix-v5_rk - wget http://www.retro11.de/data/oc_w11/oskits/unix_v5_rkset.tgz - tar -xzf unix_v5_rkset.tgz + cd $RETROBASE/tools/oskit/u5ed_rk + wget http://www.retro11.de/data/oc_w11/oskits/u5ed_rkset.tgz + tar -xzf u5ed_rkset.tgz ``` ### Usage @@ -25,7 +25,7 @@ Download, unpack and copy the disk images (*.dsk), e.g. (see section Rlink in [w11a_os_guide.md](../../../doc/w11a_os_guide.md)) ``` boot script: uv5_rk_boot.tcl - example: ti_w11 @uv5_rk_boot.tcl + example: ti_w11 @u5ed_rk_boot.tcl where is the proper option set for the board. ``` diff --git a/tools/oskit/u5ed_rk/u5ed_rk_boot.scmd b/tools/oskit/u5ed_rk/u5ed_rk_boot.scmd index 0de24ba8..20de83f9 100644 --- a/tools/oskit/u5ed_rk/u5ed_rk_boot.scmd +++ b/tools/oskit/u5ed_rk/u5ed_rk_boot.scmd @@ -1,15 +1,15 @@ -; $Id: uv5_rk_boot.scmd 519 2013-05-12 20:44:16Z mueller $ +; $Id: u5ed_rk_boot.scmd 922 2017-07-02 12:13:36Z mueller $ ; -; Setup file for Unix V5 RK05 based system +; Setup file for Unix 5th Edition RK05 based system ; ; Usage: ; -; pdp11 uv5_rk_boot.scmd +; pdp11 u5ed_rk_boot.scmd ; do ../../simh/setup_w11a_min.scmd set tto 7b set dlo0 7b ; -att rk0 unix_v5_rk.dsk +att rk0 u5ed_rk.dsk ; boo rk0 diff --git a/tools/oskit/u5ed_rk/u5ed_rk_boot.tcl b/tools/oskit/u5ed_rk/u5ed_rk_boot.tcl index c786f5da..47de26da 100644 --- a/tools/oskit/u5ed_rk/u5ed_rk_boot.tcl +++ b/tools/oskit/u5ed_rk/u5ed_rk_boot.tcl @@ -1,11 +1,11 @@ -# $Id: uv5_rk_boot.tcl 835 2016-12-31 10:00:14Z mueller $ +# $Id: u5ed_rk_boot.tcl 922 2017-07-02 12:13:36Z mueller $ # -# Setup file for Unix V5 RK05 based system +# Setup file for Unix 5th Edition RK05 based system # # Usage: # # console_starter -d DL0 & -# ti_w11 -xxx @uv5_boot.tcl ( -xxx depends on sim or fpga connect) +# ti_w11 -xxx @u5ed_rk_boot.tcl ( -xxx depends on sim or fpga connect) # setup w11 cpu rutil::dohook "preinithook" @@ -16,7 +16,7 @@ rw11::setup_tt "cpu0" ndl 1 to7bit 1 rw11::setup_lp # mount disks -cpu0rka0 att unix_v5_rk.dsk +cpu0rka0 att u5ed_rk.dsk # and boot rutil::dohook "preboothook" diff --git a/tools/oskit/u7ed_rp/.gitignore b/tools/oskit/u7ed_rp/.gitignore new file mode 100644 index 00000000..24426de9 --- /dev/null +++ b/tools/oskit/u7ed_rp/.gitignore @@ -0,0 +1,4 @@ +*.dat +*hook.tcl +*license.txt +*license.pdf diff --git a/tools/oskit/u7ed_rp/README.md b/tools/oskit/u7ed_rp/README.md new file mode 100644 index 00000000..34ea8245 --- /dev/null +++ b/tools/oskit/u7ed_rp/README.md @@ -0,0 +1,112 @@ +## Notes on oskit: Unix 7th Edition system on RP04 volumes + +### Proviso + +The current disk image is the plain 'Keith_Bostic' distribution +**without any adoptions of further configurations**. +Especially no program was rebuild to use the floating point simulator. + +**All programs using floating point arithmetic will core dump !!** + +Most in fact work fine because floating point is rarely used, but a simple +``` + awk "BEGIN { print 1/100 }" /dev/null +``` + +will generate a `core` because awk for example does use floating point +arithmetic. + +**So far only minimal testing on the CmodA7 system (672 kB memory) done.** + +### General remarks +See notes in [w11a_os_guide.md](../../../doc/w11a_os_guide.md) on + 1. I/O emulation setup + 2. FPGA Board setup + 3. Rlink and Backend Server setup + 4. Legal terms + +### Installation +A disk set is available from +http://www.retro11.de/data/oc_w11/oskits/u7ed_rpset.tgz + +Download, unpack and copy the disk images (*.dsk), e.g. +```bash + + cd $RETROBASE/tools/oskit/u7ed_rp + wget http://www.retro11.de/data/oc_w11/oskits/u7ed_rpset.tgz + tar -xzf u7ed_rpset.tgz +``` + +### Usage + +- Start backend server and boot system + (see section Rlink in [w11a_os_guide.md](../../../doc/w11a_os_guide.md)) + ``` + boot script: u7ed_rp_boot.tcl + example: ti_w11 @u7ed_rp_boot.tcl + where is the proper option set for the board. + ``` + +- Hit `` in the xterm window to connect to backend server. + The boot dialog in the console `xterm` window will look like + (required input is in `{..}`, with `{}` denoting a carriage return: + ``` + {boot} + Boot + : {hp(0,0)unix} + mem = 611520 + # {^D} + RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE + IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH + WESTERN ELECTRIC COMPANY, INC. + WED DEC 31 19:02:00 EST 1969 + login: {root} + Password: {root} + ``` + + **Note**: one has to type `boot` to start the 1st level boot loader. There + is no initial prompt ! Just type `boot` followed by an enter to get going. + + Now you are at the shell prompt and can exercise the system, e.g. + ``` + # {ls -al} + total 542 + drwxr-xr-x 8 root 288 Dec 31 19:01 . + drwxr-xr-x 8 root 288 Dec 31 19:01 .. + drwxrwxr-x 2 bin 2480 May 5 05:59 bin + -rwxrwxr-x 1 bin 6900 May 16 01:33 boot + drwxr-xr-x 2 root 304 Dec 31 19:01 dev + drwxr-xr-x 2 root 336 Dec 31 19:03 etc + -rwxrwxr-x 1 sys 53302 Jun 8 16:56 hphtunix + -rwxrwxr-x 1 sys 52850 Jun 8 16:56 hptmunix + drwxrwxr-x 2 bin 336 Jan 22 19:58 lib + -rwxrwxr-x 1 sys 51790 Jun 8 16:56 rphtunix + -rwxrwxr-x 1 sys 51274 Jun 8 16:56 rptmunix + drwxrwxrwx 2 bin 304 Jun 8 16:52 tmp + -rwxrwxr-x 1 root 52850 Dec 31 19:01 unix + drwxr-xr-x 15 bin 304 May 17 01:02 usr + + # {ps aux} + PID TTY TIME CMD + 16 co 0:00 -sh + 17 co 0:00 ps aux + 15 ? 0:00 /etc/cron + # {df} + /dev/rp0 5311 + /dev/rp3 130595 + ``` + + There is no `halt` or `shutdown` command, the proper way to shutdown + is to do a few `sync` + ``` + {sync} + {sync} + {sync} + ``` + + and just terminate the server session with a + ``` + .qq + ``` + + command. diff --git a/tools/oskit/u7ed_rp/u7ed_rp_boot.scmd b/tools/oskit/u7ed_rp/u7ed_rp_boot.scmd new file mode 100644 index 00000000..8af64456 --- /dev/null +++ b/tools/oskit/u7ed_rp/u7ed_rp_boot.scmd @@ -0,0 +1,20 @@ +; $Id: u7ed_rp_boot.scmd 921 2017-07-02 11:55:14Z mueller $ +; +; Setup file for Unix 7th Edition RP04 based system +; +; Usage: +; +; pdp11 u7ed_rp_boot.scmd +; +;;;do ../../simh/setup_w11a_max.scmd +set cpu 11/70 nofpp +set cpu idle +; +set tto 7b +set dlo0 7b +; +set rp0 rp04 +; +att rp0 u7ed_rp.dsk +; +boo rp0 diff --git a/tools/oskit/u7ed_rp/u7ed_rp_boot.tcl b/tools/oskit/u7ed_rp/u7ed_rp_boot.tcl new file mode 100644 index 00000000..d4ca64e7 --- /dev/null +++ b/tools/oskit/u7ed_rp/u7ed_rp_boot.tcl @@ -0,0 +1,24 @@ +# $Id: u7ed_rp_boot.tcl 921 2017-07-02 11:55:14Z mueller $ +# +# Setup file for Unix 7th Edition RP04 based system +# +# Usage: +# +# console_starter -d DL0 & +# ti_w11 -xxx @u7ed_rp_boot.tcl ( -xxx depends on sim or fpga connect) + +# setup w11 cpu +rutil::dohook "preinithook" +puts [rlw] + +# setup tt,lp (uses only 1 console; uses parity -> use 7 bit mode) +rw11::setup_tt "cpu0" ndl 1 to7bit 1 +rw11::setup_lp + +# mount disks +cpu0rpa0 set type rp04 +cpu0rpa0 att u7ed_rp.dsk + +# and boot +rutil::dohook "preboothook" +cpu0 boot rpa0