home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / other / Xinu / README.lsi < prev    next >
Encoding:
Text File  |  1988-06-23  |  12.9 KB  |  397 lines

  1.  
  2.  
  3. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 1
  4.  
  5.  
  6.                X I N U
  7.                -------
  8.  
  9.    Xinu is a layered, process-based operating system.  A detailed
  10. description can be found in the text:
  11.  
  12.     Comer, Douglas E., Operating System Design: The Xinu
  13.       Approach, Prentice-Hall, 1984.
  14.  
  15. This directory contains version 7 of the software (including Internet
  16. protocol software and a user interface shell), and is described in:
  17.  
  18.     Comer, Douglas E., Operating System Design Vol 2:
  19.       Internetworking with Xinu, Prentice-Hall, 1987.
  20.  
  21.    To run the software on this tape, you will need a Digital Equipment
  22. Corp. VAX or Microvax computer running the Berkeley 4.3 UNIX operating
  23. system, and at least one Digital Equipment Corporation LSI 11/2, LSI
  24. 11/03, LSI 11/23 with 64K bytes of main memory and a DEQNA Ethernet
  25. interface.  The VAX is used to cross-compile, cross-assemble, and
  26. cross-load C programs.  The cross-development software produces a
  27. memory image for the LSI 11, which is then downloaded to the micro
  28. over an Ethernet (or an RS232 line if your VAX does not have an Ethernet
  29. interface).  Once downloaded, the micro runs independently, communicating
  30. with the VAX or other machines over an Ethernet, using standard DARPA
  31. Internet protocols (sometimes called TCP/IP).
  32.    If no machines on your Ethernet support standard RARP, time, and
  33. domain name servers, you can still experiment with the networking code
  34. by dedicating one LSI 11 to run server software and running Xinu on other
  35. LSI 11(s).  The source code and binary image needed for the server machine
  36. are included on this tape and explained in the directions below.  We
  37. recommend using standard servers if you have them, and using our (limited
  38. capacity) servers only if you have no alternatives.
  39.    The tape is self-contained.  It includes source programs for both
  40. Xinu and the cross-development system.  The tape can be read into any
  41. directory.  These programs do not need to be placed in system directories
  42. unless you want to do so.  The cross-development software has changed
  43. between the earlier versions and this release.  In particular, the
  44. downloading software now handles multiple classes of identical machines,
  45. automatically selects and reserves a free machine from a specified class,
  46. and consults a database of machine descriptions to automatically select
  47. a downloader appropriate for the machine.  For example, there is both a
  48. serial line downloader and an Ethernet downloader for 11/23 machines that
  49. have memory management and an Ethernet interface.  The database determines
  50. which to use for a given machine.   A significant advantage of the database
  51. approach is that it allows competition for a physical machine from multiple
  52. classes of users.
  53.  
  54. Installation
  55. ------------
  56.  
  57.    Choose a directory for the Xinu software.  You need not be in this
  58. directory to cross-compile or download programs -- it's merely the place
  59. to store the Xinu software.  Moving the software to another directory
  60. requires recompilation (i.e., reinstallation).  Choosing /usr/Xinu as
  61. the directory will save time during installation because binary files on
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 2
  70.  
  71.  
  72. the tape are compiled for that directory.  Alternatively, you can choose
  73. to place the software in an arbitrary directory and make a symbolic link
  74. from /usr/Xinu to that directory.  Throughout this  documentation the
  75. directory into which you place Xinu is denoted {Xinu-directory}.
  76.  
  77.    Make the Xinu directory and read in the tape by typing the following
  78. commands:
  79.  
  80.     mkdir {Xinu-directory}
  81.     cd {Xinu-directory}
  82.     tar xbf 20 /dev/rmt0    (your 1600 bpi tape device may
  83.                  be named something other than
  84.                  /dev/rmt0)
  85.  
  86.    Make a symbolic link from /usr/Xinu to the directory you chose to
  87. avoid recompilation.  You will need super user privilege to do so. This
  88. step is optional:
  89.  
  90.     su
  91.     ...supply super user password when asked...
  92.     ln -s {Xinu-directory} /usr/Xinu
  93.     CONTROL-d (to leave super user mode)
  94.  
  95. Once the tape has been read, you must change all source programs that
  96. refer to {Xinu-directory} and recompile the binaries.  A shell script
  97. has been provided to do this for you.  To use it, move to the installation
  98. directory and run Install.  *NOTE: YOU MUST BE IN THE INSTALLATION DIRECTORY
  99. {Xinu-directory}/install WHEN YOU EXECUTE THIS SCRIPT OR IT WILL NOT WORK*
  100.  
  101.     cd {Xinu-directory}/install
  102.     ./Install
  103.  
  104. Connect LSI 11 to The VAX
  105. ------- --- -- -- --- ---
  106.  
  107.    We recommend setting your LSI 11 to use 9600 baud and the vendor's
  108. standard console device address (octal 177560).  If you must use another
  109. device address or speed, you can edit the downloading software in
  110. {Xinu-directory}/src/cmd/download.  Speeds below 4800 baud are not
  111. recommended because serial downloading becomes intolerable.
  112.  
  113.    Choose a tty line on the VAX and connect it to the LSI 11 console port.
  114. Then modify the UNIX system so that it does not run a login process (getty)
  115. on the tty device.  You need to be super user to do this.
  116.  
  117.     su
  118.     ...supply super user password when asked...
  119.     ln /dev/{tty-that-you-chose} /dev/LSI.1
  120.     ...edit /etc/ttys; turn off getty on LSI tty line...
  121.     kill -1 1
  122.     chmod 0666 /dev/LSI.1
  123.     CONTROL-d (to leave super user mode)
  124.  
  125. The cross-development system allocates an LSI whenever one is needed using
  126. the database in {Xinu-directory}/lib/machines.  The default name for machine
  127. are LSI.0, LSI.1, and so on.  Lock files in /tmp/xinu are used to specify the
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 3
  136.  
  137.  
  138. current machine owner.  Look at the reservation system software in
  139. {Xinu-directory}/src/cmd/download/lib for details.
  140.  
  141. Compilation of Cross-Development Software
  142. ----------- -- ----------------- --------
  143.  
  144.    To complete installation you must recompile source programs that contain
  145. references to the Xinu directory.  Shell scripts have been provided to do
  146. the job.  For details, see file README in the installation directory:
  147.  
  148.     cd {Xinu-directory}/install
  149.     cat README
  150.  
  151. Talk to the LSI 11
  152. ---- -- --- --- --
  153.  
  154.    Test the serial line that connects the VAX to the LSI 11 using program
  155. {Xinu-directory}/bin/odt.  Odt connects your terminal to the LSI serial
  156. line such that everything you type goes to the LSI 11 and everything the
  157. LSI prints comes to your terminal.  Thus, you can talk to the LSI from
  158. any terminal on the VAX (or from an rlogin session).
  159.    Only three wires are needed on the RS232 connection between the
  160. machines: data in, data out, and ground.  The most common problem you'll
  161. have is getting the data-in and data-out connected the right way.  Try
  162. swapping them if things don't work the first time.  The wires to swap are
  163. on pins 2 and 3 of the 25-pin connector that plugs into the VAX.  The pin
  164. configuration on the LSI interface boards can be found under the DLV11J
  165. description in the vendor's hardware handbook.
  166.  
  167.     odt -cLSI
  168.     ...send a break using backslash followed by null...
  169.     \CONTROL-@
  170.     ...you should get an @ prompt from the LSI...
  171.     ...your're talking to hardware ODT; try displaying memory...
  172.     2/
  173.     ...you should see the contents of location 2...
  174.     DEL or CONTROL-C to abort odt and return to the shell
  175.  
  176. Network Servers
  177. ------- -------
  178.  
  179.    Now that installation is complete, you need to Configure the Xinu
  180. kernel software itself, and recompile it.  To do so, you must choose
  181. internet addresses for the domain name server, time server, and remote
  182. file server machines.  You can start the remote file server yourself
  183. on the VAX.  It is found in {Xinu-directory}/bin/fs.  You need to know
  184. the internet address of the VAX where fs runs, as well as the internet
  185. address of the machine that runs a time server (UDP port 37) and the
  186. internet address of a machine that runs a domain name server (UDP port
  187. 53).  Ask your local network guru to tell you these internet addresses
  188. (in dotted decimal notation) and modify the SERVER constants found near
  189. the end of file {Xinu-directory}/src/sys/sys/Configuration.  If you do
  190. not have an assigned Internet address for your network (i.e., your network
  191. does not connect to the DARPA Internet), choose network an address for it.
  192. Using 128.10.2.0 (Which is actually the address of an Ethernet at Purdue),
  193. means you won't have to recompile the kernel.
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 4
  202.  
  203.  
  204.  
  205.     cd {Xinu-directory}/src/sys/sys
  206.     ...edit file Configuration; change SERVER address constants...
  207.     make install
  208.  
  209. If your site does not have one or more of the required servers, or for
  210. any reason you want to isolate Xinu machines on their own Ethernet, you
  211. can still experiment with Xinu by having one of your LSI 11 machines
  212. run simplified server code.  Just download the binary image in file
  213. {Xinu-directory}/lib/serve11 onto one of the LSI 11 and use odt to
  214. answer questions and set options.
  215.  
  216.     download -s -a5 -cSERVE11 {Xinu-directory}/lib/serve11
  217.     odt
  218.     ...answer questions...
  219.     DEL or CONTROL-c to abort odt and leave server running
  220.  
  221. The class "SERVE11" should map to a machine that is reserved for the
  222. server.  See {Xinu-directory}/lib/machines (the machine database) for
  223. details.
  224.  
  225. Remote File Server
  226. ------ ---- ------
  227.  
  228.    The remote file server answers queries from the network and reads/writes
  229. files as directed.  If you run the file server on your VAX, then the file
  230. server has the permissions of the user who starts it.  We recommend that you
  231. install a new user account (e.g., "xinu"), and always execute the file server
  232. as that user.  Also, you should understand that the file server makes all
  233. world-readable files accessible over the network.  if you connect to the
  234. DARPA Internet, it makes world-readable files accessible from foreign sites.
  235.    The file server comes configured to use UDP port 2001.  Check with your
  236. local network guru to make sure 2001 is not in use, and if it is, choose a
  237. new port number for the file server.  Change the default port in the software
  238. in {Xinu-directory}/src/fs or just use the -p option when invoking fs.  You
  239. must also change the port number that the kernel uses - it can be found in
  240. file {Xinu-directory}/src/sys/sys/Configuration.
  241.    Start the file server:
  242.  
  243.     ...login to the VAX under the account that owns the file server...
  244.     {Xinu-directory}/bin/fs
  245.     logout
  246.  
  247. Try Running Xinu
  248. --- ------- ----
  249.  
  250.    Now that you have a network running RARP, time, and name servers,
  251. you can boot xinu.  Download and run it.
  252.  
  253.     download -s -a5 -cLSI {Xinu-directory}/src/sys/sys/a.out
  254.     odt
  255.     ...you should get Xinu boot message and login prompt...
  256.     type any login
  257.     ...you should get prompt with machine name in it...
  258.     ...try commands such as the following...
  259.     ps
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 5
  268.  
  269.  
  270.     date
  271.     dg
  272.     help
  273.     mount
  274.     ...try accessing remote files as follows...
  275.     rls /
  276.     cat > /tmp/junk
  277.     Hi there - this is a file
  278.     created from Xinu
  279.     CONTROL-D
  280.     cat /tmp/junk
  281.     ...you should see what you just created...
  282.  
  283. Directories
  284. -----------
  285.  
  286.    When the tar tape has been read, you will find a directory
  287. structure like this:
  288.  
  289. 1 .                Xinu-directory (usually /usr/Xinu)
  290.  
  291.   2 README            This file
  292.  
  293.   2 /bin            cross-development software
  294.  
  295.   2 /include            include files
  296.  
  297.   2 /install            installation shell script
  298.  
  299.   2 /lib            various libraries and data files
  300.  
  301.   2 /man            all manual pages for:
  302.     3 /man1            cross-development commands
  303.     3 /man2            Xinu system commands
  304.     3 /man3            library commands
  305.     3 /man4            device driver descriptions
  306.  
  307.   2 /src            all source programs:
  308.     3 /cmd            cross-development software
  309.     3 /lib            libraries
  310.     3 /sys            Xinu and configuration:
  311.       4 /con            configuration program
  312.       4 /h            Xinu include files
  313.       4 /sys            Xinu kernel and Makefile
  314.     5 /shell        Xinu shell and commands
  315.     3 /serve11            Server software for sites that need it
  316.       4 /con            Server configuration
  317.       4 /h            Server include files
  318.       4 /sys            Server kernel and Makefile
  319.         5 /shell        Server shell and commands
  320.  
  321. Server Directory
  322. ------ ---------
  323.  
  324.    The directory {Xinu-directory}/src/serve11 contains the software
  325. that comprises the LSI 11-based RARP/time/name/file server.  It duplicates
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333. Jan 14 09:12 1987  Xinu Version 7 Distribution Tape README Page 6
  334.  
  335.  
  336. much of the Xinu kernel, and is not necessary at all sites.  You can
  337. remove the directory entirely if you have standard network servers or if
  338. you are satisfied to run the binary found in {Xinu-directory}/lib/serve11.
  339.  
  340. DEQNA Driver Explanation
  341. ----- ------ -----------
  342.  
  343.    The DEQNA driver configured in the kernel is NOT the same as that in the
  344. text book.  The version installed here uses a timeout to circumvent the
  345. hardware problem in early DEQNAs that causes them to hang.  If you have a
  346. lightly loaded network, or a DEQNA built after the summer of 1986, you can
  347. switch to the textbook driver.  Otherwise, we suggest you use the bullet-
  348. proof version.
  349.  
  350. Problems or Questions
  351. -------- -- ---------
  352.  
  353. Reports of errors in the software or documentation are gratefully accepted.
  354. Please mail all comments and bug reports to:
  355.  
  356.     DARPA Internet/ CSNet address:
  357.         comer @ cs.purdue.edu
  358.     uucp address:
  359.         {allegra, ihnp4} ! purdue ! comer
  360.     Postal address:
  361.         Computer Science Department
  362.         Purdue University
  363.         West Lafayette, IN  47907
  364.         (317) 494-6009
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.