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.

AM62L: USB DFU and MSC boot

Part Number: AM62L

Tool/software:

From the build sheet, no support for USB Host and device boot. It is needed. Especially for customers who worked on AM62x using DFU for eMMC flash on production line.

https://software-dl.ti.com/processor-sdk-linux/esd/AM62LX/11_00_05_02/exports/docs/devices/AM62LX/AM62LX_build_sheet_11_00_05_02_files/AM62LX_build_sheet_11.00.05.htm

From errata, there is some problem on DFU boot, but not say it can't be supported definitely.

#1. What is the conclusion if support DFU or not on this device?

#2. If yes, can do DFU boot on AM62L EVM in HW design? I tried to connect J19 to PC, can't detect USB device with below boot mode setting: 

#3. Is there a short plan to support DFU in SDK?

  • Hi Tony,
    Have we tried configuring USB-DFU as primary boot mode on your setup?
    Best,
    -Hong

  • Hi Hong,

    follow the boot mode setting in academy https://dev.ti.com/tirex/explore/node?node=A__Aeit-XcsDs051LW6Ji4kOg__AM62L-ACADEMY__6F61DO6__LATEST

    Can boot to below, seems should rebuild with patch/configuration for DFU.

    NOTICE:  bl1_plat_arch_setup arch setup
    NOTICE:  Booting Trusted Firmware
    NOTICE:  BL1: v2.12.0(release):11.00.04-10-gdd46885ec-dirty
    NOTICE:  BL1: Built : 05:00:39, Feb 26 2025
    NOTICE:  lpdd4_init <--
    NOTICE:  DDR ram size =80000000
    NOTICE:  bl1_platform_setup DDR init done
    NOTICE:  k3_bl1_handoff ENTERING WFI - end of bl1
    

  • Hi Tony,
    I'm attaching two logs from USB-DFU booting with Linux SDK 11.0.5.2, one is on host side, one is on target side, where BOOTMODE[15:0]=0053.
    Best,
    -Hong

    NOTICE:  bl1_plat_arch_setup arch setup 
    NOTICE:  Booting Trusted Firmware
    NOTICE:  BL1: v2.12.0(release):11.00.04-10-gdd46885ec-dirty
    NOTICE:  BL1: Built : 05:00:39, Feb 26 2025
    NOTICE:  lpdd4_init <-- 
    NOTICE:  DDR ram size =80000000 
    NOTICE:  bl1_platform_setup DDR init done
    NOTICE:  k3_bl1_handoff ENTERING WFI - end of bl1
    NOTICE:  BL31: v2.12.0(release):11.00.04-10-gdd46885ec-dirty
    NOTICE:  BL31: Built : 05:00:39, Feb 26 2025
    ERROR:   Failed to get response (-19)
    ERROR:   Transfer send failed (-19)
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    
    U-Boot SPL 2025.01-00253-g9a3137c5c11a (Feb 26 2025 - 17:07:57 +0000)
    SPL initial stack usage: 1872 bytes
    Trying to boot from DFU
    ##########################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    
    
    U-Boot 2025.01-00253-g9a3137c5c11a (Feb 26 2025 - 17:07:57 +0000)
    
    SoC:   AM62LX SR1.0 HS-FS
    Model: Texas Instruments AM62L3 Evaluation Module
    DRAM:  2 GiB
    ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
    Core:  66 devices, 28 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Warning: ethernet@8000000port@2 (eth1) using random MAC address - 16:06:78:e3:15:c9
    , eth1: ethernet@8000000port@2
    Hit any key to stop autoboot:  2  0 
    => setenv dfu_alt_info ${dfu_alt_info_emmc}
    => dfu 0 mmc 0
    generic_phy_get_bulk : no phys property
    ############DOWNLOAD ... OK
    Ctrl+C to exit ...
    ######################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    ##########################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    

    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=0200, devnum=122, cfg=1, intf=0, path="1-4", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=122, cfg=1, intf=0, path="1-4", alt=0, name="bootloader", serial="01.00.00.00"
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -R -a bootloader -D tiboot3.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download	[=========================] 100%       226016 bytes
    Download done.
    state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    dfu-util: can't detach
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -R -a bootloader -D tispl.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download	[=========================] 100%       762365 bytes
    Download done.
    state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    dfu-util: can't detach
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -R  -a u-boot.img -D u-boot.img
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #1 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1181035 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Resetting USB to switch back to runtime mode
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -l
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=6, name="sysfw.itb.raw", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=5, name="u-env.raw", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=4, name="u-boot.img.raw", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=3, name="tispl.bin.raw", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=2, name="tiboot3.bin.raw", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=1, name="rootfs", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=7e91, devnum=125, cfg=1, intf=0, path="1-4", alt=0, name="rawemmc", serial="UNKNOWN"
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -a 2 -D tiboot3.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #2 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%       226016 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -a 3 -D tispl.bin
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #3 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%       762365 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ sudo dfu-util -a 4 -D u-boot.img
    dfu-util 0.9
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
    
    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6165
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #4 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download	[=========================] 100%      1181035 bytes
    Download done.
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    jason@laptop:~/am6/am62l_11.0.5.2/board-support/prebuilt-images/am62lxx-evm$ 
    
    
    

  • Seem my original console log is right, should go next step to download tispl.bin, forget tried or not. anyway, now it works, no need to rebuild with extra configuration.