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.

[参考译文] AM620-Q1:AM62 LP SK — 无法通过 DFU 从 U-Boot 提示符刷写 Linux 映像 DTB 和 rootfs、并且 USB 控制器不在 U-Boot 中进行探测 (USB 开始显示"无 USB 控制

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1626561/am620-q1-am62-lp-sk--not-able-to-flash-linux-image-dtb-and-rootfs-from-u-boot-prompt-through-dfu-and-usb-controller-not-probing-in-u-boot-usb-start-shows-no-usb-control

器件型号: AM620-Q1

您好:  

我正在开发 AM62 LP-SK 平台、面临 U-Boot 中的 USB 初始化问题。

平台详细信息

SOC:AM62
板:定制
U-Boot 版本:v2025.04(自定义设备树)
引导模式:U-Boot -> USB 小工具/DFU 用例

问题描述:  
已修改 USB 的器件树、成功构建 tiboot3.bin tispl.bin 和 u-boot.img。 正在尝试刷写 usinhg DFU。
我正在按以下顺序刷新爬虫程序组件

sudo dfu-util -l
sudo dfu-util -R -a bootloader -D tiboot3.bin
sudo dfu-util -a tispl.bin -D tispl.bin
sudo dfu-util -R -a u-boot.img -D u-boot.img

对于 sudo dfu-util -a tispl.bin -D tispl.bin、删除了“-R",“,否则、否则无法刷写 U-Boot.img

然后、电路板启动、我们处于 U-Boot 提示符下。
在使用 DFU 的 uboot 提示符下、我们需要在 ram 中刷写映像、dtb 和 rootfs。
我们正在执行 DFU 0 ram 0、其显示如下
参数数量无效。
DFU 实体配置失败!
(分区表与 dfu_alt_info 不匹配?)
DFU — 器件固件升级

我们添加了 dfu_alt_info 所在的调试接口
sf 0:0= tiboot3.bin raw 0 80000;tispl.bin raw 80000 200000;u-boot.img raw 280000 400000

我们已禁用 defconfig 中的所有 SPI 设置
   
另一件事:  
   
在 u-boot 提示符下运行以下命令时:

USB 启动

输出问题
未找到 USB 控制器。

因此、USB 控制器不会初始化。 如何启用该功能也请通知。

配置在.config 中启用了以下 USB 和 PHY 选项:

CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_generic=y
CONFIG_USB_DWC3_AM62=y
CONFIG_USB_GOTIDLE=y
CONFIG_DM_USB=y
CONFIG_DM_USB_GOTIDLE=y
CONFIG_PHY_AM62_USB=y


从 U-Boot Shell 进行运行时观察:

DM 树显示:dwc3-am62 设备存在但未探测

USB 启动报告:未找到 USB 控制器

谢谢你
Amit