This is same issue as [SOLVED] USB2 on Netgear R6120 doesn't detect any devices , but on different netgear router.
I also checked the patch mentioned in the thread, but seems like the files are not existed any more. So it is highly appreciated if someone can help check and provide one solution.
sqr
October 6, 2021, 7:47pm
2
Of course you are sure that it is exactly the same issue.
But I am sure that you do not really know appropriate way for topic description.
Would you please add output of following commands:
cat /etc/os-release
opkg list-installed | grep usb
dmesg | grep usb
lsusb -t
Thanks for quick reply and help!
Sorry for missing these valuable data when I create the topic. Here is the info and hope it is helpful.
root@OpenWrt:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="21.02.0"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 21.02.0"
VERSION_ID="21.02.0"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r16279-5cc0535800"
OPENWRT_BOARD="bcm53xx/generic"
OPENWRT_ARCH="arm_cortex-a9"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 21.02.0 r16279-5cc0535800"
root@OpenWrt:~# /bin/opkg list-installed | grep usb
kmod-phy-bcm-ns-usb2 - 5.4.143-1
kmod-phy-bcm-ns-usb3 - 5.4.143-1
kmod-usb-bcma - 5.4.143-1
kmod-usb-core - 5.4.143-1
kmod-usb-ehci - 5.4.143-1
kmod-usb-ledtrig-usbport - 5.4.143-1
kmod-usb-ohci - 5.4.143-1
kmod-usb-storage - 5.4.143-1
kmod-usb-uhci - 5.4.143-1
kmod-usb2 - 5.4.143-1
kmod-usb2-pci - 5.4.143-1
kmod-usb3 - 5.4.143-1
libusb-1.0-0 - 1.0.24-4
usbids - 0.350-1
usbutils - 013-2
root@OpenWrt:~# dmesg | grep usb
[ 6.167958] usbcore: registered new interface driver usbfs
[ 6.173579] usbcore: registered new interface driver hub
[ 6.178956] usbcore: registered new device driver usb
[ 6.210451] ehci-platform 18021000.usb: EHCI Host Controller
[ 6.216156] ehci-platform 18021000.usb: new USB bus registered, assigned bus number 1
[ 6.216437] ehci-platform 18021000.usb: irq 37, io mem 0x18021000
[ 6.242003] ohci-platform 18022000.usb: Generic Platform OHCI controller
[ 6.248788] ohci-platform 18022000.usb: new USB bus registered, assigned bus number 2
[ 6.256735] ohci-platform 18022000.usb: irq 37, io mem 0x18022000
[ 6.260231] ehci-platform 18021000.usb: USB 2.0 started, EHCI 1.00
[ 6.413877] xhci-hcd 18023000.usb: xHCI Host Controller
[ 6.419127] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 3
[ 6.426813] xhci-hcd 18023000.usb: hcc params 0x02501164 hci version 0x100 quirks 0x0000001000010010
[ 6.435983] xhci-hcd 18023000.usb: irq 38, io mem 0x18023000
[ 6.453646] xhci-hcd 18023000.usb: xHCI Host Controller
[ 6.458894] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 4
[ 6.466282] xhci-hcd 18023000.usb: Host supports USB 3.0 SuperSpeed
[ 6.473974] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 13.568957] usbcore: registered new interface driver usb-storage
root@OpenWrt:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
What are you trying to connect?
Did you install any kmod drivers related to uasp that say "press y if you want to..."z because I installed those on my broadcom based AC68U and was unable to see any drives plugged into usb. It took forever to figure that out.
I have one 8G flash USB drive, and want to connect to router. It failed at both USB2 and USB3 slot. Seems same issue as I referred at the beginning.
From output of /bin/opkg list-installed
, seems like kmod drivers are installed successfully. During installation, I never saw prompt like press y if you want to...
.
Have you installed any filesystem kernel modules?
opkg list-installed | grep kmod-fs
Thank for reply! Seems no
root@OpenWrt:~# opkg list-installed | grep kmod-fs
root@OpenWrt:~#
That is likely the problem. Install the relevant filesystem mods and then try again.
opkg update; opkg list | grep kmod-fs
and then obviously
opkg install kmod-fs-<whatever filesystem you are using>
Thanks for the tip. Seems like still unable to discover
root@OpenWrt:~# opkg list-installed | grep kmod-fs
kmod-fs-exfat - 5.4.143+5.12.3-1
kmod-fs-ext4 - 5.4.143-1
kmod-fs-vfat - 5.4.143-1
root@OpenWrt:~# ls /dev/
bus kmsg mtd11ro mtd2 mtd6 mtdblock0 mtdblock3 port ttyS1 ttyS3 ubi0_0
console log mtd12 mtd2ro mtd6ro mtdblock1 mtdblock4 ppp ttyS10 ttyS4 ubi0_1
cpu_dma_latency mtd0 mtd12ro mtd3 mtd7 mtdblock10 mtdblock5 ptmx ttyS11 ttyS5 ubi_ctrl
full mtd0ro mtd13 mtd3ro mtd7ro mtdblock11 mtdblock6 pts ttyS12 ttyS6 ubiblock0_0
gpiochip0 mtd1 mtd13ro mtd4 mtd8 mtdblock12 mtdblock7 random ttyS13 ttyS7 urandom
gpiochip1 mtd10 mtd14 mtd4ro mtd8ro mtdblock13 mtdblock8 shm ttyS14 ttyS8 watchdog
gpiochip2 mtd10ro mtd14ro mtd5 mtd9 mtdblock14 mtdblock9 tty ttyS15 ttyS9 watchdog0
hwrng mtd11 mtd1ro mtd5ro mtd9ro mtdblock2 null ttyS0 ttyS2 ubi0 zero
root@OpenWrt:~# dmesg | grep usb
[ 6.167948] usbcore: registered new interface driver usbfs
[ 6.173564] usbcore: registered new interface driver hub
[ 6.178940] usbcore: registered new device driver usb
[ 6.210432] ehci-platform 18021000.usb: EHCI Host Controller
[ 6.216167] ehci-platform 18021000.usb: new USB bus registered, assigned bus number 1
[ 6.216431] ehci-platform 18021000.usb: irq 37, io mem 0x18021000
[ 6.241975] ohci-platform 18022000.usb: Generic Platform OHCI controller
[ 6.248761] ohci-platform 18022000.usb: new USB bus registered, assigned bus number 2
[ 6.256714] ohci-platform 18022000.usb: irq 37, io mem 0x18022000
[ 6.260235] ehci-platform 18021000.usb: USB 2.0 started, EHCI 1.00
[ 6.413871] xhci-hcd 18023000.usb: xHCI Host Controller
[ 6.419118] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 3
[ 6.426807] xhci-hcd 18023000.usb: hcc params 0x02501164 hci version 0x100 quirks 0x0000001000010010
[ 6.435971] xhci-hcd 18023000.usb: irq 38, io mem 0x18023000
[ 6.453868] xhci-hcd 18023000.usb: xHCI Host Controller
[ 6.459084] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 4
[ 6.466477] xhci-hcd 18023000.usb: Host supports USB 3.0 SuperSpeed
[ 6.483948] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 13.687826] usbcore: registered new interface driver usb-storage
sqr
October 7, 2021, 10:54am
12
AFAIK it does not really matter whether you installed filesystem modules.
It must be detected even without drivers.
Assuming you really have R6300 v2 (not v1) and flash drive was connected during commands execution it really looks like the same issue.
I would recommend you to mention (@ sing) that patch developer here in this topic and ask for help.
Thanks @sqr . That is what I suspect too. Do you know who @ sing
is? seems like not found in the forum.
@blocktrron seems like you are the original developer to fix the issue on [SOLVED] USB2 on Netgear R6120 doesn't detect any devices - #21 by sobolkz .
R6250 is another BCM4708 device just as R6300v2. However, only the former received a patch from the commit ARM: BCM5301X: Set vcc-gpio for USB controllers of few devices and a less important one ARM: dts: BCM5301X: Specify USB ports for USB LEDs of few devices . You can find their dts files from Linux kernel source tree . You may ask Hauke Mehrtens <hauke@hauke-m.de > and Rafał Miłecki <zajec5@gmail.com > why they missed a patch for R6300v2. But I'm not sure when this modification from linux kernel will be included in openwrt.
1 Like
dwebfan
December 1, 2021, 7:36pm
15
Thanks for the reply! Will send email to them and see if they can help provide a patch.
There's a method to turn USB power on which is probably not persistent. I hope this will help you.
echo 0 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio0/direction
echo 1 > /sys/class/gpio/gpio0/value
echo 0 > /sys/class/gpio/unexport
At this time, you can add these code to /etc/rc.local for your convenience, which should be executed once the system init finished. But pay attention to the system upgrade which could overwrite this file. I will contribute a kernel patch in order to make this change persistent soon. You can mark this topic as [Solved] when your problem is solved.
2 Likes
dwebfan
December 13, 2021, 6:15am
19
Sorry for late reply! It works perfectly, thanks a lot!
BTW, seems like I can not edit post and add [Solved], so I followed the step 5 mentioned at this post How to mark a topic as [Solved] , and marked your reply as solution!
1 Like
system
Closed
December 23, 2021, 6:16am
20
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.