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.

[参考译文] DRA821U:DRA821U4:USB-C 无法在具有自定义固件的 J7200 EVM 上正常工作

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1614157/dra821u-dra821u4-usb-c-not-working-on-j7200-evm-with-custom-firmware

器件型号: DRA821U

您好:

我们将 J7200 SOM 与通用处理器板配合使用、并尝试评估 USB-C 端口。
使用 Linux SDK (11.01.08.01) 中的预编译映像时、系统会识别并装载 USB 设备、例如拇指驱动器。

使用我们基于 Linux RT (10.01.08.01) 和 PROCESSOR-SDK-GATEWAY-10_00.txt 的自定义固件时、我们遇到了问题。
USB 接口似乎已初始化:

[5.555359]  xhci-hcd xhci-hcd.2.auto:注册了新的 USB 总线、分配了总线编号 1
[  5.555478] xhci-hcd xhci-hcd.2.auto: HCC 参数 0x200073c9 HCI 版本 0x100 quirks 0x0000002000008010
[  5.556255] xhci-hcd xhci-hcd.2.auto: IRQ 536、IO 内存 0x06010000
[  5.556371] xhci-hcd xhci-hcd.2.auto: xHCI 主机控制器
[5.556382]  xhci-hcd xhci-hcd.2.auto:注册了新的 USB 总线,分配了总线编号 2.
[  5.556391] xhci-hcd xhci-hcd.2.auto: Host 支持 USB 3.0 SuperSpeed
[5.562001]  HUB 1-0:1.0:找到 USB HUB
[5.562038]  集线器 1-0:1.0:检测到 1 个端口
[  5.562285] USB USB2:我们不知道此主机的 LPM 算法、禁用 LPM。
[5.562621]  集线器 2-0:1.0:找到 USB 集线器
[5.562635]  集线器 2-0:1.0:检测到 1 个端口

但插入 USB 设备时、它根本没有安装。

配置之间可能有何差异? /proc/config.gz 在两个系统上似乎几乎相同、但我们并未真正触及设备树。

导致这种情况的根本原因可能是什么?

非常感谢!

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

    尊敬的 Fabian:

    在使用基于 Linux RT (10.01.08.01) 和 processor-sdk-gateway-10_00.txt 的自定义固件时、我们遇到了问题。
    USB 接口似乎已初始化:

    您能否共享 PROCESSOR-SDK-GATEWAY-10_00.txt?

    此外、您能否提供有关自定义固件的更多详细信息?

    此致

    Gokul Praveen

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

    当然、该 txt 基本与此处的相同:
    git.ti.com/cgit/arago-project/oe-layersetup/plain/configs/processor-sdk-linux/processor-sdk-gateway-10_00.txt
    我们只添加了一个自定义层、该层使用静态 IP 配置网络、并安装一些附加应用程序。

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

    尊敬的 Fabian:

    但在插入 USB 设备时、它根本没有安装。

    USB 设备是否已被识别?  

    您是否可以尝试连接任何其他 USB 设备、并查看是否检测到该设备?

    我尝试在我这边使用 Linux RT (10.01.08.01) 在 TI J7200 EVM 上测试相同的内容、并连接了 SanDisk Cruzer 刀片式 USB 器件、检测到该器件没有问题。

    我还附加了以下相同的日志:

    root@j7200-evm:~# [   26.921983] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   26.922008] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 1
    [   26.922119] xhci-hcd xhci-hcd.14.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [   26.924394] xhci-hcd xhci-hcd.14.auto: irq 707, io mem 0x06010000
    [   26.924533] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   26.924543] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 2
    [   26.924555] xhci-hcd xhci-hcd.14.auto: Host supports USB 3.0 SuperSpeed
    [   26.930786] hub 1-0:1.0: USB hub found
    [   26.930807] hub 1-0:1.0: 1 port detected
    [   26.931050] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   26.932444] hub 2-0:1.0: USB hub found
    [   26.932482] hub 2-0:1.0: 1 port detected
    [   27.075391] xhci-hcd xhci-hcd.14.auto: remove, state 84
    [   27.075406] usb usb2: USB disconnect, device number 1
    [   27.083053] xhci-hcd xhci-hcd.14.auto: USB bus 2 deregistered
    [   27.083069] xhci-hcd xhci-hcd.14.auto: remove, state 84
    [   27.083075] usb usb1: USB disconnect, device number 1
    [   27.480729] xhci-hcd xhci-hcd.14.auto: USB bus 1 deregistered
    [   27.680135] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   27.680159] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 1
    [   27.680288] xhci-hcd xhci-hcd.14.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [   27.682154] xhci-hcd xhci-hcd.14.auto: irq 707, io mem 0x06010000
    [   27.682291] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   27.682303] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 2
    [   27.682313] xhci-hcd xhci-hcd.14.auto: Host supports USB 3.0 SuperSpeed
    [   27.684453] hub 1-0:1.0: USB hub found
    [   27.684478] hub 1-0:1.0: 1 port detected
    [   27.685660] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   27.688714] hub 2-0:1.0: USB hub found
    [   27.689368] hub 2-0:1.0: 1 port detected
    [   27.837497] xhci-hcd xhci-hcd.14.auto: remove, state 1
    [   27.837511] usb usb2: USB disconnect, device number 1
    [   27.852819] xhci-hcd xhci-hcd.14.auto: USB bus 2 deregistered
    [   27.852842] xhci-hcd xhci-hcd.14.auto: remove, state 84
    [   27.852848] usb usb1: USB disconnect, device number 1
    [   28.246530] xhci-hcd xhci-hcd.14.auto: USB bus 1 deregistered
    [   28.248012] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   28.248029] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 1
    [   28.248152] xhci-hcd xhci-hcd.14.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [   28.248620] xhci-hcd xhci-hcd.14.auto: irq 707, io mem 0x06010000
    [   28.248781] xhci-hcd xhci-hcd.14.auto: xHCI Host Controller
    [   28.248792] xhci-hcd xhci-hcd.14.auto: new USB bus registered, assigned bus number 2
    [   28.248802] xhci-hcd xhci-hcd.14.auto: Host supports USB 3.0 SuperSpeed
    [   28.252789] hub 1-0:1.0: USB hub found
    [   28.252811] hub 1-0:1.0: 1 port detected
    [   28.253496] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   28.257457] hub 2-0:1.0: USB hub found
    [   28.257478] hub 2-0:1.0: 1 port detected
    [   30.676354] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [   30.803570] usb-storage 1-1:1.0: USB Mass Storage device detected
    [   30.803823] scsi host0: usb-storage 1-1:1.0
    [   31.843244] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 6
    [   31.854832] sd 0:0:0:0: [sda] 30842880 512-byte logical blocks: (15.8 GB/14.7 GiB)
    [   31.855975] sd 0:0:0:0: [sda] Write Protect is off
    [   31.856322] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [   31.877913]  sda: sda1 sda2 sda3 sda4
    [   31.878429] sd 0:0:0:0: [sda] Attached SCSI removable disk
    root@j7200-evm:~# lsusb -t
    /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
        |__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    root@j7200-evm:~# lsusb   
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    root@j7200-evm:~# 
    

    此致

    Gokul Praveen