[U-Boot] usb ehci/ohci issues

Álvaro Fernández Rojas noltari at gmail.com
Wed May 17 19:13:57 UTC 2017


Hello guys,

I'm having quite some trouble getting the bmips usbs to work...

Just in case you want to take a look:
https://github.com/Noltari/u-boot/commits/bmips-usb-devel
https://github.com/Noltari/u-boot/commit/499d62c7871d46ac543c4c6eda3912222b8cf088

1) I only added support for EHCI because I haven't been able to get OHCI
working...
I suspect this is related to cache/v2p issues...

2) As you can see I had to *hack* ARCH_DMA_MINALIGN because otherwise usbs
won't work on 6328/63268 (but they work on 6358).
I'm not sure why this happens, but both 6328 and 63268 caches have 16 bytes
of line size:

linux/6358:
[    0.000000] Primary instruction cache 16kB, VIPT, 2-way, linesize 16
bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases,
linesize 16 bytes

linux/6328:
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16
bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases,
linesize 16 bytes

linux/63268:
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16
bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases,
linesize 16 bytes

3) When I try to reset/stop+start usb it just fails and I don't know why,
since usb start doesn't fail at all...
VR-3032u # usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
      scanning usb for storage devices... 1 Storage Device(s) found

VR-3032u # usb info
1: Hub,  USB Revision 2.0
- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64  Configurations: 1
- Vendor: 0x0000  Product 0x0000 Version 1.0
  Configuration: 1
  - Interfaces: 1 Self Powered 0mA
    Interface: 0
    - Alternate Setting 0, Endpoints: 1
    - Class Hub
    - Endpoint 1 In Interrupt MaxPacket 2048 Interval 255ms

2: Mass Storage,  USB Revision 2.10
- SanDisk Ultra Fit 4C530001190831105110
- Class: (from Interface) Mass Storage
- PacketSize: 64  Configurations: 1
- Vendor: 0x0781  Product 0x5583 Version 1.0
  Configuration: 1
  - Interfaces: 1 Bus Powered 224mA
    Interface: 0
    - Alternate Setting 0, Endpoints: 2
    - Class Mass Storage, Transp. SCSI, Bulk only
    - Endpoint 1 In Bulk MaxPacket 512
    - Endpoint 2 Out Bulk MaxPacket 512

VR-3032u # usb tree
USB device tree:
 1  Hub (480 Mb/s, 0mA)
 |  u-boot EHCI Host Controller
 |
 | +-2  Mass Storage (480 Mb/s, 224mA)
      SanDisk Ultra Fit 4C530001190831105110

VR-3032u # usb reset
resetting USB...
USB0:   scanning bus 0 for devices... Error: Cannot find high speed parent
of usb-1 device
EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
failed, error -1
      scanning usb for storage devices... 0 Storage Device(s) found

VR-3032u # usb stop
stopping USB..

VR-3032u # usb start
starting USB...
USB0:   scanning bus 0 for devices... Error: Cannot find high speed parent
of usb-1 device
EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
failed, error -1
      scanning usb for storage devices... 0 Storage Device(s) found

Thanks in advance for any help you can provide.

Best regards,
Álvaro.


More information about the U-Boot mailing list