Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
2.6内核下的usb限制总线电流,U盘和网卡不能用的问题解决办法
View previous topic :: View next topic  
Author Message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-Aug-21 Thu, pm4:12 Reply with quote
 Post subject: 2.6内核下的usb限制总线电流,U盘和网卡不能用的问题解决办法

自己碰上的一个usb读卡器不能用的问题(飙王的sd读卡器,半透明壳子的,好像蛮流行的,英文是SSK),解决了共享一下经验,办法是oesf上的.

插上usb设备后,如果用dmesg看到以下信息,
usb 1-2: new full speed USB device using pxa27x-ohci and address 3
usb 1-2: rejected 1 configuration due to insufficient available bus power
usb 1-2: no configuration chosen from 1 choice
其中insufficient available bus power就是指插上的设备宣称需要的电流比总线能提供的多,实际的情况是系统usb总线能供应150mA,而此读卡器宣称需要500mA,缺口有350mA,所以系统拒绝了配置这个设备.
解决办法:用udev rules覆盖系统缺省的功率规则,强行配置设备(风险要自己承担,如果usb设备确实很耗电还是把单独供电插上)
在/etc/udev/rules.d/目录下新建文件 10-xxxxx.rules (xxxxx可以是你自己定的这个usb设备的名字),内容如下,(以下为一行,不要换行)
SUBSYSTEM=="usb", ATTR{idVendor}=="vendorid", ATTR{idProduct}=="productid", ATTR{bConfigurationValue}="1"
上面的vendorid和productid应该用实际设备的十六进制代码替换,比如0707,05e3,要知道自己的设备的代码,用lusb -v | less看看,信息比较多,
看到类似
idVendor 0xAAAA
idProduct 0xBBBB
其中的AAAA和BBBB就是了,lsusb -v显示的信息有很多是总线hub的信息,注意区分一下就好了.

完成文件后,最后一步,执行命令,把新做的规则应用起来,
udevcontrol reload_rules
执行这个之后,再执行dmesg可以看到如下信息,表示配置成功,
usb 1-2: no configuration chosen from 1 choice
usb 1-2: new config #1 exceeds power limit by 350mA
......
下面应该显示设备配置后的驱动信息,比如U盘什么的.不罗嗦了.

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-Aug-21 Thu, pm4:28 Reply with quote
 Post subject: 补一点U盘的小知识,linux新手看看

上面步骤全搞定了之后,用下面的命令看看系统的所有(硬)盘,

less /proc/partitions

看到输出的内容里面有
....... sda
....... sda1
那么就表示U盘已经插上并且被系统已经驱动好,剩下只要

mount /dev/sda1 <某个空目录>

就好了.

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
boulevard



Joined: 13 Apr 2008
Posts: 44

小企鹅: 1275

PostPosted: 2008-Aug-22 Fri, am10:58 Reply with quote
 Post subject:

好东西支持一下
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional