1. 程式人生 > >[Linux驅動煉成記] 06-博通WIFI模組AP6212配置

[Linux驅動煉成記] 06-博通WIFI模組AP6212配置

Buildroot 配置

Kernel -> wifi modle -> AP6212
Kernel -> wifi modle -> wifi fw local path (wifi韌體路徑)
  • 相關安裝包主要是:
buildroot/package/wifi-fw/wifi_fw.mk

主要如下:
	AP6212) \
		mkdir -p $(TARGET_DIR)/etc/wifi/6212; \
		$(INSTALL) -D -m 0644 $(@D)/bcm_ampak/config/6212/*.bin $(TARGET_DIR)/etc/wifi/6212/; \
		$(INSTALL) -D -m 0644 $(@D)/bcm_ampak/config/6212/nvram.txt $(TARGET_DIR)/etc/wifi/6212/nvram.txt; \
		$(INSTALL) -D -m 0644 $(@D)/bcm_ampak/config/6212/BT/*.hcd $(TARGET_DIR)/etc/wifi/6212/; \
		$(INSTALL) -D -m 0644 $(@D)/bcm_ampak/config/config.txt $(TARGET_DIR)/etc/wifi/6212/; \
		;; \


系統根目錄/hardware/aml-4.9/amlogic/wifi/bcm_ampak/config/6212,主要韌體

BCM43430B0.hcd
fw_bcm43438a1.bin

問題點

# ifconfig wlan0 up
[  [email protected]] dhd_open: Enter ffffffc00ccd6000
[  [email protected]] 
[  [email protected]] Dongle Host Driver, version 1.363.59.144.10 (r)
[  [email protected]] wl_android_wifi_on in 1
...
[  [email protected]] Final fw_path=/etc/wifi/6212/fw_bcm43438a1.bin
[  
[email protected]
] Final nv_path=/etc/wifi/6212/nvram.txt [ [email protected]] Final clm_path=/etc/wifi/6212/clm_bcmdhd.blob [ [email protected]] Final conf_path=/etc/wifi/6212/config.txt [ [email protected]] dhd_set_bus_params: set use_rxchain 0 [ [email protected]] dhd_set_bus_params: set txglomsize 36 // 問題所在 [
[email protected]
] dhdsdio_download_code_file: Open firmware file failed /etc/wifi/6212/fw_bcm43438a1.bin [ [email protected]] _dhdsdio_download_firmware: dongle image file download failed [ [email protected]] dhd_bus_devreset Failed to download binary to the dongle [ [email protected]] dhd_net_bus_devreset: dhd_bus_devreset: -35 [ [email protected]] dhd_wl_ioctl: returning as busstate=0 [ [email protected]] dhd_net_bus_devreset: dhd_bus_devreset: -35 [ [email protected]] wifi_platform_set_power = 0 [ [email protected]] ======== PULL WL_REG_ON(-1) LOW! ======== [ [email protected]] wl_android_wifi_on: Failed [ [email protected]] dhd_open : wl_android_wifi_on failed (-35) [ [email protected]] dhd_stop: Enter ffffffc00ccd6000 [ [email protected]] wl_android_wifi_off in 1 [ [email protected]] wl_android_wifi_off in 2: g_wifi_on=0, on_failure=1 [ [email protected]] dhd_wl_ioctl: returning as busstate=0 [ [email protected]] dhd_net_bus_devreset: dhd_bus_devreset: -35 [ [email protected]] wifi_platform_set_power = 0 [ [email protected]] ======== PULL WL_REG_ON(-1) LOW! ======== [ [email protected]] wl_android_wifi_off out [ [email protected]] dhd_stop: Exit [ [email protected]] dhd_open: Exit ret=-1 ifconfig: SIOCSIFFLAGS: Operation not permitted

可以發現/etc/wifi/6212/fw_bcm43438a1.bin打不開該檔案,由於系統中沒有該檔案導致的,最終找原廠提供最新AP6212韌體包,問題解決1


  1. RK3288 新增WiFi&BT模組AP6212 ↩︎