Bug#341559: yaird: fails to create initrd
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:
> > On Thu, Dec 01, 2005 at 12:37:23PM +0100, Hans Ekbrand wrote:
> > > Package: yaird
> > > Version: 0.0.11-12
> > > Severity: important
> > >
> > > This is a Old-world IDE-based Macintosh Performa 5400, running unstable on a 2.6.8-12 kernel.
> >
> > Hi Hans, ...
> >
> > Do you happen to know exactly which driver is needed for this device ?
>
> Do you mean which module to drive this IDE harddisk?
>
> > > Unpacking linux-image-2.6-powerpc (from .../linux-image-2.6-powerpc_2.6.14-4_powerpc.deb) ...
> > > Setting up linux-image-2.6.14-2-powerpc (2.6.14-4) ...
> > > Using /usr/sbin/mkinitrd.yaird to build the ramdisk.
> > > Full list of probed ramdisk generating tools : /usr/sbin/mkinitrd /usr/sbin/mkinitrd.yaird /usr/sbin/mkinitramfs.
> > > yaird error: unrecognised device: /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare
> > > yaird error: unrecognised device: /sys/devices/pci0000:00/0000:00:10.0/0.f3000000:ohare/0.00020000:ATA
> >
> > Could you send us a :
> >
> > 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.
Friendly,
Sven Luther
Reply to: