On Sat, 2005-01-08 at 13:58 +0200, Radu Cristescu wrote:
> I have two cards:
> 
> - Intel eepro100 on a PCI slot (driver: e100)
> - VIA Rhine II on board        (driver: via-rhine)
> 
> With an older discover, the module loading order was:
>         eth100, via-rhine
> 
> With the latest discover from sarge, the order is reversed. This
> breaks my network install Debian Sarge CD (and at least for now the
> cdimage.debian.org site is down so I can't just download a new image
> and see if it works).

As a workaround, you can always specify the order in /etc/modules, which
is consulted before discover.

The problem evidently is caused by the implementation of /sys support in
discover.  The first rev of this support simply returned device
information in the order of the directories in /sys/bus/pci/devices,
which turns out to be exactly the reverse of the order
in /proc/bus/pci/devices (which is what discover used before, and still
uses on 2.4).

Currently, discover rather naively assumes this, and reverses the
directory order before turning it into device information.  By my
testing, this produces an identical order to the old discover.  It's not
the best, but qsort() on the directory list was producing weird orders;
I think I need to write a custom sort compare for this, which I'll do
eventually.  But this should be sufficient for now.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to