This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAPL138 USB2.0 Host Mode will only run low-speed

Other Parts Discussed in Thread: OMAPL138, AM1808

Hello,

I am using an OMAPL138 and having some trouble with USB Host mode for hosting USB flash. I can only get the 2.0 port (USB0) to function at 12Mbps. The issue appears to be with the root hub:

hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
ohci ohci.0: GetPortStatus(1)
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
ohci ohci.0: GetPortStatus(1)
ohci ohci.0: GetPortStatus(1)
ohci ohci.0: GetPortStatus(1)
ohci ohci.0: GetPortStatus(1)
ohci ohci.0: GetPortStatus(1)
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci ohci.0: GetPortStatus(1)
usb 2-1: new full speed USB device using ohci and address 3
ohci ohci.0: GetPortStatus(1)
usb 2-1: not running at top speed; connect to a high speed hub
usb 2-1: default language 0x0409
usb 2-1: udev 3, busnum 2, minor = 130
usb 2-1: New USB device found, idVendor=13fe, idProduct=1f00
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: DataTraveler 2.0
usb 2-1: Manufacturer: Kingston
usb 2-1: SerialNumber: 5B83170002B3
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)

The bolded lines above seems to indicate the problem. There is no external hub connected, the USB stick is connected directly to USB0 pins on the OMAP. Any USB flash device I have tried has the same issue. File transfer rates are extremely slow. 

Any help greatly appreciated. Thanks!

- Dominic

 

  • Dominic,

    AM1x has a high speed USB2.0 OTG port which can act both in host and device mode. There is another host only port which is based on OHCI host controller which supports

    only full speed. As you are connecting the flash media to this host only OHCI port so it works in full speed.

    FOr high speed connect to USB2.0 OTG port through mini-A plug (different than mini-B plug).

    Ajay

  • Hi Ajay,

    You are correct - I posted output for the wrong port! However, We are having the problem I described on the 2.0 OTG port (USB0) operating in host mode. The real dmesg output for this port is:

    ohci ohci.0: GetPortStatus(1)
    hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
    hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
    hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
    hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
    usb 1-1: new high speed USB device using musb_hdrc and address 3
    usb 1-1: default language 0x0409
    usb 1-1: udev 3, busnum 1, minor = 2
    usb 1-1: New USB device found, idVendor=13fe, idProduct=1f00
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1: Product: DataTraveler 2.0
    usb 1-1: Manufacturer: Kingston
    usb 1-1: SerialNumber: 5B83170002B3
    usb 1-1: usb_probe_device
    usb 1-1: configuration #1 chosen from 1 choice
    usb 1-1: adding 1-1:1.0 (config #1, interface 0)
    usb-storage 1-1:1.0: usb_probe_interface
    usb-storage 1-1:1.0: usb_probe_interface - got id
    scsi4 : usb-storage 1-1:1.0
    hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
    hub 1-0:1.0: port 1 enable change, status 00000503
    scsi 4:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
    sd 4:0:0:0: Attached scsi generic sg0 type 0
    sd 4:0:0:0: [sda] 1970176 512-byte logical blocks: (1.00 GB/962 MiB)

    You can see the same hub message referring to 12Mbps speed. The effective transfer rate we are seeing is ~5Mbps. The transfer rate using the same test on a different machine (x86) is an order of magnitude greater.

    Thanks for your help thus far and any additional assistance you can provide.

    - Dominic

  • Dominic,

    The oTG port seems to detect the device to be in high speed mode. Refer below messagae.

    "usb 1-1: new high speed USB device using musb_hdrc and address 3"

    What is the read and write speed on this Kingston drive? Are they both ~5MegaBitPerSec?

    Ajay

  • When connected to the OMAP, write speed appears to be around 1.5Mbps. Read speed is about 5Mbps. On another (x86) machine read speed is much higher - about 50Mbps.

  • Also, have tried multiple brands of USB sticks. All perform similarly slowly.

  • Hi Ajay,

    I am working on AM1808 platform. I have two USB ports available in my  target. One USB configured as host
    and using this port for loading and copying the files from AM1808 target to Pendrive using main USB.
    I have another min USB(USB2.0 OTG) available, i want to use this port for connecting my USB based 5M Camera(OV5640).


    how can i configure this miniUSB functional for accessing the camera port. i want to use the both USBs(Pendrive & Camera) simultaneous usage.

    Please suggest the steps to configure the driver selection under Linux menuconfig. what are the gadgets need to include in Linux. Please help me

    Thanks,
    Lofna