# dmesg | grep usb
[ 0.110583] usbcore: registered new interface driver usbfs
[ 0.110659] usbcore: registered new interface driver hub
[ 0.110732] usbcore: registered new device driver usb
[ 1.210236] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 1.215194] xhci-mtk 1a240000.usb: fail to get vbus
[ 1.220161] usbcore: registered new interface driver usb-storage
[ 1.530417] usbcore: registered new interface driver usbhid
[ 1.535988] usbhid: USB HID core driver
[ 2.338831] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 2.343887] xhci-mtk 1a240000.usb: fail to get vbus
[ 2.358346] vusb: disabling
[ 2.683718] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 2.683899] xhci-mtk 1a240000.usb: fail to get vbus
[ 3.303720] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 3.303900] xhci-mtk 1a240000.usb: fail to get vbus
[ 7.011130] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 7.016386] xhci-mtk 1a240000.usb: fail to get vbus
[ 7.024016] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 7.029242] xhci-mtk 1a240000.usb: fail to get vbus
[ 7.034539] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 7.039724] xhci-mtk 1a240000.usb: fail to get vbus
[ 7.077388] xhci-mtk 1a1c0000.usb: fail to get vbus
[ 7.082619] xhci-mtk 1a240000.usb: fail to get vbus
My lsusb is still empty
$ lsusb -v
$ cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory
Seem the USB is not detected. I want to use a usb-stick (mass-storage) and Wifi dongle.
I was thinking it might be due to dtd. Not sure where to check.
# ls /sys/firmware/devicetree/base/usb*
/sys/firmware/devicetree/base/usb@1a1c0000:
clock-names clocks compatible interrupts name phys power-domains reg reg-names status vbus-supply vusb33-supply
/sys/firmware/devicetree/base/usb@1a240000:
clock-names clocks compatible interrupts name phys power-domains reg reg-names status vbus-supply vusb33-supply
/sys/firmware/devicetree/base/usb-phy@1a1c4000:
#address-cells clock-names clocks compatible name ranges reg #size-cells status usb-phy@1a1c4800 usb-phy@1a1c4900
/sys/firmware/devicetree/base/usb-phy@1a244000:
#address-cells clock-names clocks compatible name ranges reg #size-cells status usb-phy@1a244800 usb-phy@1a244900
[14:23] root@bpi-r2-e:~# uname -a
Linux bpi-r2-e 4.14.34-bpi-r2-4.14-main #178 SMP Sun Apr 15 19:30:06 CEST 2018 armv7l GNU/Linux
[14:23] root@bpi-r2-e:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0951:1649 Kingston Technology
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[14:24] root@bpi-r2-e:~# ls /sys/firmware/devicetree/base/usb*
/sys/firmware/devicetree/base/usb@1a1c0000:
clock-names clocks compatible interrupts name phys power-domains reg reg-names status vusb33-supply
/sys/firmware/devicetree/base/usb@1a240000:
clock-names clocks compatible interrupts name phys power-domains reg reg-names status vusb33-supply
/sys/firmware/devicetree/base/usb-phy@1a1c4000:
#address-cells clock-names clocks compatible name ranges reg #size-cells status usb-phy@1a1c4800 usb-phy@1a1c4900
/sys/firmware/devicetree/base/usb-phy@1a244000:
#address-cells clock-names clocks compatible name ranges reg #size-cells status usb-phy@1a244800 usb-phy@1a244900
[14:26] root@bpi-r2-e:~# dmesg | grep 'xhci-mtk'
[ 0.411004] xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not found, using dummy regulator
[ 0.411452] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[ 0.411481] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[ 0.412108] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[ 0.412167] xhci-mtk 1a1c0000.usb: irq 231, io mem 0x1a1c0000
[ 0.413365] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[ 0.413382] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[ 0.414571] xhci-mtk 1a240000.usb: 1a240000.usb supply vbus not found, using dummy regulator
[ 0.414937] xhci-mtk 1a240000.usb: xHCI Host Controller
[ 0.414959] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[ 0.415445] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[ 0.415505] xhci-mtk 1a240000.usb: irq 232, io mem 0x1a240000
[ 0.416553] xhci-mtk 1a240000.usb: xHCI Host Controller
[ 0.416569] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[2957243.692114] usb 3-1: new high-speed USB device number 2 using xhci-mtk
I used the openwrt patch to have HW nat enable. In this DTS there seem to have no support for USB.
I try to merge from the official 4.9.70 BPI kernel however not much success, the kernel failed to compile.
I used frank kernel 4.9-main branch which the kernel vanilla 4.9 + openwrt patch.
I do confirm the official image works fine however it miss the 2GMAC and the Hardware NAT.
As i plan to use my BPI-R2 as a main gateway those feature are critical.