工具/软件:
尊敬的 TI 专家:
我想 使用 DFU 更新 eMMC、但它无法在 u-boot 提示符下执行命令“dfu 0 mmc 0“。
遵循的步骤:
1. 对 eMMC 设备进行分区和格式化
4.1.8.如何刷写 eMMC 器件和从 UDA 分区引导 — Processor SDK J722S 文档

在 eMMC 中创建了分区(引导和 rootfs)
2. DIP 开关更改为从 USB 引导。 所示
SW3[1:8]= 1100 1010 且 SW4[1:8]= 0000 0000
重启 TI EVM 板(硬件复位 SW5)
5.log 信息
主机日志:
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 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% 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 sourceforge.net/.../ 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 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 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 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 #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>
目标日志:
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、 在 u-boot 提示符下未能执行命令'dfu 0 mmc 0'。如下所示:

您能否帮助解决错误(在 setp6 以上)? 您能否 更正 上述设置?
此致
毛江
















