概述
修改AP6212A0所使用的配置文件nvram_ap6210.txt为nvram_ap6212.txt
大文实验室/大文哥
壹捌陆捌零陆捌捌陆捌贰
wb4916 AT qq.com
完成时间:2017/6/27 16:15
版本:V1.0
1、借用AP6210的配置打开WIFI+BT了,但是为了规范化,还是将配置文件由nvram_ap6210.txt修改为nvram_ap6212.txt,规范化!
shell@astar-y3:/ $
shell@astar-y3:/ $ cd /system/vendor/modules/
shell@astar-y3:/system/vendor/modules $ ll *.txt
-rw-r--r-- root root 956 2017-06-26 17:18 nvram_ap6210.txt
shell@astar-y3:/system/vendor/modules $ ll *.bin
-rw-r--r-- root root 378595 2017-06-26 17:18 fw_bcm43438a0.bin
-rw-r--r-- root root 309352 2017-06-26 17:18 fw_bcm43438a0_apsta.bin
-rw-r--r-- root root 336323 2017-06-26 17:18 fw_bcm43438a0_p2p.bin
shell@astar-y3:/system/vendor/modules $
shell@astar-y3:/system/vendor/modules $ ll bcm*
-rw-r--r-- root root 26020 2017-06-26 17:18 bcm43438a0.hcd
-rw-r--r-- root root 748856 2017-06-26 17:18 bcmdhd.ko
shell@astar-y3:/system/vendor/modules $
shell@astar-y3:/system/vendor/modules $
2、偶然原因使用grep搜索nvram_ap6210.txt:
rootroot@rootroot-E400:~$
rootroot@rootroot-E400:~$ cd wyb/ap6212a0_a33_sc3817r/
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r$
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r$ cd lichee/linux-3.4/drivers/net/wireless/bcmdhd/
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$grep nvram_ap6210.txt . -R
./dhd_common.c: bcm_strncpy_s(nv_path, sizeof(nv_path), "/system/vendor/modules/nvram_ap6210.txt", MOD_PARAM_PATHLEN-1);
匹配到二进制文件 ./bcmdhd.o
匹配到二进制文件 ./dhd_common.o
匹配到二进制文件 ./bcmdhd.ko
rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$
R:wybap6212a0_a33_sc3817rlicheelinux-3.4driversnetwirelessbcmdhddhd_common.c
void
dhd_common_init(osl_t *osh)
{
int select_type = 0;
//aw checkout which wifi had select
select_type = wifi_pm_get_mod_type();
#ifdef CONFIG_BCMDHD_FW_PATH
//select ap6181 or ap6210 or ap6476
if (select_type == 1 || select_type == 2 || select_type == 7) {
bcm_strncpy_s(fw_path, sizeof(fw_path), "/system/vendor/modules/fw_bcm40181a2.bin", MOD_PARAM_PATHLEN-1);
}
#else /* CONFIG_BCMDHD_FW_PATH */
fw_path[0] = '