RTL8153 USB3 not working

Hello,

RTL8153 LAN USB3 is not recognized when i plugin a usb3 port, dmesg and lsusb not shows nothing, but rtl8153 is linking. if I plug and unplug several times rtl8153 is recognized but stop working 5 minutes after, dmesg not shows nothing when stop. I can use this device on pc, it works fine, rtl8153 never stop working.

Armbian bionic 5.4

Driver for LAN is present which means problems are below.

Lan driver is the same as on PC, while the rest - bringing this hardware to the main Linux kernel represents expensive work.

BTW. This tells nothing - development is happening on a daily basis and this problem might already be fixed, but haven’t find the way to the user level yet. On a quick scan I found some possible related commits:


For more, it’s a lot, hard to tell: https://github.com/armbian/build/commits/master

The usb3Lan works but died in few minutes, this is the behavior:
when i turn on rockpi4, usb3 lan is detected:

lsusb:
Bus 008 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.

dmesg:
usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
usb 8-1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
usb 8-1: Product: USB 10/100/1000 LAN
usb 8-1: Manufacturer: Realtek
usb 8-1: SerialNumber: 001000001

but when i try to use it, device dead or disconnects immediately.

dmesg shows this when usb3Lan is desconnected:

xhci-hcd xhci-hcd.3.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 6
r8152 8-1:1.0 enx00e04c683362: intr status -63
xhci-hcd xhci-hcd.3.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 6
r8152 8-1:1.0 enx00e04c683362: intr status -63
xhci-hcd xhci-hcd.3.auto: WARN: HC couldn't access mem fast enough for slot 1 ep 6
r8152 8-1:1.0 enx00e04c683362: intr status -63
r8152 8-1:1.0 enx00e04c683362: Stop submitting intr, status -71
r8152 8-1:1.0 enx00e04c683362: Rx status -71

xhci-hcd xhci-hcd.3.auto: WARN Cannot submit Set TR Deq Ptr
xhci-hcd xhci-hcd.3.auto: A Set TR Deq Ptr command is pending.
usb 8-1: USB disconnect, device number 2

If i plug and unplug usb3lan is not recognized, i must reboot system.

I have read in another forums, this can be drivers issue, i need download and compile latest rlt8152 drivers, but i don’t know where and how to do this on Armbian

Aha, I see not all ports are working, but if you put into a working port, things works as expected:

root@rockpi-4b:~# lsusb 
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 006 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub

dmesg

[ 3390.259006] usb 6-1.4: new SuperSpeed Gen 1 USB device number 3 using xhci-hcd
[ 3390.279945] usb 6-1.4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[ 3390.279958] usb 6-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 3390.279968] usb 6-1.4: Product: USB 10/100/1000 LAN
[ 3390.279977] usb 6-1.4: Manufacturer: Realtek
[ 3390.279987] usb 6-1.4: SerialNumber: 000001
[ 3390.436625] usb 6-1.4: reset SuperSpeed Gen 1 USB device number 3 using xhci-hcd
[ 3390.504315] r8152 6-1.4:1.0 eth1: v1.10.11
[ 3390.517254] usbcore: registered new interface driver cdc_ether
[ 3390.536035] r8152 6-1.4:1.0 enx00e04c68003e: renamed from eth1
[ 3415.333399] IPv6: ADDRCONF(NETDEV_CHANGE): enx00e04c68003e: link becomes ready
[ 3415.333863] r8152 6-1.4:1.0 enx00e04c68003e: carrier on

If you want to do something useful and relieve those who fix bugs for you:

Until this is not fixed, use other port and monitor https://docs.armbian.com/Release_Changelog/ where we note when certain problem is addressed. Fixes comes with a regular updates.