2.5G RTL8156B USB adapter on Omnia

My provider have a router with a 2.5G ethernet port. I’m trying to play with an USB 2.5G ethernet adpapter without success.
Adapter is based on RTL8156B.
With kmod-usb-net-cdc-ncm i have an usb0 network interface. I added it to the br-lan bridge to test before replace wan eth2 interface. But didn’t get an IP adresss on a laptop.
With kmod-usb-net-rtl8152 I didn’t get an usb0 interface maybe because not up to date as I read in the openwrt forum on RTL8156 topics.
I read in the openwrt forum that driver is very old
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/usb/r8152.c?h=linux-4.14.y&id=v4.14.222
Actual realtek driver is 2.13 so need to complie it. I’ll try to check how to do on Omnia.

I’ll be able to provide some outputs when at home with adapter connected (lsusb etc…)
But that the same problem explained here:

Some outputs.
With no kmod-usb-net-rtl8152:
cat /sys/kernel/debug/usb/devices show:
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 3
P: Vendor=0bda ProdID=8156 Rev=31.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1G/2.5G LAN
S: SerialNumber=001000001
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=128ms
C:* #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=256mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=(none)
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
C: #Ifs= 2 Cfg#= 3 Atr=a0 MxPwr=256mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

Driver is not uptodate. So nothing happen.
With kmod-usb-net-cdc-ncm it show:
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 3
P: Vendor=0bda ProdID=8156 Rev=31.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1G/2.5G LAN
S: SerialNumber=001000001
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=128ms
C:* #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=256mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
C: #Ifs= 2 Cfg#= 3 Atr=a0 MxPwr=256mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

Driver seem ok. There is usb0 interface. But link down. Nothing happen.
14: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br-lan state DOWN group default qlen 1000
link/ether 00:e0:4c:zz:zz:zz brd ff:ff:ff:ff:ff:ff

I don’t have the same behavior than in the forum for cdc-ncm.
I tried change bConfigurationValue to 3 but no change.
But anyway in the openwrt forum solution was to update kmod-usb-net-rtl8152.
Didn’t checked yet if I can do it easely on my omnia. I don’t have another Omnia to play and don’t want to break confguration on my main one.

You can ask @Pepe to include patch from OpenWrt forum in next release.

I am myself interested in Aquantia AQC111U-Chip which is capable of delivering 5 GBE. This one should be available for 5.4.x kernel (openwrt Master snapshot package kmod-usb-net-aqc111) therefore I need to wait for Openwrt 21.02 and the equivalent TOS version to be released

Should be the same then…wait for 21.02 nad kernel 5.4.

Plugable 2.5G USB C and USB to Ethernet Adapter, 2-in-1 Adapter Compatible with USB C/Thunderbolt 3 or USB 3.0, USB-C to RJ45 2.5 Gigabit LAN Compatible with Mac and Windows

Supposedly Linux Compatible since kernel 3.2.x

1 Like

It IS compatible - but the driver (which comes as kmod-packages) is totally outdated which is why you either need to install a self-compiled package or wait for next major OpenWrt (and TurrisOS) version which will bring updated driver.