【问题标题】:Understanding linux hub messages in kernel log了解内核日志中的 linux hub 消息
【发布时间】:2016-07-12 00:40:53
【问题描述】:

我在连接到运行 Linux 的 SOM 的 4 端口 USB 集线器芯片时遇到问题,我试图了解内核日志中与其相关的各种消息的含义。我的集线器在启动期间会产生以下消息:

 usb 2-1: new high speed USB device number 2 using fsl-ehci
 usb 2-1: new high speed USB device number 3 using fsl-ehci
 usb 2-1: new high speed USB device number 4 using fsl-ehci
 usb 2-1: device not accepting address 4, error -71
 usb 2-1: new high speed USB device number 5 using fsl-ehci
 usb 2-1: device not accepting address 5, error -71
 hub 2-0:1.0: unable to enumerate USB device on port 1

有几个板载设备连接到此集线器,但它从未枚举这些设备。那么为什么它会尝试为我的集线器芯片分配多个 USB 设备编号呢?我可以理解它失败了,然后用下一个更高的设备号重试,但它没有显示设备号 2 或 3 的错误。那么“无法枚举端口 1 上的 USB 设备”是什么意思?端口 1 是什么?它显然在主机端口 2 上,而不是 1。为什么最终错误消息来自集线器驱动程序,当它显然没有识别集线器时,为什么它使用 2-0 作为设备号而不是 2-1 ?这有什么意义吗?

为了了解如果它没有失败我应该看到什么,我尝试将一个外部集线器插入另一个主机端口,并得到了这个:

usb 1-1: new high speed USB device number 7 using fsl-ehci
usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-1: Product: USB2.0 Hub
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new high speed USB device number 8 using fsl-ehci
usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0608
usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-1.1: Product: USB2.0 Hub
hub 1-1.1:1.0: USB hub found
hub 1-1.1:1.0: 4 ports detected

显然,这个 7 端口集线器实现为连接到另一个 4 端口集线器的 4 端口集线器,“x-y.z”结构指集线器 x-y 上的下游端口 z。但是“1-1:1.0”这个结构是什么意思呢?我做了很多谷歌搜索来找出这个问题,包括查看内核源代码和头文件,但无济于事。在代码中的某一时刻,它们由名为 dev_name() 的函数获取。有人可以指点我这方面的一些文档吗?

【问题讨论】:

    标签: linux logging usb driver


    【解决方案1】:

    原来问题出在另一个端口,OTG 端口,所以我在这里问了一个不同的问题:

    Linux OTG port screwing up my other host port

    【讨论】:

      猜你喜欢
      • 2013-06-15
      • 1970-01-01
      • 2011-12-20
      • 1970-01-01
      • 2011-01-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多