2.5G USB LAN not working properly

Device: Linksys wrt1900acs
Openwrt version: latest snapshot
Driver: Package: kmod-usb-net-rtl8152 Version: 5.15.132-1

root@OpenWrt:~# lsusb 
Bus 003 Device 002: ID 0bda:8156 Yixin USB 10/100/1G/2.5G LAN
Bus 002 Device 001: ID 1d6b:0002 Linux 5.15.132 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 0781:5581 SanDisk Ultra
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.132 ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0003 Linux 5.15.132 xhci-hcd xHCI Host Controller
root@OpenWrt:~# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=, Driver=cdc_ncm, 5000M
    |__ Port 1: Dev 2, If 1, Class=, Driver=cdc_ncm, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 480M
root@OpenWrt:~# lsusb -v

Bus 003 Device 002: ID 0bda:8156 Yixin USB 10/100/1G/2.5G LAN
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0bda 
  idProduct          0x8156 
  bcdDevice           31.04
  iManufacturer           1 Yixin
  iProduct                2 USB 10/100/1G/2.5G LAN
  iSerial                 6 4013000001
  bNumConfigurations      3

same 2.5G USB LAN device on a x86 debian

root@debian:~# lsusb -v

Bus 004 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x8156 
  bcdDevice           31.04
  iManufacturer           1 Yixin
  iProduct                2 USB 10/100/1G/2.5G LAN
  iSerial                 6 4013000001

device on openwrt registered as eth1, plug/unplug twisted pair generate nothing on dmesg and cannot communicate with peer at all.
this usb lan device working well on x86 debian system, might the vendor id [0x0bda] on openwrt is not proper matching to [Realtek Semiconductor Corp.] and r8152.ko don't work with this device.

Debian is using it in cdc-ncm mode - can you try installing that driver in openwrt?

1 Like

looking for the VID:PID on the forum gives you a couple usable threads ...

same on openwrt,
lsmod output
cdc_ncm,cdc_ether on usbnet

I thought problem is vendor id matching, by searching 0x0bda on community all identified as Realtek Semiconductor Corp. and in my case lsusb output raw id and manufacturer name Yixin instead.

where did this come from ?

use 0bda:8156

... which is still using a Realtek chip.

follow another threadhttps://forum.openwrt.org/t/2-5g-usb-ethernet-kmod-usb-net-rtl8152/72154/30 by execute

echo 3 > /sys/bus/usb/devices/usb3/3-1/bConfigurationValue

and now the 2.5G lan is working.

1 Like

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