2010å¹´ãããã«åãã¦simh-pdp11ã«è§¦ãã¦ãã,
ã¡ããã¡ããancient UNIXã§éã¶ã®ã§ããæ¯åè²ã å¿ãã¦ã°ã°ã£ã¦ãã®ã§ã¡ã¢
ã¾ãæ®éã«software kitããUNIX v7ãå®è¡ããæ¹æ³
http://simh.trailing-edge.com/software.html
SIMHã®å ¬å¼ãã¼ã¸ã®,Software Kitã¯æ§ã ãªã¢ã¼ããã¯ãã£ã®æ§ã ãªOSãã¢ã¼ã«ã¤ããã¦ãã
ããããUNIX v5〜v7ãå ¥æå¯è½
uv7swre.zipããã¦ã³ãã¼ãããã解åã,
simh-pdp11(ArchLinux以å¤ã§ãã«ãããããããpdp11ã£ã¦ã³ãã³ãã ã¨æã)ãã¤ãã£ã¦,
@ããã³ããã表示ãããã,
ããã¦
:ããã³ããã§
RL11ãª0çªç®ã®ãã£ã¹ã¯ã®,ã«ã¼ãã«ããrl2unixã¨ããã«ã¼ãã«ãã¡ã¤ã«ãæå®ãããã¨ã§,
ã«ã¼ãã«ããã¼ã
ã¾ãã¯#ãªããã³ããã«è½ã¡ã¦ã·ã³ã°ã«ã¦ã¼ã¶ã¼ã¢ã¼ãã«ãªãã®ã§,
^D(Ctrl-D)ã§ãã«ãã¦ã¼ã¶ã¼ã¢ã¼ãã«ç§»è¡
user:root password:root
ã§ãã°ã¤ã³å¯è½.
ãã¨ã¯mailãã¤ããããå種UNIXã³ãã³ããã¤ãããã,å°ããªã
exitã³ãã³ãã§ã¯exitãã,^Dã§ãã°ã¢ã¦ã
ã¨ãã¥ã¬ã¼ã¿ã®çµäºã¯Ctrl-Eã§simhã®ããã³ããã«æããå¾,simhã®qã³ãã³ããçºè¡
次ã«UNIXv6ããã¼ãã¤ã¡ã¼ã¸ããã¤ã³ã¹ãã¼ã«ããæ¹æ³
http://d.hatena.ne.jp/oraccha/20101101/1288582382
ãåè.oracchaãããç´¹ä»ããã¦ãã¤ã³ã¹ãã¼ã«æé ã®ãã¡ã¤ã«ã¯æ¶ãã¡ãã£ã¦ããã©,
http://shuntavista.jimdo.com/2013/01/05/unix-v6-%E3%82%92-simh-pdp11-%E4%B8%8A%E3%81%A7%E5%8B%95%E3%81%8B%E3%81%99%E3%83%A1%E3%83%A2-%E7%B0%A1%E7%95%A5%E7%89%88/
ã®ããã°ã§æé ãå ¬éããã¦ãæ¹ãããããã®ã§åç¾å¯è½
http://gunkies.org/wiki/Installing_Unix_v6_(PDP-11)_on_SIMH
ã®ã»ãã§ããã¼ãããã®ã¤ã³ã¹ãã¼ã«æé ãå ¬éããã¦ã
http://wwwlehre.dhbw-stuttgart.de/~helbig/os/v6/dist.tap
ããã¼ãã¤ã¡ã¼ã¸
ä¸ã«ããsimhã®Software Kitã§UNIX v6ãã¤ã³ã¹ãã¼ã«ããã¨ä½æ ã
/usr/sysã®ã«ã¼ãã«ã½ã¼ã¹ãæãè½ã¡ã¦ããã,ãã®ãã¼ãããã¤ã³ã¹ãã¼ã«ããã¨
å®å ¨ãªå½¢ã§å½æã®ç°å¢ãå ¥æã§ãã
ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/UnixArchive/PDP-11/Distributions/research/Dennis_v6/
éªå¤§ã®UnixArchiveã®ãã©ã¼ããå ¥æã§ããUNIXv6ã®ãã¡ã¤ã«ã»ãããããã«ã¼ãã«ã½ã¼ã¹ã¯å ¥æå¯è½(ããã¯æ®éã«tarballå½¢å¼)
ãã®ãã©ã¼ã«ã¯èµ·åå¯è½ãªsimhç¨ã®2.9BSDã2.11BSDã ã£ããã¨ã,
ã¾ã ã½ããã¦ã§ã¢ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«éããªãã£ãæ代ã®2BSDã¨ã,
ã¯ãã¾ãPDP11ãä½ã£ãDECèªèº«ãéçºããUNIXã§ããUltrixã¨ã
è³æç価å¤ã®é«ãç©ã大éã«ã¢ã¼ã«ã¤ããã¦ããã®ã§é常ã«èå³æ·±ã
æé ã¯,
simhã®èµ·åã³ãã³ãã¹ã¯ãªããã§UNIXv6ã®ãã¼ãã¤ã¡ã¼ã¸ãèµ·åããã¨ããããã¯ããã
d cpuã¯simhã®ã³ãã³ãã§æ©æ¢°èªãç´æ¥ã¡ã¢ãªã«ç½®ãã¦ãã,
å®æ©ã ã¨ããã§ãã£ããã¹ã¤ããæä½ã§ãã¼ããã¼ãã¼ãè¨å®ãã¦ãããã.
ä»åã¯ãã¼ãããèµ·åããããã«ãã
ãã®ã¹ã¯ãªããã¯éä¸ã§ç¡éã«ã¼ãã«ãªãã®ã§,
Ctrl-Eã§ä¸åº¦å®è¡ãåæ¢ããå¾ã«simhã®ã³ãã³ãg 0ã§0çªå°ã«é£ã¶.
ããã¨=ããã³ãããåºã¦ããã¯ãã§ãã.
UNIXv6ã®mkfs(8) (ãã,ãã®æ代ã¯mkfsãsection VIIIã ã£ã!)ã¯,
ãã¡ã¤ã«ã·ã¹ãã ãä½ãæå é ã«ãã¼ããã¼ãã¼ãåãè¾¼ã.
ãã¼ãã¤ã¡ã¼ã¸ã¯ããã§ãã£ã¹ã¯ã¸ãã¼ãã¤ã¡ã¼ã¸ãæ¸ãè¾¼ããã¼ãã¼ãå ¥ã£ã¦ãã
ããã¤ã種é¡ãããã,ä»åã¯tm(ãã¼ãããã¤ã¹)ããRK05ãªãã£ã¹ã¯ããã¤ã¹(rk)ã«
ã¤ã³ã¹ãã¼ã«ããã®ã§,tmrkã³ãã³ãã§å®è¡.
ãã£ã±ãCtrl-Eã®å¾qã§å®è¡ãçµäºãä¸åº¦simhããªã»ãã
ãã£ã¹ã¯ãããã¼ã
ã¨ãå ç¨åæ§ãã£ããã¹ã¤ããã§ãã¼ããã¼ãã¼ãè¨å®ãRK05ãã£ã¹ã¯ãããã¼ãããã,
ã¨simhã®æ©è½(bootã³ãã³ã)ã§èµ·åãã¦ãã¾ãã.
ã©ãããsimhã®bootã³ãã³ãã¯simhã®å é¨ã§æ±ç¨ã®ãã¼ããã¼ãã¼ãæã£ã¦ãããã.
ããã¦bootã³ãã³ãã®ãªãã©ã³ãã«ãã£ã¦ã©ã®ãã¼ããã¼ãã¼(tmãrkãããã¤ã¹ãè¦ã)ãå¼ã¶ãå¤å¥ã,å¼ã³åºãã¦ããããã®ã§,çµå±ãã£ããã¹ã¤ããè¨å®ã¨ãããã¨ã¯åã
ã¨ããããèµ·åããã@ããã³ããã表示ããã.
UNIX v7ã¨éãããã§/ã«ãããã¡ã¤ã«åãæå®ãããã¨ã§ã«ã¼ãã«ãæå®ã,ã«ã¼ãã«ããã¼ããã¦ãã¾ã.
ä»åã¯RK05ãã£ã¹ã¯ã«ã¤ã³ã¹ãã¼ã«ãã¦ãã®ã§rkunixã¨ããã«ã¼ãã«ãèµ·å.
useråã¯rootã®ã¿æåã¯åå¨.passwordã¯ãªã.
èµ·åããã¨ãããªããã«ãã¦ã¼ã¶ã¼ã¢ã¼ããã°ã¤ã³.ã¤ã¾ãã·ã³ã°ã«ã¦ã¼ã¶ã¼ã¢ã¼ãã«ãããªã.
ã¾ã,ããã¾ãéãé¨åã¨ãã¦ã¯cdã³ãã³ããåå¨ããchdirã³ãã³ãã§ãã£ã¬ã¯ããªç§»å.
ããã¯ä¸ä¾¿ãªä¸é©ãã§ãã.
ã¾ã,/devã«memãkmem以å¤ã®ããã¤ã¹ãã¡ã¤ã«ããªãã®ã§mknodã³ãã³ãã§ããã¤ã¹ãã¡ã¤ã«ã
ä½æããå¿ è¦ããã.
ç¾å¨ããã®ã³ãã³ãã§ããã¤ã¹ãã¡ã¤ã«ä½æã¯å¯è½ã ã,
å½æã¯mknodãmkfs,mountã«initã¨ãã£ãä»ã ã¨/sbinã/usr/sbinç¸å½ã®ã³ãã³ãã/etc/ã«åå¨ã,
/etcã«ã¯PATHãéã£ã¦ãªãã®ã§ãã«ãã¹ã§ã³ãã³ããå ¥åããªããã°ãªããªã.
ã¾ã,ã«ã¼ãã«ã®ãªãã«ãããã¦ããã.
ãã®å¾ã«/usr/sys/confã«çæãããå種ãã¡ã¤ã«ãã³ã³ãã¤ã«,
æå¾ã«/usr/sys/lib1ã¨/usr/sys/lib2ã¨ãªã³ã¯ãããã¨ã§ã«ã¼ãã«ãçæããã.
ä»åã¯/unixã¨ããååã§ç½®ãã¦ãã®ã§,次åèµ·åæã«ã¯rkunixã§ãªãunixãæå®ããã°è¯ã
ãªã,lib1ãlib2ã®ä¸ã®ã¢ã¸ã¥ã¼ã«ãå«ãå®å ¨ã«ã«ã¼ãã«ãªãã«ãããããã°,
/usr/sysã«ç§»åãsh runãå®è¡ããã¨,runã¨ããã·ã§ã«ã¹ã¯ãªããããã«ããã¦ããã.
runã«ã¯ãã§ã«mkconfã¨ãã®è¨å®ãè¨è¿°ããã¦ãã¾ã£ã¦ããã®ã§,
ããã¤ã¹ãå¢ããããæ¸ããããããããã°runèªä½ãedã§ç·¨éããå¿ è¦ããã.
ddã§æã£ã¦ãã¦,å¥ã®ãã£ã¹ã¯(rk1,rk2)ã«ã³ãã¼ã,ãããããã¦ã³ãããã¦ããã¨æ¥½ãããªãã¨æããã.
ãã 次åèµ·åæã«ã¯ãã¦ã³ããããªããªãã®ã§,
catã¨ãªãã¤ã¬ã¯ãã§ããã¹ããã¡ã¤ã«ãæ¸ãæã¯^D(EOF)ã§è¿½è¨çµäº.
ããã«ã¯æ¸ããªãã®ã§å ã«æããURLéãåèã«ãã¦è²°ãããã,
dfã³ãã³ãã¯åç §ããããã¤ã¹ããã¼ãã³ã¼ãããã¦ãã®ã§,
/usr/source/s1ã«ããdf.cã®æåã®é¢æ°ã®ã¨ãããé©å½ã«dfã§ç©ºãé åãè¦ããããã¤ã¹ãã¡ã¤ã«ã«æ¸ãæããã追å ãã¦ãªãã«ãããã.
ããããä»åã®å ´åã¯/dev/rk0,/dev/rk1,/dev/rk2ãæ¸ãå¿ è¦ããã.
ã¾ã,/usr/source/s2ã®sh.cã®ä¸ã®,
if(equal(cp1, "chdir"))ã¨ãã¦ããè¡ã§,chdirãcpã«å¤æ´ããå¾ãªãã«ãããã¨,
ä»åº¦ããchdirã³ãã³ãã§ãªãcdã³ãã³ãã«ãªã£ã¦ã¡ãã£ã´ã便å©ãããããªã.
ããã§åæè¨å®ã¯ä¸åº¦çµäºã ãçµäºã®åã«ã¯
ããã§ãªãã¨ã¾ãã«ãã¡ã¤ã«ããã£ã¹ã¯ãå£ãã.
ããã¦Ctrl-Eã¨qã§simhãçµäº
ããã¦ã¤ã³ã¹ãã¼ã«ãçµãã£ãã®ã§èµ·åã¹ã¯ãªãããå¤æ´ãã¦ãã
ããã¯ä»å¾æ¯åèµ·åæã«ãããå¼ã¶ã¨ãã.
ãªã,ã«ã¼ãã«ã«8dcã追å ããã®ã¹ã¯ãªããã§ãdcã«ã¤ãã¦ããã¤ãè¨å®ããã®ã§,
simhã§UNIXv6ãèµ·åãã¦ãæä¸ã¯ãã®ãã·ã³ã®ãã¹ãOSããtelnetã§ãã°ã¤ã³å¯è½ã§ãã.
ãã®ã¹ã¯ãªããã§ã¯dciã5555ã«è¨å®ãã¦ãã®ã§ãã¼ã5555çªããtelnetãã°ã¤ã³å¯è½
……ãã®2ã«ã¤ã¥ã
ã¡ããã¡ããancient UNIXã§éã¶ã®ã§ããæ¯åè²ã å¿ãã¦ã°ã°ã£ã¦ãã®ã§ã¡ã¢
ã¾ãæ®éã«software kitããUNIX v7ãå®è¡ããæ¹æ³
http://simh.trailing-edge.com/software.html
SIMHã®å ¬å¼ãã¼ã¸ã®,Software Kitã¯æ§ã ãªã¢ã¼ããã¯ãã£ã®æ§ã ãªOSãã¢ã¼ã«ã¤ããã¦ãã
ããããUNIX v5〜v7ãå ¥æå¯è½
uv7swre.zipããã¦ã³ãã¼ãããã解åã,
simh-pdp11(ArchLinux以å¤ã§ãã«ãããããããpdp11ã£ã¦ã³ãã³ãã ã¨æã)ãã¤ãã£ã¦,
$ simh-pdp11 UV7ã§èµ·å.UV7ã¯èµ·åã¹ã¯ãªãã,simhã®ã³ãã³ãç¨ã®ã¹ã¯ãªãã
@ããã³ããã表示ãããã,
@bootã§èµ·å
ããã¦
:ããã³ããã§
:rl(0,0)rl2unixã¨ãã¦
RL11ãª0çªç®ã®ãã£ã¹ã¯ã®,ã«ã¼ãã«ããrl2unixã¨ããã«ã¼ãã«ãã¡ã¤ã«ãæå®ãããã¨ã§,
ã«ã¼ãã«ããã¼ã
ã¾ãã¯#ãªããã³ããã«è½ã¡ã¦ã·ã³ã°ã«ã¦ã¼ã¶ã¼ã¢ã¼ãã«ãªãã®ã§,
^D(Ctrl-D)ã§ãã«ãã¦ã¼ã¶ã¼ã¢ã¼ãã«ç§»è¡
user:root password:root
ã§ãã°ã¤ã³å¯è½.
ãã¨ã¯mailãã¤ããããå種UNIXã³ãã³ããã¤ãããã,å°ããªã
exitã³ãã³ãã§ã¯exitãã,^Dã§ãã°ã¢ã¦ã
ã¨ãã¥ã¬ã¼ã¿ã®çµäºã¯Ctrl-Eã§simhã®ããã³ããã«æããå¾,simhã®qã³ãã³ããçºè¡
次ã«UNIXv6ããã¼ãã¤ã¡ã¼ã¸ããã¤ã³ã¹ãã¼ã«ããæ¹æ³
http://d.hatena.ne.jp/oraccha/20101101/1288582382
ãåè.oracchaãããç´¹ä»ããã¦ãã¤ã³ã¹ãã¼ã«æé ã®ãã¡ã¤ã«ã¯æ¶ãã¡ãã£ã¦ããã©,
http://shuntavista.jimdo.com/2013/01/05/unix-v6-%E3%82%92-simh-pdp11-%E4%B8%8A%E3%81%A7%E5%8B%95%E3%81%8B%E3%81%99%E3%83%A1%E3%83%A2-%E7%B0%A1%E7%95%A5%E7%89%88/
ã®ããã°ã§æé ãå ¬éããã¦ãæ¹ãããããã®ã§åç¾å¯è½
http://gunkies.org/wiki/Installing_Unix_v6_(PDP-11)_on_SIMH
ã®ã»ãã§ããã¼ãããã®ã¤ã³ã¹ãã¼ã«æé ãå ¬éããã¦ã
http://wwwlehre.dhbw-stuttgart.de/~helbig/os/v6/dist.tap
ããã¼ãã¤ã¡ã¼ã¸
ä¸ã«ããsimhã®Software Kitã§UNIX v6ãã¤ã³ã¹ãã¼ã«ããã¨ä½æ ã
/usr/sysã®ã«ã¼ãã«ã½ã¼ã¹ãæãè½ã¡ã¦ããã,ãã®ãã¼ãããã¤ã³ã¹ãã¼ã«ããã¨
å®å ¨ãªå½¢ã§å½æã®ç°å¢ãå ¥æã§ãã
ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/UnixArchive/PDP-11/Distributions/research/Dennis_v6/
éªå¤§ã®UnixArchiveã®ãã©ã¼ããå ¥æã§ããUNIXv6ã®ãã¡ã¤ã«ã»ãããããã«ã¼ãã«ã½ã¼ã¹ã¯å ¥æå¯è½(ããã¯æ®éã«tarballå½¢å¼)
ãã®ãã©ã¼ã«ã¯èµ·åå¯è½ãªsimhç¨ã®2.9BSDã2.11BSDã ã£ããã¨ã,
ã¾ã ã½ããã¦ã§ã¢ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«éããªãã£ãæ代ã®2BSDã¨ã,
ã¯ãã¾ãPDP11ãä½ã£ãDECèªèº«ãéçºããUNIXã§ããUltrixã¨ã
è³æç価å¤ã®é«ãç©ã大éã«ã¢ã¼ã«ã¤ããã¦ããã®ã§é常ã«èå³æ·±ã
æé ã¯,
simhã®èµ·åã³ãã³ãã¹ã¯ãªããã§UNIXv6ã®ãã¼ãã¤ã¡ã¼ã¸ãèµ·åããã¨ããããã¯ããã
d cpuã¯simhã®ã³ãã³ãã§æ©æ¢°èªãç´æ¥ã¡ã¢ãªã«ç½®ãã¦ãã,
å®æ©ã ã¨ããã§ãã£ããã¹ã¤ããæä½ã§ãã¼ããã¼ãã¼ãè¨å®ãã¦ãããã.
ä»åã¯ãã¼ãããèµ·åããããã«ãã
ãã®ã¹ã¯ãªããã¯éä¸ã§ç¡éã«ã¼ãã«ãªãã®ã§,
Ctrl-Eã§ä¸åº¦å®è¡ãåæ¢ããå¾ã«simhã®ã³ãã³ãg 0ã§0çªå°ã«é£ã¶.
ããã¨=ããã³ãããåºã¦ããã¯ãã§ãã.
UNIXv6ã®mkfs(8) (ãã,ãã®æ代ã¯mkfsãsection VIIIã ã£ã!)ã¯,
ãã¡ã¤ã«ã·ã¹ãã ãä½ãæå é ã«ãã¼ããã¼ãã¼ãåãè¾¼ã.
ãã¼ãã¤ã¡ã¼ã¸ã¯ããã§ãã£ã¹ã¯ã¸ãã¼ãã¤ã¡ã¼ã¸ãæ¸ãè¾¼ããã¼ãã¼ãå ¥ã£ã¦ãã
ããã¤ã種é¡ãããã,ä»åã¯tm(ãã¼ãããã¤ã¹)ããRK05ãªãã£ã¹ã¯ããã¤ã¹(rk)ã«
ã¤ã³ã¹ãã¼ã«ããã®ã§,tmrkã³ãã³ãã§å®è¡.
=tmrkã¨å ¥åãã¦ãã¼ããããã£ã¹ã¯ã«ã¤ã³ã¹ãã¼ã«.ã¨ããããããã§rk0ãã£ã¹ã¯ã«ã·ã¹ãã ã¤ã³ã¹ãã¼ã«çµäº.
disk offset?
0
tape offset?
100
count?
1
=tmrk
disk offset?
1
tape offset? 101
count?
3999
ãã£ã±ãCtrl-Eã®å¾qã§å®è¡ãçµäºãä¸åº¦simhããªã»ãã
ãã£ã¹ã¯ãããã¼ã
ã¨ãå ç¨åæ§ãã£ããã¹ã¤ããã§ãã¼ããã¼ãã¼ãè¨å®ãRK05ãã£ã¹ã¯ãããã¼ãããã,
ã¨simhã®æ©è½(bootã³ãã³ã)ã§èµ·åãã¦ãã¾ãã.
ã©ãããsimhã®bootã³ãã³ãã¯simhã®å é¨ã§æ±ç¨ã®ãã¼ããã¼ãã¼ãæã£ã¦ãããã.
ããã¦bootã³ãã³ãã®ãªãã©ã³ãã«ãã£ã¦ã©ã®ãã¼ããã¼ãã¼(tmãrkãããã¤ã¹ãè¦ã)ãå¼ã¶ãå¤å¥ã,å¼ã³åºãã¦ããããã®ã§,çµå±ãã£ããã¹ã¤ããè¨å®ã¨ãããã¨ã¯åã
ã¨ããããèµ·åããã@ããã³ããã表示ããã.
UNIX v7ã¨éãããã§/ã«ãããã¡ã¤ã«åãæå®ãããã¨ã§ã«ã¼ãã«ãæå®ã,ã«ã¼ãã«ããã¼ããã¦ãã¾ã.
ä»åã¯RK05ãã£ã¹ã¯ã«ã¤ã³ã¹ãã¼ã«ãã¦ãã®ã§rkunixã¨ããã«ã¼ãã«ãèµ·å.
useråã¯rootã®ã¿æåã¯åå¨.passwordã¯ãªã.
èµ·åããã¨ãããªããã«ãã¦ã¼ã¶ã¼ã¢ã¼ããã°ã¤ã³.ã¤ã¾ãã·ã³ã°ã«ã¦ã¼ã¶ã¼ã¢ã¼ãã«ãããªã.
ã¾ã,ããã¾ãéãé¨åã¨ãã¦ã¯cdã³ãã³ããåå¨ããchdirã³ãã³ãã§ãã£ã¬ã¯ããªç§»å.
ããã¯ä¸ä¾¿ãªä¸é©ãã§ãã.
ã¾ã,/devã«memãkmem以å¤ã®ããã¤ã¹ãã¡ã¤ã«ããªãã®ã§mknodã³ãã³ãã§ããã¤ã¹ãã¡ã¤ã«ã
ä½æããå¿ è¦ããã.
ç¾å¨ããã®ã³ãã³ãã§ããã¤ã¹ãã¡ã¤ã«ä½æã¯å¯è½ã ã,
å½æã¯mknodãmkfs,mountã«initã¨ãã£ãä»ã ã¨/sbinã/usr/sbinç¸å½ã®ã³ãã³ãã/etc/ã«åå¨ã,
/etcã«ã¯PATHãéã£ã¦ãªãã®ã§ãã«ãã¹ã§ã³ãã³ããå ¥åããªããã°ãªããªã.
/etc/mknod /dev/rk0 b 0 0ããã§ãã¼ãã¼.
/etc/mknod /dev/rk1 b 0 1
/etc/mknod /dev/rk2 b 0 2
/etc/mknod /dev/mt0 b 3 0
/etc/mknod /dev/tap0 b 4 0
/etc/mknod /dev/rrk0 c 9 0
/etc/mknod /dev/rrk1 c 9 1
/etc/mknod /dev/rrk2 c 9 2
/etc/mknod /dev/rmt0 c 12 0
/etc/mknod /dev/lp0 c 2 0
/etc/mknod /dev/tty0 c 3 0
/etc/mknod /dev/tty1 c 3 1
/etc/mknod /dev/tty2 c 3 2
/etc/mknod /dev/tty3 c 3 3
/etc/mknod /dev/tty4 c 3 4
/etc/mknod /dev/tty5 c 3 5
/etc/mknod /dev/tty6 c 3 6
/etc/mknod /dev/tty7 c 3 7
chmod 640 /dev/*rk*
chmod 640 /dev/*mt*
chmod 640 /dev/*tap*
ã¾ã,ã«ã¼ãã«ã®ãªãã«ãããã¦ããã.
# chdir /usr/sys/confmkconfã³ãã³ãã§å¨è¾ºæ©å¨(ããã¤ã¹)ã¯ä½ãããã®ãèªåã§å ¥å,è¨å®ã,
# cc mkconf.c
# mv a.out mkconf
# ./mkconf
rk
tm
tc
8dc
lp
done
# as m40.s
# mv a.out m40.o
# cc -c c.c
# as l.s
# ld -x a.out m40.o c.o ../lib1 ../lib2
# mv a.out /unix
ãã®å¾ã«/usr/sys/confã«çæãããå種ãã¡ã¤ã«ãã³ã³ãã¤ã«,
æå¾ã«/usr/sys/lib1ã¨/usr/sys/lib2ã¨ãªã³ã¯ãããã¨ã§ã«ã¼ãã«ãçæããã.
ä»åã¯/unixã¨ããååã§ç½®ãã¦ãã®ã§,次åèµ·åæã«ã¯rkunixã§ãªãunixãæå®ããã°è¯ã
ãªã,lib1ãlib2ã®ä¸ã®ã¢ã¸ã¥ã¼ã«ãå«ãå®å ¨ã«ã«ã¼ãã«ãªãã«ãããããã°,
/usr/sysã«ç§»åãsh runãå®è¡ããã¨,runã¨ããã·ã§ã«ã¹ã¯ãªããããã«ããã¦ããã.
runã«ã¯ãã§ã«mkconfã¨ãã®è¨å®ãè¨è¿°ããã¦ãã¾ã£ã¦ããã®ã§,
ããã¤ã¹ãå¢ããããæ¸ããããããããã°runèªä½ãedã§ç·¨éããå¿ è¦ããã.
# dd if=/dev/mt0 of=/dev/rk1 count=4000 skip=4100ããã¯å¿ é ã§ã¯ãªãã,ãã¼ãã¤ã¡ã¼ã¸ããã³ãã³ãé¡ã®ã½ã¼ã¹ã¨ããã¥ã¡ã³ãã
# /etc/mount /dev/rk1 /usr/source
# dd if=/dev/mt0 of=/dev/rk2 count=4000 skip=8100
# mkdir /usr/doc
# /etc/mount /dev/rk2 /usr/doc
ddã§æã£ã¦ãã¦,å¥ã®ãã£ã¹ã¯(rk1,rk2)ã«ã³ãã¼ã,ãããããã¦ã³ãããã¦ããã¨æ¥½ãããªãã¨æããã.
ãã 次åèµ·åæã«ã¯ãã¦ã³ããããªããªãã®ã§,
# cat >> /etc/rcã¨ãã¦,rcã¹ã¯ãªãã(èµ·åæã«å®è¡)ã«mountã³ãã³ãã追å ãã¦ããã.
# /etc/mount /dev/rk1 /usr/source
# /etc/mount /dev/rk2 /usr/doc
catã¨ãªãã¤ã¬ã¯ãã§ããã¹ããã¡ã¤ã«ãæ¸ãæã¯^D(EOF)ã§è¿½è¨çµäº.
ããã«ã¯æ¸ããªãã®ã§å ã«æããURLéãåèã«ãã¦è²°ãããã,
dfã³ãã³ãã¯åç §ããããã¤ã¹ããã¼ãã³ã¼ãããã¦ãã®ã§,
/usr/source/s1ã«ããdf.cã®æåã®é¢æ°ã®ã¨ãããé©å½ã«dfã§ç©ºãé åãè¦ããããã¤ã¹ãã¡ã¤ã«ã«æ¸ãæããã追å ãã¦ãªãã«ãããã.
ããããä»åã®å ´åã¯/dev/rk0,/dev/rk1,/dev/rk2ãæ¸ãå¿ è¦ããã.
ã¾ã,/usr/source/s2ã®sh.cã®ä¸ã®,
if(equal(cp1, "chdir"))ã¨ãã¦ããè¡ã§,chdirãcpã«å¤æ´ããå¾ãªãã«ãããã¨,
ä»åº¦ããchdirã³ãã³ãã§ãªãcdã³ãã³ãã«ãªã£ã¦ã¡ãã£ã´ã便å©ãããããªã.
ããã§åæè¨å®ã¯ä¸åº¦çµäºã ãçµäºã®åã«ã¯
# syncã¨é©å½ã«syncãç¹°ãè¿ããã£ã¹ã¯ã«ãããã¡ããã©ãã·ã¥ããå¿ è¦ããã
# sync
# sync
ããã§ãªãã¨ã¾ãã«ãã¡ã¤ã«ããã£ã¹ã¯ãå£ãã.
ããã¦Ctrl-Eã¨qã§simhãçµäº
ããã¦ã¤ã³ã¹ãã¼ã«ãçµãã£ãã®ã§èµ·åã¹ã¯ãªãããå¤æ´ãã¦ãã
ããã¯ä»å¾æ¯åèµ·åæã«ãããå¼ã¶ã¨ãã.
ãªã,ã«ã¼ãã«ã«8dcã追å ããã®ã¹ã¯ãªããã§ãdcã«ã¤ãã¦ããã¤ãè¨å®ããã®ã§,
simhã§UNIXv6ãèµ·åãã¦ãæä¸ã¯ãã®ãã·ã³ã®ãã¹ãOSããtelnetã§ãã°ã¤ã³å¯è½ã§ãã.
ãã®ã¹ã¯ãªããã§ã¯dciã5555ã«è¨å®ãã¦ãã®ã§ãã¼ã5555çªããtelnetãã°ã¤ã³å¯è½
……ãã®2ã«ã¤ã¥ã