WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: RTL8111 series LAN chips  (Read 7958 times)

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
RTL8111 series LAN chips
« on: February 13, 2014, 07:05:57 PM »
I am trying to get TC to work on a new version of the DMP eBox PC family (EB333x series).
This series has 2 x LAN ports. The first is detected by TC but the second is not.

I believe the second port is based on an RTL8111F device and runs at 1G.

Has anyone had experience with getting TC to work with this Ethernet chip family?

Cheers

Peter.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: RTL8111 series LAN chips
« Reply #1 on: February 14, 2014, 04:47:59 AM »
Please post the relevant parts from "lspci -vvnn".
The only barriers that can stop you are the ones you create yourself.

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
Re: RTL8111 series LAN chips
« Reply #2 on: February 14, 2014, 07:12:59 PM »
I have this reported from DMESG so far

eth1: RTL8168b/8111b at 0xf808a000, 44:4d:50:54:ae:47, XID 0c900800 IRQ 16


More later.


Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RTL8111 series LAN chips
« Reply #3 on: February 14, 2014, 10:29:02 PM »
I've noticed it's quite common on motherboards with two Ethernet  ports that only the primary Ethernet port is usable. Have never really investigated why exactly this is, though am thinking it's a limitation of the driver ?

« Last Edit: February 14, 2014, 10:30:35 PM by coreplayer2 »

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
Re: RTL8111 series LAN chips
« Reply #4 on: February 16, 2014, 08:19:50 PM »
Here is the relevant information reported by lspci:

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 07)
   Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0123]
   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Latency: 0, Cache Line Size: 128 bytes
   Interrupt: pin A routed to IRQ 16
   Region 0: I/O ports at c800 [size=256]
   Region 2: Memory at fc9ff000 (64-bit, prefetchable) [size=4K]
   Region 4: Memory at fc9f8000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: r8169
   Kernel modules: r8169


The driver being used appears not to work.

Peter.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RTL8111 series LAN chips
« Reply #5 on: February 17, 2014, 02:15:10 AM »
If you're using tc-4.7.7 then you'll probably need the Realtek r8168 driver.  On the other hand tc-5.1 appears to be using the correct fixed driver.  Again I've had no reason to use the secondary eth port so can't tell you if it works or not in either case, but is just a thought since there were detection issues with the older r8169 driver.  Your chip appears to be 8168 but is using the r8169 driver, am surprised it works at all!

« Last Edit: February 17, 2014, 02:24:48 AM by coreplayer2 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: RTL8111 series LAN chips
« Reply #6 on: February 17, 2014, 05:18:03 AM »
What do you mean by "appears not to work"? It does not show in ifconfig? Lights not blinking if you do ifconfig up? Etc.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: RTL8111 series LAN chips
« Reply #7 on: February 17, 2014, 05:40:47 AM »
If you're using tc-4.7.7 then you'll probably need the Realtek r8168 driver.  On the other hand tc-5.1 appears to be using the correct fixed driver.  Again I've had no reason to use the secondary eth port so can't tell you if it works or not in either case, but is just a thought since there were detection issues with the older r8169 driver.  Your chip appears to be 8168 but is using the r8169 driver, am surprised it works at all!

Looks like correct driver for device ID:
http://cateee.net/lkddb/web-lkddb/R8169.html
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RTL8111 series LAN chips
« Reply #8 on: February 17, 2014, 08:21:05 PM »
You my be right, I therefore stand corrected

Maybe this means little, but I fired up a notebook which uses the same eth. chip (single port) only to find it uses r8169 driver.  lspci -knn reports 8168B chip, same ID, however dmesg claims 8168c version which apparently is the rev2 chip

Code: [Select]
lspci -knn
08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 02)
        Subsystem: CLEVO/KAPOK Computer Device [1558:0860]
        Kernel driver in use: r8169
        Kernel modules: r8169

Code: [Select]
tc@box:~$ dmesg | grep r816
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:08:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
r8169 0000:08:00.0: setting latency timer to 64
r8169 0000:08:00.0: irq 47 for MSI/MSI-X
r8169 0000:08:00.0: eth0: RTL8168c/8111c at 0xf8036000, 00:90:f5:80:3d:de, XID 1c4000c0 IRQ 47
r8169 0000:08:00.0: eth0: link down
r8169 0000:08:00.0: eth0: link up
I have a couple more pc's which use the same/similar  dual port Ethernet chip, will verify when I return home tomorrow
 
I'd like to know which kernel the OP is using and see his dmesg results.
« Last Edit: February 17, 2014, 08:30:23 PM by coreplayer2 »

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
Re: RTL8111 series LAN chips
« Reply #9 on: February 18, 2014, 04:17:12 AM »
Thanks for all the ideas.

Just to clarify.

The second port does not work.

The primary port is based on a different device and it works fine, but is only a 100M port.
We need to get the second port going to get a true 1G connection.

Here is the full details reported by lspci for both ports:


00:08.0 Ethernet controller [0200]: RDC Semiconductor, Inc. R6040 MAC Controller [17f3:6040]
   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
   Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Latency: 64 (750ns min, 2000ns max)
   Interrupt: pin A routed to IRQ 11
   Region 0: I/O ports at d800 [size=256]
   Region 1: Memory at febdfc00 (32-bit, non-prefetchable) [size=256]
   Expansion ROM at febc0000 [disabled] [size=64K]
   Kernel driver in use: r6040
   Kernel modules: r6040


02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 07)
   Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0123]
   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Latency: 0, Cache Line Size: 128 bytes
   Interrupt: pin A routed to IRQ 16
   Region 0: I/O ports at c800 [size=256]
   Region 2: Memory at fc9ff000 (64-bit, prefetchable) [size=4K]
   Region 4: Memory at fc9f8000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: r8169
   Kernel modules: r8169

I have been directed to this driver
http://driverscollection.com/?H=RTL8111F&By=RealTek&SS=Linux

But I do not have clue how to possibly include this in TC.

All advice welcome.

Cheers

Peter.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: RTL8111 series LAN chips
« Reply #10 on: February 18, 2014, 05:10:46 AM »
You still didn't say what you mean with "doesn't work".
The only barriers that can stop you are the ones you create yourself.

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
Re: RTL8111 series LAN chips
« Reply #11 on: February 18, 2014, 06:35:45 AM »
The ebox units do not have any blinkin lights to blink!!! :o

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11638
Re: RTL8111 series LAN chips
« Reply #12 on: February 18, 2014, 11:00:54 AM »
Hi Tuftec
If you run  ifconfig  does it list eth0 and eth1?

Offline Tuftec

  • Full Member
  • ***
  • Posts: 111
Re: RTL8111 series LAN chips
« Reply #13 on: February 18, 2014, 07:36:44 PM »
Here is what ipconfig reports

« Last Edit: August 15, 2021, 11:47:33 AM by Rich »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11638
Re: RTL8111 series LAN chips
« Reply #14 on: February 18, 2014, 08:07:10 PM »
Hi Tuftec
Looks like you just need to assign an IP address.