Realtek 8169 based device

3 messages, 2 authors, 2012-02-03 · open the first message on its own page

Realtek 8169 based device

From: Andy Hawkins <hidden>
Date: 2012-02-03 10:17:07

Hi,

Firstly, apologies if this is the wrong place to ask this. Please let
me know if somewhere else is more appropriate.

Secondly, I realise that the kernel I'm using here is quite old.
However, this is the kernel provided by the version of Openfiler I'm
using, so updating isn't a simple matter.

I've just installed a Zyxel GN680T NIC into a PC (purchased here:
http://www.dabs.com/products/zyxel-gn680t-gigabit-pci-network-card-75Q5.html).
Initially it wasn't recognised by the device.

lspci -vv reports:


03:01.0 Ethernet controller: Hynix Semiconductor Unknown device 8169 (rev 10)
        Subsystem: Hynix Semiconductor Unknown device 8169
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium
TAbort- <TAbort- <MAbort- >SERR- <PERR+
        Latency: 64 (8000ns min, 16000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: I/O ports at de00 [size=256]
        Region 1: [virtual] Memory at fdaff000 (32-bit,
non-prefetchable) [size=256]
        [virtual] Expansion ROM at fd900000 [disabled] [size=128K]
        Capabilities: [5c] #00 [0000]

lspci -n reports:


03:01.0 0200: 106c:8169 (rev 10)

I had a look at the driver source, and it didn't appear to be
correctly recognising the PCI IDs. I managed to recompile the module,
adding in support for this device as follows:


        { PCI_DEVICE(0x106c,    0x8169), 0, 0, RTL_CFG_0 },

When I load this new module, the device is correctly recognised, and
ethtool can give sensible information and report negotiated link
speeds etc. However the network card fails to work (I'm pretty sure it
was reporting transmit time outs).

Can anyone offer any advice on getting this card to work?

Thanks

Andy

Re: Realtek 8169 based device

From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2012-02-03 13:37:33

Andy Hawkins [off-list ref] :
[...]
Secondly, I realise that the kernel I'm using here is quite old.
However, this is the kernel provided by the version of Openfiler I'm
using, so updating isn't a simple matter.
Which kernel version is it and does an "XID" line appear for the r8169
driver in the kernel log ?

[...]
Can anyone offer any advice on getting this card to work?
In the end there may be only two paths left : upgrade the kernel or
backport the driver.

It could help if some openfiler developer was available, at the very
least to retrieve an adequate kernel build tree if backporting is the
only option.

-- 
Ueimor

Re: Realtek 8169 based device

From: Andy Hawkins <hidden>
Date: 2012-02-03 13:49:31

Hi,

On Fri, Feb 3, 2012 at 1:26 PM, Francois Romieu [off-list ref] wrote:
Which kernel version is it and does an "XID" line appear for the r8169
driver in the kernel log ?
Sorry, I realised after hitting send that I hadn't posted the kernel version:

[root@nas ~]# uname -a
Linux nas.gently.org.uk 2.6.29.6-0.30.smp.gcc3.4.x86.i686 #1 SMP Thu
Nov 4 19:54:00 GMT 2010 i686 i686 i386 GNU/Linux

The 8169 driver line is:

[    5.216930] eth1: RTL8169sb/8110sb at 0xf8034000,
4c:00:4e:00:08:fe, XID 10000000 IRQ 16

Ondrej Zary replied to me suggesting I reseat the card as there is
only one bit difference between the Hynic ID (0x106c) and Realtek ID
(0x10ec). I'm at work and the machine is at home, so I can't check
that until later today.
In the end there may be only two paths left : upgrade the kernel or
backport the driver.
It could help if some openfiler developer was available, at the very
least to retrieve an adequate kernel build tree if backporting is the
only option.
I have already recompiled the driver to add in the handler for this
ID. If it turns out that this is in fact a correct ID, then at least I
know I can successfully compile and run any code should that become
necessary.

Thanks for the input.

Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help