uboot USB Download Gadget 3.0 如何开启?

固件类型:自行编译的固件
SDK包名称:rk3588_linux_release_20250114_v1.4.0g
SDK修改内容:从gitlab(Firefly-Linux / u-boot · GitLab)
上拉下来. 没有任何修改
Log日志:log_7-12-1.zip

本帖最后由 hfli_2025 于 2025-7-12 14:21 编辑

在commit 36c87911a804622640a1bc7f41f7d89d66736db0 中,是明确支持3.0 download的.但是我这边检测到的还是high speed.

commit 36c87911a804622640a1bc7f41f7d89d66736db0
Author: william.wu <william.wu@rock-chips.com>
Date: Thu Oct 19 21:09:23 2023 +0800

usb: rockusb: Add support for usb3 download

This patch improve the usb gadget drivers and the usb
dwc3 controller drivers to support rockusb usb3 download
images.

With this patch, it can support:
1. Maskrom usbplug usb2 switch to usb3 automatically
   if the boards and the upgrade tool support usb3.

2. Loader enter usb3 automatically if the boards support usb3.

3. Force Maskrom/Loader usb fall back to usb2 if wait
   for usb3 enumeration time out.

Signed-off-by: Jianwei Zheng <[jianwei.zheng@rock-chips.com](mailto:jianwei.zheng@rock-chips.com)>
Signed-off-by: william.wu <[william.wu@rock-chips.com](mailto:william.wu@rock-chips.com)>
Change-Id: I9ad13fb42ae59cc9075545e22627f237f0eb1f32

=> rockusb 0 mmc 0
RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x3a3e000
-usb device is high-speed
-usb device is high-speed

确认使用的USB线缆是支持3.0的. 因为在RK的Linux平台上已经测试过USB 3.0.

请帮忙看一下,谢谢.

tchip_askquestions
uboot_log.zip (3.16 KB)
log_7-12-1.zip (3.14 KB)

UBOOT 采用的COMMIT:
commit b6cfe2b573cf517f7b6a757ab04d948e1cd0dca3 (HEAD, tag: rk3588/linux_release_v1.4.0g, m/master)
Author: zhangzz <zzz@t-chip.com.cn>
Date: Wed Jan 8 17:01:27 2025 +0800

Solve compilation errors

在PC侧使用upgrade_tool 切换到USB3.0, 但是提示失败.
$ sudo upgrade_tool SU3
Error:Switch usb3 failed!