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:使用 DFU 更新 eMMC 失败

Guru**** 2481425 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1534729/processor-sdk-j722s-updating-an-emmc-using-dfu-is-fail

器件型号:PROCESSOR-SDK-J722S


工具/软件:

尊敬的 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 以上)? 您能否 更正  上述设置?

此致

毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    您是否可以进行以下更改、重新编译 tiboot3.bin、tispl.bin 和 u-boot 并尝试?

    diff --git a/configs/j722s_evm_a53_defconfig b/configs/j722s_evm_a53_defconfig
    index d4be8eaf0fc..30cb728fb15 100644
    --- a/configs/j722s_evm_a53_defconfig
    +++ b/configs/j722s_evm_a53_defconfig
    @@ -10,6 +10,7 @@ CONFIG_TARGET_J722S_A53_EVM=y
     CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
     CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
     CONFIG_SF_DEFAULT_SPEED=25000000
    +CONFIG_SYS_MALLOC_LEN=0x2000000
     CONFIG_ENV_SIZE=0x40000
     CONFIG_DM_GPIO=y
     CONFIG_SPL_DM_SPI=y
    

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    DFU 将引导文件刷写到 eMMC 的引导 0 分区、因为我们只支持它。

    因此、您必须在 u-boot 中具有以下命令:

    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0

    引导开关设置:从 eMMC 的 Boot0 分区引导。

    SW3[1:8]= 11010011

    SW4[1:8]= 00000000

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul

    感谢您发送编修

    1.你提到以上的变化,我已经 尝试过,但结果仍然是一样的。

    3. DIP 开关更改为从 eMMC 引导

    • SW3[1:8]= 1101 0011  
    • SW4[1:8]= 0000 0000

      重启 TI EVM 板后、我的 Linux 终端没有任何要输出的日志信息(硬件复位 SW5)。

     dfu_alt_info_mmc 信息为“alt_info_mc=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 1;sysfw.itb fat 1 1“。

    不对吗?

    您能提供一些其他建议吗

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

      重新启动 TI EVM 板后、我的 Linux 终端没有任何要输出的日志信息(硬件复位 SW5)。

     dfu_alt_info_mmc 信息为“alt_info_mc=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 1;sysfw.itb fat 1 1“。

    [/报价]

    您使用了 alt_info_eMMC、而不是 alt_info_mmc、right。

    能否说明您要从何处获取引导文件 (tiboot3.bin、tispl.bin、u-boot.img)?

    还可以共享引导文件的文件大小 (tiboot3.bin、tispl.bin、u-boot.img) 吗?

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    问候

    嗨、Gokul

    You have used alt_info_emmc right, not alt_info_mmc,right.

    是的、它是  alt_info_eMMC 、如下图所示:

      能否说明您要从何处获取引导文件 (tiboot3.bin、tispl.bin、u-boot.img)?

      还可以共享引导文件的文件大小 (tiboot3.bin、tispl.bin、u-boot.img) 吗?

    、如下图所示:

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    很抱歉、延迟的回复。

    您能否将[PS Z:\ti\dfu-boot]中的文件刷写到 eMMC、因为这些文件使用 DFU 引导正常引导。

    此外、您还可以在 u-boot 命令提示符处共享以下命令的输出:

    printenv dfu_alt_info_emmc

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul

    感谢您的 答复。

    Q1、 您能否将[PS Z:\ti\dfu-boot]中的文件刷写到 eMMC、因为这些文件使用 DFU 引导正常引导。

    在执行命令“dfu 0 mmc 0“后、 如果将 my[PS Z:\ti\dfu-boot]中的文件刷写到 eMMC、 这是否是所需的操作?

    问题 2  :还可以在 u-boot 命令提示符处共享以下命令的输出:

    printenv dfu_alt_info_emmc
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpar  t 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw   0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    

    => printenv dfu_alt_info_emmc
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    => setenv dfu_alt_info ${dfu_alt_info_emmc}
    => printenv dfu_alt_info_emmc
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    => <INTERRUPT>
    =>
    =>
    =>
    => printenv dfu_alt_info
    dfu_alt_info=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    在执行命令'dfu 0 mmc 0“之后、如果要 将 my[PS Z:\ti\dfu-boot]中的文件刷写到 eMMC、 这是否是必需的操作?

    是毛江、

    此外、在将引导文件从主机刷写到 eMMC 时、您是否可以使用以下命令。

    >sudo dfu-util -l
    
    >sudo dfu-util -a tiboot3.bin.raw -D <tiboot3.bin in PS Z:\ti\dfu-boot directory>
    
    >sudo dfu-util -a tispl.bin.raw -D <tispl.bin in PS Z:\ti\dfu-boot directory>
    
    >sudo dfu-util -a u-boot.img.raw -D <u-boot.imgin PS Z:\ti\dfu-boot directory>

    还有一个问题、毛江:

    • 您从 SDK 目录中的哪个路径获取 tiboot3.bin、tispl.bin 和 u-boot.img?

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul

    感谢您的 答复。

    按照设置、

    编译 ti-uboot 工程、 以下命令为 performd(添加一个配置文件“j722s_evm_r5_usbdfu.config")“)、然后将生成新的 tiboot3.bin、tispl.bin 和 u-boot.img

        $(MAKE) -j $(MAKE_JOBS) -C $(UBOOT_SRC_DIR) ARCH=arm $(UBOOT_MACHINE_R5) j722s_evm_r5_usbdfu.config\
            O=$(UBOOT_R5_BUILD)        
        $(MAKE) -j $(MAKE_JOBS) -C $(UBOOT_SRC_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE_ARMV7) \
            BINMAN_INDIRS=$(TI_LINUX_FIRMWARE) \
            O=$(UBOOT_R5_BUILD)

    2.从 USB 启动和硬件重置的转换

    SW3[1:8]= 1100 1010 SW4[1:8]= 0000 0000

    3.通过 DFU 工具将映像下载到 j722S 目标板

    3.1 主机日志

    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> 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> 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%      1210387 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>
    

    3.2 目标日志

    4.目标的部分,如下所示。

    主机的 5.septs、如下所示。 通过 DFU 将映像从主机刷写到 eMMC

    注意: tiboot3.bin、tispl.bin 和 u-boot.img 在步骤 3 上相同

    5.1  在我的文件夹“Z:\ti\dfu-boot>“中以下命令失败

    dfu-util.exe -a tiboot3.bin.raw -D tiboot3.bin

    5.2 因此、我会执行以下命令、将映像下载到我文件夹“Z:\ti\dfu-boot>“中的 eMMC

    dfu-util.exe -c 1 -i 0 -a tiboot3.bin.raw -D tiboot3.bin

    dfu-util.exe -c 1 -i 0 -a tispl.bin.raw -D tispl.bin

    dfu-util.exe -c 1 -i 0 -a u-boot.img.raw -D u-boot.img

    5.2.1 主机日志

    PS Z:\ti\dfu-boot> dfu-util.exe -c 1 -i 0 -a tiboot3.bin.raw -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 #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%       350591 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> dfu-util.exe -c 1 -i 0 -a tispl.bin.raw -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 #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%      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> dfu-util.exe -c 1 -i 0 -a u-boot.img.raw  -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 #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%      1210387 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!

    5.2.2 目标日志

    6.为 目标设定  

    => mmc partconf 0 1 1 1.
    => MMC bootbus 0 2 0

    7.从 eMMC 引导

    SW3[1: 8]= 1101 0011 SW4[1 :8]= 0000 0000

    8.重新启动 TI EVM 板(硬件复位 SW5)

    9. 我的 Linux 终端没有任何要输出的日志信息

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul

     eMMC 引导也存在类似的问题。

    1.执行以下命令以将映像下载到 eMMC

    => mmc dev 0 1
    => fatload mmc 1 ${loadaddr} tiboot3.bin
    => mmc write ${loadaddr} 0x0 0x400
    => fatload mmc 1 ${loadaddr} tispl.bin
    => mmc write ${loadaddr} 0x400 0x1000
    => fatload mmc 1 ${loadaddr} u-boot.img
    => mmc write ${loadaddr} 0x1400 0x2000
    
    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0

     2. DIP 开关切换为从 eMMC 引导

    SW3[1: 8]= 1101 0011 SW4[1 :8]= 0000 0000

    3.重启 TI EVM 板(硬件复位 SW5)

    4. 我的 Linux 终端没有任何要输出的日志信息

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    我在我这边尝试了相同的方法、它对我来说很好、从 eMMC 引导 0 引导。

    日志:

    • 您能否提供您所使用的 SDK 版本?
      • 我试过 J722S SDK 版本 10_00_00_08。
    • 您可以尝试使用文件进行刷写吗 [tiboot3.bin、tispl.bin 和 u-boot.img] 存在于中 /board-support/prebuilt-images 文件夹?

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Q1、您能否提供您正在使用的 SDK 版本?

    问题 2:您可以尝试使用文件进行刷写吗 [tiboot3.bin、tispl.bin 和 u-boot.img]  存在于中 /board-support/prebuilt-images 文件夹?

    1.

     我已经尝试刷写文件 [tiboot3.bin、tispl.bin 和 u-boot.img]  存在于中 /board-support/prebuilt-images 文件夹、如下所示

    从 SD 卡引导对我来说可以正常工作、但  对于我来说、从 eMMC 引导 0 引导时运行失败、如下所示。

     2.将映像刷写到 eMMC 后、.dip swtch 更改为从 eMMC 引导、如上图所示。  

    SW3[1: 8]= 1101 0011 SW4[1 :8]= 0000 0000

    3.重启 TI EVM 板(硬件复位 SW5)

    4. 我的 Linux 终端没有任何要输出的日志信息

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    我在 10.01.00.04 上尝试了同样的方法,它在我的最后工作

    日志

    您能否确保以下几点:

    SW3[1:8]= 1101 0011  

    SW4[1:8]= 0000 0000

    SW2[1:8]= 00011100

    此外、您能否确保连接到 UART (ttyUSB2) 的第 3 个实例以查看日志。

    [quote userid=“659197" url="“ url="~“~/support/processors-group/processors/f/processors-forum/1534729/processor-sdk-j722s-updating-an-emmc-using-dfu-is-fail/5921714 重新启动 TI EVM 板(硬件复位 SW5)

    重新插入电源线、而不是硬件重置。

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul

    谢谢您的响应、

    我构建了一个新的 u-boot、它在重新启动 TI EVM 板后不起作用(硬件复位 SW5)、但   在重新为 TI EVM 板供电后从 eMMC 引导时工作正常、  还存在关于 10.01.00.04 的类似问题。

    按照设置、

    1.日志

     2.将映像刷写到 eMMC 后、.dip swtch 更改为从 eMMC 引导、如上图所示。  

    SW3[1: 8]= 1101 0011 SW4[1 :8]= 0000 0000  SW2[1:8]= 00011100

    重启 TI EVM 板

    3.1 硬件复位 SW5、 我的 Linux 终端没有任何要输出的日志信息

     

    3.2 通过 Type-C (J24) 重新供电、   在为  TI EVM 板重新供电后、从 eMMC 引导时工作正常、如下所示

    4.我拍了一张  TI EVM 板的照片。

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的茂江:

    感谢您的确认。 实际上、 我们在电路板上设置的引导开关会根据 BootROM 获取哪个引导介质来获取引导文件来设置 DEV_STAT 寄存器。

    但是、在使用 SW5 进行硬件复位时、DEV STAT 寄存器不会更新。 因此、如果必须更改引导开关 ( 例如: 必须更改引导介质)、您必须关闭电源并打开电路板电源。

    但是、如果您要在不更改引导介质的情况下复位电路板、硬件复位 (SW5) 将可以正常工作。

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Gokul
    感谢您的建议,

    我仍然对 从 eMMC 分区 0 引导有点困惑。

    按照设置、

    将映像刷写到 eMMC 后、按上述步骤 DIP 切换为从 eMMC 引导。  

    SW3[1: 8]= 1101 0011 SW4[1 :8]= 0000 0000  SW2[1:8]= 00011100

    2.打开的电路板电源  J722S  

    它对我来说很好,如下所示。

    3.请勿更改电源状态和启动开关,硬件复位 SW5 后, 我的 Linux 终端没有任何要输出的日志信息,

     正确吗?

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、茅江。

    您所说的是完全正确的。

    唯一的事情是将文件刷写到 eMMC 后、对电路板进行下电上电。 请勿使用 SW5 进行硬件复位、因为它会出现问题、我们也会将此情况报告给硬件团队以及 SW5 问题。

    简而言之、步骤如下:

    • 将文件刷写到 eMMC boot0
    • 给电路板断电
    • 将引导开关设置更改为从 eMMC 引导 0 分区引导。
    • 给电路板上电。

    此致

    Gokul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、 Gokul

    非常感谢您的支持。

    此致

    毛江

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    当然毛江。

    此致

    Gokul