gpt4 book ai didi

linux - 了解内核日志中的 linux hub 消息

转载 作者:太空宇宙 更新时间:2023-11-04 12:47:25 25 4
gpt4 key购买 nike

我在连接到运行 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() 的函数获取。有人可以指点我一些相关文档吗?

最佳答案

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

Linux OTG port screwing up my other host port

关于linux - 了解内核日志中的 linux hub 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38318288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com