Tool/software:
Hi TI Experts,
I want to Update an eMMC using DFU,But it fails to perform the command 'dfu 0 mmc 0' in the u-boot prompt.
Steps followed:
1. Partition and format eMMC device
4.1.8. How to flash eMMC device and boot from UDA partition — Processor SDK J722S Documentation
partitions created (BOOT & rootfs) in emmc
2.dip switches changed to boot from USB. as shown below
SW3[1:8] = 1100 1010 and SW4[1:8] = 0000 0000
4.reboot TI evm board(hardware reset SW5)
5.log information
Host logs:
PS Z:\ti\dfu-boot> dfu-util.exe -c 1 -i 0 -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/
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% 350591 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)
PS Z:\ti\dfu-boot>
PS Z:\ti\dfu-boot>
PS Z:\ti\dfu-boot> 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 http://sourceforge.net/p/dfu-util/tickets/
Found Runtime: [174f:1820] ver=1112, devnum=1, cfg=1, intf=4, path="4-1", alt=0, name="Camera DFU Device", serial="0001"
Found DFU: [0451:6165] ver=0223, devnum=8, cfg=1, intf=0, path="2-1.4", alt=1, name="u-boot.img", serial="UNKNOWN"
Found DFU: [0451:6165] ver=0223, devnum=8, cfg=1, intf=0, path="2-1.4", alt=0, name="tispl.bin", serial="UNKNOWN"
PS Z:\ti\dfu-boot> dfu-util.exe -c 1 -i 0 -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/
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% 1034011 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!
PS Z:\ti\dfu-boot>
PS Z:\ti\dfu-boot>
PS Z:\ti\dfu-boot> dfu-util.exe -c 1 -i 0 -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/
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% 1210371 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!
PS Z:\ti\dfu-boot>
Target Logs:
U-Boot SPL 2024.04-ti-dirty (Jul 01 2025 - 11:31:37 +0800)
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-dirty (Jul 01 2025 - 20:47:12 +0800)
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-dirty (Jul 01 2025 - 20:47:12 +0800)
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 FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=>
=>
=> mmc list
mmc@fa10000: 0 (eMMC)
mmc@fa00000: 1
=> mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 262144 a6947335-01 0c Boot
2 264192 61896704 a6947335-02 83
=> mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 262144 a6947335-01 0c Boot
2 264192 61896704 a6947335-02 83
=> env default -f -a
## Resetting to default environment
=> setenv dfu_alt_info ${dfu_alt_info_emmc}
=> gpt write mmc 0 ${partitions}
Writing GPT: success!
=> dfu 0 mmc 0
Could not memalign 0x800000 bytesDFU 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
=>
6. it fails to perform the command 'dfu 0 mmc 0' in the u-boot prompt.as show below:
Can you please help to solve the error(above setp6)? could you please correct the setps mentioned above ?
Regards
Maojiang