[vortex] two cards loaded in wrong order

Donald Becker becker@scyld.com
Mon Jun 3 18:23:01 2002


On Tue, 28 May 2002, Claus Rosenberger wrote:

> i have one 3C905C-TX and one 3C905-B installed and linked staticly into
> the kernel. While booting now the kernel always loads the 3C905C-TX as
> first device eth0 but i need 3C905-B as device eth0.
> I have read the interrupt-conflict-howto. there is described the probe
> order of pci-devices.

Driver modules are loaded sequentially.
A driver module finds all of the devices it supports in PCI bus order.
 - On machines with one PCI bus (the usual case), it is typically Bus #0.
 - The slot closest to the CPU is often the lowest device number.
 - On-board devices have higher device numbers so that plugged-in devices
    become the primary device.  (Consider failed on-motherboard video.)

> the C-TX has bus 00:0a.0 and the B has bus 00:0c.0.
> is that the reasen because C-TX is loaded as first device eth0 ?

Yes.

> how can i change ?

The first response is "why?"  The interface names have no semantic
meaning.  Just change your IP address and routing configuration to use
the correct interface name.

Distributions should make the following assumptions:
   If there is one Ethernet-like interface it will be named "eth0".
       This is a typical workstation configuration, and the user should
       just have to specify DHCP/static.
   If there are two or more Ethernet-like interface, there will an "eth1".
       There is no way to guess the desired configuration and routing.
       The user is sophisticated and will configure the addresses and
       routing explicitly.

> or is the mac-address the reason ? C-TX has an lower address like B.

The only situation where the MAC address matters is with ISA cards.  ISA
slots have no slot ID, and there is no reliable way to identify all ISA
devices.  The ISA 3c509 card uses an unique activation mechanism that
can only detect cards one at a time, in order.

-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993