1.ap6212
功能:wifi station、softap、wifi direct、bt、
接口类型:sdio、uart
调试方案:octopus-f1,下面以A83T平台android4.4为例说明ap6212的移植过程
2、软硬件设计部份差异说明
(1) ap6212采用的是26M晶振,A框去掉,即不需要反相器;
(2) ap6212硬件上第29脚悬空,与ap6210不同;
(3)ap6212必须采用bcmhd新驱动1.201.34.x版本,如附件;
(4)ap6212 firmware部分如附件请覆盖至\hardware\broadcom\wlan\bcmdhd\firmware。
3内核配置
3.1 .config
.config中需要配置如下选项,将wifi driver编译进内核
CONFIG_BCMDHD = y
CONFIG_BCMDHD_OOB = y
同时把ap6212驱动代码加到/android/hardware/broadcom/wlan/bcmdhd/firmware路径下。
BoardConfig.mk文件决定android要加载哪一款wifi模组、是否开启蓝牙和使用哪一款蓝牙模组,要配置成使用ap6212模组并启用wifi和蓝牙功能需要把BoardConfig.mk文件的相关代码修改成如下。
# wifi and bt configuration # 1. Wifi Configuration #BOARD_WIFI_VENDOR := realtek BOARD_WIFI_VENDOR := broadcom # 1.1 broadcom wifi support ifeq ($(BOARD_WIFI_VENDOR), broadcom) BOARD_WPA_SUPPLICANT_DRIVER := NL80211 WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_WLAN_DEVICE := bcmdhd WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" BOARD_USR_WIFI := ap6212 include hardware/broadcom/wlan/bcmdhd/firmware/$(BOARD_USR_WIFI)/device-bcm.mk endif # 2. Bluetooth Configuration # make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true #BOARD_HAVE_BLUETOOTH_RTK := true #BLUETOOTH_HCI_USE_RTK_H5 := true BOARD_HAVE_BLUETOOTH_NAME := ap6212 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/softwinner/tulip-t1/bluetooth/ |
说明:
1、“#”符号起注释作用;
2、“BOARD_USR_WIFI := AP6210”宏指明wifi选用ap6212;
3、“BOARD_HAVE_BLUETOOTH := true”宏指明使用蓝牙;
4、“BOARD_HAVE_BLUETOOTH_BCM := true”宏指定蓝牙厂商为Broadcom;
5