Unable to detect usb pendrive connected via usb hub

followed advice from here Do I need powered usb hub for hardisk & usb to ethernet in MR3020 V3? - #4 by mk24

i have the same mr3020v3(https://openwrt.org/toh/tp-link/tl-mr3020_v3) as in the post above, the mr3020v3 has issues powering usb devices, after following the instructions above, and cutting the power supply to the usb hub cord and powering the hub separately,

i am unable to detect usb pendrives, is there any drivers i need to install based on the output below,

thanks

BusyBox v1.36.1 (2024-11-06 10:43:07 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.5, r24106-10cc5fcd00
 -----------------------------------------------------
root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-core - 5.15.167-1
kmod-usb-ehci - 5.15.167-1
kmod-usb-ledtrig-usbport - 5.15.167-1
kmod-usb-ohci - 5.15.167-1
kmod-usb-storage - 5.15.167-1
kmod-usb2 - 5.15.167-1
libusb-1.0-0 - 1.0.26-3
usbutils - 014-1
root@OpenWrt:~# dmesg | grep usb
[    2.168064] usbcore: registered new interface driver usbfs
[    2.173874] usbcore: registered new interface driver hub
[    2.179359] usbcore: registered new device driver usb
[    2.228022] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    2.234864] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    7.318580] usbcore: registered new interface driver usb-storage
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=101c0000.ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=101c1000.ohci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
root@OpenWrt:~# 

Edit:

root@OpenWrt:~# dmesg | grep ehci
[    2.193629] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.204524] fsl-ehci: Freescale EHCI Host controller driver
[    2.212264] ehci-platform: EHCI generic platform driver
[    2.240329] ehci-platform 101c0000.ehci: EHCI Host Controller
[    2.246189] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    2.254383] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    2.289443] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
root@OpenWrt:~# lsmod
cfg80211              284128  3 mt7603e,mt76,mac80211
cmac                    2432  0 
compat                   576  2 mac80211,cfg80211
crc16                   1024  1 ext4
crc32c_generic          1344  1 
drbg                   17536  0 
ehci_fsl                3392  0 
ehci_hcd               38160  2 ehci_platform,ehci_fsl
ehci_platform           4832  0 
ext4                  455760  0 
fsl_mph_dr_of           3600  0 
gpio_button_hotplug     6656  0 
hmac                    2464  0 
jbd2                   57008  1 ext4
jitterentropy_rng       7104  0 
leds_gpio               2976  0 
ledtrig_usbport         2928  0 
libcrc32c                592  1 nf_tables
mac80211              575584  2 mt7603e,mt76
mbcache                 4144  1 ext4
mt76                   51168  1 mt7603e
mt7603e                39008  0 
nf_conntrack           72928  7 nft_redir,nft_nat,nft_masq,nft_flow_offload,nft_ct,nf_nat,nf_flow_table
nf_defrag_ipv4          1312  1 nf_conntrack
nf_defrag_ipv6          5936  1 nf_conntrack
nf_flow_table          23024  4 nf_flow_table_ipv6,nf_flow_table_ipv4,nf_flow_table_inet,nft_flow_offload
nf_flow_table_inet       896  0 
nf_flow_table_ipv4       448  0 
nf_flow_table_ipv6       448  0 
nf_log_syslog          10784  0 
nf_nat                 22576  4 nft_redir,nft_nat,nft_masq,nft_chain_nat
nf_reject_ipv4          3968  2 nft_reject_ipv4,nft_reject_inet
nf_reject_ipv6          4480  2 nft_reject_ipv6,nft_reject_inet
nf_tables             173856 77 nft_fib_inet,nf_flow_table_ipv6,nf_flow_table_ipv4,nf_flow_table_inet,nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet,nft_reject,nft_redir,nft_quota,nft_objref,nft_numgen,nft_nat,nft_masq,nft_log,nft_limit,nft_hash,nft_flow_offload,nft_fib_ipv6,nft_fib_ipv4,nft_fib,nft_ct,nft_counter,nft_chain_nat
nfnetlink               5584  1 nf_tables
nft_chain_nat            864  2 
nft_counter             1984  2 
nft_ct                  7936  3 
nft_fib                 1408  3 nft_fib_inet,nft_fib_ipv6,nft_fib_ipv4
nft_fib_inet             672  0 
nft_fib_ipv4            2016  1 nft_fib_inet
nft_fib_ipv6            2816  1 nft_fib_inet
nft_flow_offload        3712  0 
nft_hash                2400  0 
nft_limit               4480  1 
nft_log                 1856  0 
nft_masq                1792  1 
nft_nat                 2592  0 
nft_numgen              1504  0 
nft_objref              1824  0 
nft_quota               2272  0 
nft_redir               1632  0 
nft_reject              1152  3 nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet
nft_reject_inet          896  2 
nft_reject_ipv4          640  0 
nft_reject_ipv6          640  0 
nls_base                4864  1 usbcore
ohci_hcd               25520  1 ohci_platform
ohci_platform           3744  0 
scsi_common             2528  2 usb_storage,scsi_mod
scsi_mod               94928  2 usb_storage,sd_mod
sd_mod                 30704  0 
seqiv                   1600  0 
sha512_generic          9408  0 
usb_common              3440  3 ohci_hcd,ehci_platform,usbcore
usb_storage            42768  0 
usbcore               148000  7 ledtrig_usbport,usb_storage,ohci_platform,ohci_hcd,ehci_platform,ehci_fsl,ehci_hcd

for anyone who stumbles across this thread, i needed to install

kmod-usb-serial

then the pendrives became accessible

BusyBox v1.36.1 (2024-11-06 10:43:07 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.5, r24106-10cc5fcd00
 -----------------------------------------------------
root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-core - 5.15.167-1
kmod-usb-ehci - 5.15.167-1
kmod-usb-ledtrig-usbport - 5.15.167-1
kmod-usb-ohci - 5.15.167-1
kmod-usb-storage - 5.15.167-1
kmod-usb-xhci-hcd - 5.15.167-1
kmod-usb2 - 5.15.167-1
kmod-usb3 - 5.15.167-1
libusb-1.0-0 - 1.0.26-3
libusb-compat4 - 0.1.7-2
root@OpenWrt:~# dmesg | grep usb
[    2.167574] usbcore: registered new interface driver usbfs
[    2.173381] usbcore: registered new interface driver hub
[    2.178867] usbcore: registered new device driver usb
[    2.227403] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    2.234246] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    2.785260] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    3.219597] usb 1-1: device descriptor read/64, error -71
[    3.759523] usb 1-1: device descriptor read/64, error -71
[    4.249579] usb 1-1: new high-speed USB device number 3 using ehci-platform
[    4.649437] usb 1-1: device descriptor read/64, error -71
[    5.359432] usb 1-1: device not accepting address 3, error -71
[    5.365445] usb usb1-port1: attempt power cycle
[    5.839442] usb 1-1: new high-speed USB device number 4 using ehci-platform
[    6.289430] usb 1-1: device not accepting address 4, error -71
[    6.659494] usb 1-1: new high-speed USB device number 5 using ehci-platform
[    7.119552] usb 1-1: device not accepting address 5, error -71
[    7.125599] usb usb1-port1: unable to enumerate USB device
[    7.399251] usbcore: registered new interface driver usb-storage
[    7.539579] usb 2-1: new full-speed USB device number 2 using ohci-platform
[    7.812470] usb 2-1: not running at top speed; connect to a high speed hub
[    8.169461] usb 2-1.1: new full-speed USB device number 3 using ohci-platform
[    8.336468] usb 2-1.1: not running at top speed; connect to a high speed hub
[    8.356941] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[    8.365701] scsi host0: usb-storage 2-1.1:1.0
[    8.469460] usb 2-1.2: new full-speed USB device number 4 using ohci-platform
[    8.692468] usb 2-1.2: not running at top speed; connect to a high speed hub
[    8.712842] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[    8.721587] scsi host1: usb-storage 2-1.2:1.0
root@OpenWrt:~# 

In your first post the lsusb did not show the external hub at all, only the internal interfaces. This suggests there is a hardware problem with the connection of the external hub to the router port, regardless of what may be plugged into the external hub. The log in the second post shows repeated failure of the router-hub link to negotiate a high speed (USB2, 480 Mbps) connection, then it eventually falls back to connect at full speed (USB1, 12Mbps.) This will give poor performance with usb storage.

Likely the external hub is defective. Try a different one if you have one. A simple flash pen drive (not a SSD or spinning disk) does not require a lot of power and can be plugged directly into the router if it is the only device you need to connect.

USB serial has nothing to do with this. A pen drive is not a serial device and the serial drivers do not know how to connect to it.

1 Like

thanks,

i knew something was up

the powered hub was sending power back to the router, which would damage the router eventually, so i did what you mentioned here Do I need powered usb hub for hardisk & usb to ethernet in MR3020 V3? - #4 by mk24

i cut the power points in the hub, so it did not feed power back to the router

once i did that, the hub was not detected, until i installed the serial package,

the hub is cheap, good usb 2.0 powered hubs are hard to find nowadays

i think using a pendrive like you mentioned, is the way to go, its just that the pedrive, although metal (which is supposed to be good for dissipating heat, as ive read is good for usb pendrives used with the raspberry pi https://www.jeffgeerling.com/blog/2020/fastest-usb-storage-options-raspberry-pi) runs very hot with the openwrt router, it runs hot even when idle

hence my whole experiment with the hub, but even with the hub, the pendrive runs hot all the time

so i guess, the life of the pendrive will diminish because of the heat

anyway, appreciate the response, i knew although i got it working, i wasn't doing something right, just didn't know what

i guess the serial package allows serial connection for flashing and it allowed both the pendrives connected to the hub to be recognized

thanks

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