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.
Created attachment 121719 [details] working yaboot.conf
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).
~ > /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.
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.
Already checked that. At least for FC4, ppc64-utils does not include ofpathname.
Grab from http://people.redhat.com/pnasrat/ofpathname
~ > ./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.
Hmm ok both are getting it wrong - can you attach a tarball of your device tree tar czvf devicetree.tar.gz /proc/device-tree
Created attachment 121785 [details] devicetree.tar.gz
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.
~ > ./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!
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:
The one from http://people.redhat.com/pnasrat/ofpath? No, still gives same results for me: /disk@0:
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:
Tested on a variety of systems and working now
*** Bug 183106 has been marked as a duplicate of this bug. ***