您的位置:程序门 -> linux/unix社区 -> 内核及驱动程序研究区



嵌入式linux(linux-2.6.20) usb hub 插上u盘过后出现错误


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


嵌入式linux(linux-2.6.20) usb hub 插上u盘过后出现错误
发表于:2007-05-13 18:49:29 楼主
向各位高手请教,最近我移植了linux-2.6.20(+2.6.20-at91.patch)到at91rm9200的板子上,在usb口上插上u盘可用,信息如下:  
usb   1-1:   new   full   speed   usb   device   using   at91_ohci   and   address   11  
usb   1-1:   configuration   #1   chosen   from   1   choice  
scsi0   :   scsi   emulation   for   usb   mass   storage   devices  
scsi   0:0:0:0:   direct-access   usb   flash   disk   2.00   pq:   0   ansi:   2  
scsi   device   sda:   509376   512-byte   hdwr   sectors   (261   mb)  
sda:   write   protect   is   off  
sda:   assuming   drive   cache:   write   through  
scsi   device   sda:   509376   512-byte   hdwr   sectors   (261   mb)  
sda:   write   protect   is   off  
sda:   assuming   drive   cache:   write   through  
sda:   sda1  
sd   0:0:0:0:   attached   scsi   removable   disk   sda  
说明usb口上插入u盘时可以用的。  

在usb口上插入usb   hub   提示信息如下:  
#   usb   1-1:   new   full   speed   usb   device   using   at91_ohci   and   address   6  
usb   1-1:   configuration   #1   chosen   from   1   choice  
hub   1-1:1.0:   usb   hub   found  
hub   1-1:1.0:   4   ports   detected  
说明系统检测到了usb   hub  
但是在usb   hub上插上u盘过后出现信息如下:  
usb   1-1.2:   new   full   speed   usb   device   using   at91_ohci   and   address   7  
usb   1-1.2:   device   descriptor   read/64,   error   -62  
usb   1-1.2:   device   descriptor   read/64,   error   -62  
usb   1-1.2:   new   full   speed   usb   device   using   at91_ohci   and   address   8  
usb   1-1.2:   device   descriptor   read/64,   error   -62  
usb   1-1.2:   device   descriptor   read/64,   error   -62  
usb   1-1.2:   new   full   speed   usb   device   using   at91_ohci   and   address   9  
usb   1-1.2:   device   not   accepting   address   9,   error   -62  
usb   1-1.2:   new   full   speed   usb   device   using   at91_ohci   and   address   10  
usb   1-1.2:   device   not   accepting   address   10,   error   -62  

我在asm-generic/errno.h中   error   -62   为:  
#define   etime   62   /*   timer   expired   */  
在documentation/usb/error-codes.txt  
-etime   (**)   no   response   packet   received   within   the   prescribed  
bus   turn-around   time.   this   error   may   instead   be  
reported   as   -eproto   or   -eilseq.  

请各路高手帮我分析一下,到底是什么原因?不胜感激。  
其他的2.6的内核也试过了,也出现同样的问题。
发表于:2007-05-16 09:57:471楼 得分:0
兄弟,我的qq149572748,有空我们交流,我正在做usb驱动程序
发表于:2007-06-17 09:28:132楼 得分:0
这个还需调试
原来碰到过类似的现象:
插u盘可以;
4口的小usb   hub,再插u盘,也可以;
一个带硬盘的usb   hub   就不行了
--------------最后是调   代码   :好像是一个地方等待   中断响应的延时
改小了   就好了


快速检索

最新资讯
热门点击