Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yaboot on G5 not finding rootfs and kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
S1belius
n00b
n00b


Joined: 01 Jul 2017
Posts: 2

PostPosted: Sat Jul 01, 2017 8:23 pm    Post subject: Yaboot on G5 not finding rootfs and kernel Reply with quote

Hi everyone :o

EDIT: I don't have a preferred, fully working kernel built yet.

I installed yaboot-static as yaboot proper would not compile via emerge. Yabootconfig worked w/o errors when fed my albeit differently named kernel and initramfs images (kernel-4.9.16-gentoo and initramfs-genkernel-ppc64-4.9.16-gentoo, respectively). Did yabootconfig --chroot /mnt/gentoo from a ppc minimal installation disc.

The error I'm thrown at yaboot prompt upon startup is of the form "no such file or directory" after it lists my openfirmware path and kernel image location on the root partition (/dev/sda4 in this case, and yaboot.conf says partition=4, is that correct?).

Note: I also did "ybin -C /mnt/gentoo/etc/yaboot.conf -v" from outside my chroot while running the minimal installation disc a few times. My yaboot.conf is currently unchanged from the default produced by yabootconfig.

Your help is very much appreciated!

UPDATE 1: I recently ran "ybin -v" from within my chroot using ybin provided by yaboot-static, yaboot.conf as produced directly from yabootconfig. I also reset my openfirmware. Still, the same error results upon reboot.

UPDATE 2: Using a backdated version of yaboot according to advice from other posts on this forum, I got yaboot to detect my kernel.

Also of note I put it on separate ext2 partition mounted on /boot. This may have been what got it detected.

The system boots fine until it hangs complaining it didn't find a root partition.

I am puzzled since I've now put / and /boot on the same partition (/dev/sda4) now which I've made to be ext2 (reformatted + recopied formerly being ext4) with "root=" kernel and yaboot.conf parameters, both. In addition I've reverted to the latest yaboot-static with the same success in only kernel detection and load.

My root filesystem is /dev/sda4, and the messages now complain it is not a valid block device after the initramfs load.

I am stuck here now, please help, thanks :)


UPDATE 3:

New (new) edit here: 3-12anything uncompilable on sda4 rootfs AND on the USB fs copy.
Where I'm @ nowww:: Boots from a USB flash drive plugged in with a copy of my filesystem (ext2). Kernel is from latest official gentoo sources for ppc, 4.9.16-r1. Boots flawlessly when instructed to use this fs. I've even managed to cull the ultra turbo fans via editing the 4.9.16 config. 3.12-anything wouldn't compile in my (hard disk) environment.

In addition, I get the HDD ROOT PARTITION FULLY detected after copying to /boot and using the "G5" minimal gentoo 2014 CD kernel image + .igz initrd, which are of the 3.12.21-r1-G5 version, but get no support for framebuffered video which my card uses (there is no onboard/integrated video on this mac).

It's a dualistic compromise. Still, any suggestions are most welcome. Thank you.


P.S. There are no sd* device nodes in the device tree at boot, checked during interrupted openrc (except for my sda1 = USB drive).


Last edited by S1belius on Fri Jul 14, 2017 7:59 am; edited 2 times in total
Back to top
View user's profile Send private message
S1belius
n00b
n00b


Joined: 01 Jul 2017
Posts: 2

PostPosted: Wed Jul 12, 2017 7:03 am    Post subject: Just need a kernel version suggestion Reply with quote

Bump. Please would like a kernel version suggestion for compiling to get BOTH hard disk root filesystem detection AND frambuffered video for Ati and nvidia, powermac.

Thank you
Back to top
View user's profile Send private message
blackjok3r
n00b
n00b


Joined: 13 Feb 2005
Posts: 16

PostPosted: Tue Jul 25, 2017 9:20 am    Post subject: Reply with quote

Hey mate.
I am having the same issue here. This has been incredibly difficult and I am seriously about to do a burnout on this computer. :twisted: Wasted days and days of my life.

Only after sooooooooo much fucking around did I find this post. Seems it does not work on these computers anymore and I am going to give up. I don't have the skills or the time to waste on this old piece of junk and will be moving onto a Dell Precision 6500 that I also have here. I really should not have tried installing gentoo on such an old system that I did. g3 ibook 600mhz. Its just not maintained anymore I think. No body tests it.

Edit:
I am recompiling kernel just incase I missed something. Also I will try using sda instead of hda in yaboot.conf. Its worth a shot. If this doesn't work my bush basher might get used tonight to shred this stupid mac piece of junk to bits. :evil:
Back to top
View user's profile Send private message
blackjok3r
n00b
n00b


Joined: 13 Feb 2005
Posts: 16

PostPosted: Tue Jul 25, 2017 2:23 pm    Post subject: Reply with quote

Recompiling the kernel fixed my issue mate. Not sure if it was same cause as yours. I must have unchecked something to do with the drives or drive controllers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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