📄 start
字号:
.TLSETTING UP UNIX \- Sixth Edition.PPEnclosed are:.IP 1.`UNIX Programmer's Manual,' Sixth Edition..IP 2.Documents with the following titles:.DSSetting Up UNIX \- Sixth EditionThe UNIX Time-Sharing SystemC Reference ManualProgramming in C \- A TutorialUNIX Assembler Reference ManualA Tutorial Introduction to the ED Text EditorUNIX for BeginnersRATFOR \- A Preprocessor for a Rational FortranYACC \- Yet Another Compiler-CompilerNROFF Users' ManualThe UNIX I/O SystemA Manual for the Tmg Compiler-writing LanguageOn the Security of UNIXThe M6 Macro ProcessorA System for Typesetting MathematicsDC \- An Interactive Desk CalculatorBC \- An Arbitrary Precision Desk-Calculator LanguageThe Portable C Library (on UNIX)UNIX Summary.DE.IP 3.The UNIX software on magtape or disk pack..PPIf you are set up to do it,it might be a good idea immediately to make a copy of the diskor tape to guard against disaster.The tape contains 12100 512-byte recordsfollowed by a single file mark;only the first 4000 512-byte blocks on the diskare significant..PPThe system as distributed corresponds to three fairlyfull RK packs.The first contains the binary version of all programs, and thesource for the operating system itself;the second contains all remaining source programs;the third contains manuals intended to beprinted using the formatting programs roff or nroff.The `binary' disk is enough to run the system,but you will almost certainly want to modify some sourceprograms..SHMaking a Disk From Tape.PPIf your systemis on magtape,perform the following bootstrap procedure to obtaina disk with the binaries..IP 1.Mount magtape on drive 0 at load point..IP 2.Mount formatted disk pack on drive 0..IP 3.Key in and execute at 100000.RT.DS TU10 TU16012700 (to be added)172526010040012740060003000777.DE.IPThe tape should move and the CPU loop.(The TU10 code is.Inot.Rthe DEC bulk ROM for tape;it reads block 0, not block 1.).IP 4.Halt and restart the CPU at 0.The tape should rewind.The console should type `='..IP 5.Copy the magtape to disk by the following.This assumes TU10 and RK05; see 6 below for otherdevices.The machine's printouts are shown in italic(the `=' signs should be considered italic).Terminate each line you type by carriage return or line-feed..DS= tmrk.Idisk offset.R0.Itape offset.R100 (See 6 below).Icount.R1 (The tape should move)= tmrk.Idisk offset.R1.Itape offset.R101 (See 7 below).Icount.R3999 (The tape moves lots more)=.DETo explain:the.Itmrk.Rprogram copies tape to disk with the given offsets and counts.Its first use copies a bootstrap programto disk block 0;the second use copies the file system itself onto the disk.You may get back to `=' level by startingat 137000..IP 6.If you have TU16 tapesay `htrk' instead of `tmrk' in the above example.If you have an RP03 disk, say `tmrp' or `htrp',and use a 99 instead of 100 tape offset.If you have an RP04 disk, use `tmhp' or `hthp' instead or`tmrk', and use a 98 instead of 100 tape offset.The different offsets load bootstrap programsappropriate to the disk they will live on..IP 7.This procedure generates the `binary' disk; the `source' diskmay be generated on another RK pack by using a tape offset of 4101 instead of101.The `document' disk is at offset 8101 instead of 101.Unless you have only a single RK drive,it is probably wise to wait on generating these disks.Better tools are available using UNIX itself..SHBooting UNIX.PPOnce the UNIX `binary' disk is obtained, the system is bootedby keying in and executing one of the following programs at 100000.These programs correspond to the DEC bulk ROMsfor disks, since they read in and execute block 0 at location 0..DS RK05 RP03 RP04012700 012700 (to be added)177414 176726005040 005040005040 005040010040 005040012740 010040000005 012740105710 000005002376 105710005007 002376 005007.DENow follow the indicated dialog,where `@' and `#' are prompts:.DS@ rkunix (or `rpunix' or `hpunix').Imem = xxxlogin: \fRroot.I#.R.DEThe.Imem.Rmessage gives the memory available to user programsin .1K units.Most of the UNIX software will run with120 (for 12K words),but some things require much more..PPUNIX is now running,and the `UNIX Programmer's manual' applies;references below of the form X-Y mean the subsection namedX in section Y of the manual.The `#' is the prompt from the UNIX Shell,and indicates you are logged in as the super-user.The only valid user names are`root' and `bin'.The root is the super-user and binis the owner of nearly every file in the file system..PPBefore UNIX is turned up completely,a few configuration dependent exercises must beperformed.At this point,it would be wise to read all of the manualsand to augment this reading with hand to handcombat.It might be instructive to examinethe Shell run filesmentioned below..SHReconfiguration.PPThe UNIX system running is configured torun on an 11/40 with the given disk,TU10 magtape and TU56 DECtape.This is almost certainly not the correctconfiguration.Print (cat-I)the file /usr/sys/run.This file is a set of Shell commandsthat will completely recompile the system source,install it in the correct libraries and build thethree configurations for rk, rp and hp..PPUsing the Shell file as a guide,compile (cc-I) and rename (mv-I) theconfiguration program `mkconf'.Run the configuration program andtype into it a list of the controllers onyour system.Choose from:.DSpc (PC11)lp (LP11)rf (RS11)hs (RS03/RS04)tc (TU56)rk (RK03/RK05)tm (TU10)rp (RP03)hp (RP04)ht (TU16)dc* (DC11)kl* (KL11/DL11-ABC)dl* (DL11-E)dp (DP11)dn (DN11)dh (DH11)dhdm (DM11-BB).DEThe devices marked with * should be preceded bya number specifying how many.(The console typewriter is automatically included;don't count it in the kl specification.)Mkconf will generate the two files l.s(trap vectors) and c.c (configuration table).Take a careful look atl.s to make sure that all the devices that youhave are assembled in the correct interrupt vectors.If your configuration is non-standard, you willhave to modify l.s to fit your configuration..PPIn the run Shell file,the 11/45 code is commented out.If you have an 11/45 you must also edit (ed-I) thefile /usr/sys/conf/m45.s to set the assemblyflag fpp to reflect if you have the FP11-B floating pointunit.The main difference between an 11/40 and an11/45 (or 11/70)system is thatin the former instruction restart after a segmentationviolation caused by overflowing a user stackmust be handled by software, while in the lattermachines there is hardware help.As mentioned above, the 11/45 and 11/70systems include conditionally-enabled codeto save the status of the floating point unitwhen switching users.The source for such things is in one of thetwo files m40.s and m45.s..PPAnother difference is that in 11/45 and 11/70 systemsthe instruction and data spaces are separated inside UNIX itself.Since the layout of addresses in the systemis somewhat peculiar, and not directly supported by thelink-editor.Ild,.Rthe.Isysfix.Rprogram has to be run before the loaded output file can bebooted..PPThere are certain magic numbers andconfiguration parameters imbedded in variousdevice drivers that you may want to change.The device addresses of each deviceare defined in each driver.In case you have any non-standard deviceaddresses,just change the address and recompile.(The device drivers are in the directory/usr/sys/dmr.).PPThe DC11 driver is set to run 14 lines.This can be changed in dc.c..PPThe DH11 driver will only handle a single DHwith a full complement of 16 lines.If you have less,you may want to edit dh.c..PPThe DN11 driver will handle 3 DN's.Edit dn.c..PPThe DP11 driver can only handle a single DP.This cannot be easily changed..PPThe KL/DL driver is set up to runa single DL11-A, -B, or -C (the console)and no DL11-E's.To change this, editkl.c to have NKL11 reflect the total number ofDL11-ABC's andNDL11 to reflect the number of DL11-E's.So far as the driver is concerned,the difference between the devices istheir addresses..PPThe line printer driver is set upto print the 96 character seton 80 column paper(LP11-H)with indenting.Edit lp.c..PPAll of the disk and tape drivers(rf.c, rk.c, rp.c, tm.c, tc.c,hs.c, hp.c, ht.c)are set up to run 8 drives and should notneed to be changed.The big disk drivers (rp.c and hp.c)have partition tables in them which youmay want to experiment with..PPAfter all the correctionshave been made,use /usr/sys/run as a guide to recompile thechanged drivers, install them in /usr/sys/lib2and to assemble the trap vectors (l.s), configurationtable (c.c) and machine language assist (m40.s or m45.s).After all this,link edit the objects (ld-I)and if you have an 11/45, sysfix the result.The final object file (a.out) should berenamed /unix and booted.See Boot Procedures-VIII for a discussionof booting.(Note: remember, before booting,always performa sync-VIIIto force delayed output to the disk.).SHSpecial Files.PPNext you must put in all of the special files inthe directory /dev using mknod-VIII.Print the configuration file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -