From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199610210019.UAA05671@alpha0.estabrook.org> Date: Sun, 20 Oct 1996 20:19:11 +0500 From: jestabro@amt.tay1.dec.com Subject: Re: Boot via SRM on poweron In-Reply-To: >>> "Oleg Shein #2" said: > > How can I boot via SRM bypassing interactive aboot mode? > I set boot evironment variables from srm > >>> set boot_osfile 0/vmlinux.gz > >>> set boot_osflags root=/dev/sda2 > but it didn't affect. > Are there any way to save settings in SRM for boot device, file and flags? > I have unused 0 partition (2 MB length) and install aboot loader with the > 'swriteboot /dev/sda /bool/bootlx /vmlinuz.gz' command, but are able to > boot setting appropriate number from /etc/aboot.conf. > $ cat /etc/aboot.conf > 0: 0/vmlinux.gz root=/dev/sda2 > 1: 2/vmlinux.gz root=/dev/sda2 I think it should work if you do the following: set boot_file "1/vmlinux.gz" set boot_osflags "root=/dev/sda2" set bootdef_dev DKA0 init (this assumes that SCSI disk "sda" is unit 0; if it's unit 1, then DKA100, etc). Also, note that you can't have a "0 partition"; both minlabel and fdisk start numbering partitions with "1". After you cycle power, do: show boot* to see all the boot* variables. They should be how you set them. This is the normal way it works if you're booting a kernel out of a filesystem; I'm not sure that that is what the "swriteboot" command you gave above actually does. Use "2/vmlinux.gz" to tell aboot to boot it from sda2. I've never bothered to have an "unused" partition #1; aboot fits fine in front of partition 1 if you offset the start of partition 1, say 512-1024 sectors (easy to do this in minlabel). Then I use #1 for swap and #2 for the root file system. Good luck. --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Migration Tools - LINUX Project Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202 151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com Littleton, MA 01460-1407 decnet: tallis::jestabro ------------------------------------------------------------------------------- -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null