完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
背景
旧板wifi模块ap6235,硬件将wifi模块替换成ap6256,未改代码情况下,wifi不能用, 设备打印如下 代码修改 1.新增固件:wifi在externawlan_loaderfirmware 蓝牙固件在:vendorrockchipcommonbluetoothlibfirmware 3.代码补丁 a.kernel/arch/arm/boot/dts/rk3288-evb.dtsi wireless-wlan { compatible = "wlan-platdata"; rockchip,grf = <&grf>; - wifi_chip_type = "ap6235"; + wifi_chip_type = "ap6256"; sdio_vref = <1800>; WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>; status = "okay"; b.kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_config.h dhd_slpauto; #endif #define BCM4356A2_CHIP_REV 2 #define BCM4358A3_CHIP_REV 3 +#define BCM43456C5_CHIP_REV 9 typedef struct wl_mac_range { c.kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_config.c dhd_conf_set_fw_name_by_chip(dhd_pub_t *dhd, char *fw_path, char *nv_path) case BCM4345_CHIP_ID: case BCM43454_CHIP_ID: if (chiprev == BCM43455C0_CHIP_REV) { strcpy(&fw_path[i+1], FW_BCM43455C0); strcpy(&nv_path[j + 1], "nvram_ap6255.txt"); } else if (chiprev == BCM43456C5_CHIP_REV) { strcpy(&fw_path[i+1], FW_BCM43456C5); + strcpy(&nv_path[j + 1], "nvram_ap6256.txt"); } break; d.kernel/drivers/net/wireless/rockchip_wlan/rkwifi/rk_wifi_config.c if (chip == WIFI_AP6255) { sprintf(fw, "%s%s", ANDROID_FW_PATH, "fw_bcm43455c0_ag.bin"); sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_ap6255.txt"); } + +if (chip == WIFI_AP6256) { + sprintf(fw, "%s%s", ANDROID_FW_PATH, "fw_bcm43456c5_ag.bin"); + sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_ap6256.txt"); +} + e.kernel/include/linux/rfkill-wlan.h WIFI_AP6212, WIFI_AP6234, WIFI_AP6255, + WIFI_AP6256, WIFI_AP6330, WIFI_AP6335, WIFI_AP6354, f.kernel/net/rfkill/rfkill-wlan.c get_wifi_chip_type(void) type = WIFI_AP6234; } else if (strcmp(wifi_chip_type_string, "ap6255") == 0) { type = WIFI_AP6255; + } else if (strcmp(wifi_chip_type_string, "ap6256") == 0) { + type = WIFI_AP6256; 编译后烧录有如下打印即可正常使用 测试其吞吐量 接天线,白天接收(上行):70+Mbits/sec 接天线,白天发送(下行):40+Mbits/sec |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
626 浏览 0 评论
887 浏览 1 评论
784 浏览 1 评论
1997 浏览 1 评论
3242 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 19:37 , Processed in 0.491305 second(s), Total 70, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号