Skip to contentSkip to conversation

NewWorld CD Booting?

DISCUSSION Andrei Warkentin 2 participants 2 messages Mar 15, 2006 – Mar 16, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I really don't know who else to approach with this, and this is (potentially) GRUB 2 related (if/when GRUB2 boots from CD). Basically I hack away at my "kernel attempt" on a an '05 iBook (dev system is 10.4), and decided to look into making a bootable CD so I could use QEMU PPC emulator instead of rebooting to test after every compile.

I created the bootinfo file (like this):
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3 MacRISC4
</COMPATIBLE>
<DESCRIPTION>
EKP++ for Mac.
</DESCRIPTION>
<BOOT-SCRIPT>
boot cd:,\ekp++\kernel
</BOOT-SCRIPT>
</CHRP-BOOT>

Created an HFS+ filesystem, blessed the right folder. Basically OF considers the made CD a "bootable CD". Moreover, I can boot everything fine if I do something like...
boot cd:,\ekp++\BootX <--- note that BootX is what bless(8) copies my bootinfo script as to the image. This is just behaviour on the part of the Darwin bless(8) command. By "everything fine", I mean I get the gray screen, then it says "Booting ELF" and I see the text printed by my "kernel".

If I boot up while holding "C", I get the gray screen, I can hear the CDROM spin up, then I get kicked back to the white and black OF screen and there is an error about memory access violation.

Is there some technical difference between both boot-ups? Maybe the OF entry is passed differently? Maybe stdout handle isn't open? Help :(.

Andrei Evgenievich Warkentin
[email protected]
Cell: (+1) (847) 321-15-55

#1 lore raw
Quoted 2 lines · Andrei Warkentin

I really don't know who else to approach with this, and this is (potentially) GRUB 2 related (if/when GRUB2 boots from CD).

GRUB2 should boot just fine from a CD.

Quoted 3 lines

Basically I hack away at my "kernel attempt" on a an '05 iBook (dev system is 10.4), and decided to look into making a bootable CD so I could use QEMU PPC emulator instead of rebooting to test after every compile.

I created the bootinfo file (like this):

<snip>

Quoted 1 line

If I boot up while holding "C", I get the gray screen, I can hear the CDROM spin up, then I get kicked back to the white and black OF screen and there is an error about memory access violation.

You didn't mention where you placed the bootinfo.txt. It should be /ppc/chrp/bootinfo.txt on the CD. http://penguinppc.org/ppc64/power-bootable-iso/ may have some information that helps you (though some of it isn't directly applicable).

-Hollis