I have an OpenBSD 3.9 stable and I can't use one of it's network
adapters. The machine got tree adapters, all of them are RTL8139. On
dmesg I had the following lines (related to all adapters):
Oct 7 13:37:36 polluxbsd02 /bsd: rl0 at pci1 dev 4 function 0 "Realtek
8139" rev 0x10: irq 12, address 00:08:54:d9:08:d6
Oct 7 13:37:36 polluxbsd02 /bsd: rlphy0 at rl0 phy 0: RTL internal PHY
Oct 7 13:37:36 polluxbsd02 /bsd: unknown vendor 0x1904 product 0x8139
(class network subclass ethernet, rev 0x01) at pci1 dev 5 function 0 not
configured
Oct 7 13:37:36 polluxbsd02 /bsd: rl1 at pci1 dev 7 function 0 "Realtek
8139" rev 0x10: irq 11, address 00:d0:09:d8:38:7d
The information printed on the chip is:
RTL8139C
15078S1
120B TAIWAN
The working adapters (rl0 and rl1) got "RTL9139D" on it.
I already tries to change my /usr/src/sys/dev/pci/if_rl_pci.c (as
sugested on the list [EMAIL PROTECTED]) with the diff:
---- diff
RCS file: /cvs/src/sys/dev/pci/if_rl_pci.c,v
retrieving revision 1.12
diff -u -p -r1.12 if_rl_pci.c
--- if_rl_pci.c 24 Feb 2006 00:26:16 -0000 1.12
+++ if_rl_pci.c 9 Oct 2006 14:56:48 -0000
@@ -97,7 +97,8 @@ const struct pci_matchid rl_pci_devices[
{ PCI_VENDOR_NORTEL, PCI_PRODUCT_NORTEL_BS21 },
{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8129 },
{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8139 },
- { PCI_VENDOR_TTTECH, PCI_PRODUCT_TTTECH_MC322 }
+ { PCI_VENDOR_TTTECH, PCI_PRODUCT_TTTECH_MC322 },
+ { 0x1904, 0x8139 }
};
int
----
After this change I got on the dmesg:
---- dmesg (partial)
rl0 at pci1 dev 4 function 0 "Realtek 8139" rev 0x10: irq 12, address
00:08:54:d 9:08:d6
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci1 dev 5 function 0 unknown vendor 0x1904 product 0x8139 rev
0x01: can't map i/o space
rl2 at pci1 dev 7 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:d0:09:d8:38:7d
rlphy1 at rl2 phy 0: RTL internal PHY
----
I know this adapters is working because I had windows working on it
without problems.
Due to political problems (thats our first BSD) the replacement of the
adapter is not an option for me. :(
Theres any hope?
Thank-you.