ofpath failure -sata, firewire, usb - patch to fix

Bug #122607 reported by Pete
4
Affects Status Importance Assigned to Milestone
yaboot (Ubuntu)
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Medium
Unassigned

Bug Description

 package: yaboot_1.3.13a-1ubuntu3_powerpc.deb
 ofpath script ( /usr/sbin/ofpath )

Attached patch for ofpath fixes some outstanding problems, to increase boot install success rate for Applemac G5 sata and external firewire drives, adds usb paths.

Problem:
Fails to recognise Direct-Access-RBC.
Fails to recognise usb.
Fails to return correct paths for k2-sata dual drives in some Applemac G5.Caused by use of open firmware compatible property, and inconsistent use in G5 firmware.

Resulting in failure to install boot partition correctly, or in post install use of yaboot installers.

scsi_ofpath():
  case ata_k2|sata_svw)
   The compatible property is inconsistent across G5 hardware/firmware.
  case usb-storage) is missing
scsiinfo() and fixdevfs(): DEVTYPE = "Direct-Access" restricts type

Related branches

Revision history for this message
Pete (pxw) wrote :

Patch:

 scsi_ofpath()
 The patch uses the "name" property and a simple grep filter adequate for a single k2-sata-root with any number of k2-sata.
 case usb-storage) is added from yaboot.ozlabs.org

 scsiinfo() and fixdevfs()
 patch accepts all Direct-Access varieties.

Implications to other platforms unknown, but of considerable benefit to installation for many Applemac G5.

Patch genrated in ubuntu704 using " diff -NauB ", applies to ofpath extracted from
yaboot_1.3.13a-1ubuntu3
==========================
Tested so far on apple mac
    powermac G5 1.6Ghz SP, dual sata
    ibook G4
==========================
Attached patch2, md5sum.
==========================

Revision history for this message
Pete (pxw) wrote :
Colin Watson (cjwatson)
Changed in yaboot:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jacob (jacob1351) wrote :

what is the md5sum mean?

Revision history for this message
SLmanDR (sadill) wrote :

The md5sum is a mathematical check of the quality of your (downloaded) file. Ref: http://en.wikipedia.org/wiki/Md5sum

Revision history for this message
Jacob (jacob1351) wrote :

Well is it a linux file? or os x?

Revision history for this message
Jacob (jacob1351) wrote :
Revision history for this message
Luke Yelavich (themuso) wrote :

Thanks for the patch. I would like to include this in a new package for Ubuntu hardy, but I would like to credit you appropriately. I would prefer name and email, but name only would be appreciated. Feel free to email me privately if you wish.

Revision history for this message
Pete (pxw) wrote :

Luke, I am Peter Cros.

I have emailed other private info. You should have it by now, hope that covers it..
Glad to hear support continues for PPC.

Revision history for this message
Pete (pxw) wrote :

I have attached a copy of my working version of the revised ofpath script as patched for reference and for any one who wants to try it.

Revision history for this message
mindracer (dsartoros) wrote :

Thanks, I copied the ofpath file, and had to use a combination of the livecd and alternate cd(to use the rescue) to try to get my G5 up and running! Took many hours but got the hang of it referrings to posts on message boards and your genius fix. This should be added to the powerpc distro ASAP to prevent others who have a Powermac G5 having problems to boot into Ubuntu after install... especially when the LiveCD works so well on its own..

Revision history for this message
Pete (pxw) wrote :

Please may we have the proposed revised ofpath script included in the yaboot package for the intrepid release.
Satisfactory ubuntu ppc installation and restart depends completely on
yaboot bootloader installation and correct open firware path information.
This is provided by the ofpath script, which has not yet been revised to cover g4 and g5 ppc and external drives.
Many ubuntu ppc installs fail for this reason, with a loss of potential users and unnecessary community support demands.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package yaboot - 1.3.13a-1ubuntu5

---------------
yaboot (1.3.13a-1ubuntu5) intrepid; urgency=low

  * Patch from Peter Cros to fix various booting issues on some G5 machines
    with SATA. (LP: #122607)

 -- Luke Yelavich <email address hidden> Tue, 14 Oct 2008 09:05:41 +1100

Changed in yaboot:
status: Confirmed → Fix Released
Revision history for this message
Pete (pxw) wrote :

Attached ofpath.gz as in the yaboot - 1.3.13a-1ubuntu5 package for anyone updating

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.