USB error: no configuration chosen from 1 choice
来源:互联网 发布:飓风打印软件 编辑:程序博客网 时间:2024/06/07 03:34
前段时间使用wifi模块时, 由于设备连接HUB, 在加载驱动过程中提示信息如下:
usbcore: registered new interface driver rtl8188eu
usb x-y.z: New USB device found, idVendor=0bda, idProduct=8179
usb x-y.z: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb x-y.z: Product: 802.11n NIC
usb x-y.z: Manufacturer: Realtek
usb x-y.z: SerialNumber: 00E04C0001
usb x-y.z: rejected 1 configuration due to insufficient available bus power
usb x-y.z: no configuration chosen from 1 choice
提示相应的功耗不足, 导致无法找到wifi模块对应的设备.
没办法, 先找解决办法:
方法一(治标不治本, 可暂时先解决眼前问题)
使用shell命令强制提高电流到500mA
echo -n 1 > /sys/bus/usb/devices/x-y.z/bConfigurationValue
x y z对应usb设备的编号
方法二
跟根源上解决, 找到当前系统对应的内核源码
既然设备练到HUB上, 那电流应该是由hub分配的, 在kernel/driver/usb/core中找到hub.c
在hub_configure中可以发现
else if ((hubstatus & (1 << USB_DEVICE_SELF_POWERED)) == 0) {
dev_dbg(hub_dev, "hub controller current requirement: %dmA\n",
hub->descriptor->bHubContrCurrent);
hub->limited_power = 1;
if (hdev->maxchild > 0) {
int remaining = hdev->bus_mA -
hub->descriptor->bHubContrCurrent;
if (remaining < hdev->maxchild * 100)
dev_warn(hub_dev,
"insufficient power available "
"to use all downstream ports\n");
hub->mA_per_port = 100; /* 7.2.1.1 */
}
}
设备被设置为100mA, 只需将其设置为500mA即可
hub->mA_per_port = 500;
再重新编译内核, 完毕
- USB error: no configuration chosen from 1 choice
- WARN No configuration found. Configuring ehcache from ehcache-failsafe.xml....
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- Android OpenGL “No config chosen”
- ERROR StatusLogger No log4j2 configuration file found.的解决方法
- No Name Matching Localhost Found Error : Tomcat and CAS Configuration
- ERROR StatusLogger No log4j2 configuration file found. 找不到日志配置文件
- 测试中出现ERROR StatusLogger No log4j2 configuration file
- connection error(usb://usb):gdi-err0r[40201]:cannot access configuration database
- Struts2 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging
- ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only err
- ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only err
- [Learning from Crypto++] (Day 1) configuration details
- GLSurfaceView”No config chosen”异常处理
- java.lang.IllegalArgumentException: No config chosen
- GLSurfaceView”No config chosen”异常处理
- java.lang.IllegalArgumentException: No config chosen
- 设计模式——装饰模式(Decorator)
- FreeRTOS代码剖析之3:内存管理Heap_3.c
- 安装OpenStack Swift
- 安卓中的几种使用SQLite的方法
- 黑马程序员----NSDictionary类使用
- USB error: no configuration chosen from 1 choice
- 有限制最短路hdu4179
- 2014-7 Andrew Ng 自动化所报告听后感-梁斌
- poj1459--Power Network(最大流EK、)
- mysql for mac
- Windows 休眠文件大小设置,就这么用到了
- Android 中的 Service 全面总结
- HDU 2795 Billboard(线段树点更新)
- 关于xcode模拟器显示中文的问题