First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 253614
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: PPC Porters <ppc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Thomas Juerges <thomas@sokrates.homelinux.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
only_sysfs_ofpath.patch ofpath patch for only using sysfs nodes to determine the OF Path patch Joe Jezak 2009-01-09 23:50 0000 3.35 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 253614 depends on: Show dependency tree
Bug 253614 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2009-01-03 21:06 0000
Yaboot is supposed to work without an ofboot=blah entry in /etc/yaboot.conf
since ybin 0.18 (according to the yaboot.conf man page).

Now I configured my kernel without CONFIG_IDE_PROC_FS support since it is
considered "legacy" support:

--- from the Kernel help page --- 
legacy /proc/ide/ support
CONFIG_IDE_PROC_FS:

This option enables support for the various files in
/proc/ide.  In Linux 2.6 this has been superseded by
files in sysfs but many legacy applications rely on this.
--- ---

When I execute ofpath /dev/hda2

--- ---
thomas@mac ~ 10 ofpath /dev/hda2
ofpath: /dev/hda: Device not configured
--- ---

it is not able to find the proper ATA drive information because it does not
continue looking in the sysfs path.  ofpath checks for /proc/ide directory

--- from /usr/sbin/ofpath ---
if [ ! -L "/proc/ide/$DEVNODE" ] ; then
        echo 1>&2 "$PRG: /dev/$DEVNODE: Device not configured"
        return 1
fi
--- ---

which is obviously not available and then just stops the execution.  I guess it
could gather the necessary information from sysfs, too.

------- Comment #1 From Joe Jezak 2009-01-09 23:48:14 0000 -------
Yes, that's true.  As the kernel suggests, you should default to leaving this
on.  However, I've attached a patch which fixes the issue (at least for me). 
I'm not sure how appropriate it is for pushing it to the yaboot folks, but if
you'd give it a try, I'd appreciate it.

Thanks

------- Comment #2 From Joe Jezak 2009-01-09 23:50:54 0000 -------
Created an attachment (id=177929) [details]
ofpath patch for only using sysfs nodes to determine the OF Path

This patch fixes ofpath to use only sysfs nodes if /proc isn't available to
determine the IDE drive OF paths.

------- Comment #3 From Thomas Juerges 2009-02-22 21:46:49 0000 -------
(In reply to comment #2)
> Created an attachment (id=177929) [edit] [details]
> ofpath patch for only using sysfs nodes to determine the OF Path
> 
> This patch fixes ofpath to use only sysfs nodes if /proc isn't available to
> determine the IDE drive OF paths.
> 

mac tmp # ./ofpath /dev/hda2
/pci@f4000000/ata-6@d/disk@0:2

Seems to be okay now.  Thanks!

------- Comment #4 From Joe Jezak 2009-02-28 01:59:19 0000 -------
I submitted the patch upstream, hopefully it'll make it into the next version.

First Last Prev Next    No search results available      Search page      Enter new bug