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.

TDA4VM: The board can not boot from OSPI after flashing by dfu-util

Part Number: TDA4VM

Hi TI team:

Based on project requirements, I want the board to boot from OSPI after flashing by dfu-util.

I followed the steps below,

And, I got logs,

~/auto_test/auto_test_project/tda4$ sudo dfu-util -l
[sudo] password for chaos:
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:6163] ver=0200, devnum=21, cfg=1, intf=0, path="1-1", alt=1, name="SocId", serial="01.00.00.00"
Found DFU: [0451:6163] ver=0200, devnum=21, cfg=1, intf=0, path="1-1", alt=0, name="bootloader", serial="01.00.00.00"
~/auto_test/auto_test_project/tda4$ sudo dfu-util -R -a bootloader -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%       288997 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!
dfu-util: can't detach
Resetting USB to switch back to Run-Time mode
~/auto_test/auto_test_project/tda4$ sudo dfu-util -R -a sysfw.itb -D sysfw.itb
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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%       269014 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
~/auto_test/auto_test_project/tda4$ sudo dfu-util -R -a tispl.bin -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%       978688 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
~/auto_test/auto_test_project/tda4$ sudo dfu-util -R  -a u-boot.img -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%      1263752 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
~/auto_test/auto_test_project/tda4$ sudo dfu-util -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:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=5, name="rootfs", serial="0000000000001241"
Found DFU: [0451:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=4, name="sysfw.itb", serial="0000000000001241"
Found DFU: [0451:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=3, name="u-boot-env", serial="0000000000001241"
Found DFU: [0451:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=2, name="u-boot.img", serial="0000000000001241"
Found DFU: [0451:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=1, name="tispl.bin", serial="0000000000001241"
Found DFU: [0451:6163] ver=0224, devnum=25, cfg=1, intf=0, path="1-1", alt=0, name="tiboot3.bin", serial="0000000000001241"
~/auto_test/auto_test_project/tda4$ sudo dfu-util -a tiboot3.bin -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%       288997 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!
~/auto_test/auto_test_project/tda4$ sudo dfu-util -a tispl.bin -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
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%       978688 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!
~/auto_test/auto_test_project/tda4$ sudo dfu-util -a u-boot.img -D 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #2 ...
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%      1263752 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!
~/auto_test/auto_test_project/tda4$ sudo dfu-util -a sysfw.itb -D sysfw.itb
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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6163
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #4 ...
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%       269014 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!
~/auto_test/auto_test_project/tda4$

U-Boot SPL 2021.01 (Aug 08 2022 - 18:00:54 +0800)
Model: Texas Instruments J721E SK R5
Board: J721EX-EAIK rev A1
SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
Trying to boot from DFU
################################################DOWNLOAD ... OK
Ctrl+C to exit ...
init_env from device 18 not supported!
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.5(release):08.01.00.006-dirty
NOTICE:  BL31: Built : 21:03:57, Mar 23 2022

U-Boot SPL 2021.01 (Aug 08 2022 - 18:00:49 +0800)
Model: Texas Instruments J721E SK A72
Board: J721EX-EAIK rev A1
SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
Trying to boot from DFU
cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
cdns-usb3-peripheral usb@6000000: Unable to get USB3 phy (ret -22)
cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
##########DOWNLOAD ... OK
Ctrl+C to exit ...


U-Boot 2021.01 (Aug 08 2022 - 18:00:49 +0800)

SoC:   J721E SR1.1
Model: Texas Instruments J721E SK A72
Board: J721EX-EAIK rev A1
DRAM:  4 GiB
Flash: 0 Bytes
MMC:   sdhci@4fb0000: 1
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
Net:   eth0: ethernet@46000000port@1
Hit any key to stop autoboot:  0
=>
=> env default -f -a
## Resetting to default environment
=> saveenv
Saving Environment to FAT... OK
=> setenv dfu_alt_info ${dfu_alt_info_ospi}
=> dfu 0 sf 0:0
cadence_spi spi@47040000: Can't get reset: -2
jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
cdns,sierra serdes@5030000: sierra probed
cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
###DOWNLOAD ... OK
Ctrl+C to exit ...
########DOWNLOAD ... OK
Ctrl+C to exit ...
##########DOWNLOAD ... OK
Ctrl+C to exit ...
###DOWNLOAD ... OK
Ctrl+C to exit ...

It seems like everything's done successfully, but when I changed the start mode to OSPI and power on,  the board was not in u-boot and nothing print in the MAIN UART window even though I restarted the board for many times.

For reference, in the same board, with the same files, when I flashed the OSPI by following steps, it works, and the board could boot from OSPI.

Is there anything I did was wrong when I boot from OSPI after flashing by dfu-util? Could anyone give me some advice?

Thank you very much!

  • Hi,

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_02_00_03/exports/docs/devices/J7/linux/Release_Specific_Release_Notes.html?highlight=dfu_alt_info_ospi

    Seems to be one known issue but that should ideally not break boot. I am checking internally on this. Do you have the URL of the Image that you shared?

    Best Regards,
    Keerthy

  • Hi, Keerthy

    1、Please refer to chapter 4.2 below。

    TDA4 刷写技术.pdf

    2、3.1.1.7. OSPI/QSPI — Processor SDK Linux for J721e Documentation

    You can also refer to this link。

    If you have the latest information, please feed it back to us in time.

    Thank you

  • Hi Zong,

    Can you read back the binaries that were written using the DFU?

    sf read can be used. try to read back what is written from both U-Boot & DFU.

    - Keerthy

  • Hi, Keerthy

    we use the hexdump tool  to dump the data as follows, We found that the data of address 0x0-0x20000 is lost (compared with the data burned by other methods).

    root@tda4vm-sk:/dev# hexdump /dev/mtd0
    0000000 ffff ffff ffff ffff ffff ffff ffff ffff
    *
    0020000 2314 016e 2b2b 02d0 0a2b 7bd0 e2b9 0069
    0020010 422a 52d0 1268 2168 396a 4bb3 1b68 2468
    0020020 23e0 1b6a 5bb1 1b68 0068 202b eadb e36a
    0020030 296c 566b 4368 00f4 a243 286c b06a 2047
    0020040 ff46 37f7 20fc ff46 03f7 20fc ff46 16f7
    0020050 20fc ff46 dff7 00fa 8420 70f8 c800 e3e7
    0020060 0069 e32b 5bd0 1a68 0068 0023 dc2a 20da
    0020070 ff46 19f7 23f8 016e 3b2b 02d0 0e2b 00d0
    0020080 d42b 22d1 0a6a 52b1 1368 e360 0069 cd2b
    0020090 5bd0 0068 1a22 c960 1ae7 bc46 23e7 236a
    00200a0 5bb1 4f68 40f0 c342 20f8 2322 936a 5bb1
    00200b0 4068 eaf2 1e37 2368 006a 0b2e bbda 5bb1
    00200c0 1e68 0168 ea20 eef7 01f8 f43f 20d1 2149

    Thanks

  • That is where the tiboot3.bin is stored & that is somehow wiped off. That is the reason as to why you do not see any prints.

    I will raise an internal ticket on this & get back when I have more updates. Thanks for the details.

    - Keerthy

  • Hi, Keerthy

    Do you have any update?

    Besides, we want to confirm whether there is a relationship between DFU tool and OSPI flash chip type?  

    We use  OSPI Flash is S28HS512TGABHM010.

    We use SDK is ti-processor-sdk-linux-j7-evm-08_02_00_03

    Thanks

  • Hi,

    Can you please share the output of the below command from U-Boot:

    printenv dfu_alt_info

    Besides, we want to confirm whether there is a relationship between DFU tool and OSPI flash chip type?  

    We have tested with the default Micron MT35XU512ABA1G12-0AAT flash that comes with the J721e-EVM.

    Can you share the output?

    - Keerthy

  • Hi,
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1;rootfs part 0 1 mmcpart 0;tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;tispl.bin.raw raw 0x400 0x1000 mmc1 dfu_alt_info_mmc=boot part 1 1;rootfs part 1 2;tiboot3.bin fat 1 1;tispl.bin fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1;sysfw.itb fat 1 1 dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;u-boot-env raw 0x680000 0x020000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000 ;
    dfu_alt_info_ram=tispl.bin ram 0x80080000 0x200000;u-boot.img ram 0x81000000 0x400000
  • dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;u-boot-env raw 0x680000 0x020000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000 ;

    Can you please try:

    setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"

    the u-boot-env raw 0x680000 0x020000 is removed.

    Followed by:

    setenv dfu_alt_info dfu_alt_info_ospi

    Let me know if the above works on your board.

    - Keerthy

  • Hi Keerthy,

    => env default -f -a
    ## Resetting to default environment
    => setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"
    => setenv dfu_alt_info dfu_alt_info_ospi
    =>
    =>
    =>
    => dfu 0 sf 0:0
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    dfu_fill_entity_sf: Memory layout (<NULL>) not supported!
    DFU entities configuration failed!
    (partition table does not match dfu_alt_info?)
    dfu - Device Firmware Upgrade
    
    Usage:
    dfu <USB_controller> [<interface> <dev>] [list]
      - device firmware upgrade via <USB_controller>
        on device <dev>, attached to interface
        <interface>
        [list] - list available alt settings
    This is the newest log, please check.

    Thank you very much!

  • Hi,

    Please try the below command:

    dfu 0 sf "0:0:25000000:0"

    You have resolved the issue. Did it work for you?

    Regards,
    Keerthy

  • Hi Keerthy,

    I tried the command, but it did not work. Please check the below log:

    U-Boot 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    
    SoC:   J721E SR1.1
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    =>
    =>
    => env default -f -a
    ## Resetting to default environment
    => setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"
    => setenv dfu_alt_info dfu_alt_info_ospi
    => dfu 0 sf "0:0:25000000:0"
    cadence_spi spi@47040000: Can't get reset: -2
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    dfu_fill_entity_sf: Memory layout (<NULL>) not supported!
    DFU entities configuration failed!
    (partition table does not match dfu_alt_info?)
    dfu - Device Firmware Upgrade
    
    Usage:
    dfu <USB_controller> [<interface> <dev>] [list]
      - device firmware upgrade via <USB_controller>
        on device <dev>, attached to interface
        <interface>
        [list] - list available alt settings
    
    => env default -f -a
    ## Resetting to default environment
    => saveenv
    Saving Environment to FAT... OK
    => setenv dfu_alt_info ${dfu_alt_info_ospi}
    => dfu 0 sf "0:0:25000000:0"
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns,sierra serdes@5030000: sierra probed
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    ########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ##########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    U-Boot SPL 2021.01-dirty (Jul 19 2022 - 17:23:02 +0800)
    Model: Texas Instruments J721E SK R5
    Board: J721EX-EAIK rev A1
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from DFU
    ################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    init_env from device 18 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.5(release):08.01.00.006-dirty
    NOTICE:  BL31: Built : 21:03:57, Mar 23 2022
    
    U-Boot SPL 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from DFU
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns-usb3-peripheral usb@6000000: Unable to get USB3 phy (ret -22)
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    ##########DOWNLOAD ... OK
    Ctrl+C to exit ...
    

    Thank you very much!

  • Hi,

    Your second time boot is also from DFU. Are you able to boot from OSPI once that flash was written with boot images?

    - Keerthy

  • Hi Keerthy,

    The first time, I tried the commands you recommended, but I got some errors below:

    U-Boot 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    
    SoC:   J721E SR1.1
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    =>
    =>
    => env default -f -a
    ## Resetting to default environment
    => setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"
    => setenv dfu_alt_info dfu_alt_info_ospi
    => dfu 0 sf "0:0:25000000:0"
    cadence_spi spi@47040000: Can't get reset: -2
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    dfu_fill_entity_sf: Memory layout (<NULL>) not supported!
    DFU entities configuration failed!
    (partition table does not match dfu_alt_info?)
    dfu - Device Firmware Upgrade
    
    Usage:
    dfu <USB_controller> [<interface> <dev>] [list]
      - device firmware upgrade via <USB_controller>
        on device <dev>, attached to interface
        <interface>
        [list] - list available alt settings

    The process could not be continued.

    So, I tried the previous commands but replacing "dfu 0 sf 0:0" with your recommended command " dfu 0 sf "0:0:25000000:0" ". As you see, the process is done, but the board still could not  boot from OSPI once that flash was written with boot images.

    Thank you very much!

  • Hi,

    I will check the same commands on SK Board and get back mid of next week.

    Best Regards,
    Keerthy

  • Hi,

    I have still not tried on the SK board but the same commands worked on the EVM board. I will get back on the results on SK board by Thursday.

    - Keerthy

  • Hi,

    Is there  any update for this question?

    Thanks

  • Followed by:

    setenv dfu_alt_info dfu_alt_info_ospi

    Please try: 

    setenv dfu_alt_info $dfu_alt_info_ospi

    The $ was missing. With that you should not see the errors you are facing now.
    Followed  by:

    dfu 0 sf "0:0:25000000:0"

    Best Regards,
    Keerthy

  • Hi,

    I followed the steps you given, but our board still could not boot from OSPI. Please check the below log for us,

    U-Boot 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    
    SoC:   J721E SR1.1
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    =>
    =>
    =>
    => env default -f -a
    ## Resetting to default environment
    => setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"
    => setenv dfu_alt_info $dfu_alt_info_ospi
    => dfu 0 sf "0:0:25000000:0"
    cadence_spi spi@47040000: Can't get reset: -2
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns,sierra serdes@5030000: sierra probed
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    ########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ##########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    

    Thank you very much!

    Best Regards!

  • Hi,

    Could you please share the output of the command:

    dfu-util -l 

    And also the commands used in the host PC side. We suspect that sysfw.itb is being written at the wrong offset.

    Best Regards,

    Keerthy 

  • Hi Keerthy,

    The commands we used in the host PC side are

    sudo dfu-util -l
    sudo dfu-util -R -a bootloader -D tiboot3.bin
    sudo dfu-util -R -a sysfw.itb -D sysfw.itb
    sudo dfu-util -R -a tispl.bin -D tispl.bin
    sudo dfu-util -R  -a u-boot.img -D u-boot.img
    
    sudo dfu-util -l
    sudo dfu-util -a tiboot3.bin -D tiboot3.bin
    sudo dfu-util -a tispl.bin -D tispl.bin
    sudo dfu-util -a u-boot.img -D u-boot.img
    sudo dfu-util -a sysfw.itb -D sysfw.itb

    The whole log in the host PC side is

    chaos@cy:~/TDA4$ sudo dfu-util -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:6163] ver=0200, devnum=34, cfg=1, intf=0, path="1-1", alt=1, name="SocId", serial="01.00.00.00"
    Found DFU: [0451:6163] ver=0200, devnum=34, cfg=1, intf=0, path="1-1", alt=0, name="bootloader", serial="01.00.00.00"
    chaos@cy:~/TDA4$ sudo dfu-util -R -a bootloader -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%       289292 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!
    dfu-util: can't detach
    Resetting USB to switch back to Run-Time mode
    chaos@cy:~/TDA4$ sudo dfu-util -R -a sysfw.itb -D sysfw.itb
    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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%       268990 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
    chaos@cy:~/TDA4$ sudo dfu-util -R -a tispl.bin -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%       979016 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
    chaos@cy:~/TDA4$ sudo dfu-util -R  -a u-boot.img -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%      1264088 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
    chaos@cy:~/TDA4$ sudo dfu-util -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:6163] ver=0224, devnum=38, cfg=1, intf=0, path="1-1", alt=4, name="rootfs", serial="0000000000001241"
    Found DFU: [0451:6163] ver=0224, devnum=38, cfg=1, intf=0, path="1-1", alt=3, name="sysfw.itb", serial="0000000000001241"
    Found DFU: [0451:6163] ver=0224, devnum=38, cfg=1, intf=0, path="1-1", alt=2, name="u-boot.img", serial="0000000000001241"
    Found DFU: [0451:6163] ver=0224, devnum=38, cfg=1, intf=0, path="1-1", alt=1, name="tispl.bin", serial="0000000000001241"
    Found DFU: [0451:6163] ver=0224, devnum=38, cfg=1, intf=0, path="1-1", alt=0, name="tiboot3.bin", serial="0000000000001241"
    chaos@cy:~/TDA4$ sudo dfu-util -a tiboot3.bin -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%       289292 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!
    chaos@cy:~/TDA4$ sudo dfu-util -a tispl.bin -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    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%       979016 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!
    chaos@cy:~/TDA4$ sudo dfu-util -a u-boot.img -D 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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #2 ...
    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%      1264088 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!
    chaos@cy:~/TDA4$ sudo dfu-util -a sysfw.itb -D sysfw.itb
    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/
    
    dfu-util: Warning: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release
    Opening DFU capable USB device...
    Device ID 0451:6163
    Device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Interface #3 ...
    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%       268990 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!
    

    In the meantime, the output of MAIN UART window is

    U-Boot SPL 2021.01-dirty (Jul 19 2022 - 17:23:02 +0800)
    Model: Texas Instruments J721E SK R5
    Board: J721EX-EAIK rev A1
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from DFU
    ################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    init_env from device 18 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.5(release):08.01.00.006-dirty
    NOTICE:  BL31: Built : 21:03:57, Mar 23 2022
    
    U-Boot SPL 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    Trying to boot from DFU
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns-usb3-peripheral usb@6000000: Unable to get USB3 phy (ret -22)
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    ##########DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    
    U-Boot 2021.01-dirty (Jul 19 2022 - 17:22:19 +0800)
    
    SoC:   J721E SR1.1
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev A1
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0
    =>
    => env default -f -a
    ## Resetting to default environment
    => setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000"
    => setenv dfu_alt_info $dfu_alt_info_ospi
    => dfu 0 sf "0:0:25000000:0"
    cadence_spi spi@47040000: Can't get reset: -2
    jedec_spi_nor flash@0: non-uniform erase sector maps are not supported yet.
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns,sierra serdes@5030000: sierra probed
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    ########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ##########DOWNLOAD ... OK
    Ctrl+C to exit ...
    ###DOWNLOAD ... OK
    Ctrl+C to exit ...
    
    

    After that, we changed the start mode to OSPI and powered on, but the board did not go to u-boot and nothing printed in the MAIN UART window. So, we cannot provide log at this point.

    Thus, we changed the start mode to SD and powered on, and we used the command "hexdump mtdblock0" to check the OSPI flash and we got this

    root@j7-evm:~# cd /dev/
    root@j7-evm:/dev# ls
    autofs        kmsg          mtd1ro        mtdblock6     ptypa         ram7          tty18         tty35         tty52         ttyS3         ttypc
    console       log           mtd2          mtdblock7     ptypb         ram8          tty19         tty36         tty53         ttyS4         ttypd
    dma-buf-phys  loop-control  mtd2ro        net           ptypc         ram9          tty2          tty37         tty54         ttyS5         ttype
    dma_heap      loop0         mtd3          null          ptypd         random        tty20         tty38         tty55         ttyS6         ttypf
    full          loop1         mtd3ro        port          ptype         snapshot      tty21         tty39         tty56         ttyS7         ubi_ctrl
    gpiochip0     loop2         mtd4          ptmx          ptypf         snd           tty22         tty4          tty57         ttyS8         urandom
    gpiochip1     loop3         mtd4ro        ptp0          ram0          tee0          tty23         tty40         tty58         ttyS9         vcs
    gpiochip2     loop4         mtd5          ptp1          ram1          teepriv0      tty24         tty41         tty59         ttyp0         vcs1
    i2c-0         loop5         mtd5ro        pts           ram10         tty           tty25         tty42         tty6          ttyp1         vcsa
    i2c-1         loop6         mtd6          ptyp0         ram11         tty0          tty26         tty43         tty60         ttyp2         vcsa1
    i2c-2         loop7         mtd6ro        ptyp1         ram12         tty1          tty27         tty44         tty61         ttyp3         vcsu
    i2c-3         mem           mtd7          ptyp2         ram13         tty10         tty28         tty45         tty62         ttyp4         vcsu1
    i2c-4         mmcblk0       mtd7ro        ptyp3         ram14         tty11         tty29         tty46         tty63         ttyp5         vfio
    i2c-5         mmcblk0p1     mtdblock0     ptyp4         ram15         tty12         tty3          tty47         tty7          ttyp6         zero
    i2c-6         mmcblk0p2     mtdblock1     ptyp5         ram2          tty13         tty30         tty48         tty8          ttyp7
    i2c-7         mtab          mtdblock2     ptyp6         ram3          tty14         tty31         tty49         tty9          ttyp8
    i2c-8         mtd0          mtdblock3     ptyp7         ram4          tty15         tty32         tty5          ttyS0         ttyp9
    i2c-9         mtd0ro        mtdblock4     ptyp8         ram5          tty16         tty33         tty50         ttyS1         ttypa
    initctl       mtd1          mtdblock5     ptyp9         ram6          tty17         tty34         tty51         ttyS2         ttypb
    root@j7-evm:/dev# hexdump mtdblock0
    0000000 ffff ffff ffff ffff ffff ffff ffff ffff
    *
    0020000 6a23 b11b 685b 681b 2b00 db20 6aea 6ce3
    0020010 6b29 6856 f443 4300 6ca2 6a28 47b0 4620
    0020020 f7ff fc37 4620 f7ff fc03 4620 f7ff fc16
    0020030 4620 f7ff fadf 2000 f884 0070 e7c8 69e3
    0020040 2b00 d0e3 685b 681a 2300 2a00 dadc 4620
    0020050 f7ff f819 6e23 2b01 d03b 2b02 d00e 2b00
    0020060 d1d4 6a22 b10a 6852 6013 69e3 2b00 d0cd
    0020070 685b 2200 601a e7c9 461a e7bc 6a23 b123
    0020080 685b f04f 4240 f8c3 2220 6a23 b193 685b
    0020090 f240 37ea 681e 6a23 2e00 da0b b1bb 685b
    00200a0 681e 2001 f7ea f8ee 3f01 d1f4 4920 4821
    00200b0 f7ea fa7a 6a23 2b00 d0a8 685b f8d3 3220
    00200c0 2b00 daa3 491a 481c f7ea fa6e e79e 461e
    00200d0 e7e7 69e3 b11b 685b f04f 4240 601a 69e3
    

    We found that the data of address 0x0-0x20000 is lost (compared with the data burned by other methods).

    Please check for us, thank you very much!

    Best Regards!

  • Hi,

    Is there  any update for this question?

    Thanks

  • Hi, experts

    DFU  tool is loaded at which boot stage , tiboot3.bin、tispl.bin or u-boot stage ?

    Thanks

  • DFU is used in all the boot stages. Is the tiboot3.bin still getting erased in OSPI?

    Can you check at the OSPI addresses that are getting written using DFU?

    - Keerthy