当前位置: 代码迷 >> 驱动开发 >> 移栽USB驱动时无法识别USB设备
  详细解决方案

移栽USB驱动时无法识别USB设备

热度:78   发布时间:2016-04-28 10:08:44.0
移植USB驱动时无法识别USB设备

我在移植USB驱动后,不论插上什么USB设备,键盘,鼠标,摄像头后都会弹出出错信息:
usb 1-1: new low speed USB device using s3c2410-ohci and address 8
usb 1-1: device not accepting address 8, error -62
usb 1-1: new low speed USB device using s3c2410-ohci and address 9
usb 1-1: device not accepting address 9, error -62
usb 1-1: new full speed USB device using s3c2410-ohci and address 10
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: new full speed USB device using s3c2410-ohci and address 11
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: new full speed USB device using s3c2410-ohci and address 12
我自己编译了两个版本的内核,2.6.32.12和3.4.92都是同样的出错,用开发板自带光盘的内核镜像也是这个错误,其中,网上很多资料说是USB时钟的问题,我在移植的时候已经修改了时钟,我重新设置了UPLLCON时钟,但是还是不行,有没有人遇到相同的问题。这是软件驱动的问题,还是硬件的问题,我在google上发帖,有人说是USB供电不足导致的,但是我没法验证……不知道有没有人遇到相同的问题的?给提供一下解决思路……
------解决方案--------------------
供电可以加个hub或者自供电试验一下,也可能是时序问题
------解决方案--------------------
错了,在嵌入式中内核的很多东西都是直接用的bootloader的,因为初始代码都差不多,没必要去跑两次。算不上BUG吧,我觉得是内核的BSP中有意跳过的……
  相关解决方案