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.

[U-Boot] USB1 Fastboot

Other Parts Discussed in Thread: AM3354

Hi all,

in our custom board, we use the AM3354, we want to use USB1 as peripheral to use fastboot.

In the U-Boot (U-Boot 2013.01.01) I changed the USB Base Address to 0x47401800, after loading U-Boot SW and starting fastboot, Windows don't recognize any new Hardware.

My Question is, do I need to change anything else to use USB1 as peripheral and use fastboot? Maybe I need to change something in the fastboot sources?

Thanks for the help.

Best Regards,

Markus

  • Hi Markus,


    Where exactly in code you are doing this change?

    Macros for USB0 and USB1 are already defined in am335x_evm.h file.  Can you try with the following patch.

    diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
    index a0f843d..88f28a0 100644
    --- a/include/configs/am335x_evm.h
    +++ b/include/configs/am335x_evm.h
    @@ -384,9 +384,9 @@
     #define CONFIG_USB_GADGET_VBUS_DRAW    2
     #define CONFIG_MUSB_HOST
     #define CONFIG_AM335X_USB0
    -#define CONFIG_AM335X_USB0_MODE        MUSB_PERIPHERAL
    +#define CONFIG_AM335X_USB0_MODE        MUSB_HOST
     #define CONFIG_AM335X_USB1
    -#define CONFIG_AM335X_USB1_MODE MUSB_HOST
    +#define CONFIG_AM335X_USB1_MODE MUSB_PERIPHERAL

     #ifdef CONFIG_MUSB_HOST
     #define CONFIG_CMD_USB


    Regards,

    Pankaj Bharadiya

  • Hi Pankaj,

    I made the same changes, with no success.

    If I start fastboot I get the following Output:

    U-Boot SPL 2013.01.01 (Jan 07 2014 - 11:01:32)
    CCxyzModem - CRC mode, 0(SOH)/151(STX)/0(CAN) packets, 3 retries
    Loaded 153568 bytes
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401800 using PIO, IRQ 0
    fastboot serial number = 78c5e5be6b3078c5e5be6b31
    Fastboot entered...

    Everything looks fine, but on windows site nothing happens.

    Thanks for your Help.

    Best Regards,

    Markus

  • Hi,

    I tried today to run fastboot over USB1 on the AM335X Eval Board and got the same behavior.

    Do I need to disable the ID Pin Logic or something else to get it working?

    [Update]

    Here is the fastboot log:

    U-Boot# fastboot
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401800 using PIO, IRQ 0
    fastboot serial number = 001234
    Fastboot entered...

    Best regards,

    Markus

  • Hi,

    I got it working.

    To use Fastboot on USB1 on the Eval Board, I had to modify the USB1MODE register at usb-initialization.

    Set the IDDIG Field to B type and IDDIG_MUX Bit to 1.

    Best regards,

    Markus