{"id":353,"date":"2011-11-13T23:43:22","date_gmt":"2011-11-13T22:43:22","guid":{"rendered":"http:\/\/pdp2011.sytse.net\/wordpress\/?page_id=353"},"modified":"2011-11-13T23:43:22","modified_gmt":"2011-11-13T22:43:22","slug":"unix-v7","status":"publish","type":"page","link":"https:\/\/pdp2011.sytse.net\/wordpress\/pdp-11\/sessions\/unix-v7\/","title":{"rendered":"Unix V7"},"content":{"rendered":"<p>Session captured from a Nexys-2 board configured with an 11\/45, RH11 + RP06, console, and extra KL11. The RP06 image was created from the original V7 distribution tape using SIMH.<br \/>\nIn this session, we see how the extra KL11 serial controller is configured into the kernel; after that, the kernel is recompiled, some settings are changed, and the system is rebooted with the new kernel.<\/p>\n<pre>Hello, world [t44]: cpu 11\/45\nboot from rp:\n<strong>boot<\/strong>\nBoot\n: <strong>hp(0,0)unix<\/strong>\nmem = 177344\n# RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE\nIS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH\nWESTERN ELECTRIC COMPANY, INC.\nWED DEC 31 19:04:22 EST 1969\nlogin: <strong>root<\/strong>\nPassword:\nYou have mail.\n# <strong>cd \/usr\/sys\/conf<\/strong>\n# <strong>ls<\/strong>\nc.c\nc.o\nhphtconf\nhptmconf\nl.o\nl.s\nmakefile\nmch.o\nmch.s\nmch0.s\nmkconf\nmkconf.c\nrkhtconf\nrktmconf\nrp1conf\nrphtconf\nrptmconf\ntconf\n# <strong>cp hphtconf myconf<\/strong>\n# <strong>cat myconf<\/strong>\nhp\nroot hp 0\nswap hp 1\nswplo 0\nnswap 8778\nht\n# <strong>ed myconf<\/strong>\n45\n<strong>p<\/strong>\nht\n<strong>s\/ht\/1kl\/<\/strong>\n<strong>w<\/strong>\n46\n<strong>1,$p<\/strong>\nhp\nroot hp 0\nswap hp 1\nswplo 0\nnswap 8778\n1kl\n<strong>q<\/strong>\n# <strong>cd ..\/dev<\/strong>\n# <strong>ed kl.c<\/strong>\n3629\n<strong>1,40p<\/strong>\n\/*\n *   KL\/DL-11 driver\n *\/\n#include \"..\/h\/param.h\"\n#include \"..\/h\/conf.h\"\n#include        \"..\/h\/dir.h\"\n#include \"..\/h\/user.h\"\n#include \"..\/h\/tty.h\"\n#include \"..\/h\/systm.h\"\n\/* base address *\/\n#define KLADDR  ((struct device *)0177560)      \/* console *\/\n#define KLBASE  ((struct device *)0176500)      \/* kl and dl11-a *\/\n#define DLBASE  ((struct device *)0175610)      \/* dl-e *\/\n#define NKL11   1\n#define NDL11   0\n#define DSRDY   02\n#define RDRENB  01\n#define DLDELAY 4       \/* Extra delay for DL's (double buff) *\/\n#define NL1     000400\n#define NL2     001000\n#define CR2     020000\n#define FF1     040000\n#define TAB1    002000\nstruct  tty kl11[NKL11+NDL11];\nint     klstart();\nint     ttrstrt();\nchar    partab[];\nstruct device {\n        int     rcsr;\n        int     rbuf;\n        int     tcsr;\n        int     tbuf;\n};\nklopen(dev, flag)\ndev_t dev;\n<strong>15<\/strong>\n#define NKL11   1\n<strong>s\/11 1\/11 2\/<\/strong>\n<strong>p<\/strong>\n#define NKL11   2\n<strong>w<\/strong>\n3629\n<strong>q<\/strong>\n# <strong>cd ..\/conf<\/strong>\n# <strong>ls<\/strong>\nc.c\nc.o\nhphtconf\nhptmconf\nl.o\nl.s\nmakefile\nmch.o\nmch.s\nmch0.s\nmkconf\nmkconf.c\nmyconf\nrkhtconf\nrktmconf\nrp1conf\nrphtconf\nrptmconf\ntconf\n# <strong>.\/mkconf &lt;myconf<\/strong>\nconsole at 60\nclock at 100\nclock at 104\nparity at 114\nhp at 254\nkl at 300\n# <strong>make all<\/strong>\ncd ..\/sys; cc -c -O *.c; mklib; rm *.o\nacct.c:\nalloc.c:\nclock.c:\nfakemx.c:\nfio.c:\niget.c:\nmachdep.c:\nmain.c:\nmalloc.c:\nnami.c:\npipe.c:\nprf.c:\nprim.c:\nrdwri.c:\nsig.c:\nslp.c:\nsubr.c:\nsys1.c:\nsys2.c:\nsys3.c:\nsys4.c:\nsysent.c:\ntext.c:\ntrap.c:\nureg.c:\ncd ..\/dev; cc -c -O *.c; mklib; rm *.o\nbio.c:\ncat.c:\ndc.c:\ndh.c:\ndhdm.c:\ndhfdm.c:\ndkleave.c:\ndn.c:\ndsort.c:\ndu.c:\ndz.c:\nhp.c:\nht.c:\nkl.c:\nmem.c:\nmx1.c:\nmx2.c:\npartab.c:\npk0.c:\npk1.c:\npk2.c:\npk3.c:\nrf.c:\nrk.c:\nrl.c:\nrp.c:\nsys.c:\ntc.c:\ntm.c:\ntty.c:\nvp.c:\nvs.c:\n# <strong>make<\/strong>\nas - -o l.o l.s\ncc  -c c.c\nld -o unix -X -i l.o mch.o c.o ..\/sys\/LIB1 ..\/dev\/LIB2\n# <strong>ls<\/strong>\nc.c\nc.o\nhphtconf\nhptmconf\nl.o\nl.s\nmakefile\nmch.o\nmch.s\nmch0.s\nmkconf\nmkconf.c\nmyconf\nrkhtconf\nrktmconf\nrp1conf\nrphtconf\nrptmconf\ntconf\nunix\n# <strong>mv \/unix \/ounix<\/strong>\n# <strong>cp unix \/<\/strong>\n# <strong>cd \/dev<\/strong>\n# <strong>\/etc\/mknod tty00 c 0 1<\/strong>\n# <strong>ls -als<\/strong>\ntotal 4\n   1 drwxr-xr-x 2 root      304 Dec 31 19:20 .\n   1 drwxr-xr-x 8 root      288 Dec 31 19:19 ..\n   0 crw--w--w- 1 root    0,  0 Dec 31 19:20 console\n   5 crw-r--r-- 1 bin     8,  1 Jan 10 15:40 kmem\n   2 -rw-rw-r-- 1 bin       775 Jan 10 15:26 makefile\n   4 crw-r--r-- 1 bin     8,  0 Jan 10 15:39 mem\n   2 brw-rw-rw- 1 root    3,  0 Dec 31 19:00 mt0\n   7 crw-rw-rw- 1 root   12,128 Dec 31 19:00 nrmt0\n   5 crw-rw-rw- 1 bin     8,  2 Dec 31 19:01 null\n   6 crw-rw-rw- 1 root   12,  0 Dec 31 19:00 rmt0\n   3 brw-r--r-- 1 root    6,  0 Dec 31 19:02 rp0\n   4 brw-r--r-- 1 root    6,  7 Dec 31 19:01 rp3\n   7 crw-r--r-- 1 root   14,  0 Dec 31 19:00 rrp0\n   8 crw-r--r-- 1 root   14,  7 Dec 31 19:00 rrp3\n   4 brw-r--r-- 1 root    6,  1 Dec 31 19:00 swap\n   9 crw-rw-rw- 1 bin    17,  0 Jan 10 15:40 tty\n   1 crw-rw-r-- 1 root    0,  1 Dec 31 19:20 tty00\n# <strong>cd \/etc<\/strong>\n# <strong>ed ttys<\/strong>\n266\n<strong>1<\/strong>\n14console\n00tty00\n<strong>s\/00\/14\/<\/strong>\n<strong>p<\/strong>\n14tty00\n<strong>w<\/strong>\n266\n<strong>q<\/strong>\n# <strong>sync<\/strong>\n# <strong>sync<\/strong>\n#\nHello, world [t44]: cpu 11\/45\nboot from rp:\n<strong>boot<\/strong>\nBoot\n: <strong>hp(0,0)unix<\/strong>\nmem = 178816\n# RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE\nIS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH\nWESTERN ELECTRIC COMPANY, INC.\nWED DEC 31 19:26:15 EST 1969\nlogin: <strong>root<\/strong>\nPassword:\nYou have mail.\n# <strong>ed \/etc\/passwd<\/strong>\n141\n<strong>1,$p<\/strong>\nroot:VwL97VCAx1Qhs:0:1::\/:\ndaemon:x:1:1::\/:\nsys::2:2::\/usr\/sys:\nbin::3:3::\/bin:\nuucp::4:4::\/usr\/lib\/uucp:\/usr\/lib\/uucico\ndmr::7:3::\/usr\/dmr:\n<strong>a<\/strong>\n<strong>sytse::100:100::\/usr\/sytse:<\/strong>\n<strong>^D<\/strong>\n?\n<strong>1,$p<\/strong>\nroot:VwL97VCAx1Qhs:0:1::\/:\ndaemon:x:1:1::\/:\nsys::2:2::\/usr\/sys:\nbin::3:3::\/bin:\nuucp::4:4::\/usr\/lib\/uucp:\/usr\/lib\/uucico\ndmr::7:3::\/usr\/dmr:\nsytse::100:100::\/usr\/sytse:\n<strong>w<\/strong>\n169\n<strong>q<\/strong>\n# <strong>mkdir \/usr\/sytse<\/strong>\n# <strong>chown sytse \/usr\/sytse<\/strong>\n# <strong>who<\/strong>\nroot     console Dec 31 19:26\nsytse    tty00   Dec 31 19:27\n# <strong>who am i<\/strong>\nroot     console Dec 31 19:26\n#<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Session captured from a Nexys-2 board configured with an 11\/45, RH11 + RP06, console, and extra KL11. The RP06 image was created from the original V7 distribution tape using SIMH. In this session, we see how the extra KL11 serial controller is configured into the kernel; after that, the kernel is recompiled, some settings are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":362,"menu_order":70,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-353","page","type-page","status-publish","hentry","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/pages\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":0,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/pages\/353\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/pages\/362"}],"wp:attachment":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/media?parent=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}