Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site mordor.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!mhuxn!mhuxr!ulysses!gamma!epsilon!zeta!sabre!bellcore!decvax!genrad!panda!talcott!harvard!seismo!ut-sally!mordor!jdb From: jdb@mordor.UUCP (John Bruner) Newsgroups: net.unix-wizards Subject: Re: Rebooting 4.2BSD on a 780 Message-ID: <2331@mordor.UUCP> Date: Wed, 19-Jun-85 11:38:28 EDT Article-I.D.: mordor.2331 Posted: Wed Jun 19 11:38:28 1985 Date-Received: Sun, 23-Jun-85 02:54:14 EDT References: <11030@brl-tgr.ARPA> <412@mtxinu.UUCP> <332@basser.oz> Organization: S-1 Project, LLNL Lines: 40 A long time ago, on a PDP-11 far, far away, I had a version of "boot", a minor kernel mod, and a change to the (at that time) very few programs which read "/unix" that provided the functionality you seek. The boot program held the name of its default file [my version of the V7 "/boot" had a timeout and default file so that it could be used for "hands off" auto-reboots] in a char array. A trivial program could be used to patch "/boot" so that it would default to any desired filename (from any desired device, unit, starting block). The kernel contained a char array that the boot program filled with the boot filename. [The boot program also provided an (optional) interactive memory patching facility, principally so that "rootdev" "swapdev", "swplo", and "nswap" could be changed if necessary.] A fixed location (I seem to recall using the word at 042) held the address of the boot-file-name array in the kernel. Programs like "ps" which read the namelist would first open "/dev/kmem" (which they usually did anyway), seek to 042 and read one word, seek to that address, and read the boot filename. That string would then be used as the namelist filename (instead of always using "/unix"). I implemented all of this (including mods to some programs such as "ps") on "my" 11/45 and it worked well. I could cause "/boot" to load any kernel file without having to move it into "/unix" first. (This was especially handy for switching back and forth between kernels with different swap devices, since we had a very flakey swap disc). However, while the other mods to the "boot" program are (I believe) still in use, the automatic namelist selection was not accepted on the other machines, and (for compatbility) I eventually pulled it out of "mine". I've always wanted to put the features of my PDP-11 boot program into the 4.nBSD "/boot". Of course, these days there are a lot of things that want to open "/vmunix". Someday when I have a spare afternoon.... -- John Bruner (S-1 Project, Lawrence Livermore National Laboratory) MILNET: jdb@mordor [jdb@s1-c.ARPA] (415) 422-0758 UUCP: ...!ucbvax!dual!mordor!jdb ...!seismo!mordor!jdb