Bug#382945: yaird: Add support for Apple Oldworld hardware

2006-08-14 Thread Jérémy Bobbio
Package: yaird
Version: 0.0.12-17
Severity: wishlist
Tags: patch

Hi,

I have tried to use yaird on an old Apple Oldworld 7600/132.  The
version currently in Debian fails because of unrecognized devices.

The patch attached add supports for these machines by:
 * ignoring the Grand Central IO controller,
 * recognizing the MACE ethernet controller (module mace).

Regards,
-- 
Jérémy
diff -ruN yaird-0.0.12.orig/perl/Hardware.pm yaird-0.0.12/perl/Hardware.pm
--- yaird-0.0.12.orig/perl/Hardware.pm  2006-08-07 01:20:56.0 +0200
+++ yaird-0.0.12/perl/Hardware.pm   2006-08-14 10:36:31.0 +0200
@@ -97,6 +97,9 @@
elsif ($abspath =~ m!/[[:xdigit:]]+\.[[:xdigit:]]+:ohare$!) {
# Another Apple bus; harmless
}
+   elsif ($abspath =~ m!/[[:xdigit:]]+\.[[:xdigit:]]+:gc$!) {
+   # Another Apple bus; harmless
+   }
elsif ($abspath =~ m!/[[:xdigit:]]+\.[[:xdigit:]]+:ATA$!) {
# for stuff like
# 
/sys/devices/pci:00/:00:10.0/0.f300:ohare/0.0002:ATA
@@ -113,6 +116,11 @@
# Other mac-io devices are not storage related.
$modules = [ mesh ];
}
+   elsif ($abspath =~ m!/[[:xdigit:]]+\.[[:xdigit:]]+:mace$!) {
+   # Apple NIC,
+   # expected behind a mac-io.
+   $modules = [ mace ];
+   }
elsif ($abspath =~ m!/ide\d+$!) {
# IDE bus. On this end of the
# cable we normally have on the PCI bus a chipset


signature.asc
Description: Digital signature


Bug#382945: [Yaird-devel] Bug#382945: yaird: Add support for Apple Oldworld hardware

2006-08-14 Thread Jonas Smedegaard
On Mon, 14 Aug 2006 10:53:54 +0200 Jérémy Bobbio wrote:

 I have tried to use yaird on an old Apple Oldworld 7600/132.  The
 version currently in Debian fails because of unrecognized devices.
 
 The patch attached add supports for these machines by:
  * ignoring the Grand Central IO controller,
  * recognizing the MACE ethernet controller (module mace).

Thanks.

Isn't it only the Grand Central IO controller that causes failure?

As far as I remember (not looking at the code right now) no ethernet
NIC modules are recognized at all - you are expected to explicitly add
to the config what NIC drivers you want loaded.


 - Jonas

-- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm


pgpL8UMOly1Xs.pgp
Description: PGP signature


Bug#382945: yaird: Add support for Apple Oldworld hardware

2006-08-14 Thread Jérémy Bobbio
On Mon, Aug 14, 2006 at 01:44:38PM +0200, Jonas Smedegaard wrote:
 On Mon, 14 Aug 2006 10:53:54 +0200 Jérémy Bobbio wrote:
 
  I have tried to use yaird on an old Apple Oldworld 7600/132.  The
  version currently in Debian fails because of unrecognized devices.
  
  The patch attached add supports for these machines by:
   * ignoring the Grand Central IO controller,
   * recognizing the MACE ethernet controller (module mace).
 
 Thanks.
 
 Isn't it only the Grand Central IO controller that causes failure?
 
 As far as I remember (not looking at the code right now) no ethernet
 NIC modules are recognized at all - you are expected to explicitly add
 to the config what NIC drivers you want loaded.

When enabling the NETWORK directive in Default.cfg, yaird needs to know
about the mace module, it seems.

Regards,
-- 
Jérémy


signature.asc
Description: Digital signature