On Thu, Dec 01, 2005 at 01:52:34PM +0100, Sven Luther wrote:
> On Thu, Dec 01, 2005 at 01:10:39PM +0100, Hans Ekbrand wrote:
> > On Thu, Dec 01, 2005 at 12:54:34PM +0100, Sven Luther wrote:
[...]
> > > find /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare
> >
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA/ide0
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA/ide0/0.0
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA/ide0/0.0/block
>
> This is probably similar to the problem we had :
>
> /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00020000:ata-3/ide1
>
> so instead of ignoring 0.80000000:mac-io and 0.00020000:ata-3, you need to
> ignore 0.f3000000:ohare and 0.00020000:ATA.
>
> So, in /usr/lib/yaird/perl/Hardware.pm, at line 81, you need to copy one of the two
> above lines :
>
> if ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:mac-io$!) {
> # Apple bus; harmless
> }
> elsif ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:ata-\d+$!) {
> # Apple IDE bus; harmless
> }
>
> for your case, maybe something like :
>
> if ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:ohare$!) {
> # Apple bus; harmless
> }
> elsif ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:ATA\d+$!) {
> # Apple IDE bus; harmless
> }
>
> but i am no perl expert, and may have gotten the exact magic wrong.
Attached is a patch that made it match the two problematic lines:
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare
> > /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA
With the patch applied, the initrd was successfully created, and the
kernel booted without any problems.
--
Hans Ekbrand (http://sociologi.cjb.net) <hans@sociologi.cjb.net>
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?
78a79,81
> elsif ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:ohare$!) {
> # Another Apple bus; harmless
> }
81a85,87
> elsif ($abspath =~ m!/[a-f\d]+\.[a-f\d]+:ATA$!) {
> # Apple IDE bus; harmless
> }
Attachment:
signature.asc
Description: Digital signature