Summary: | ofpath of sys-boot/yaboot-1.3.14 does not work for IDE drives when CONFIG_IDE_PROC_FS is disabled in a 2.6-Kernel configuration. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Juerges <aliens.satin0y> |
Component: | [OLD] Core system | Assignee: | PPC Porters <ppc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ofpath patch for only using sysfs nodes to determine the OF Path |
Description
Thomas Juerges
2009-01-03 21:06:26 UTC
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 Created attachment 177929 [details, diff]
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.
(In reply to comment #2) > Created an attachment (id=177929) [edit] > 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! I submitted the patch upstream, hopefully it'll make it into the next version. tried to use the new sda but got stuck with yaboot failing. tried adding CONFIG_IDE_PROC_FS to the kernel and that did not work. can i enable that option and use the new sda or does that only work with the old ide ? then i tried the patch and with my external disk plugged in i get a firewire path for both disks, internal and external, and without it plugged in i get /disk@0. i do not know much about the ofpath, is this the correct path for an ibook g4 : /pci/@f4000000/ata-6@d/disk@0 ? There hasn't been any word from upstream on a new yaboot release, so I added this patch to CVS. Please reopen this bug if there are issues. |