X86 RTL8168B help

Hello,

I am running OpenWRT x86 on a mid range Intel desktop. The onboard NIC is detected, but the addin PCI-E NIC is not visible in Interfaces. I have tried installing some drivers from within OpenWRT but to no success.

Can I please have some guyidance to get this card working?

TP-Link TG-3468 32-bit Gigabit PCIe Network Adapter, Realtek RTL8168B Chipset 10/100/1000Mbps

Thanks,
Donald, New Zealand

kmod-r8169 is installed by default in OpenWrt's x86_64 images and would/ should be the correct driver for your ethernet card. Potential issues might be, the kernel being too old for this particular chipset (v5.4 in 21.02.x, v5.10 in master) or missing firmware blobs (most r8168/ r8169 chipsets don't need any, some may need them optionally to fix issues, but few will require them).

Check dmesg for hints, especially dmesg | grep -i -e XID -e firmware and lspci -knn.

root@LEDE:~# dmesg | grep -i -e XID -e firmware
[    0.482312] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
root@LEDE:~# lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Fami                                                                                                                                                             ly DRAM Controller [8086:0100] (rev 09)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: snb_uncore
lspci: Unable to load libkmod resources: error -12
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core                                                                                                                                                              Processor Family Integrated Graphics Controller [8086:0102] (rev 09)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series                                                                                                                                                              Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset                                                                                                                                                              Family KT Controller [8086:1c3d] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: serial
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Co                                                                                                                                                             nnection [8086:1502] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Fa                                                                                                                                                             mily USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Fami                                                                                                                                                             ly High Definition Audio Controller [8086:1c20] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family                                                                                                                                                              PCI Express Root Port 1 [8086:1c10] (rev b4)
        Kernel driver in use: pcieport
00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family                                                                                                                                                              PCI Express Root Port 5 [8086:1c18] (rev b4)
        Kernel driver in use: pcieport
00:1c.6 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family                                                                                                                                                              PCI Express Root Port 7 [8086:1c1c] (rev b4)
        Kernel driver in use: pcieport
00:1c.7 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family                                                                                                                                                              PCI Express Root Port 8 [8086:1c1e] (rev b4)
        Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Fa                                                                                                                                                             mily USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a                                                                                                                                                             4)
00:1f.0 ISA bridge [0601]: Intel Corporation Q67 Express Chipset Family LPC Cont                                                                                                                                                             roller [8086:1c4e] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset F                                                                                                                                                             amily SATA AHCI Controller [8086:1c02] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
        Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBu                                                                                                                                                             s Controller [8086:1c22] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec                                                                                                                                                             :8161] (rev 15)
        Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:8168]
root@LEDE:~# root@LEDE:~# dmesg | grep -i -e XID -e firmware
root@LEDE:~# lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Fami                                                                                                                                                             ly DRAM Controller [8086:0100] (rev 09)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: root@LEDE:~#: not found
        Kernel driver in use: snb_uncore
lspci: Unable to load libkmod resources: error -12
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core                                                                                                                                                              Processor Family Integrated Graphics Controller [8086:0102] (rev 09)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series                                                                                                                                                              Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset                                                                                                                                                              Family KT Controller [8086:1c3d] (rev 04)
        Subsystem: Hewlett-Packard Company Device [103c:1495]
root@LEDE:~# [    0.482312] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
-ash: syntax error: unexpected "("
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Fami                                                                                                                                                             ly High Definition Audio Controller [8086:1c20] (rev 04)
root@LEDE:~# root@LEDE:~# lspci -knn
-ash: root@LEDE:~#: not found
root@LEDE:~# 00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Fami
             ly DRAM Controller [8086:0100] (rev 09)
r-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
  -ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: snb_uncore
-ash: Kernel: not found
root@LEDE:~# lspci: Unable to load libkmod resources: error -12
-ash: lspci:: not found
root@LEDE:~# 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core
             Processor Family Integrated Graphics Controller [8086:0102] (rev 09)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
3c:-ash: Subsystem:: not found
root@LEDE:~# 00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series
             Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
-ash: 00:16.0: not found
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~# 00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset
              Family KT Controller [8086:1c3d] (rev 04)
  -ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
ev 04-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: serial
Packard -ash: Kernel: not found
root@LEDE:~# 00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Co
             nnection [8086:1502] (rev 04)
1-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: e1000e
-ash: Kernel: not found
root@LEDE:~# 00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Fa
             mily USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
-ash: 00:1a.0: not found
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: ehci-pci
-ash: Kernel: not found
root@LEDE:~# 00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Fami
             ly High Definition Audio Controller [8086:1c20] (rev 04)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~# 00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family
              PCI Express Root Port 1 [8086:1c10] (rev b4)
-ash: syntax error: unexpected "("
root@LEDE:~#         Kernel driver in use: pcieport
-ash: Kernel: not found
root@LEDE:~# 00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family
              PCI Express Root Port 5 [8086:1c18] (rev b4)
-ash: syntax error: unexpected "("
root@LEDE:~#         Kernel driver in use: pcieport
-ash: Kernel: not found
root@LEDE:~# 00:1c.6 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family
              PCI Express Root Port 7 [8086:1c1c] (rev b4)
-ash: syntax error: unexpected "("
root@LEDE:~#         Kernel driver in use: pcieport
-ash: Kernel: not found
root@LEDE:~# 00:1c.7 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family
              PCI Express Root Port 8 [8086:1c1e] (rev b4)
-ash: syntax error: unexpected "("
root@LEDE:~#         Kernel driver in use: pcieport
-ash: Kernel: not found
root@LEDE:~# 00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Fa
             mily USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
-ash: 00:1d.0: not found
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: ehci-pci
-ash: Kernel: not found
root@LEDE:~# 00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a
             4)
-ash: syntax error: unexpected "("
root@LEDE:~# 00:1f.0 ISA bridge [0601]: Intel Corporation Q67 Express Chipset Family LPC Cont
             roller [8086:1c4e] (rev 04)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: lpc_ich
-ash: Kernel: not found
root@LEDE:~# 00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset F
             amily SATA AHCI Controller [8086:1c02] (rev 04)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~#         Kernel driver in use: ahci
-ash: Kernel: not found
root@LEDE:~# 00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBu
             s Controller [8086:1c22] (rev 04)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Hewlett-Packard Company Device [103c:1495]
-ash: Subsystem:: not found
root@LEDE:~# 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec
             :8161] (rev 15)
-ash: syntax error: unexpected "("
root@LEDE:~#         Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:8168]
-ash: Subsystem:: not found
root@LEDE:~#

Use the </> button on top of the message window when posting cli output.

What version of openwrt are you running?

1 Like

Please use code boxes and trim away the erroneously pasted parts at the bottom, causing error messages - as-is, your paste is very hard to read.

is the r8169 kmod/ firmware installed?

opkg list_installed | grep 816

the kernel module should load for 10ec:8161 (and show at least some information about your device, including its XID) since kernel v4.10.

1 Like

root@LEDE:~# opkg list_installed | grep 816
kmod-r8169 - 4.4.50-1
r8169-firmware - 2016-09-21-42ad5367-1

Sorry, just figuring this out.

21.02.2

o.k., in this case there's an easy solution… don't use the half a decade old and long abandoned LEDE 17.01.0 (kernel v4.4.50), but rather download and flash OpenWrt 21.02.2 instead (kernel v5.4.179), which should support your device just fine.

1 Like

Heck, I'm so sorry I don't know how I managed to download an old as hell version.

Thanks for pointing out the obvious

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.