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.

PROCESSOR-SDK-AM335X: Fastboot command in U-boot

Part Number: PROCESSOR-SDK-AM335X

Hi,

The fastboot command in the u-boot seems to not work for am335x-evm-sk. I would like to know what changes I would have to make in order to make it work.

After stopping autoboot:

Hit any key to stop autoboot: 0
=> fastboot
fastboot - RUN as a fastboot USB or UDP device

Usage:
fastboot [-l addr] [-s size] usb <controller> | udp
addr - Address of buffer used during data transfers (0x81000000)
size - Size of buffer used during data transfers (0x07000000)
=> fastboot usb 0
=>

As you can see, I see no output after typing the fastboot command.

On Linux host machine:

mrbing@vostro-15:~$ fastboot devices
mrbing@vostro-15:~$

No output here as well.

  • Seems like this is a continuation of your previous inquiry at https://e2e.ti.com/support/processors/f/791/t/877855. As suggested in this thread you should try to model after an existing example.

    Looks like fastboot is supported on the AM335x-based BeagleBone Black. Can you make sure you have those config options active

    a0797059@jiji:~/git/u-boot (ti-u-boot-2019.01-next-dev)
    $ git grep CONFIG_FASTBOOT configs/am335*
    configs/am335x_boneblack_defconfig:CONFIG_FASTBOOT_FLASH=y
    configs/am335x_boneblack_defconfig:CONFIG_FASTBOOT_FLASH_MMC_DEV=1
    configs/am335x_boneblack_defconfig:CONFIG_FASTBOOT_CMD_OEM_FORMAT=y

    Also please review associated documentation here: https://git.ti.com/cgit/processor-sdk/processor-sdk-u-boot/tree/doc/README.android-fastboot?h=processor-sdk-u-boot-2019.01

    Regards, Andreas

  • Andreas,

    Yes, this is a continuation of my previous inquiry. I am trying to model after an existing example, I didn't know what configs to add/update.

    root@vostro-15:/home/mrbing/ti-processor-sdk-linux-am335x-evm-06.01.00.08/board-support/u-boot-2019.01+gitAUTOINC+029e4c009a-g029e4c009a# grep CONFIG_FASTBOOT configs/am335*
    configs/am335x_evm_defconfig:CONFIG_FASTBOOT=y
    configs/am335x_evm_defconfig:CONFIG_FASTBOOT_FLASH_MMC_DEV=1
    configs/am335x_evm_defconfig:CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
    

    In the documentation link you provided earlier:

     

    The fastboot gadget relies on the USB download gadget, so the following options must be configured:

    CONFIG_USB_GADGET_DOWNLOAD

    CONFIG_USB_GADGET_VENDOR_NUM

    CONFIG_USB_GADGET_PRODUCT_NUM

    CONFIG_USB_GADGET_MANUFACTURER

    NOTE: The ``CONFIG_USB_GADGET_VENDOR_NUM`` must be one of the numbers supported by the fastboot client. The list of vendor IDs supported can be found in the fastboot client source code.

    Should I configure the above options in configs/am335x_evm_defconfig or in include/configs/am335x_evm.h?

    Thanks in advance, Sujith.

  • Sujith,

    it's usually a good idea to just search the U-Boot tree for stuff like this, and then model after existing code. For example as for the gadget vendor number...

    a0797059@jiji:~/git/u-boot (ti-u-boot-2019.01-next-dev)
    $ git grep USB_GADGET_VENDOR_NUM configs/am33*
    configs/am335x_baltos_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0403
    configs/am335x_boneblack_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_boneblack_vboot_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_evm_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_evm_nor_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_evm_norboot_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_evm_spiboot_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_hs_evm_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    configs/am335x_hs_evm_uart_defconfig:CONFIG_USB_GADGET_VENDOR_NUM=0x0451
    

    Regards, Andreas

  • Andreas,

    The latest u-boot tree is the one available from the processor-sdk right? Or is there another updated version of u-boot for am335x?

    Thanks in advance.

    -Suijth

  • Sujith,

    P Sujith Bhatt said:
    The latest u-boot tree is the one available from the processor-sdk right? Or is there another updated version of u-boot for am335x?

    Yes, the U-Boot and Kernel from the processor SDK is the officially supported, most feature-complete, and regression-tested solution. Please make sure you use the latest version: http://software-dl.ti.com/processor-sdk-linux/esd/AM335X/latest/index_FDS.html

    Regards, Andreas