Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ofpath / ybin fix for Kernel 3.8.8-gentoo on G5
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
Odiseus
n00b
n00b


Joined: 21 Dec 2012
Posts: 12

PostPosted: Sun Apr 21, 2013 10:35 am    Post subject: ofpath / ybin fix for Kernel 3.8.8-gentoo on G5 Reply with quote

Hi,

today I tried 3.8.8-gentoo and could actually boot my Powermac G5.
Thanx a lot Phileas Fogg!

ybin didn't work though because it couldn't get the openfirmware path.
ybin uses ofpath for that purpose:

# ofpath /dev/sdb2
cat: /sys/devices/pci0001:00/0001:00:09.0/0001:03:0c.0/ata2/host1/target1:0:0/1:0:0:0/../../../devspec: No such file or directory
Unable to determine controller path!

I changed ofpath:

# diff old-ofpath ofpath
89c89
< sd*|sg*|sr*) CONTROLLER_PATH=$(cat ${DEVPATH}/../../../devspec) ;;
---
> sd*|sg*|sr*) CONTROLLER_PATH=$(cat ${DEVPATH}/../../../../devspec) ;;

For now it works for me, but should the kernel get changed?

Michael
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2773

PostPosted: Mon Apr 22, 2013 3:52 pm    Post subject: Reply with quote

I'll have to look, but ofpath probably needs to be fixed again. We've had problems with the path changing in the past and breaking it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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