如何在 Nexus S 上的 Androidgingbread 中手动加载 wlan 模块
我正在尝试使用命令行连接到临时网络,而无需 设置中的 Wifi 已激活。使用 'insmod /system/modules/ 加载时 bcm4329.ko' 我的 Nexus S 挂起。 “dmesg”显示固件没有 成立; fw_bcm4329.bin实际上位于/system/vendor/firmware/ fw_bcm4329.bin:
<4>[ 354.173186] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 354.174251] _dhdsdio_download_firmware: dongle image file
download failed
<4>[ 354.174441] dhd_bus_start: dhdsdio_probe_download failed.
firmware = /system/etc/firmware/fw_bcm4329.bin nvram = /proc/
calibration
<4>[ 354.174600] dhdsdio_probe: failed
<4>[ 365.941444] dhd_module_init: sdio_register_driver timeout
将固件链接到所需位置没有帮助。 问题:谁能帮我理解 Nexus S 如何加载这个 模块?
文件 /hardware/libhardware_legacy/wifi/wifi.c 具有以下几行:
static const char IFACE_DIR[] = "/data/system/
wpa_supplicant";
static const char DRIVER_MODULE_NAME[] = WIFI_DRIVER_MODULE_NAME;
static const char DRIVER_MODULE_TAG[] = WIFI_DRIVER_MODULE_NAME " ";
static const char DRIVER_MODULE_PATH[] = WIFI_DRIVER_MODULE_PATH;
static const char DRIVER_MODULE_ARG[] = WIFI_DRIVER_MODULE_ARG;
static const char FIRMWARE_LOADER[] = WIFI_FIRMWARE_LOADER;
static const char DRIVER_PROP_NAME[] = "wlan.driver.status";
问题:wifi 模块的路径是否在某处重新定义?
谢谢
I'm trying to use command line to connect to ad-hoc network without
Wifi in Settings activated. When loading with 'insmod /system/modules/
bcm4329.ko' my nexus S just hangs. 'dmesg' shows that firmware not
found; fw_bcm4329.bin is actually in /system/vendor/firmware/
fw_bcm4329.bin:
<4>[ 354.173186] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 354.174251] _dhdsdio_download_firmware: dongle image file
download failed
<4>[ 354.174441] dhd_bus_start: dhdsdio_probe_download failed.
firmware = /system/etc/firmware/fw_bcm4329.bin nvram = /proc/
calibration
<4>[ 354.174600] dhdsdio_probe: failed
<4>[ 365.941444] dhd_module_init: sdio_register_driver timeout
Linking the firmware to desired location doesn't help.
Question: Can anyone help me understand how Nexus S loads this
module?
The file /hardware/libhardware_legacy/wifi/wifi.c has following lines:
static const char IFACE_DIR[] = "/data/system/
wpa_supplicant";
static const char DRIVER_MODULE_NAME[] = WIFI_DRIVER_MODULE_NAME;
static const char DRIVER_MODULE_TAG[] = WIFI_DRIVER_MODULE_NAME " ";
static const char DRIVER_MODULE_PATH[] = WIFI_DRIVER_MODULE_PATH;
static const char DRIVER_MODULE_ARG[] = WIFI_DRIVER_MODULE_ARG;
static const char FIRMWARE_LOADER[] = WIFI_FIRMWARE_LOADER;
static const char DRIVER_PROP_NAME[] = "wlan.driver.status";
Question: is the Path to wifi module redefined somewhere?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 android_platform 小组的帮助下找到了答案。这适用于 Nexus 上的 CM7:
I found the answer with the help from android_platform group. This works for CM7 on nexus s: