Bug 174762 - Yaboot menu fails to display after install to secondary drive on G5
Summary: Yaboot menu fails to display after install to secondary drive on G5
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: yaboot
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact:
URL:
Whiteboard:
: 183106 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-01 22:54 UTC by Javier Pedemonte
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-28 20:12:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
working yaboot.conf (545 bytes, text/plain)
2005-12-01 22:54 UTC, Javier Pedemonte
no flags Details
devicetree.tar.gz (39.28 KB, application/x-gzip)
2005-12-02 21:29 UTC, Javier Pedemonte
no flags Details

Description Javier Pedemonte 2005-12-01 22:54:56 UTC
Description of problem:

Installed FC4 on a secondary SATA drive in a PowerMac G5.  Install went great,
but when rebooted, machine started right into Mac OS X.  Never hit the yaboot
menu to allow booting into Linux.


Version-Release number of selected component (if applicable):

Fedora Core 4


How reproducible:    Always


Steps to Reproduce:
1. Install FC4 on secondary drive of PPC64 machine (PowerMac G5).
2. Reboot after install.
3. Try to boot linux.
  
Actual results:

Always boots into Mac OS X, never displays yaboot menu.

Expected results:

Displays yaboot menu.

Additional info:

In OpenFirmware, the boot-device was set as "/k2-sata@0/disk@0:2,\\:tbxi".  I
tried doing "boot /k2-sata@0/disk@0:2" in OF, but it says that device doesn't exist.

After much searching on the Internet, I found out that setting 'boot-device' to
"/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:2,\\:tbxi" works to load
the yaboot menu.  But loading Linux still fails since the yaboot.conf file has
the wrong info.  So I added this to yaboot.conf and everything is working now:
  device=/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:
  ofboot=/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:2

I've attached my full yaboot.conf file.

Comment 1 Javier Pedemonte 2005-12-01 22:54:56 UTC
Created attachment 121719 [details]
working yaboot.conf

Comment 2 Paul Nasrat 2005-12-02 16:24:53 UTC
When you've booted can you do

ofpath /dev/sdb
ofpathname /dev/sdb

Assuming /dev/sdb is the device installed on (I'm guessing this is accurate).

Comment 3 Javier Pedemonte 2005-12-02 17:05:26 UTC
~ > /sbin/ofpath /dev/sdb
/k2-sata@0/disk@0:
~ > /sbin/ofpath /dev/sda
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:

The first one is wrong, but the ofpath for the primary drive looks correct.

I don't seem to have ofpathname on my machine.

Comment 4 Paul Nasrat 2005-12-02 17:10:10 UTC
ofpathname is part of ppc64-utils which should be installed it'd be
/usr/sbin/ofpathname
 if you don't have it can you yum install ppc64-utils and try thanks.

Comment 5 Javier Pedemonte 2005-12-02 17:44:00 UTC
Already checked that.  At least for FC4, ppc64-utils does not include ofpathname.

Comment 6 Paul Nasrat 2005-12-02 18:44:08 UTC
Grab from

http://people.redhat.com/pnasrat/ofpathname

Comment 7 Javier Pedemonte 2005-12-02 19:08:44 UTC
~ > ./ofpathname /dev/sda
/ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0
~ > ./ofpathname /dev/sdb
/ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0

For /dev/sdb, I think it should be "scsi@1", but it's exactly the same as /dev/sda.

Comment 8 Paul Nasrat 2005-12-02 19:19:36 UTC
Hmm ok both are getting it wrong - can you attach a tarball of your device tree

tar czvf devicetree.tar.gz /proc/device-tree



Comment 9 Javier Pedemonte 2005-12-02 21:29:47 UTC
Created attachment 121785 [details]
devicetree.tar.gz

Comment 10 Paul Nasrat 2005-12-02 23:10:28 UTC
Can you regrab the (updated) ofpathname script from my people page and test that
again.

Can you also grab ofpath from the same location, and test that.

Comment 11 Javier Pedemonte 2005-12-02 23:24:15 UTC
~ > ./ofpathname /dev/sda
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0
~ > ./ofpathname /dev/sdb
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0

That works better.

~ > ./ofpath /dev/sda
/disk@0:
~ > ./ofpath /dev/sdb
/disk@0:

Not so good!

Comment 12 Paul Nasrat 2005-12-02 23:28:24 UTC
I've uploaded ofpath again (I think I put up an older version) - could you
redownload and retry - it's working here:

[root@g5 ~]# sh ofpath /dev/sda
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:
[root@g5 ~]# sh ofpath /dev/sdb
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:

Comment 13 Javier Pedemonte 2005-12-03 00:00:29 UTC
The one from http://people.redhat.com/pnasrat/ofpath?  No, still gives same
results for me:
  /disk@0:

Comment 14 Paul Nasrat 2006-02-23 15:51:09 UTC
Can you test with the ofpath from the latest yaboot in rawhide:

 yaboot-1.3.13-0.18 

Here I get:

/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:
/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:





Comment 15 Paul Nasrat 2006-02-28 20:12:02 UTC
Tested on a variety of systems and working now

Comment 16 Paul Nasrat 2006-02-28 20:12:39 UTC
*** Bug 183106 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.