这个usb问题是硬件,还是软件?
硬件可能有问题:USB0: USB EHCI 1.00
scanning bus 0 for devices... USB hub found
8 ports detected
ganged power switching
standalone hub
global over-current protection
power on to power good time: 20ms
hub controller current requirement: 0mA
port 1 is removable
port 2 is removable
port 3 is removable
port 4 is removable
port 5 is removable
port 6 is removable
port 7 is removable
port 8 is not removable
get_hub_status returned status 1, change 8
local power source is lost (inactive)
no over-current condition exists
enabling power on all ports
port 1 returns 0
port 2 returns 0
port 3 returns 0
port 4 returns 0
port 5 returns 0
port 6 returns 0
port 7 returns 0
port 8 returns 0
Port 1 Status 501 Change 1
port 1 connection change
portstatus 501, change 1, 480 Mb/s
hub_port_reset: resetting port 0...
portstatus 503, change 10, 480 Mb/s
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 1
hub_port_reset: resetting port 0...
portstatus 503, change 10, 480 Mb/s
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 1
USB hub found
4 ports detected
individual port power switching
standalone hub
individual port over-current protection
power on to power good time: 0ms
hub controller current requirement: 0mA
port 1 is removable
port 2 is removable
port 3 is removable
port 4 is removable
get_hub_status returned status 0, change 0
local power source is good
no over-current condition exists
enabling power on all ports
port 1 returns 0
port 2 returns 0
port 3 returns 0
port 4 returns 0
Port 1 Status 100 Change 0
Port 2 Status 101 Change 1
port 2 connection change
portstatus 101, change 1, 12 Mb/s
hub_port_reset: resetting port 1...
portstatus 101, change 11, 12 Mb/s
STAT_C_CONNECTION = 1 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 0
portstatus 101, change 11, 12 Mb/s
STAT_C_CONNECTION = 1 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 0
portstatus 101, change 11, 12 Mb/s
STAT_C_CONNECTION = 1 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 0
portstatus 101, change 11, 12 Mb/s
STAT_C_CONNECTION = 1 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 0
portstatus 101, change 11, 12 Mb/s
STAT_C_CONNECTION = 1 STAT_CONNECTION = 1USB_PORT_STAT_ENABLE 0
Cannot enable port 2 after 5 retries, disabling port.
Maybe the USB cable is bad?
cannot reset port 2!?
Port 3 Status 100 Change 0
Port 4 Status 100 Change 0
Port 2 Status 500 Change 0
Port 3 Status 500 Change 0
Port 4 Status 500 Change 0
Port 5 Status 500 Change 0
Port 6 Status 500 Change 0
Port 7 Status 500 Change 0
Port 8 Status 500 Change 0
2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
从log来看,像是过流了。 回复 2# scotthuang1989
no over-current condition exists, log说没有过流
后面哪里判断过流?请明示
看掉了一个 no:dizzy: 回复 3# linuxfellow
usb D+/D-接反了 本帖最后由 linuxfellow 于 2015-03-20 09:07 编辑
事后总结:
Log显示,hub,port都可以正确检测,高速480M/s,full speed 12M/s均正确配置。这说明处理器端的配置完全正确(host配置完全正确)
但是检测不到设备,设备枚举有问题,只能是驱动或硬件的问题
页:
[1]