Booting 2.2.0-pre6 on a PowerStack-II (Net 4000/200)

Loic Prylli Loic.Prylli at ens-lyon.fr
Thu Jan 21 00:56:59 EST 1999


Michael Meissner writes:
 > 
 > I see you added changes to set the initial cmd config.  Is there any way we can
 > add a configure line when building the kernel, so I can build a kernel with
 > different data (ie, my disk is /dev/sda2 and not /dev/sdb2, etc.).  That way it
 > has a better chance of working if rebooted in the middle of the night due to
 > power failure.
 > 

Some time ago, I made a small addition to Gabriel preploader, including
 a simple "prepctl" program, that permit to modify the
command-line stored in the zImage.

In my case, it is much more useful than getting the command-line
through residual data or NVRAM, because I can modify the command-line
parameters for the next reboot without needing access to the console
(you win a lot of time if you have 16 machines, moreover they are in a
closed room for which it is tedious to get the key:-). Of course this
is not an advantage anymore if there is some tools to modify NVRAM or
residual data after Linux is booted.

Anyway below is the patch, to modify the command-line of a zImage,
simply run "prepctl <zImage> <command line parameters>..." or "prepctl
/dev/sda1 ..." if it is installed on a disk partition.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: preploader.diff
Type: application/octet-stream
Size: 5925 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/19990120/f864ece3/attachment.obj>


More information about the Linuxppc-dev mailing list