Help Installing USB NIC Driver for OpenWrt

Hi Team,

I am trying to configure TPLink UE200 NIC (100Mbps) on Raspberry Pi4 Openwrt installation, but i am finding hard time identify the specific driver which i need to install to make the TPlink USB NIC adapter work.

please find the details below

dmesg

[ 1756.301286] usb 1-1.2: new high-speed USB device number 5 using xhci_hcd
[ 1756.406323] usb 1-1.2: New USB device found, idVendor=2357, idProduct=0602, bcdDevice=20.00
[ 1756.414702] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1756.422038] usb 1-1.2: Product: USB 10/100 LAN
[ 1756.426501] usb 1-1.2: Manufacturer: TP-LINK

interface details

root@OpenWrt:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
    link/ether dc:a6:32:d4:0f:b4 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether dc:a6:32:d4:0f:b5 brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether dc:a6:32:d4:0f:b4 brd ff:ff:ff:ff:ff:ff
lusb
oot@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.111 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 2109:3431  USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.111 xhci-hcd xHCI Host Controller
root@OpenWrt:~#

root@OpenWrt:~# lsusb -t

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 2: Dev 5, If 0, Class=, Driver=, 480M
        |__ Port 2: Dev 5, If 1, Class=, Driver=, 480M
root@OpenWrt:~#

lsmod

oot@OpenWrt:~# lsmod
brcmfmac              258048  0 
brcmutil               12288  1 brcmfmac
cfg80211              335872  3 rtlwifi,mac80211,brcmfmac
compat                 12288  4 rtlwifi,mac80211,brcmfmac,cfg80211
crc_ccitt              12288  1 ppp_async
evdev                  28672  0 
fat                    73728  1 vfat
hid                   114688  2 usbhid,hid_generic
hid_generic            12288  0 
ip_tables              24576  4 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             20480 24 ip6table_mangle,ip6table_filter
ip6t_REJECT            12288  2 
ip6table_filter        12288  1 
ip6table_mangle        12288  0 
ipt_REJECT             12288  2 
iptable_filter         12288  1 
iptable_mangle         12288  0 
iptable_nat            12288  1 
mac80211              573440  2 rtl_usb,rtlwifi
nf_conntrack           90112  9 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_CT,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_rtcache   12288  0 
nf_defrag_ipv4         12288  1 nf_conntrack
nf_defrag_ipv6         12288  1 nf_conntrack
nf_flow_table          20480  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw       12288  1 
nf_log_common          12288  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4            12288  0 
nf_log_ipv6            12288  0 
nf_nat                 32768  4 iptable_nat,xt_nat,xt_REDIRECT,xt_MASQUERADE
nf_reject_ipv4         12288  1 ipt_REJECT
nf_reject_ipv6         12288  1 ip6t_REJECT
nls_cp437              16384  1 
nls_iso8859_1          12288  1 
nls_utf8               12288  0 
ppp_async              20480  0 
ppp_generic            40960  3 pppoe,ppp_async,pppox
pppoe                  20480  0 
pppox                  12288  1 pppoe
r8152                  57344  0 
rtl_usb                16384  0 
rtl8150                16384  0 
rtlwifi                65536  1 rtl_usb
slhc                   12288  1 ppp_generic
snd                    73728  9 snd_bcm2835,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss,snd_hwdep,snd_compress
snd_bcm2835            20480  0 
snd_compress           20480  0 
snd_hwdep              16384  0 
snd_mixer_oss          28672  1 snd_pcm_oss
snd_pcm                90112  3 snd_bcm2835,snd_pcm_oss,snd_pcm_dmaengine
snd_pcm_dmaengine      12288  0 
snd_pcm_oss            53248  0 
snd_rawmidi            40960  0 
snd_seq_device         12288  1 snd_rawmidi
snd_timer              32768  1 snd_pcm
soundcore              12288  1 snd
uhci_hcd               32768  0 
usbhid                 40960  0 
usbnet                 28672  0 
vfat                   16384  1 
x_tables               28672 24 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_FLOWOFFLOAD,xt_CT,ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_CT                  12288  0 
xt_FLOWOFFLOAD         12288  0 
xt_LOG                 12288  0 
xt_MASQUERADE          12288  1 
xt_REDIRECT            12288  0 
xt_TCPMSS              12288  0 
xt_comment             12288107 
xt_conntrack           12288 12 
xt_limit               12288 20 
xt_mac                 12288  0 
xt_mark                12288  0 
xt_multiport           12288  0 
xt_nat                 12288  0 
xt_state               12288  0 
xt_tcpudp              12288  8 
xt_time                12288  0

|Hostname|OpenWrt|
|---|---|
|Model|Raspberry Pi 4 Model B Rev 1.4|
|Architecture|?|
|Firmware Version|OpenWrt 21.02.0-rc1 r16046-59980f7aaf / LuCI openwrt-21.02 branch git-21.106.55967-06dd6b5|
|Kernel Version|5.4.111|

kmod-usb-net-rtl8152

Hi , i had installed below package , still i am unable to find the NIC

root@OpenWrt:~# opkg install kmod-usb-net-rtl8152
Package kmod-usb-net-rtl8152 (5.4.111-1) installed in root is up to date.

ifconfig

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr DC:A6:32:D4:0F:B4  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fd30:ff10:7eb2::1/60 Scope:Global
          inet6 addr: fe80::dea6:32ff:fed4:fb4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32905 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10873265 (10.3 MiB)  TX bytes:44373902 (42.3 MiB)

eth0      Link encap:Ethernet  HWaddr DC:A6:32:D4:0F:B4  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32908 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11334157 (10.8 MiB)  TX bytes:44373902 (42.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:757 errors:0 dropped:0 overruns:0 frame:0
          TX packets:757 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:73260 (71.5 KiB)  TX bytes:73260 (71.5 KiB)

full dmesg output



root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.4.111 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16046-59980f7a
af)) #0 SMP Sun Apr 18 10:06:57 2021
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 2061312
[    0.000000]   DMA zone: 3792 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 242688 pages, LIFO batch:63
[    0.000000]   DMA32 zone: 12288 pages used for memmap
[    0.000000]   DMA32 zone: 770048 pages, LIFO batch:63
[    0.000000]   Normal zone: 16384 pages used for memmap
[    0.000000]   Normal zone: 1048576 pages, LIFO batch:63
[    0.000000] percpu: Embedded 21 pages/cpu s45272 r8192 d32552 u86016
[    0.000000] pcpu-alloc: s45272 r8192 d32552 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2
835.enable_hdmi=1 bcm2708_fb.fbwidth=0 bcm2708_fb.fbheight=0 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:D4:
0F:B4 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmc
blk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x37400000-0x3b400000] (64MB)
[    0.000000] Memory: 7943840K/8245248K available (7102K kernel code, 432K rwdata, 1140K rodata, 512K init, 5
41K bss, 235872K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from 0xffffffc0108a0b90 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440
795203123 ns
[    0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000159] Console: colour dummy device 80x25
[    0.000388] printk: console [tty1] enabled
[    0.000423] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj
=216000)
[    0.000445] pid_max: default: 32768 minimum: 301
[    0.000707] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000850] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001503] Disabling memory control group subsystem
[    0.002196] ASID allocator initialised with 32768 entries
[    0.002283] rcu: Hierarchical SRCU implementation.
[    0.002905] smp: Bringing up secondary CPUs ...
[    0.003285] Detected PIPT I-cache on CPU1
[    0.003335] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.003775] Detected PIPT I-cache on CPU2
[    0.003808] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.004281] Detected PIPT I-cache on CPU3
[    0.004313] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.004382] smp: Brought up 1 node, 4 CPUs
[    0.004409] SMP: Total of 4 processors activated.
[    0.004422] CPU features: detected: 32-bit EL0 Support
[    0.004435] CPU features: detected: CRC32 instructions
[    0.004486] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.004502] CPU: All CPU(s) started at EL2
[    0.004529] alternatives: patching kernel code
[    0.012614] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.012654] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.014390] pinctrl core: initialized pinctrl subsystem
[    0.015220] NET: Registered protocol family 16
[    0.016646] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.017207] cpuidle: using governor ladder
[    0.017237] cpuidle: using governor menu
[    0.017489] Serial: AMBA PL011 UART driver
[    0.018955] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.028042] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-02-16 14:17, variant start
[    0.032039] raspberrypi-firmware soc:firmware: Firmware hash is d6d82cf99bcb3e9a166a34cfde53130957a36bd3
[    0.056769] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.058565] SCSI subsystem initialized
[    0.058714] usbcore: registered new interface driver usbfs
[    0.058758] usbcore: registered new interface driver hub
[    0.058798] usbcore: registered new device driver usb
[    0.058920] usb_phy_generic phy: phy supply vcc not found, using dummy regulator
[    0.059206] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.060023] clocksource: Switched to clocksource arch_sys_counter
[    0.063268] thermal_sys: Registered thermal governor 'step_wise'
[    0.063497] NET: Registered protocol family 2
[    0.064358] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.064437] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.064823] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.065758] TCP: Hash tables configured (established 65536 bind 65536)
[    0.065998] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.066114] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.066406] NET: Registered protocol family 1
[    0.066442] PCI: CLS 0 bytes, default 64
[    0.067562] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.072000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.097093] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.098989] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.099014] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.099052] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.099087] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    0.162091] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.162250] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.162269] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.162288] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbf
fffff])
[    0.162333] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.162420] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.165806] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.165892] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.166050] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.169298] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.169321] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.169381] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.169397] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.169539] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.169659] pcieport 0000:00:00.0: PME: Signaling with IRQ 38
[    0.169880] pcieport 0000:00:00.0: AER: enabled with IRQ 38
[    0.170051] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    0.216754] pci 0000:01:00.0: 0xffffffc0104f2208 took 45635 usecs
[    0.219395] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    0.219423] bcm2708_fb: probe of soc:fb failed with error -2
[    0.221185] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.221976] iproc-rng200 fe104000.rng: hwrng registered
[    0.222116] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.222493] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.222703] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.222827] random: fast init done
[    0.223216] random: crng init done
[    0.228752] brd: module loaded
[    0.231758] loop: module loaded
[    0.232444] Loading iSCSI transport class v2.0-870.
[    0.233585] libphy: Fixed MDIO Bus: probed
[    0.233832] bcmgenet fd580000.ethernet: failed to get enet clock
[    0.233851] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.233868] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    0.233884] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    0.233907] bcmgenet: Skipping UMAC reset
[    0.244027] libphy: bcmgenet MII bus: probed
[    0.292064] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.292915] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.292946] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.293508] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000009000000890
[    0.294158] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.294180] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.294198] usb usb1: Product: xHCI Host Controller
[    0.294211] usb usb1: Manufacturer: Linux 5.4.111 xhci-hcd
[    0.294224] usb usb1: SerialNumber: 0000:01:00.0
[    0.294519] hub 1-0:1.0: USB hub found
[    0.294586] hub 1-0:1.0: 1 port detected
[    0.294979] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.295001] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.295025] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.295257] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.295277] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.295294] usb usb2: Product: xHCI Host Controller
[    0.295306] usb usb2: Manufacturer: Linux 5.4.111 xhci-hcd
[    0.295319] usb usb2: SerialNumber: 0000:01:00.0
[    0.295592] hub 2-0:1.0: USB hub found
[    0.295633] hub 2-0:1.0: 4 ports detected
[    0.296328] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.296418] dwc_otg: FIQ enabled
[    0.296422] dwc_otg: NAK holdoff enabled
[    0.296426] dwc_otg: FIQ split-transaction FSM enabled
[    0.296431] Module dwc_common_port init
[    0.296669] usbcore: registered new interface driver uas
[    0.296741] usbcore: registered new interface driver usb-storage
[    0.296810] mousedev: PS/2 mouse device common for all mice
[    0.297230] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.298658] sdhci: Secure Digital Host Controller Interface driver
[    0.298673] sdhci: Copyright(c) Pierre Ossman
[    0.298947] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.299211] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
[    0.299226] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.304948] vchiq: vchiq_init_state: slot_zero = 00000000877a8e4c
[    0.306493] NET: Registered protocol family 10
[    0.306899] Segment Routing with IPv6
[    0.306933] NET: Registered protocol family 17
[    0.306953] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts t
o load br_netfilter if you need this.
[    0.306961] 8021q: 802.1Q VLAN Support v1.8
[    0.307134] Key type ._fscrypt registered
[    0.307139] Key type .fscrypt registered
[    0.309492] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.309550] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 14, base_baud = 0) is a PL011 rev2
[    0.640015] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    0.642594] printk: console [ttyAMA0] enabled
[    0.855445] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    0.868017] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.872563] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    0.880839] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.886379] usb 1-1: Product: USB2.0 Hub
[    0.914652] hub 1-1:1.0: USB hub found
[    0.920081] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.968426] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.976529] hub 1-1:1.0: 4 ports detected
[    0.983571] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.372014] usb 1-1.2: new high-speed USB device number 3 using xhci_hcd
[    1.376048] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.419257] of_cfs_init
[    1.421751] of_cfs_init: OK
[    1.425204] Waiting for root device /dev/mmcblk0p2...
[    1.431713] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.439920] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.446888] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.496767] usb 1-1.2: New USB device found, idVendor=2357, idProduct=0601, bcdDevice=20.00
[    1.505130] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.510953] mmc1: new high speed SDIO card at address 0001
[    1.512440] usb 1-1.2: Product: USB 10/100 LAN
[    1.512444] usb 1-1.2: Manufacturer: TP-LINK
[    1.512447] usb 1-1.2: SerialNumber: D03745BF306078
[    1.532203] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    1.538607] scsi host0: usb-storage 1-1.2:1.0
[    1.580454] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.587360] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    1.592663]  mmcblk0: p1 p2
[    1.605406] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.612945] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.620129] Freeing unused kernel memory: 512K
[    1.632067] Run /sbin/init as init process
[    1.690140] init: Console is alive
[    1.693658] init: - watchdog -
[    1.826475] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.838875] uhci_hcd: USB Universal Host Controller Interface driver
[    1.845845] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.858158] init: - preinit -
[    1.922371] bcmgenet: Skipping UMAC reset
[    1.927775] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    1.935259] bcmgenet fd580000.ethernet eth0: Link is Down
[    2.564711] scsi 0:0:0:0: CD-ROM            Realtek  USB CD-ROM       2.00 PQ: 0 ANSI: 0
[    5.987669] mount_root: mounting /dev/root
[    5.994424] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.019448] urandom-seed: Seeding with /etc/urandom.seed
[    6.063012] procd: - early -
[    6.065986] procd: - watchdog -
[    6.592066] procd: - watchdog -
[    6.596101] procd: - ubus -
[    6.651166] procd: - init -
[    6.655140] uart-pl011 fe201000.serial: no DMA platform data
[    6.726868] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.748771] hidraw: raw HID events driver (C) Jiri Kosina
[    6.754918] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned
.
[    6.777234] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf
[    6.784839] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2
[    6.795566] usbcore: registered new interface driver r8152
[    6.802147] usbcore: registered new interface driver usbhid
[    6.807738] usbhid: USB HID core driver
[    6.813486] xt_time: kernel timezone is -0000
[    6.861726] PPP generic driver version 2.4.2
[    6.866367] NET: Registered protocol family 24
[    6.885722] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.052581] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.070474] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:20:01 version 7.45.206
(r725000 CY) FWID 01-febaba43
[    7.110551] usbcore: registered new interface driver brcmfmac
[    7.118476] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.092277] bcmgenet: Skipping UMAC reset
[    8.097589] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    8.105168] bcmgenet fd580000.ethernet eth0: Link is Down
[    8.105288] br-lan: port 1(eth0) entered blocking state
[    8.115881] br-lan: port 1(eth0) entered disabled state
[    8.121241] device eth0 entered promiscuous mode
[   22.436160] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   22.444585] br-lan: port 1(eth0) entered blocking state
[   22.449832] br-lan: port 1(eth0) entered forwarding state
[   22.455496] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:~#

Hi Team,

I have reinstalled the OpenWrt once again on RPI4 to see if it works freshly with the suggested package installed, but still it's not detecting the USB ethernet

Kindly suggest action plan.

Do you have kmod-usb2 installed?

Hi Mike,

Thank you , i have checked the list of installed package and not found kmod-usb2 package installed , i have installed the package and rebooted , still not able to find NIC card under ifconfig.

Kindly suggest how to proceed further

Installed kmod package

root@OpenWrt:~# opkg list-installed | grep kmod*
kmod-3c59x - 5.4.111-1
kmod-8139cp - 5.4.111-1
kmod-8139too - 5.4.111-1
kmod-alx - 5.4.111-1
kmod-ar5523 - 5.4.111+5.10.16-1-1
kmod-ath - 5.4.111+5.10.16-1-1
kmod-carl9170 - 5.4.111+5.10.16-1-1
kmod-cfg80211 - 5.4.111+5.10.16-1-1
kmod-fs-vfat - 5.4.111-1
kmod-hid - 5.4.111-1
kmod-hid-generic - 5.4.111-1
kmod-input-core - 5.4.111-1
kmod-input-evdev - 5.4.111-1
kmod-ip6tables - 5.4.111-1
kmod-ipt-conntrack - 5.4.111-1
kmod-ipt-core - 5.4.111-1
kmod-ipt-nat - 5.4.111-1
kmod-ipt-offload - 5.4.111-1
kmod-lib-crc-ccitt - 5.4.111-1
kmod-mac80211 - 5.4.111+5.10.16-1-1
kmod-mdio - 5.4.111-1
kmod-mii - 5.4.111-1
kmod-nf-conntrack - 5.4.111-1
kmod-nf-conntrack6 - 5.4.111-1
kmod-nf-flow - 5.4.111-1
kmod-nf-ipt - 5.4.111-1
kmod-nf-ipt6 - 5.4.111-1
kmod-nf-nat - 5.4.111-1
kmod-nf-reject - 5.4.111-1
kmod-nf-reject6 - 5.4.111-1
kmod-nls-base - 5.4.111-1
kmod-nls-cp437 - 5.4.111-1
kmod-nls-iso8859-1 - 5.4.111-1
kmod-nls-utf8 - 5.4.111-1
kmod-ppp - 5.4.111-1
kmod-pppoe - 5.4.111-1
kmod-pppox - 5.4.111-1
kmod-rtl8xxxu - 5.4.111+5.10.16-1-1
kmod-slhc - 5.4.111-1
kmod-sound-arm-bcm2835 - 5.4.111-1
kmod-sound-core - 5.4.111-1
kmod-usb-core - 5.4.111-1
kmod-usb-ehci - 5.4.111-1
kmod-usb-net - 5.4.111-1
kmod-usb-net-cdc-eem - 5.4.111-1
kmod-usb-net-cdc-ether - 5.4.111-1
kmod-usb-net-cdc-mbim - 5.4.111-1
kmod-usb-net-cdc-ncm - 5.4.111-1
kmod-usb-net-cdc-subset - 5.4.111-1
kmod-usb-net-rtl8152 - 5.4.111-1
kmod-usb-wdm - 5.4.111-1
kmod-usb2 - 5.4.111-1

dmesg

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.4.111 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16046-59980f7aaf)) #0 SMP Sun Apr 18 10:06:57 2021
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 2061312
[    0.000000]   DMA zone: 3792 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 242688 pages, LIFO batch:63
[    0.000000]   DMA32 zone: 12288 pages used for memmap
[    0.000000]   DMA32 zone: 770048 pages, LIFO batch:63
[    0.000000]   Normal zone: 16384 pages used for memmap
[    0.000000]   Normal zone: 1048576 pages, LIFO batch:63
[    0.000000] percpu: Embedded 21 pages/cpu s45272 r8192 d32552 u86016
[    0.000000] pcpu-alloc: s45272 r8192 d32552 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2028848
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1360 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:D4:0F:B4 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x37400000-0x3b400000] (64MB)
[    0.000000] Memory: 7943840K/8245248K available (7102K kernel code, 432K rwdata, 1140K rodata, 512K init, 541K bss, 235872K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from 0xffffffc0108a0b90 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000156] Console: colour dummy device 80x25
[    0.000386] printk: console [tty1] enabled
[    0.000420] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000442] pid_max: default: 32768 minimum: 301
[    0.000702] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000844] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.001502] Disabling memory control group subsystem
[    0.002198] ASID allocator initialised with 32768 entries
[    0.002285] rcu: Hierarchical SRCU implementation.
[    0.002898] smp: Bringing up secondary CPUs ...
[    0.003281] Detected PIPT I-cache on CPU1
[    0.003330] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.003769] Detected PIPT I-cache on CPU2
[    0.003801] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.004290] Detected PIPT I-cache on CPU3
[    0.004323] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.004393] smp: Brought up 1 node, 4 CPUs
[    0.004419] SMP: Total of 4 processors activated.
[    0.004432] CPU features: detected: 32-bit EL0 Support
[    0.004445] CPU features: detected: CRC32 instructions
[    0.004497] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.004513] CPU: All CPU(s) started at EL2
[    0.004541] alternatives: patching kernel code
[    0.012645] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.012686] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.014405] pinctrl core: initialized pinctrl subsystem
[    0.015235] NET: Registered protocol family 16
[    0.016653] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.017212] cpuidle: using governor ladder
[    0.017241] cpuidle: using governor menu
[    0.017494] Serial: AMBA PL011 UART driver
[    0.018950] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.028044] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-02-16 14:17, variant start
[    0.032041] raspberrypi-firmware soc:firmware: Firmware hash is d6d82cf99bcb3e9a166a34cfde53130957a36bd3
[    0.056820] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.058602] SCSI subsystem initialized
[    0.058752] usbcore: registered new interface driver usbfs
[    0.058795] usbcore: registered new interface driver hub
[    0.058834] usbcore: registered new device driver usb
[    0.058954] usb_phy_generic phy: phy supply vcc not found, using dummy regulator
[    0.059238] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.060057] clocksource: Switched to clocksource arch_sys_counter
[    0.063294] thermal_sys: Registered thermal governor 'step_wise'
[    0.063518] NET: Registered protocol family 2
[    0.064384] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.064463] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.064849] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.065785] TCP: Hash tables configured (established 65536 bind 65536)
[    0.066018] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.066133] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.066427] NET: Registered protocol family 1
[    0.066465] PCI: CLS 0 bytes, default 64
[    0.067592] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.072033] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.095839] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.099561] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.099588] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.099626] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.099660] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    0.166125] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.166282] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.166300] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.166318] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.166361] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.166449] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.169653] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.169734] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.169907] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.172954] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.172977] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.173035] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.173051] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.173193] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    0.173312] pcieport 0000:00:00.0: PME: Signaling with IRQ 38
[    0.173537] pcieport 0000:00:00.0: AER: enabled with IRQ 38
[    0.173709] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    0.220532] pci 0000:01:00.0: 0xffffffc0104f2208 took 45755 usecs
[    0.223220] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.251134] Console: switching to colour frame buffer device 170x48
[    0.257087] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1360x768
[    0.258960] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.259814] iproc-rng200 fe104000.rng: hwrng registered
[    0.259991] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.260490] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    0.260661] random: fast init done
[    0.260784] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.261051] random: crng init done
[    0.266988] brd: module loaded
[    0.270178] loop: module loaded
[    0.270866] Loading iSCSI transport class v2.0-870.
[    0.272138] libphy: Fixed MDIO Bus: probed
[    0.272426] bcmgenet fd580000.ethernet: failed to get enet clock
[    0.272498] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.272564] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    0.272633] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    0.272709] bcmgenet: Skipping UMAC reset
[    0.284069] libphy: bcmgenet MII bus: probed
[    0.332112] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.334718] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.336442] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.338686] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000009000000890
[    0.341099] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.342847] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.344613] usb usb1: Product: xHCI Host Controller
[    0.346333] usb usb1: Manufacturer: Linux 5.4.111 xhci-hcd
[    0.348051] usb usb1: SerialNumber: 0000:01:00.0
[    0.350051] hub 1-0:1.0: USB hub found
[    0.351803] hub 1-0:1.0: 1 port detected
[    0.353893] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.355592] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.357309] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.359205] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.360961] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.362693] usb usb2: Product: xHCI Host Controller
[    0.364422] usb usb2: Manufacturer: Linux 5.4.111 xhci-hcd
[    0.366134] usb usb2: SerialNumber: 0000:01:00.0
[    0.368131] hub 2-0:1.0: USB hub found
[    0.369896] hub 2-0:1.0: 4 ports detected
[    0.372385] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.374179] dwc_otg: FIQ enabled
[    0.374183] dwc_otg: NAK holdoff enabled
[    0.374186] dwc_otg: FIQ split-transaction FSM enabled
[    0.374192] Module dwc_common_port init
[    0.374447] usbcore: registered new interface driver uas
[    0.376243] usbcore: registered new interface driver usb-storage
[    0.377982] mousedev: PS/2 mouse device common for all mice
[    0.380099] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.383226] sdhci: Secure Digital Host Controller Interface driver
[    0.384941] sdhci: Copyright(c) Pierre Ossman
[    0.386854] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    0.388770] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
[    0.390413] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.397744] vchiq: vchiq_init_state: slot_zero = 0000000015a43a39
[    0.401016] NET: Registered protocol family 10
[    0.402511] Segment Routing with IPv6
[    0.403520] NET: Registered protocol family 17
[    0.404614] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.405725] 8021q: 802.1Q VLAN Support v1.8
[    0.407084] Key type ._fscrypt registered
[    0.408194] Key type .fscrypt registered
[    0.412194] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    0.413290] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 14, base_baud = 0) is a PL011 rev2
[    0.692050] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    0.695301] printk: console [ttyAMA0] enabled
[    0.846622] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    0.851052] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.854932] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    0.864777] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.870664] usb 1-1: Product: USB2.0 Hub
[    0.876660] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.924592] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.926254] hub 1-1:1.0: USB hub found
[    0.931145] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.933798] hub 1-1:1.0: 4 ports detected
[    0.941493] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.244047] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[    1.248430] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.360798] usb 1-1.3: New USB device found, idVendor=2357, idProduct=0601, bcdDevice=20.00
[    1.363714] of_cfs_init
[    1.367470] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.367473] usb 1-1.3: Product: USB 10/100 LAN
[    1.374406] of_cfs_init: OK
[    1.381462] usb 1-1.3: Manufacturer: TP-LINK
[    1.381464] usb 1-1.3: SerialNumber: D03745BF306078
[    1.389919] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.394650] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    1.399135] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.401456] scsi host0: usb-storage 1-1.3:1.0
[    1.463936] mmc1: new high speed SDIO card at address 0001
[    1.621080] Waiting for root device /dev/mmcblk0p2...
[    1.678234] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.686138] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    1.692440]  mmcblk0: p1 p2
[    1.713517] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.723148] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.732486] Freeing unused kernel memory: 512K
[    1.744103] Run /sbin/init as init process
[    1.807942] init: Console is alive
[    1.812509] init: - watchdog -
[    1.965264] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.977026] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.985587] ehci-fsl: Freescale EHCI Host controller driver
[    1.992527] ehci-platform: EHCI generic platform driver
[    1.999084] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.008624] init: - preinit -
[    2.070236] bcmgenet: Skipping UMAC reset
[    2.076683] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    2.085231] bcmgenet fd580000.ethernet eth0: Link is Down
[    2.468815] scsi 0:0:0:0: CD-ROM            Realtek  USB CD-ROM       2.00 PQ: 0 ANSI: 0
[    5.137282] mount_root: mounting /dev/root
[    5.144991] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.171108] urandom-seed: Seeding with /etc/urandom.seed
[    5.219324] procd: - early -
[    5.224358] procd: - watchdog -
[    5.749096] procd: - watchdog -
[    5.755006] procd: - ubus -
[    5.811973] procd: - init -
[    5.817754] uart-pl011 fe201000.serial: no DMA platform data
[    5.891232] kmodloader: loading kernel modules from /etc/modules.d/*
[    5.916855] hidraw: raw HID events driver (C) Jiri Kosina
[    5.923902] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    5.939468] 8139too: 8139too Fast Ethernet driver 0.9.28
[    5.958815] usbcore: registered new interface driver cdc_wdm
[    5.965787] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf
[    5.974635] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2
[    5.986047] usbcore: registered new interface driver r8152
[    5.994764] xt_time: kernel timezone is -0000
[    6.000300] usbcore: registered new interface driver cdc_eem
[    6.007153] usbcore: registered new interface driver cdc_ether
[    6.014407] usbcore: registered new interface driver cdc_ncm
[    6.021114] usbcore: registered new interface driver cdc_subset
[    6.074275] PPP generic driver version 2.4.2
[    6.079806] NET: Registered protocol family 24
[    6.086787] usbcore: registered new interface driver rtl8xxxu
[    6.095397] usbcore: registered new interface driver ar5523
[    6.103992] usbcore: registered new interface driver carl9170
[    6.111056] usbcore: registered new interface driver cdc_mbim
[    6.118670] kmodloader: done loading kernel modules from /etc/modules.d/*
[    7.113310] bcmgenet: Skipping UMAC reset
[    7.119655] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    7.128563] bcmgenet fd580000.ethernet eth0: Link is Down
[    7.132147] br-lan: port 1(eth0) entered blocking state
[    7.141190] br-lan: port 1(eth0) entered disabled state
[    7.147443] device eth0 entered promiscuous mode
[   22.500180] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   22.510338] br-lan: port 1(eth0) entered blocking state
[   22.517260] br-lan: port 1(eth0) entered forwarding state
[   22.524557] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

root@OpenWrt:~# lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.111 xhci-hcd xHCI Host Controller
Bus 001 Device 003: ID 2357:0601 TP-LINK USB 10/100 LAN
Bus 001 Device 002: ID 2109:3431  USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.111 xhci-hcd xHCI Host Controller
root@OpenWrt:~#

root@OpenWrt:~# lsusb -v


Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.111 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b
  idProduct          0x0003
  bcdDevice            5.04
  iManufacturer           3 Linux 5.4.111 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:01:00.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             4
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02a0 5Gbps power Rx.Detect
   Port 4: 0000.02a0 5Gbps power Rx.Detect
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x000f
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat           4 micro seconds
    bU2DevExitLat         231 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 001 Device 003: ID 2357:0601 TP-LINK USB 10/100 LAN
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x2357
  idProduct          0x0601
  bcdDevice           20.00
  iManufacturer           1 TP-LINK
  iProduct                2 USB 10/100 LAN
  iSerial                 3 D03745BF306078
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8
      bInterfaceSubClass      6
      bInterfaceProtocol     80
      iInterface              4 Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 002: ID 2109:3431  USB2.0 Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x2109
  idProduct          0x3431
  bcdDevice            4.21
  iManufacturer           0
  iProduct                1 USB2.0 Hub
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x00e0
    Ganged power switching
    Ganged overcurrent protection
    TT think time 32 FS bits
    Port indicators
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
   Port 3: 0000.0503 highspeed power enable connect
   Port 4: 0000.0100 power
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      HIRD Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           4 micro seconds
    bU2DevExitLat         231 micro seconds
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {30eef35c-07d5-2549-b001-802d79434c30}
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.111 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x1d6b
  idProduct          0x0002
  bcdDevice            5.04
  iManufacturer           3 Linux 5.4.111 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:01:00.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x02
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

root@OpenWrt:~# ifconfig

br-lan    Link encap:Ethernet  HWaddr DC:A6:32:D4:0F:B4
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fd30:ff10:7eb2::1/60 Scope:Global
          inet6 addr: fe80::dea6:32ff:fed4:fb4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56577 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11321769 (10.7 MiB)  TX bytes:11796359 (11.2 MiB)

eth0      Link encap:Ethernet  HWaddr DC:A6:32:D4:0F:B4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56577 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12113847 (11.5 MiB)  TX bytes:11796359 (11.2 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11229 (10.9 KiB)  TX bytes:11229 (10.9 KiB)

Kmod-usb2 and kmod-usb-net-rtl8152 should be all that's needed, you can also try installing kmod-usb3, but if that doesn't work I'm not sure what the problem is unfortunately.

1 Like

Thank you, unfortunately didn't work , btw while checking dmesg i find TP Link USB is being detected as storage device, even though the model doesn't have any storage option available

root@OpenWrt:~# dmesg | grep  1-1.3
[    1.260016] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[    1.364697] usb 1-1.3: New USB device found, idVendor=2357, idProduct=0601, bcdDevice=20.00
[    1.377617] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.377620] usb 1-1.3: Product: USB 10/100 LAN
[    1.389352] usb 1-1.3: Manufacturer: TP-LINK
[    1.389354] usb 1-1.3: SerialNumber: D03745BF306078
[    1.398932] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    1.464105] scsi host0: usb-storage 1-1.3:1.0
  1. research quirks (and/or related usb.id fixes etc.) and apply to cmdline.txt for that device
  2. try usbmodeswitch?
  3. try without any other usb devices connected at the same time...

Did you try to install USB-to-Ethernet module?

Hi, I am trying to install UE200 on 21.02. I have installed kmod-usb-net-rtl8152 and it did not work, then installed kmod-usb2 and it still does not work. Any insight on how to make it work?

kmod-usb2 was not needed, it is working with kmod-usb3. thankfully I found somewhere that I needed to install kmod-usb-net-cdc-ether and the UE200 worked, using a hAP ac².

cdc_ether 1-1:2.0 eth2: unregister 'cdc_ether' usb-xhci-hcd.0.auto-1, CDC Ethernet Device