You can grab it over here:

http://www.homerow.net/projects/zlinux/multiboot.htm

Here's the readme:

The "multiboot" patch adds the ability to IPL different configurations
from
the same device using the LOADPARM parameter on VMs IPL command or the
"Load Parameter" field on the Hardware Management Console.

It is especially useful when IPLing zLinux in an LPAR.  You may setup
several
configs in /etc/zipl.conf, like a known good one, a test one, and one
that IPLs
into single user mode.  Then if something untoward happens while
testing, you
have alternatives to get zLinux back up.

You can even maintain 1 zipl.conf that can be used by several LPARs
and/or VM
guests.

It was developed against version 1.1.6 of IBM's s390-tools package.  You
may
get the latest verion of s390-tools from:


http://www10.software.ibm.com/developerworks/opensource/linux390/index.s
html

You will also need the latest version of the parsecfg library package.
It may
be obtained from:

    http://sourceforge.net/projects/parsecfg/

At this time, it appears to only be available via CVS and this was how I
got
it.  If you are unable to sup it, you may use the older 3.6.7 version.
Just
edit the zipl/src/zipl.c file and comment out the cfgFree() statement
before
building.

Then simply untar everything, apply this patch, rebuild s390-tools
according
to the Readme.zipl file, and install.

To use:

Add as many sections to your zipl.conf as is needed.  Then execute zipl
with
the new "-m" argument.  All of the sections will be added to the bootmap
file
and, depaneding on whether a default section is specified, you may need
to
include a LOADPARM value at next IPL.

If you specify a "default" section, either on the command line or in the
"defaultboot" section, you will be able to IPL without specifying the
LOADPARM
and the named section will be used.

If you do not specify a "default" section and you do not specify a
LOADPARM
or you specify a LOADPARM that doesn't match one of the section labels,
an
x'000A0000 E0F00E0F' disabled wait will be loaded.

Since there can be only 1 "target" directory for all the sections in the
zipl.conf file, you must specify the "target" directory either on the
command
line or in the "defaultboot" section.  Any "target" values found in
other
sections will be ignored.

The "ramdisk" and "image" values may be specified in the "defaultboot"
section
as well to establish them as defaults.  Then you may or may not override
them
in the remaining sections.

The value that is used for the LOADPARM is based either on the section
label
or you may use the new "label" keyword to specify exactly what you'd
like.  You
are limited to 8 characters and case doesn't matter.

All "dumpto" sections will be ignored.

Here is an example config file:

    [defaultboot]
    default=good
    target=/boot
    image=/boot/vmlinuz

    [good]
    parameters='dasd=4000-401F root=/dev/dasda1 noinitrd'

    [test]
    target=/boot/test             # This will be ignored
    image=/boot/vmlinuz.new
    parmfile=/boot/parmfile.new

    [initrd]
    label=ramdisk
    ramdisk=/boot/initrd

Issuing the command:

    zipl -m

Would produce the following:

    Building bootmap          : /boot/bootmap
    Processing section        : good
    adding file to bootmap    : /boot/vmlinuz located at 0x00010000
    adding file to bootmap    : /boot/parmfile.1 located at 0x00001000
    Processing section        : test
    adding file to bootmap    : /boot/vmlinuz.new located at 0x00010000
    adding file to bootmap    : /boot/parmfile.new located at 0x00001000
    Processing section        : initrd
    adding file to bootmap    : /boot/vmlinuz located at 0x00010000
    adding file to bootmap    : /boot/initrd located at 0x00800000
    Trailer entries used      : 14 out of 256
    Bootloader for ECKD type devices with z/OS compatible layout
installed.
    Syncing disks....
    ...done

Then, when you IPL you may choose which config you want to use by
ommiting
a LOADPARM altogether, in which case the "good" config will be used.  Or
you
may specify "good", "test", or "ramdisk" as the LOADPARM to specifically
select one of the configs.

That about all there is.  If you have questions or suggestions, please
don't
hesitate to email me.

Leland Lucius
[EMAIL PROTECTED]

==============

The latest version of this patch can be had from:

    http://www.homerow.net/projects/zlinux/multiboot.htm

Change History
03.073    First public release

Reply via email to