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.

How to scan USB Strage device at UBoot on AM1705?

Other Parts Discussed in Thread: AM1705, AM1707

Now, I am trying to scan USB Mass Starage Device at UBoot on my AM1705 custom board.

I think Hardware is no problem, because I can find the device after kernel boot.

I am using the modified UBoot code from EVM1707's evaluation kit.

I could scan the device on EVM1707...

 

Please let me know about this.

  • Ryo,

    Once the uboot is up , thn you need to connect the devcies and then execute "usb start" command so that usb driver can recognise all the devices connected. But before all this you need to make sure usb driver is enabled in your uboot image. Refer below page for more details,

    http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_03.00.00.05_UserGuide#MUSB_Host_Support

    Regards,

    Ajay

  • Ajay,

    Thank you for your reply.

    AM1705 has not USB-DRV Pin. AM1707 has the Pin.
    For my custom board, I had to change the UBoot source code from EVM1707's code.
    So, I removed the USB0_DRVBUS's pinmux set from the source code (da830evm.c).

    I don't understand whether it is good to be only this change.

    ----------------------------------------- UBoot Console Out -----------------------------------------

    U-Boot > usb start
    (Re)start USB...
    USB:   scanning bus for devices... New Device 0
    usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 length 0x40
    usb_new_device: usb_get_descriptor() failed
    No USB Device found
           scanning bus for storage devices... 0 Storage Device(s) found

    --------------------------------------------------------------------------------------------------------------

     

    Regards,

    Ryo

  • Can you print the value of DEVCTL and POWER once the uboot usb init has completed ? Can you make sure that Vbus is available and at 5V ?

    Regards,
    Ajay

  • Ajay,

    While I'm not the original poster, I am having a similar problem. I get the same status message described. I have forced the SYSCFG2 register to be host only and still get  a "usb_get_descriptor() failed" message.

    I can give you the status of DEVCTL (ADDR: 0x01E10 0460 VAL:0x0000 005D) but I cannot md "POWER". It seems that operation locks the processor and U-Boot crashes. I've also verified VBUS is at ~5V. 

    What other registers should I poke to debug this issue? Do you know if SYSCLK2 divide needs adjusted for the AM1705 vs. AM1707EVM? Or, possibly the SYSCFG2 USB0REF_FREQ?

    My SYSCFG2 register is set to the following:

    ADDR: 0x01C1 4184

    VAL: 0x00022962

     

    Thanks,

    Andrew