我在嵌入式平台上遇到问题,工具链非常有限。我有TI Hub连接到芯片上的USB主机。这个集线器似乎被正确检测到,但我连接到它的sierra无线SL6087设备没有出现在系统中。不幸的是我无法使用USB设备文件系统 - 我没有/ proc / bus / usb。我能做的是read / sys direct。
我在使用和不使用模块的情况下获得以下系统日志。我也没有看到D +和D-线上的任何通信。内核2.6.21。
# dmesg | grep -e hub -e usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbmon: debugfs is not available
rt3xxx-ohci rt3xxx-ohci: roothub.a 02000202 POTPGT=2 NPS NDP=2(2)
rt3xxx-ohci rt3xxx-ohci: roothub.b 00000000 PPCM=0000 DR=0000
rt3xxx-ohci rt3xxx-ohci: roothub.status 00008000 DRWE
rt3xxx-ohci rt3xxx-ohci: roothub.portstatus [0] 0x00000100 PPS
rt3xxx-ohci rt3xxx-ohci: roothub.portstatus [1] 0x00000100 PPS
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: RT3xxx OHCI Controller
usb usb1: Manufacturer: Linux 2.6.21 ohci_hcd
usb usb1: SerialNumber: rt3xxx-ohci
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 4ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
hub 1-0:1.0: trying to enable port power on non-switchable hub
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
drivers/usb/serial/sierra.c: USB Driver for Sierra Wireless USB modems: v.1.7.40
答案 0 :(得分:1)
检查您的VBUS。你有+ 5V进入你的设备? 连接设备时,是否有任何日志文件更改?这些是我会尝试的。有时它就像在原理图上跟随启用/复位线并正确设置GPIO一样简单。
注意:如果在插入设备时确实更改了日志文件,那么您可能只是错过了该过程的另一面;司机。