[OpenWrt-Devel] issue: usb1.x not detected in CC

Luiz Angelo Daros de Luca luizluca at gmail.com
Wed Jan 21 23:19:48 EST 2015


Hello,

I'm running OpenWRT in Virtualbox. I have no problem with BB. However, when
testing trunk, I noticed that usb1.x functions simply does not work.

For BB, in a clean install (+usbutils), I get:
https://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/openwrt-x86-generic-combined-ext4.img.gz

root at OpenWrt:/# lsusb
*Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet*
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
*Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub*

root at OpenWrt:/# dmesg | egrep -i '(usb|hci)'
[    0.063968] ACPI: bus type USB registered
[    0.064573] usbcore: registered new interface driver usbfs
[    0.065292] usbcore: registered new interface driver hub
[    0.065990] usbcore: registered new device driver usb
[    0.511884] ahci 0000:00:0d.0: version 3.0
[    0.513388] ahci: SSS flag set, parallel bus scan disabled
[    0.514182] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps
0x1 impl SATA mode
[    0.515223] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc
[    0.515945] ahci 0000:00:0d.0: setting latency timer to 64
[    0.516085] scsi0 : ahci
[    0.521108] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.522068] ehci-pci: EHCI PCI platform driver
[    0.523007] ehci-pci 0000:00:0b.0: setting latency timer to 64
[    0.523015] ehci-pci 0000:00:0b.0: EHCI Host Controller
[    0.523673] ehci-pci 0000:00:0b.0: new USB bus registered, assigned bus
number 1
[    0.524738] ehci-pci 0000:00:0b.0: irq 10, io mem 0xf0840000
[    0.540886] ehci-pci 0000:00:0b.0: USB 2.0 started, EHCI 1.00
*[    0.541668] hub 1-0:1.0: USB hub found*
[    0.542882] ehci-platform: EHCI generic platform driver
[    0.543609] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.544824] ohci_hcd 0000:00:06.0: setting latency timer to 64
[    0.544831] ohci_hcd 0000:00:06.0: OHCI Host Controller
[    0.545495] ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus
number 2
[    0.546662] ohci_hcd 0000:00:06.0: irq 11, io mem 0xf0804000
*[    0.600350] hub 2-0:1.0: USB hub found*
[    0.602055] uhci_hcd: USB Universal Host Controller Interface driver
[    0.603133] usbcore: registered new interface driver usb-storage
[    1.040233] usb 2-1: new full-speed USB device number 2 using ohci_hcd

And for CC, in a clean install (+usbutils), I get:
https://downloads.openwrt.org/snapshots/trunk/x86/openwrt-x86-generic-combined-ext4.img.gz

root at OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root at OpenWrt:/# dmesg | egrep -i '(usb|hci)'
[    0.207085] ACPI: bus type USB registered
[    0.208234] usbcore: registered new interface driver usbfs
[    0.210038] usbcore: registered new interface driver hub
[    0.211447] usbcore: registered new device driver usb
[    0.846969] ahci 0000:00:0d.0: version 3.0
[    0.850123] ahci 0000:00:0d.0: SSS flag set, parallel bus scan disabled
[    0.851991] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps
0x1 impl SATA mode
[    0.854051] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc
[    0.855726] scsi0 : ahci
[    0.865267] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.866641] ehci-pci: EHCI PCI platform driver
[    0.868536] ehci-pci 0000:00:0b.0: EHCI Host Controller
[    0.870011] ehci-pci 0000:00:0b.0: new USB bus registered, assigned bus
number 1
[    0.872088] ehci-pci 0000:00:0b.0: irq 10, io mem 0xf0806000
[    0.890021] ehci-pci 0000:00:0b.0: USB 2.0 started, EHCI 1.00
*[    0.891475] hub 1-0:1.0: USB hub found*
[    0.910106] ehci-platform: EHCI generic platform driver
[    0.911554] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.913104] ohci-platform: OHCI generic platform driver
[    0.914517] uhci_hcd: USB Universal Host Controller Interface driver
[    0.916619] usbcore: registered new interface driver usb-storage

In CC, there is no "Linux Foundation 1.1 root hub". Only EHCI hub is
detected. ohci_hcd was expected to detect a new hub. If I disable usb2.0 in
virtualbox config, OpenWRT gets no USB support in CC. Virtual machine
configs are equal.

kmod-usb-ohci is not installed by default in both system. However, both
systems seems to have some usb modules (including usb-ohci) built in
kernel. So, kmod-usb-ohci contains only control files (CC) or no files
(BB). Anyway, installing kmod-usb-ohci does not fix the problem. BTW,
shouldn't all "empty" packages for built-in modules be installed by
default? (most of <1k kmod-*.ipk)

I have already tested CC installing all kmod packages with no change on the
USB problem.

Checking my Ubuntu (with kernel newer than OpenWRT), I noticed that there
is a new ohci-pci in dmesg:

ohci-pci: OHCI PCI platform driver

Maybe it is USB_OHCI_HCD_PCI that is missing.

Any tips?

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150122/8ca11a1d/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list