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.

[参考译文] SK-AM62P-LP:USB DFU 过程出现问题

Guru**** 2393725 points
Other Parts Discussed in Thread: SK-AM62P-LP, AM62P

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1521563/sk-am62p-lp-problem-with-usb-dfu-process

器件型号:SK-AM62P-LP
主题: AM62P 中讨论的其他器件

工具/软件:

您好、专家、

我收到了评估板 SK-AM62P-LP。 AM62P 可能是我们下一代器件的理想 SoC。

我们的引导过程在很大程度上取决于通过 USB 连接的 DFU。 到目前为止、我还无法让它正常工作。 我放置 SW4和 SW5
进入 USB 引导模式(SW5:00000000 SW4:11001010)。 为电路板上电时、会得到:

bomellberg@bosse-buildcom:~/se3linux/yocto-base/build/tmp/deploy/images/am62pxx-evm$ sudo dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 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=0200, devnum=10, cfg=1, intf=0, path="5-2", alt=1, name="SocId", serial="01.00.00.00"
Found DFU: [0451:6165] ver=0200, devnum=10, cfg=1, intf=0, path="5-2", alt=0, name="bootloader", serial="01.00.00.00"

然后发送我使用 Yocto 构建系统构建的第一个引导文件 tiboot3.bín:

bomellberg@bosse-buildcom:~/se3linux/yocto-base/build/tmp/deploy/images/am62pxx-evm$ sudo dfu-util -a bootloader -D tiboot3-am62px-hs-fs-evm-am62pxx-evm-k3r5-2024.04+git-r0.bin
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to sourceforge.net/.../

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0451:6165
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 512
Copying data from PC to DFU device
Download        [=========================] 100%       325381 bytes
Download done.
state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
dfu-util: unable to read DFU status after completion

之后、我没有收到预期的 sysfw.itb:申请

bomellberg@bosse-buildcom:~/se3linux/yocto-base/build/tmp/deploy/images/am62pxx-evm$ sudo dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 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=0200, devnum=6, cfg=1, intf=0, path="5-2", alt=1, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0451:6165] ver=0200, devnum=6, cfg=1, intf=0, path="5-2", alt=0, name="UNKNOWN", serial="UNKNOWN"

我站在 U-Boot 2024.04分支的顶部:

bomellberg@bosse-buildcom:~/se3linux/ti-u-boot$ git st
On branch ti-u-boot-2024.04

我在 am62px_evm_a53_defconfig 和 am62px_evm_r5_defconfig 中添加了以下行:

include <configs/am62x_a53_usbdfu.config>
include <configs/am62x_r5_usbdfu.config>

UART 调试会显示以下内容:

U-Boot SPL 2024.04-ti-g29d0c23d67ee (Jun 02 2025 - 11:23:30 +0200)
SYSFW ABI: 4.0 (firmware rev 0x000b '11.0.7--v11.00.07 (Fancy Rat)')
SPL initial stack usage: 17072 bytes
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###


我也尝试使用预编译文件、结果相同。
将文件放在 SD 卡上工作正常。 才是问题所在的是 DFU 引导过程。

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

    尊敬的 Bo:

    [引述 userid="551261" url="~/support/processors-group/processors/f/processors-forum/1521563/sk-am62p-lp-problem-with-usb-dfu-process

    我在 am62px_evm_a53_defconfig 和 am62px_evm_r5_defconfig 中添加了以下行:

    include <configs/am62x_a53_usbdfu.config>
    include <configs/am62x_r5_usbdfu.config>
    [/报价]

    这一步似乎不正确。 您不需要修改 defconfig 文件、而是使用  defconfig " am62px_evm_r5_defconfig am62x_r5_usbdfu.config "而不是"am62px_evm_r5_defconfig"

    > U-Boot SPL 2024.04-ti-g29d0c23d67ee (2025年6月02日- 11:23:30 +0200)
    > SYSFW ABI:4.0 (固件版本0x000b "11.0.7--v11.00.07 (花哨 Rat)")

    顺便说一下、此日志似乎显示您将 U-Boot 版本与 SYSFW 版本混合使用。 U-Boot 2024.04应使用 SYSFW 10.1.x、或者 SYSFW 11.0.7应附带 U-Boot 2025.01。

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

    尊敬的 Bin:

    此步骤似乎不正确。 您不需要修改 defconfig 文件、而是使用  defconfig " am62px_evm_r5_defconfig am62x_r5_usbdfu.config "而不是"am62px_evm_r5_defconfig"

    我明白了。 有点令人困惑的是、"am62px_evm_a52_defconfig"文件有三个注释掉的 include、其中一个是 usbdfu.config。 它给用户的印象是、用户应该使用它们来激活所需的功能。

    我使用 Yocto 进行构建、所以我将您的建议添加到 meta-ti 层的两种配方中。 现在似乎工作正常:

    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Jun 03 2025 - 09:30:49 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.8--v09.02.08 (Kool Koala)')
    SPL initial stack usage: 17056 bytes
    Trying to boot from DFU
    ###########################################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    Authentication passed
    Loading Environment from nowhere... OK
    init_env from device 10 not supported!
    Authentication passed
    Authentication passed
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
    NOTICE:  BL31: Built : 07:58:28, May 28 2025
    
    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Jun 03 2025 - 12:30:55 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.8--v09.02.08 (Kool Koala)')
    SPL initial stack usage: 1904 bytes
    Trying to boot from DFU
    #####DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    
    
    U-Boot 2024.04-ti-g29d0c23d67ee (Jun 03 2025 - 12:30:55 +0000)
    
    SoC:   AM62PX SR1.0 HS-FS
    Model: Texas Instruments AM62P5 SK
    DRAM:  2 GiB (effective 8 GiB)
    Core:  87 devices, 31 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from nowhere... OK
    In:    serial
    Out:   serial
    Err:   serial
    Net:   eth0: ethernet@8000000port@1
    Warning: ethernet@8000000port@2 (eth1) using random MAC address - 5e:a4:de:19:66:ba
    , eth1: ethernet@8000000port@2
    Hit any key to stop autoboot:  0
    =>
    

    顺便说一下、此日志似乎显示您将 U-Boot 版本与 SYSFW 版本混合使用。 U-Boot 2024.04应使用 SYSFW 10.1.x、或者 SYSFW 11.0.7应附带 U-Boot 2025.01。

    如上所示、U-Boot 版本为2024.04、SYSFW ABI 版本为9.2.8 (Kool Koala)、这与您的语句略有矛盾。 我是否应该更新 meta-ti 层以改用 SYSFW 10.1.x?

    感谢您的帮助!

    /BO

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

    尊敬的 Bo:

    我不是 Yocto 专家来评论如何配置它、但 SYSFW 和 U-Boot 的版本应与 SDK 版本说明中列出的版本匹配。