如何在 Nexus S 上的 Androidgingbread 中手动加载 wlan 模块

发布于 2024-12-13 19:44:29 字数 1282 浏览 0 评论 0原文

我正在尝试使用命令行连接到临时网络,而无需 设置中的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扶醉桌前 2024-12-20 19:44:29

我在 android_platform 小组的帮助下找到了答案。这适用于 Nexus 上的 CM7:

busybox insmod /system/modules/bcm4329.ko firmware_path=/system/vendor/ firmware/fw_bcm4329.bin nvram_path=/system/vendor/firmware/ nvram_net.txt 

I found the answer with the help from android_platform group. This works for CM7 on nexus s:

busybox insmod /system/modules/bcm4329.ko firmware_path=/system/vendor/ firmware/fw_bcm4329.bin nvram_path=/system/vendor/firmware/ nvram_net.txt 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文