Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ibook g4: yaboot help request [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Sat Sep 06, 2008 12:35 am    Post subject: ibook g4: yaboot help request [solved] Reply with quote

Hi ppc wizards. I'm recycling an ibook g4 (the 12 inch one with the white plastic case). Got the 2008.0 cd, installed according to the instructions. Everything appeared to go ok, but after configuring yaboot, I try to reboot, and get nowhere. It's harder than usual to tell what's going on, because the backlight is dead on this machine; it looks like the screen flashes once, but that's the only discernable activity.

I was trying for a very simple configuration, 4 partitions, containing the two required apple boot partitions, a swap, and an ext3 for rootfs. Does anybody have a known-working yaboot.conf for this machine? Any other hints on what I should look for to get it booting?

Attached is the most current attempt at a yaboot.conf. TIA...
Code:

# yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

device=hd:
boot=/dev/hda2
device=/pci@f4000000/ata-6@d/disk@0:
partition=4
root=/dev/hda4
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enableofboot
enablecdboot

image=/boot/kernel-2.6.24-jrd
        label=Linux
        sysmap=/boot/System.map-2.6.24-jrd
        read-only


Last edited by therealjrd on Mon Sep 08, 2008 12:52 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Sep 06, 2008 10:39 am    Post subject: Reply with quote

Apart from the two 'device=' lines (which shouldn't matter though) it looks ok to me. Are you sure the kernel isn't the problem? Does your kernel include a framebuffer driver? Have you tried copying the kernel, initrd and modules from the cd and booting with that kernel?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Sat Sep 06, 2008 11:41 am    Post subject: Reply with quote

Could be. I'll try that. But I expected to see some kind of verbiage out of yaboot before it got around to booting the kernel. I have another old g4 on which I'm running gentoo, and it spits out some stuff, including giving me a boot menu and waiting a bit, before it actually starts booting.

Other clue which might be relevant: When I try to boot this one from the hard disk, and it fails, after a while I give up and stick the cd back in the drive, and it immediately boots that. Is that telling me that I'm never making it out of the rom into yaboot, or does it make sense to thing that yaboot is trying to boot my kernel, failing, and falling back to the cd?

I'll try the other when I get home and see how far I get with it. Thanks...
Back to top
View user's profile Send private message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Sun Sep 07, 2008 4:32 pm    Post subject: Reply with quote

I tried sticking the ppc32 kernel from the cd onto hda4 and reconfiguring yaboot to boot that. I tried recompiling my kernel, starting with the .config from the ppc32 kernel on the cd. None of that worked, so I went back almost to square one, and redid the install from scratch, ie reformatted the fs, rebuild portage and kernel, and did a fresh yabootconfig. All appeared to go ok, ie no obvious errors, but still doesn't boot when I take the cd out. A couple of screen flashes, then dead.

Any further hints? Any evidence that zapping the disk clean and repartitioning might help? Anybody got a proven-to-be-good yaboot.conf? Perhaps there's a way to plug a serial device into the uart for debugging yaboot?

Should I just give up and run ubuntu?
Back to top
View user's profile Send private message
3igHankCh0w
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2007
Posts: 80
Location: Fort Worth, Texas

PostPosted: Sun Sep 07, 2008 7:21 pm    Post subject: Reply with quote

I have gentoo 2008.0 on my G4 iBook (and also on my G3 Clamshell) and it works well. I too had the problem you describe
and I went back with the install disk and went through the process of installing the bootloader
and found I had skipped a step. Also I recall I also had to tell it where to look for the boot image
as I did not use genkernel. And one last note, if you have gone back with the install cd check your
/etc/fstab file, once on my PC laptop I had mislabeled my root partition and all I had to do was edit the file
to give the correct location. I hope you find this helpful I like gentoo on my macs as Apple has decided
my G4 Towers and my G3 Clamshell are not worth supporting.
_________________
And to think my decision to get a degree in computer science started
because I wanted to build a robot to chase the cats around the house.
Back to top
View user's profile Send private message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Sun Sep 07, 2008 8:48 pm    Post subject: Reply with quote

3igHankCh0w wrote:
went through the process of installing the bootloader
and found I had skipped a step.


Ok. You're using yaboot, right? Do you remember what step you skipped? I've been through it several times, and *thought* I'd got it right, but perhaps still missing something.

Re fstab, all I have is /dev/hda3 for swap and /dev/hda4 (ext3) for rootfs. There's an entry for automounting cdrom, and one for shm. Pretty minimal. That sound about like yours?

Thanks...
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Sep 07, 2008 10:00 pm    Post subject: Reply with quote

It sounds like your yaboot partition is not a blessed hfs+ partition. Can you check that you created /dev/hda2 as a bootstrap partition? My powerbook is set up the same way and has a very similar yaboot.conf file. I also remove the second device entry as Nixnut suggested, and then run ybin with the -v option to ensure that the partition is blessed.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Sun Sep 07, 2008 10:59 pm    Post subject: Reply with quote

JoseJX wrote:
It sounds like your yaboot partition is not a blessed hfs+ partition. Can you check that you created /dev/hda2 as a bootstrap partition? My powerbook is set up the same way and has a very similar yaboot.conf file. I also remove the second device entry as Nixnut suggested, and then run ybin with the -v option to ensure that the partition is blessed.


It has said it was blessed numerous times, though the penguin pee supply may be running low. But...

I rebooted back into the cd and re-ran mac-fdisk. Here's what I got:
Code:

livecd ~ # mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
        #                    type name                 length   base     ( size )  system
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_UNIX_SVR2 Apple_Bootstrap        1600 @ 64       (800.0k)  Linux native
/dev/hda3         Apple_UNIX_SVR2 swap                2097152 @ 1664     (  1.0G)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 root               56506304 @ 2098816  ( 26.9G)  Linux native

Block size=512, Number of Blocks=58605120
DeviceType=0x0, DeviceId=0x0

Command (? for help):


I think maybe the problem is that hda2 says it's a linux partition. Supporting evidence is that when I used clover-option-o-f at boot time, to get into OF, he said he couldn't find anything on hd:2.

I guess I'm going to go back farther and redo the parition map, making sure 2 is an hfs boot partition.
Back to top
View user's profile Send private message
therealjrd
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2006
Posts: 103

PostPosted: Mon Sep 08, 2008 12:56 am    Post subject: Reply with quote

Yup. that was it! Refrobbed the partition table, using 'b' to create hda2, which caused it to say it was a new world boot partition. Redoing the rest of the installation resulted in a bootable gentoo system. Huzzah!

So the instructions are a wiki, right? Should I try to update them to include the imporatant datum that you need to create the boot partition the correct way, else all kinds of wackiness ensues?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum