Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libata and yaboot [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
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 208
Location: Stockholm, Sweden

PostPosted: Fri Jul 23, 2010 3:32 pm    Post subject: libata and yaboot [SOLVED] Reply with quote

I noticed a few on the ppc forum have tried the new libata drivers in 2.6.33-gentoo-r2 (and perhaps above), so I thought I would give it a try too. Unfortunately, I ran into difficulty, seemingly with yaboot (the newest, 1.3.14-r2). Basically now bootup is stuck at the point of not being able to load the kernel from partition 2. I get:
Quote:
can't OPEN /disk@0:2,\\yaboot can't OPEN /disk@0:2,\\:tbxi


Has anyone written a brief outline of how to switch from the old IDE drivers to libata with yaboot? Any advice would be appreciated.

The background was that this machine has been running well with the old IDE drivers up to and including running 2.6.33-gentoo-r2 with IDE. I took this running system, changed over to libata, switched all /dev/hd* to /dev/sd* in /etc/fstab. Without updating /dev/hd* in /etc/yaboot.conf, I did "ybin -v" [footnote]. When I rebooted, I got the message that the root device couldn't be found. On rebooting again, I have the "root=/dev/sda4" parameter to the Kernel and booted into a working libata environment. Everything from fstabs and lvm2 volumes were all found without problem. If I would have stopped there, everything would be fine. However, I then updated /dev/hd* to /dev/sd* in yaboot.conf and did a "ybin -v". No complaints this time from ybin. To prove to myself that everything was still good, I rebooted and now the system doesn't even get the kernel from where yaboot should have loaded it, namely the second partition (/dev/hda2 or /dev/sda2).

Related links on this forum where libata is seems to have worked:
* Gentoo/PPC adventure: after > 1 year – emerge -DuvN world
* Is this libata thing relevant in this case ? [SOLVED]

Footnote: changing from /dev/hd* to /dev/sd* in yaboot.conf at that point just lead to nothing being found when I did "ybin -v" since at that point I was still running a kernel with the old IDE drivers


Last edited by iMike on Fri Jul 23, 2010 8:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 208
Location: Stockholm, Sweden

PostPosted: Fri Jul 23, 2010 4:11 pm    Post subject: Reply with quote

Perhaps the answer was in the Gentoo PPC manual all the time. It's been years since I read it over. I just saw now on
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=10
the following:
Quote:

## ofboot is the Open Firmware way to specify the bootstrap partition.
## If this isn't defined, yaboot fails on the G5 and some G4s (unless
## you pass the necessary arguments to the mkofboot/ybin program).
## hd:X means /dev/sdaX.
##
## G5 users should uncomment this line!!

#ofboot=hd:2

I have a G4, but maybe this applied to me. :D
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 208
Location: Stockholm, Sweden

PostPosted: Fri Jul 23, 2010 8:08 pm    Post subject: Reply with quote

Just want to confirm that adding ofboot fixed the problem.

Specifically, I
* booted off of the Gentoo minimal ppc32 CD.
* Mounted the file system on the hard drive
* Added ofboot to /mnt/gentoo/etc/yaboot.conf
* Chrooted into /mnt/gentoo
* Tried mkofboot -v but got "No such file or directory /dev/sda2
* Tried ybin -v but got same result
* Tried ybin -v -o hd:2 but saw that nothing happened
* Tried ybin -v -b /dev/hda2 since the minimum CD still uses the old IDE libs

This appeared to work so I rebooted and voila! It worked.
In the new libata environment I did a "ybin -v" without adding any special command line options, but of course with the ofboot= line still in yaboot.conf.
This showed the the proper boot environment was being put on /dev/sda2.
Rebooted as proof to myself it was working and all was well.

The Gentoo PPC team seems to be fast in getting the documentation around. I was only aware libata would work for ppc with the latest stable Kernel 2.6.33 which just recently came live, but the ppc manual was already describing the libata way. Way to go Gentoo!
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