[slackintosh-users] Bootable CD/initrd problem

  • From: Mark Glassberg <vzeeaxwl@xxxxxxxxxxx>
  • To: slackintosh-users@xxxxxxxxxxxxx
  • Date: Fri, 25 May 2007 13:50:06 -0400

I am trying to recreate a Slackintosh install cd with a new kernel.  My cd
boots on my B&WG3 with the "c" key held down.  When the kernel tries to make
/dev/ram0 the root device, however, it fails and the kernel panics.

Below is some detail on what I'm doing.  Any assistance would be greatly
appreciated.

Thanks in advance,
Mark

I use the following to create the image:
        mkisofs -hfs -part -map ~/Slackintosh/iso/maps -no-desktop \
        -hfs-volid "Yaboot_Boot_CD" -hfs-bless ~/Slackintosh/boot -r \
        -o yaboot-cd.iso ~/Slackintosh

The boot directory has:
        -r--r--r-- 1 root root 10485760 2006-10-06 15:04 initrd
        -r--r--r-- 1 root root     1852 2005-12-31 09:48 ofboot.b
        -rw-r--r-- 1 root root  1857228 2007-05-23 15:39 vmlinux
        -r--r--r-- 1 root root   145456 2006-08-19 07:29 yaboot
        -r--r--r-- 1 root root      518 2007-05-24 11:52 yaboot.conf

The map file reads:
        # This mapping is needed to successfully boot and to keep macos
        # from treating everything like a text file (ugly!)
        #
        # EXTN   XLate   CREATOR   TYPE     Comment
        .b              Raw     'UNIX'  'tbxi'  "bootstrap"
        yaboot          Raw     'UNIX'  'boot'  "bootstrap"
        vmlinux         Raw     'UNIX'  'boot'  "kernel"
        .conf           Raw     'UNIX'  'conf'  "bootstrap"
        initrd          Raw     'UNIX'  'root'  "root_image"
        *               Raw     'UNIX'  'UNIX'  "unix"

The ofboot.b file reads:
        <CHRP-BOOT>
        <COMPATIBLE>
        MacRISC MacRISC3 MacRISC4
        </COMPATIBLE>
        <DESCRIPTION>
        GNU/Linux PPC bootloader
        </DESCRIPTION>
        <BOOT-SCRIPT>
        " screen" output
        load-base release-load-area
        boot cd:,\boot\yaboot
        </BOOT-SCRIPT>
        <OS-BADGE-ICONS>
        1010
        000000000000F8FEACF6000000000000
        0000000000F5FFFFFEFEF50000000000
        00000000002BFAFEFAFCF70000000000
        0000000000F65D5857812B0000000000
        0000000000F5350B2F88560000000000
        0000000000F6335708F8FE0000000000
        00000000005600F600F5FD8100000000
        00000000F9F8000000F5FAFFF8000000
        000000008100F5F50000F6FEFE000000
        000000F8F700F500F50000FCFFF70000
        00000088F70000F50000F5FCFF2B0000
        0000002F582A00F5000008ADE02C0000
        00090B0A35A62B0000002D3B350A0000
        000A0A0B0B3BF60000505E0B0A0B0A00
        002E350B0B2F87FAFCF45F0B2E090000
        00000007335FF82BF72B575907000000
        000000000000ACFFFF81000000000000
        000000000081FFFFFFFF810000000000
        0000000000FBFFFFFFFFAC0000000000
        000000000081DFDFDFFFFB0000000000
        000000000081DD5F83FFFD0000000000
        000000000081DDDF5EACFF0000000000
        0000000000FDF981F981FFFF00000000
        00000000FFACF9F9F981FFFFAC000000
        00000000FFF98181F9F981FFFF000000
        000000ACACF981F981F9F9FFFFAC0000
        000000FFACF9F981F9F981FFFFFB0000
        00000083DFFBF981F9F95EFFFFFC0000
        005F5F5FDDFFFBF9F9F983DDDD5F0000
        005F5F5F5FDD81F9F9E7DF5F5F5F5F00
        0083DD5F5F83FFFFFFFFDF5F835F0000
        000000FBDDDFACFBACFBDFDFFB000000
        000000000000FFFFFFFF000000000000
        0000000000FFFFFFFFFFFF0000000000
        0000000000FFFFFFFFFFFF0000000000
        0000000000FFFFFFFFFFFF0000000000
        0000000000FFFFFFFFFFFF0000000000
        0000000000FFFFFFFFFFFF0000000000
        0000000000FFFFFFFFFFFFFF00000000
        00000000FFFFFFFFFFFFFFFFFF000000
        00000000FFFFFFFFFFFFFFFFFF000000
        000000FFFFFFFFFFFFFFFFFFFFFF0000
        000000FFFFFFFFFFFFFFFFFFFFFF0000
        000000FFFFFFFFFFFFFFFFFFFFFF0000
        00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
        00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
        00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
        000000FFFFFFFFFFFFFFFFFFFF000000
        </OS-BADGE-ICONS>
        </CHRP-BOOT>

The yaboot.conf, which I took from the original cd, reads:
# Slackintosh: yaboot.conf - CDROM version (based on Debian's yaboot.conf)
# rkroll 20020703
# adrian 20050318 updated for slackintosh 10.1
# adrian 20050923 updated for slackintosh 10.2
# adrian 20051231 added new kernel
# adrian 20060819 11.0.0
# This is just enough stuff to get the installer up and running.

init-message="Slackintosh 11.0 Installation"

device=cd:
timeout=100
default=install

image=boot/vmlinux
        label=install
        initrd=boot/initrd
        append="root=/dev/ram0 init=/linuxrc ramdisk_size=10240 video=ofonly rw"

image=boot/vmlinux
        label=installfb
        initrd=boot/initrd
        append="root=/dev/ram0 init=/linuxrc ramdisk_size=10240 rw"

image=boot/vmlinux
        label=install-serial
        initrd=boot/initrd
        append="root=/dev/ram0 init=/linuxrc ramdisk_size=10240 video=ofonly rw 
console=ttyS0,57600n8"


image=boot/vmlinuxalt1
        label=alt1
        initrd=boot/initrd
        append="root=/dev/ram0 init=/linuxrc ramdisk_size=10240 video=ofonly rw"

image=boot/vmlinuxalt1
        label=alt1fb
        initrd=boot/initrd
        append="root=/dev/ram0 init=/linuxrc ramdisk_size=10240 rw"

image=/boot/g5ppc64
        label=g5ppc64
        initrd=/boot/initrd
        append="root=/dev/ram0 devfs=nomount init=/linuxrc ramdisk_size=10240 
video=ofonly rw"

image=/boot/g5ppc64
        label=g5ppc64-serial
        initrd=/boot/initrd
        append="root=/dev/ram0 devfs=nomount init=/linuxrc ramdisk_size=10240 
video=ofonly rw console=ttyS0,57600n8"

#Gentoos 64bit kernel
image=/boot/xserv
        label=gentooxserv
        initrd=/boot/initrd
        append="root=/dev/ram0 devfs=nomount init=/linuxrc ramdisk_size=10240 
video=ofonly rw"

image=/boot/xserv
        label=gentooxserv-serial
        initrd=/boot/initrd
        append="root=/dev/ram0 devfs=nomount init=/linuxrc ramdisk_size=10240 
video=ofonly rw console=ttyS0,57600n8"


Other related posts: