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.

AM625: Unable to flash u-boot on SK-AM62 using USB DFU on Windows PC

Part Number: AM625

Hello, I am following https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/linux/Foundational_Components/U-Boot/UG-DFU.html#usb-device-firmware-upgrade-label 

and have installed the USB DFU UTIL and also the driver. but I am getting an error 

.\dfu-util.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 sourceforge.net/.../

Cannot open DFU device 17e9:4307 found on devnum 19 (LIBUSB_ERROR_NOT_FOUND)
Deducing device DFU version from functional descriptor length
Cannot open DFU device ffff:fffe found on devnum 20 (LIBUSB_ERROR_NOT_SUPPORTED)
Found DFU: [0451:6165] ver=0200, devnum=37, cfg=1, intf=0, path="1-2.2.3.2.3", alt=1, name="SocId", serial="01.00.00.00"
Found DFU: [0451:6165] ver=0200, devnum=37, cfg=1, intf=0, path="1-2.2.3.2.3", alt=0, name="bootloader", serial="01.00.00.00"

  • .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot ans Linux OS\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 sourceforge.net/.../

    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Cannot open DFU device 17e9:4307 found on devnum 19 (LIBUSB_ERROR_NOT_FOUND)
    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% 198827 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, 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


    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.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 sourceforge.net/.../

    Cannot open DFU device 17e9:4307 found on devnum 19 (LIBUSB_ERROR_NOT_FOUND)
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Found DFU: [0451:6165] ver=0200, devnum=52, cfg=1, intf=0, path="1-2.2.3.2.4", alt=1, name="UNKNOWN", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=0200, devnum=52, cfg=1, intf=0, path="1-2.2.3.2.4", alt=0, name="UNKNOWN", serial="UNKNOWN"

  • .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot ans Linux OS\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 sourceforge.net/.../

    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Cannot open DFU device 17e9:4307 found on devnum 19 (LIBUSB_ERROR_NOT_FOUND)
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    error get_status: LIBUSB_ERROR_PIPE

  • removed all other USB devices from the PC but still same error:

    .\dfu-util.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 sourceforge.net/.../

    Found DFU: [0451:6165] ver=0200, devnum=63, cfg=1, intf=0, path="1-2.2.2", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=63, cfg=1, intf=0, path="1-2.2.2", alt=0, name="bootloader", serial="01.00.00.00"
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot ans Linux OS\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 sourceforge.net/.../

    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% 198827 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, 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
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.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 sourceforge.net/.../

    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Found DFU: [0451:6165] ver=0200, devnum=63, cfg=1, intf=0, path="1-2.2.2", alt=1, name="UNKNOWN", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=0200, devnum=63, cfg=1, intf=0, path="1-2.2.2", alt=0, name="UNKNOWN", serial="UNKNOWN"
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot ans Linux OS\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 sourceforge.net/.../

    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    error get_status: LIBUSB_ERROR_PIPE

  • Tried to rebuild U-boot with USB0 as dr-mode = host 

    but still same issue:

    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.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 sourceforge.net/.../

    Found DFU: [0451:6165] ver=0200, devnum=14, cfg=1, intf=0, path="1-2.2.2", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6165] ver=0200, devnum=14, cfg=1, intf=0, path="1-2.2.2", alt=0, name="bootloader", serial="01.00.00.00"
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot - DFU\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 sourceforge.net/.../

    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% 198831 bytes
    Download done.
    DFU state(6) = dfuMANIFEST-SYNC, 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
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.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 sourceforge.net/.../

    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Found DFU: [0451:6165] ver=0200, devnum=14, cfg=1, intf=0, path="1-2.2.2", alt=1, name="UNKNOWN", serial="UNKNOWN"
    Found DFU: [0451:6165] ver=0200, devnum=14, cfg=1, intf=0, path="1-2.2.2", alt=0, name="UNKNOWN", serial="UNKNOWN"
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot - DFU\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 sourceforge.net/.../

    Warning: Invalid DFU suffix signature
    A valid DFU suffix will be required in a future dfu-util release
    Failed to retrieve language identifiers
    Failed to retrieve language identifiers
    Opening DFU capable USB device...
    Device ID 0451:6165
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #0 ...
    Determining device status...
    error get_status: LIBUSB_ERROR_PIPE
    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64>

  • these are the boot config pins:

  • Hi Mitesh,

    Tried to rebuild U-boot with USB0 as dr-mode = host 

    Please don't do this, DFU uses USB0 in peripheral mode.

    PS C:\Users\mitesh.hiran\Downloads\dfu-util-0.11-binaries.tar\dfu-util-0.11-binaries\win64> .\dfu-util.exe -R -a 0 -D 'C:\Users\mitesh.hiran\Downloads\AM62 U-boot ans Linux OS\tiboot3.bin'

    Where did you get this tiboot3.bin binary?

    You cannnot use the prebuilt binary provided in the Processor SDK. You need rebuild tiboot3.bin using the defconfig 'am62x_evm_r5_usbdfu_defconfig '.

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

  • Hi Bin Liu,

    Noted, will revert back to peripheral mode.

    Yes, used 'am62x_evm_r5_usbdfu_defconfig' to build tiboot3.bin 

    These are the steps taken:

    <UBOOT_DIR> = <SDK_INSTALL_DIR>/board-supports/u-boot-*/
    $ cd <UBOOT_DIR>/
    $ export ARCH=arm
    $ export CROSS_COMPILE=arm-none-linux-gnueabihf-
    $ make am62x_evm_r5_usbdfu_defconfig O=build/r5
    $ make O=build/r5
    $ cd ../k3-image-gen-<version>/
    $ make SOC=am62x SOC_TYPE=gp SBL=<UBOOT_DIR>/build/r5/spl/u-boot-spl.bin SYSFW_DIR=../prebuilt-images

    And the location of the tiboot3.bin from 

    <SDK_INSTALL_DIR>/board-support/k3-image-gen-<version>/.

  • Hi Bin Liu,

    any update on how to get AM62x booted with eMMC via DFU USB please? 

  • Hi,

    any update on how to get AM62x booted with eMMC via DFU USB please?