工具与软件:
如何在 uBoot 中启用 USB0?
无论是使用默认的.dts、还是将 usb0配置从内核复制到 uBoot DTS。 与下面的结果相同、我在 AM62-SK-P1上得到
客户目标是将 uBoot 中的 USB0用作主机来支持 USB-MSC。
e2e.ti.com/.../0042.k3_2D00_am625_2D00_sk.dts
e2e.ti.com/.../0042.k3_2D00_am62_2D00_main.dtsi
U-Boot SPL 2023.04-dirty (Jun 05 2024 - 12:41:56 +0800) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 13408 bytes Trying to boot from MMC2 Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 16:09:05, Feb 9 2024 U-Boot SPL 2023.04-ti-gf9b966c67473 (Mar 19 2024 - 20:31:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 1856 bytes Trying to boot from MMC2 Authentication passed Authentication passed U-Boot 2023.04-dirty (Jun 05 2024 - 12:42:42 +0800) SoC: AM62X SR1.0 HS-FS Model: Texas Instruments AM625 SK EEPROM not available at 80, trying to read at 81 Board: AM62B-SKEVM-P1 rev A DRAM: 2 GiB Core: 72 devices, 32 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 => => usb start starting USB... Bus usb@31100000: generic_phy_get_bulk : no phys property Register 1000840 NbrPorts 1 Starting the controller USB XHCI 1.10
#2. uBoot DTS 未更新 USB 配置、但会在内核 DTS 中进行更新。
usbss0:dwc3-usb@f900000{
兼容="ti、am62-USB";
REG =<0x00 0x0f900000 0x00 0x800>
+ <0x00 0x0f908000 0x00 0x400>;
#3. 再次插入 U 闪存并打开电源、在 USB@31100000上找到2个 USB 器件、为什么在 USB1上有2个器件?
=> USB 开始
正在启动 USB...
总线 USB@31100000:寄存器1000840网络端口1
启动控制器
USB xHCI 1.10
正在扫描总线 USB@31100000设备... 找到2个 USB 设备
正在扫描存储设备的 USB ... 找到1个存储设备
=>