unixhistory | Mini-UNIX |
|
OverviewMini-UNIX runs on a DEC PDP-11/10, 11/20 or 11/40 with at least the following equipment:
Mini-UNIX is a simplified version of the full Sixth Edition UNIX system. It does not include these features:
Note that Mini-UNIX does not require a memory management unit. The system is normally distributed on 9 track magnetic tape, or RK05 disk packs. The following equipment may be supported:
The memory and disk space specified is enough to run and maintain Mini-UNIX. More will be required to keep all source on-line, or to handle a large number of users, big databases, diversified complements of devices, or large programs. Mini-UNIX does swapping to provide multi-programming support. The resident code of Mini-UNIX occupies 12-16kW (24-32kB) depending on configuration. The system as distributed occupies 12kW (24kB) of memory, allowing 16kW (32kB) of memory for user programs. Some editing of source code is required to add new disk, tape or communication device drivers, as the system will likely expand beyond 12kW (24kB). Keep in mind that the C compiler requires a minimum of 12kW (24kB) of memory to run. An 11/10, 11/20 or 11/40 is not advisable for heavy floating point work, as Mini-UNIX on this hardware uses interpreted 11/45 floating point. There is a memo describing Mini-UNIX here. More details can be found in the document Mini-UNIX Summary. This is included in the documentation ZIP file. All other documents mentioned can be found in the same place. NotationTo avoid confusion, any typed input is shown in red, and output is in black. In addition, input and output is shown in a fixed width font. Mini-UNIX, the PDP-11, and SIMHMini-UNIX is designed to run on the PDP-11 machine architecture. You may be lucky enough (like me) to own a real PDP-11 (or several), but most people will need to run this on a simulator. One of the most well known simulators is called SIMH. You can find it here, at http://simh.trailing-edge.com/ (be careful not to omit the hyphen). Getting startedA set of RK05 images has recently been discovered; these are believed to be a distribution set, and may be downloaded here. They are ready to run; disk A is the boot disk, disk B is the /usr disk, and disk C is the documentation disk. The ready-to-run disk images are not really recommended, for these reasons:
The instructions describe installation to an RK05; adjust as necessary, using the Setting up Mini-UNIX document as a guide. These instructions all assume that you are using SIMH, rather than some other simulator or even a real machine. Adapt the instructions accordingly if you are not using SIMH. It is also assumed that you are using a UNIX-like environment (BSD, Linux, Cygwin or similar). You will need the following to get Mini-UNIX up and running:
The disk imageThe initial disk image created by the installation process will be an RK05. There is no need to carry out any preparation, as the image file will be created automatically. InstallationThe actual installation takes place in two stages:
At each stage, the simulator has to be set up correctly. The easiest way to do this is to give it an initialisation file, which simply contains some necessary simulator commands. You can download copies of suitable files here, in a ZIP file called munix-initfiles.zip. These set up the devices tm0 (the tape drive) and rk0 (the first RK05 drive). Note that these files, as supplied, assume that the installation tape image is in a file called munix.tap, and that the installation disk image is in a file called system.dsk. Edit these if required; in particular, change the disk and tape image file names if required. It will be noticed that a second RK05 drive, rk1, is attached to the file source.dsk, and a third drive, rk2, is attached to the file doc.dsk; these will be needed later. Stage 1 - booting the installation tape and copying the disk imageWe are now ready to boot the simulated machine for the first time. The procedure is essentially the same as that described in the document Setting up Mini-UNIX, with some minor changes and simplifications. The purpose of this first stage is to boot a minimal utility program from the tape, and then use that to copy a boot block to the simulated disk. After that, the same program is used again to copy the main disk image to the simulated disk. The procedure is as follows; note that the name of the initialisation file has to be given to the simulator, and we start by using the one called setup.ini:
$ pdp11 setup.ini
PDP-11 simulator V3.11-0
Disabling CR
Disabling XQ
RK: creating new file
RK: creating new file
RK: creating new file
sim>
The messages may vary slightly, depending on your system. The initialisation file automatically attaches the simulated tape and disk devices. It also deposits the 6 word bootstrap program into memory for you. All you need to do is start that program:
sim>run 100000
At this point the program will copy a utility program from the tape into memory, and then enter an endless loop. After a second or two, halt this by stopping the simulation with Ctrl-E:
^E
sim>
Now start the utility program by starting the simulation at memory address 0; the response will be a prompt in the form of an = character:
sim>run 0
=
The = prompt is from a standalone utility program; it has a number of commands, each of which performs a copy operation between two particular devices. We want to copy from a tm tape drive to an rk disk drive, so we use the tmrk command. We need to copy the single block at tape offset 100 to disk offset 0; this is the boot block. =tmrk disk offset 0 tape offset 100 count 1 =Now we need to copy the 3999 blocks from tape offset 101 to disk offset 1; this is the disk image. =tmrk disk offset 1 tape offset 101 count 3999 =^E sim>quit Note that the simulation was finally stopped by typing Ctrl-E, and that the quit command was used to exit the simulator program. Stage 2 - booting Mini-UNIX from the simulated diskWe now need to boot from disk, using the initialisation file pdp11.ini. Happily, this is the default name used by SIMH, so its name can be omitted. There is also no need to key in a boot program, or indeed to start at a special address; we can just boot from the disk. Once this is done, a prompt of a single @ character appears, and we type in the name of the unix kernel file, rkmx. It is then possible to log in as user root; initially, no password is required. $ pdp11 PDP-11 simulator V3.11-0 Disabling CR Disabling XQ sim>boot rk @rkmx RESTRICTED RIGHTS USE, DUPLICATION OR DISCLOSURE IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH WESTERN ELECTRIC COMPANY, INC. ;login: root # After this, you are on your own! It is suggested that you proceed by working through the rest of the document Setting up Mini-UNIX. The first thing you will probably need to do is to rebuild the system to include the tm driver, which is associated with the devices /dev/mt0, /dev/mt1, etc. |
||||||||||
This site is copyright
© 2025
Bob Eager
Last updated:
22 Jul 2025