From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199605132330.AAA00359@dax.dcs.ed.ac.uk> Date: Tue, 14 May 1996 00:30:25 +0100 From: Stephen C. Tweedie Subject: Re: MILO on Multia: environment corruption? In-Reply-To: <4n1p86$t3m@gap.cco.caltech.edu> Hi, On 11 May 1996 10:13:26 GMT, egnor@ugcs.caltech.edu (Dan Egnor) said: > Hello, > We've just got our new UDB (aka Multia) system in. It came with Linux > preinstalled, but we've been trying to set up MILO etc. to our liking. > After some difficulties, we have Linux 1.3.100 booting from MILO 1.3.95 > (built with Linux 1.3.100). As per various recommendations we're using > the ARC firmware installed on our system. Good choice. > However, MILO's environment variables appear to be corrupted by the ARC > firmware's settings and vice versa. In particular, when we run the MILO > "resetenv" command, the variables are cleared but the next time ARC is > booted it complains about corrupted NVRAM and all the settings must be > reset. Yes. This is no problem on some of the other AXP platforms where separate nvram areas are available, but on the Multia, MILO and the ARC can't both use the same space for their environment variables without getting each other hopelessly confused. I think that the MILO vars are really only useful if you burn MILO into flash and don't bother with the ARC. > It seems to us like MILO and ARC are both trying to use the same area of > NVRAM for settings, but incompatibly. Precisely. :( > Any ideas? Sure. Avoid using MILO environment variables. Fortunately, you can make it work quite well without using MILO vars. If you set up an environment variable OSLOADOPTIONS in the ARC boot option for MILO, then that variable's contents will be executed as a command line by MILO when it starts up. I've set mine to contain the value "boot sda2:vmlinux.gz", so that the ARC autoboot will also autolaunch MILO's boot cycle and get linux running without any operator intervention. Which is just as well, since the machine is currently running headless... Check the docs, all this is from memory -- I may have misspelled the options, but the technique itself should work. Cheers, Stephen. -- Stephen Tweedie Department of Computer Science, Edinburgh University, Scotland.