[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making a bootable CDROM for an RS/6000 PReP machine



----- Original Message -----
> Hi,  I have an RS/6000 860 portable.  I have debian ppc installed on
> it.  The Debian PPC CD image was bootable for me, but the kernel wasnt
> correct and would bomb out.  I tried to roll my own bootable CD with
> mkisofs, as a rockridge extensions, and a kernel image that works from
> floppy, as and El torito bootable CD.  This cd is not bootable although
> mountable as ISO-9660.  I was looking for some insight as to the format of
> the Debian PPC cd image and how it is bootable on my PReP machine, so
> I can make my own.  I am
> currently sans floppy drive and would like to be able to test and compile
> kernels properly and the PReP boot isnt like LILO ;( ...  Any help would
> be great.  Ill have a floppy drive soon, but CD booting is much faster!

I have made bootable CD's for a Motorola Powerstack 604-100
(first version). If the IBM is PREP it should be the same,
assuming the kernel is bootable on the machine.


Here's what I posted to comp.os.linux.powerpc:

The CD that comes with debian 2.2r0 for PPC has a Prep
bootable CD #1, but it doesn't fully work, you still need
to use floppies for Motorola PowerStacks; not sure which
systems it works on, probably IBM's.

Here's what to do:

    Get a copy of MkHybrid, I used the win32 version as
my burner is on my NT4 laptop so my notes are windowz based
(not to different for unix though).

o    create a folder for the necessary files, I called it cdrom.
o    Mount the first 2.2r0 CD in the CD reader (R:)
o    Copy base2_2.tgz from:
        R:\dists\potato\main\disks-powerpc\2.2.16-2000-07-26
     to the folder cdrom.
o    Copy the files from:
        R:\dists\potato\main\disks-powerpc\2.2.16-2000-07-26\prep
     to the folder cdrom.

     The folder cdrom will look like:

      Directory of D:\2.2_rev0-PPC\PrepBoot\cdrom

     25-07-00  06:50p            16,496,028 base2_2.tgz
     25-07-00  06:50p             2,069,854 bootfull.bin
     25-07-00  06:50p               964,807 drivers.tgz
     25-07-00  06:52p                10,925 install.txt
     25-07-00  06:52p               723,034 linux
     25-07-00  06:52p                62,792 sysmap.gz
                    8 File(s)     20,327,440 bytes

o    Create the iso image (using the MkHybrid tool):
       >mkhybrid -o cd.iso -J -L -r -T -V 2.2r0 -prep-boot bootfull.bin
cdrom

o    Burn the cd image with whatever burner s/w you have for your
     CD writer (I used Adaptec Easy CD Creator 3.5 lite).

o    Boot using this cdrom:
     PPC1-Diag> pboot 0 60    --Assuming your cd is scsi id 6

o    When partitioning the disk ensure there is a PREP bootable
     partition, here's my partition table:

        Disk /dev/sda: 67 heads, 62 sectors, 1009 cylinders
        Units = cylinders of 4154 * 512 bytes

           Device Boot    Start       End    Blocks   Id  System
        /dev/sda1   *         1         2      4123   41  PPC PReP Boot
        /dev/sda2             3       122    249240   82  Linux swap
        /dev/sda3           123      1009   1842299   83  Linux

o    Change the CD's as requested by the installer.

o    After you have installed potato you will need to add
     root=/dev/sda3 as a parameter during boot as the kernel is
     built assuming /dev/sda1 as root.

o    If you have a PPC1bug that supports the GEVEDIT command you
     can set this as a global environment variable:

     PPC1-Diag>GEVEDIT bootargs
     bootargs=root=/dev/sda3
     Update Global Environment Area of NVRAM (Y/N)? y

NOTE: It would be possible to copy the contents of disk 1 onto this
disk either as another session or simply add the files into the cdrom
directory and use mkhybrid to create the entire cd (have done in
the past), but I prefer leaving the debian cds untouched.


--
<Regards Sign="Steve"/>



Reply to: