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-J722S: [J722S][EVM] name="UNKNOWN" in dfu-util -l when DFU mode

Part Number: PROCESSOR-SDK-J722S

Tool/software:

Hi TI

I try to follow this
software-dl.ti.com/.../UG-DFU.html
3.1.1.2. USB Device Firmware Upgrade (DFU)

I set J722S EVM's boot mode to DFU mode
SW3[1:8] = 1100 1010
SW4[1:8] = 0000 0000
SW2[1:8] = 0011 1100

My SDK is J722S 10.01.00.04

After 

dfu-util.exe -R -a bootloader -D  tiboot3.bin

I get this

Found DFU: [0451:6165] ver=0200, devnum=15, cfg=1, intf=0, path="3-1.1", alt=1, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0451:6165] ver=0200, devnum=15, cfg=1, intf=0, path="3-1.1", alt=0, name="UNKNOWN", serial="UNKNOWN"

Is anything wrong in my step ?


DFU LOG:

UART LOG:

https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-j722s/latest/exports/docs/linux/Foundational_Components/U-Boot/UG-DFU.html

Thanks

  • Hello,

    Which SDK version are you using?

    Also is this a custom board or Ti EVM?

    Best Regards,

    Keerthy 

  • Hi Keerthy 

    Which SDK version are you using?

    > J722S  10.01.00.04

    Also is this a custom board or Ti EVM?

    Ti EVM

    Best Regards

    Jiahao

  • Hi Jiahao,

    We do not support booting using DFU from Windows.Please use a linux host machine for DFU and do let us know if you face any issues.

    Regards

    Gokul

  • Hi  Gokul

    This show J722S support on windows host

    Please help this, thanks

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-j722s/latest/exports/docs/linux/Foundational_Components/U-Boot/UG-DFU.html

    3.1.1.2.1

    Best Regards

    Jiahao

  • HI Jiahao,

    Can you try following the below steps for flashing the following.

    • Run the setup.sh script present in the SDK directory as per the below link.
    • host# export CROSS_COMPILE_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-"
      host# export SYSROOT_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/aarch64-oe-linux"
      host# export CC_64="${CROSS_COMPILE_64}gcc --sysroot=${SYSROOT_64}"
      host# export CROSS_COMPILE_32="${SDK_INSTALL_DIR}/k3r5-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-eabi/arm-oe-eabi-"
    • cd <path to u-boot dir>
      
    • export PREBUILT_IMAGES=${SDK_INSTALL_DIR}/board-support/prebuilt-images
    • make ARCH=arm O=./build/r5 j722s_evm_r5_defconfig j722s_evm_r5_usbdfu.config
    • make ARCH=arm O=./build/r5 CROSS_COMPILE="$CROSS_COMPILE_32" BINMAN_INDIRS=${PREBUILT_IMAGES}
    • make ARCH=arm O=<output directory>/a53 j722s_evm_a53_defconfig
    • make ARCH=arm O=<output directory>/a53 CROSS_COMPILE="$CROSS_COMPILE_64" CC="$CC_64" BL31=${PREBUILT_IMAGES}/bl31.bin TEE=${PREBUILT_IMAGES}/bl32.bin BINMAN_INDIRS=${PREBUILT_IMAGES}

    Once the above steps are done,flash the files from the below path:

    • {SDK_INSTALL_DIR}/board-support/<ti-u-boot dir>/build/r5/tiboot3-j722s-hs-fs-evm.bin
    • {SDK_INSTALL_DIR}/board-support/prebuilt-images/tispl.bin
    • {SDK_INSTALL_DIR}/board-support/prebuilt-images/u-boot.img

    Regards

    Gokul

  • Hi Gokul

    After the above modifications, SPL-DFU can work normally
    1) switch to SPL-DFU mode
    2) dfu-util-static.exe -R -a bootloader -D tiboot3.bin
    3) dfu-util-static.exe -R -a tispl.bin -D tispl.bin
    4) dfu-util-static.exe -R -a u-boot.img -D u-boot.img

    CMDS_LOG:

    E:\platform-tools-r35.0.2>dfu-util-static.exe -l
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 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=19, cfg=1, intf=0, path="3-1.2", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=19, cfg=1, intf=0, path="3-1.2", alt=0, name="bootloader", serial="01.00.00.00"
    
    E:\platform-tools-r35.0.2>dfu-util-static.exe -R -a bootloader -D usbdfu\tiboot3.bin
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 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/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download        [=========================] 100%       350655 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    unable to read DFU status after completion (LIBUSB_ERROR_PIPE)
    
    E:\platform-tools-r35.0.2>dfu-util-static.exe -l
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 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=0223, devnum=21, cfg=1, intf=0, path="3-1.2", alt=1, name="u-boot.img", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=0223, devnum=21, cfg=1, intf=0, path="3-1.2", alt=0, name="tispl.bin", serial="UNKNOWN"
    
    E:\platform-tools-r35.0.2>dfu-util-static.exe -R -a tispl.bin -D usbdfu\tispl.bin
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 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/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download        [=========================] 100%      1030979 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Resetting USB to switch back to Run-Time mode
    
    E:\platform-tools-r35.0.2>dfu-util-static.exe -R -a u-boot.img -D usbdfu\u-boot.img
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 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/
    
    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #1 ...
    Determining device status...
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    DFU mode device DFU version 0110
    Device returned transfer size 4096
    Copying data from PC to DFU device
    Download        [=========================] 100%      1207947 bytes
    Download done.
    DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
    DFU state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    Resetting USB to switch back to Run-Time mode
    
    E:\platform-tools-r35.0.2>


    UART_LOG:

    U-Boot SPL 2024.04-ti-gc7151985dcdc (May 21 2025 - 06:41:59 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    SPL initial stack usage: 17048 bytes
    Trying to boot from DFU
    ###################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    Authentication passed
    init_env from device 10 not supported!
    Authentication passed
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024
    
    U-Boot SPL 2024.04-ti-gc7151985dcdc (May 21 2025 - 06:41:59 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    Trying to boot from DFU
    #####DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    
    
    U-Boot 2024.04-ti-gc7151985dcdc (May 21 2025 - 06:41:59 +0000)
    
    SoC:   J722S SR1.0 HS-FS
    Model: Texas Instruments J722S EVM
    DRAM:  2 GiB (effective 8 GiB)
    Core:  79 devices, 29 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
    Hit any key to stop autoboot:  0
    =>
    =>
    

    After the above modifications, device boot from sdcard fail
    UART_LOG:
    >>>>
    U-Boot SPL 2024.04-ti-gc7151985dcdc (May 21 2025 - 06:41:59 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.6--v10.01.06 (Fiery Fox)')
    SPL initial stack usage: 17048 bytes
    Trying to boot from MMC2
    spl: could not initialize mmc. error: -19
    SPL: failed to boot from all boot devices
    ### ERROR ### Please RESET the board ###
    <<<<


    Best Regards
    Jiahao

  • Hi Jiahao,

    Can you raise this as a separate E2E as this is an SD card question and DFU is now resolved.Also,it would be helpful if you can you mark this issue as resolved.

    Thanks in advance.

    Regards

    Gokul

  • Hi Gokul

    Is this an official correct to fix SPL-DFU fail ?

    Can you try following the below steps for flashing the following.
    
    Run the setup.sh script present in the SDK directory as per the below link.
    software-dl.ti.com/.../Run_Setup_Scripts.html
    host# export CROSS_COMPILE_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-"
    host# export SYSROOT_64="${SDK_INSTALL_DIR}/linux-devkit/sysroots/aarch64-oe-linux"
    host# export CC_64="${CROSS_COMPILE_64}gcc --sysroot=${SYSROOT_64}"
    host# export CROSS_COMPILE_32="${SDK_INSTALL_DIR}/k3r5-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-eabi/arm-oe-eabi-"
    cd <path to u-boot dir>
    export PREBUILT_IMAGES=${SDK_INSTALL_DIR}/board-support/prebuilt-images
    make ARCH=arm O=./build/r5 j722s_evm_r5_defconfig j722s_evm_r5_usbdfu.config
    make ARCH=arm O=./build/r5 CROSS_COMPILE="$CROSS_COMPILE_32" BINMAN_INDIRS=${PREBUILT_IMAGES}
    make ARCH=arm O=<output directory>/a53 j722s_evm_a53_defconfig
    make ARCH=arm O=<output directory>/a53 CROSS_COMPILE="$CROSS_COMPILE_64" CC="$CC_64" BL31=${PREBUILT_IMAGES}/bl31.bin TEE=${PREBUILT_IMAGES}/bl32.bin BINMAN_INDIRS=${PREBUILT_IMAGES}
    Once the above steps are done,flash the files from the below path:
    
    {SDK_INSTALL_DIR}/board-support/<ti-u-boot dir>/build/r5/tiboot3-j722s-hs-fs-evm.bin
    {SDK_INSTALL_DIR}/board-support/prebuilt-images/tispl.bin
    {SDK_INSTALL_DIR}/board-support/prebuilt-images/u-boot.img
    

    Thanks
    Jiahao

  • Hi Jiahao,

    Is this an official correct to fix SPL-DFU fail ?

    Yes Jiahao,

    Regards

    Gokul

  • yocto-build/sources/meta-ti/meta-ti-bsp/conf/machine/j722s-evm-k3r5.conf
             UBOOT_MACHINE = "j722s_evm_r5_defconfig"
           +UBOOT_CONFIG_FRAGMENTS = "j722s_evm_r5_usbdfu.config"