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.

[参考译文] AM6442:eMMC 布局+向 DFU 闪存添加其他文件

Guru**** 2466550 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1470747/am6442-emmc-layout-adding-additional-files-to-dfu-flashing

器件型号:AM6442

工具与软件:

您好、TI:

我们对 eMMC 布局以及在 DFU 闪存中添加额外文件有一些疑问、

1.如何在使用 DFU 进行刷写后检查 eMMC 布局? 或者在何处为 DFU 闪存提供 eMMC 布局?

   这是为 DFU 闪存"u-boot/2024.04/include/env/ti/k3_DFU.env"提供 eMMC 布局的文件吗?

2.如何使用 DFU 将多核.appimage 刷写到 eMMC?

   步骤1. 目前使用 DFU 闪存时、我们会将 tiboot3.bin、tispl.bin、u-boot.img 和 rootfs 刷写到 eMMC、

   步骤2. 对于多核、我们将为 A53和 M4创建 appimage、并在 AM64x EVK 上通过 UART 进行刷写、多核功能正常运行、但我们想使用 DFU 和步骤1二进制文件添加和刷写这些二进制文件、我们如何实现这一点?  

A53应用图像添加到0xA00000地址、M4应用图像添加到0x800000地址

谢谢!

Prathibha

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

    您好!

    若要刷写任何映像、只需在配置文件中给出映像路径和闪存偏移量。 刷写过程是通用的、未绑定到任何特定图像。

    此致、

    Prashant

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

    您好、TI:

    请告诉我这里可能会出什么问题、这是我要进行更改的正确配置文件吗?

    1. IAM 使用 windows DFU 工具

    2.在路径"Dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64"中、名为"flash-files.cfg"的 cfg 文件、我在其中添加以下内容

    # M4多核图像@Raw
    --file="hello_world_am64x-evm_m4fss0-0_nortos_ti-arm-clang.appimage.hs_fs"--operation=flash-emmc --flash-offset=0x800000 --attributes="raw、1、-"

    # a53多核图像@Raw
    --file="linux.appimage.hs_fs"--operation=flash-eMMC --flash-offset=0xA00000 --attributes="raw、1、-"

    3.二进制文件我保存在 "flash-files.cfg"所在的相同路径中

    4.当我把我的设备置于 DFU 模式并检查列表时,IAM 没有看到任何 iam 添加到.cfg 文件中的内容

    D:\projects\OSM\Tools\dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64>dfu-util.exe --l.
    DFU-util 0.11.

    版权所有2005-2009 Weston Schmidt、Harald Welte 和 OpenMoko Inc.
    版权所有2010-2021 Tormod Volden 和 Stefan Schmidt
    该程序是自由软件、绝对没有任何担保
    请将错误报告给 sourceforge.net/.../

    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=5、name="u-env.raw"、serial="0000000000000000"
    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=4、name="u-boot.img.raw"、serial="0000000000000000"
    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=3、name="tispl.bin.raw"、serial="0000000000000000"
    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=2、name="tiboot3.bin.raw"、serial="0000000000000000"
    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=1、name="rootfs"、serial="0000000000000000"
    找到 DFU:[0451:6165] ver=0224、devnum=31、cfg=1、intf=0、path="1-3"、 alt=0、name="rawemmc"、serial="0000000000000000"

    以下步骤是否正确? 请找到随附的错误日志

    D:\Projects\OSM\Tools\dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64>dfu-util.exe --l
    dfu-util 0.11
    
    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2021 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../
    
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=5, name="u-env.raw", serial="0000000000000000"
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=4, name="u-boot.img.raw", serial="0000000000000000"
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=3, name="tispl.bin.raw", serial="0000000000000000"
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=2, name="tiboot3.bin.raw", serial="0000000000000000"
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=1, name="rootfs", serial="0000000000000000"
    Found DFU: [0451:6165] ver=0224, devnum=12, cfg=1, intf=0, path="1-3", alt=0, name="rawemmc", serial="0000000000000000"
    
    D:\Projects\OSM\Tools\dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64>
    D:\Projects\OSM\Tools\dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64>dfu-util.exe -S 0000000000000000 -a rawemmc -D hello_world_am64x-evm_m4fss0-0_nortos_ti-arm-clang.appimage.hs_fs -s 0x800000
    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
    Warning: DfuSe option used on non-DfuSe device
    Device returned transfer size 4096
    Could not read name, sscanf returned 0
    Failed to parse memory layout for alternate interface 0
    
    D:\Projects\OSM\Tools\dfu-util-0.11-binaries\dfu-util-0.11-binaries\win64>

     

    谢谢!

    Prathibha

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

    您好!

    4. 当我将设备置于 DFU 模式并检查列表时、IAM 未看到在.cfg 文件中添加的任何内容[/QUOT]

    如何通过 DFU 引导至 A53 U-Boot?

    此致、

    Prashant

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

    您好、TI:

    我们使用引导选择开关将器件置于 DFU 中、并使用以下命令加载 tiboot3.bin、tispl.bin 和 u-boot.img、

    Windows 上的 DFU
    -------
    dfu-util.exe -S 01.00.00.00 -R -A 引导加载程序-D tiboot3.bin
    dfu-util.exe -S 未知-R -A tispl.bin -D tispl.bin
    dfu-util.exe -S 未知-R -a u-boot.img -D u-boot.img

    在器件串行端口上、我们将使用命令在 DFU 中引导 A53、

    ---------------

    uBoot# GPT 写入 MMC 0 ${partitions}      =>这是对 eMMC 进行分区
    uBoot# setenv dfu_alt_info ${dfu_alt_info_eMMC}      =>这是为了启用 DFU
    uBoot# DFU 0 MMC 0       =>选择 eMMC 0

    但是 在 "flash-files.cfg"中添加的新文件未反映在命令 promt 上、请告知我们这是正确的文件? 相加的正确方法是什么?

    我们在该过程中遗漏了什么

    谢谢!

    Prathibha

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

    您好!

    此过程专门针对闪存 U-Boot 和 Rootfs。

    但是 在 "flash-files.cfg"中添加的新文件未反映在命令 promt 上

    这是以下更通用的基于 U-Boot 的 DFU 闪存写入器的一部分。  请按照此工具的自述文件刷写任何通用映像。

    https://git.ti.com/cgit/processor-sdk/uboot-flash-writer/tree/tools/DFU_flash

    此致、

    Prashant