> Initializing RTL8169s/8110s driverkobject_register failed for
> RTL8169s/8110s (-13)
>  [<c01b5038>] kobject_register+0x5b/0x63
>  [<c021038a>] bus_add_driver+0x5d/0xc5
>  [<c01c16df>] pci_register_driver+0x60/0x82
>  [<f8849033>] rtl8169_init_module+0x33/0x37 [rt_r8169]
>  [<c0133892>] sys_init_module+0xc8/0x1aa
>  [<c0102e68>] syscall_call+0x7/0xb

Ok, I have found what the problem is: apparently, this was an 
access right problem when creating the entry for the driver in 
the sysfs.
By comparing the RTnet driver with Linux 2.6.13.2's driver, I 
have found the reason: the module name in the driver (file 
rtnet-0.9.0/drivers/experimental/r8169/rt_r8169.c) contains a 
slash!
I have modified the line:
#define MODULENAME "RTL8169s/8110s"
into:
#define MODULENAME "rt_r8169"

FYI, Linux's driver r8169.c defines
#define MODULENAME "r8169"


After recompiling, the problem disappears: the driver loads 
nicely, and detects correctly both my cards.
Cf. the output of dmesg:
Initializing rt_r8169 driver<6>ACPI: PCI Interrupt 0000:02:09.0
[A] -> GSI 18 (level, low) -> IRQ 16
r8169: --------------------------
r8169: dev->mtu = 1500
r8169: priv->curr_mtu_size = 1500
r8169: priv->tx_pkt_len = 1514
r8169: priv->rx_pkt_len = 1514
r8169: priv->hw_rx_pkt_len = 1522
r8169: --------------------------
RTnet: registered rteth0
rteth0: Identified chip type is 'RTL8169s/8110s'.
rteth0: rt_r8169 RTnet Gigabit Ethernet driver 2.2-04 at 0xdc00, 
00:90:cc:c2:f0:68, IRQ 16
r8169: priv->mcfg=3, priv->pcfg=1
r8169: Set MAC Reg C+CR Offset 0x82h = 0x01h
rteth0: Auto-negotiation Enabled.
rteth0: 1000Mbps Full-duplex operation.
r8169: priv->linkstatus = 0x10
ACPI: PCI Interrupt 0000:02:0a.0[A] -> GSI 19 (level, low) -> IRQ 
17
r8169: --------------------------
r8169: dev->mtu = 1500
r8169: priv->curr_mtu_size = 1500
r8169: priv->tx_pkt_len = 1514
r8169: priv->rx_pkt_len = 1514
r8169: priv->hw_rx_pkt_len = 1522
r8169: --------------------------
RTnet: registered rteth1
rteth1: Identified chip type is 'RTL8169s/8110s'.
rteth1: rt_r8169 RTnet Gigabit Ethernet driver 2.2-04 at 0xd800, 
00:90:cc:c2:82:da, IRQ 17
r8169: priv->mcfg=3, priv->pcfg=1
r8169: Set MAC Reg C+CR Offset 0x82h = 0x01h
rteth1: Auto-negotiation Enabled.
rteth1: 1000Mbps Full-duplex operation.
r8169: priv->linkstatus = 0x10

and the output of rtifconfig:
rteth0    Medium: Ethernet  Hardware address: 00:90:CC:C2:F0:68
          BROADCAST  MTU: 1500

rteth1    Medium: Ethernet  Hardware address: 00:90:CC:C2:82:DA
          BROADCAST  MTU: 1500



I still have to find it the drivers are actually working...

-- 
Romain Lenglet


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to