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.

AM625SIP: USB DFU boot fail.

Part Number: AM625SIP
Other Parts Discussed in Thread: SK-AM62-SIP, AM625

Hello.

I am running a USB DFU with the SK-AM62-SIP board while looking at the following link.

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1127618/faq-sk-am62-how-to-flash-emmc-using-usb-dfu-on-am62x-sk-e2#:~:text=A%20type%2DC%20USB%20connector,to%20eMMC%20%28eMMC%20boot%29

I used the image u-boot.img in the path ti-sdk-09.01.00.08\bin\DFU_flash\bin\am62xxsip-evm\hsfs\

However, after downloading u-boot.img, it fails to boot and freezes.

Below is the DFU log output from the board.

=====================================================================
U-Boot SPL 2023.04-dirty (Sep 13 2023 - 12:01:39 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 13400 bytes
Trying to boot from DFU
########################################################DOWNLOAD ... OK
Ctrl+C to exit ...
alloc space exhausted
Could not get FIT buffer of 1139116 bytes
check CONFIG_SYS_SPL_MALLOC_SIZE
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
init_env from device 10 not supported!
Starting ATF on ARM64 core...

NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE: BL31: Built : 00:42:57, Jan 13 2023

U-Boot SPL 2023.04-dirty (Sep 13 2023 - 12:01:56 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 1904 bytes
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Error: could not access storage.
Trying to boot from DFU
###############################################DOWNLOAD ... OK
Ctrl+C to exit ...
Authentication passed
Authentication passed


U-Boot 2023.04-dirty (Sep 13 2023 - 12:01:56 +0530)

SoC: AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
EEPROM not available at 80, trying to read at 81
Board: AM62SIP-SKEVM rev E1
DRAM: 512 MiB
Core: 71 devices, 31 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Unidentified board claims AM62SIP-SKEVM in eeprom header
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
generic_phy_get_bulk : no phys property
=====================================================================

Do I need to compile u-boot and use it?

However, as shown in the link below, the AM62SIP-SK does not have a defconfig for USB DFU.

https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/U-Boot/UG-General-Info.html#build-u-boot-label

Thank you.

  • Is there a tool that can be connected to USB like NXP imx UUU to flash the eMMC?

  • Hi Hochun,

    The DFU images in (bin/DFU_flash/bin/am62xxsip-evm/hsfs) are particularly meant to be used with the DFU flash tool (bin/DFU_flash/dfu_flash.py). Please refer to the README available (bin/DFU_flash/README.md).

    Attaching the DFU flashing logs performed with the same tool but for TI AM62x EVM

    ~/ti/psdk/am62x/09.01.00.08/bin/DFU_flash master*
    ❯ python3 dfu_flash.py -d am62xx-evm -t hsfs -c bin/am62xx-evm/hsfs/flash-files.cfg
    2024-02-15 11:43:59 INFO: Starting the flashing tool
    2024-02-15 11:43:59 INFO: Validating the requirements before flashing...
    2024-02-15 11:43:59 INFO: Validated the CLI arguments and the paths to the DFU boot binaries
    2024-02-15 11:43:59 INFO: Parsing the flash configuration file {bin/am62xx-evm/hsfs/flash-files.cfg}...
    2024-02-15 11:43:59 INFO: Found 3 flash images
    <<DFU_FLASH_CONF
    ----------------------- --------------------------------------------------------------------------------------------------------------- ------- -------- ----- ----------
                        Alt Path                                                                                                               Size   Offset Media Attributes
    ----------------------- --------------------------------------------------------------------------------------------------------------- ------- -------- ----- ----------
    tiboot3-am62x-hs-fs-evm /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/tiboot3-am62x-hs-fs-evm.bin  294298      0x0 EMMC  raw,1,-
                      tispl /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/tispl.bin                   1174743  0x80000 EMMC  raw,1,-
                     u-boot /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/u-boot.img                   970443 0x280000 EMMC  raw,1,-
    ----------------------- --------------------------------------------------------------------------------------------------------------- ------- -------- ----- ----------
    DFU_FLASH_CONF
    2024-02-15 11:43:59 INFO: Found 4 boot images
    <<DFU_BOOT_CONF
    ---------- ---------------------------------------------------------------------------------------- ------
           Alt Path                                                                                       Size
    ---------- ---------------------------------------------------------------------------------------- ------
    bootloader /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/tiboot3.bin 333163
     tispl.bin /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/tispl.bin   960044
    u-boot.img /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/u-boot.img  894876
      uEnv.txt /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/uEnv.txt       163
    ---------- ---------------------------------------------------------------------------------------- ------
    DFU_BOOT_CONF
    2024-02-15 11:43:59 INFO: Number of USB DFU devices detected: 1
    2024-02-15 11:43:59 INFO: Starting flashing for 1 identified devices
    2024-02-15 11:43:59 INFO: Spawning 1 parallel processes
    2024-02-15 11:44:01 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/tiboot3.bin
    2024-02-15 11:44:03 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/tispl.bin
    2024-02-15 11:44:07 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/u-boot.img
    2024-02-15 11:44:11 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/bin/DFU_flash/bin/am62xx-evm/hsfs/uEnv.txt
    2024-02-15 11:44:13 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/tiboot3-am62x-hs-fs-evm.bin
    2024-02-15 11:44:14 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/tispl.bin
    2024-02-15 11:44:16 INFO:           1-3.4 Sent! /home/p-shivhare/ti/psdk/am62x/09.01.00.08/board-support/prebuilt-images/am62xx-evm/u-boot.img
    2024-02-15 11:44:16 INFO:           1-3.4 Flashing Successful...
    2024-02-15 11:44:16 INFO: Flashed 1 out of 1 identified devices successfully...
    ^C2024-02-15 11:44:27 INFO: Exiting!!!

    U-Boot SPL 2021.01 (Jul 14 2023 - 17:40:18 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    SPL initial stack usage: 13424 bytes
    Trying to boot from DFU
    ###############################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    Authentication passed
    Authentication passed
    Authentication passed
    Loading Environment from MMC... MMC Device 0 not found
    *** Warning - No MMC card found, using default environment
    
    init_env from device 10 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE:  BL31: Built : 05:06:58, Feb 24 2023
    
    U-Boot SPL 2021.01 (Jul 14 2023 - 17:40:10 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    Trying to boot from DFU
    ####DOWNLOAD ... OK
    Ctrl+C to exit ...
    Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) devices
    Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) devices
    
    
    U-Boot 2021.01 (Jul 14 2023 - 17:40:10 +0530)
    
    SoC:   AM62X SR1.0 HS-FS
    Model: Texas Instruments AM625 SK
    EEPROM not available at 0x50, trying to read at 0x51
    Board: AM62B-SKEVM rev A
    DRAM:  2 GiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Unidentified board claims AM62B-SKEVM in eeprom header
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  0
    #DOWNLOAD ... OK
    Ctrl+C to exit ...
    ## Warning: Input data exceeds 1048576 bytes - truncated
    ## Info: input data size = 1048578 = 0x100002
    ##DOWNLOAD ... OK
    Ctrl+C to exit ...
    #####DOWNLOAD ... OK
    Ctrl+C to exit ...
    ####DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    

    If you are particularly following the FAQ for DFU flashing, you can manually generate the DFU binaries with the following change in the `Rules.make`

    UBOOT_MACHINE_R5=am62x_evm_r5_usbdfu_defconfig am62xsip_sk_r5.config

    Regards,

    Prashant