AnsweredAssumed Answered

imx6q wifi bing up error

Question asked by xiaoliang guan on Oct 20, 2016
Latest reply on Nov 1, 2016 by Alamy Liu

 我在imx6q (android4.4.2 linux3.0.35)移植wifi模块驱动驱动 (ap6441 芯片组为(bcm43341))

 我的移植工作基本完成,

 现在的问题:进行make clean 后重新编译报错log如下:

target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/uevent/uevent.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/uevent/uevent.o] Error 1    

 

我发现跟device/fsl/sabresd_6dq/BoardConfig.mk
这个文件有关:

这个文件的修改如下:

#Wifi
BOARD_WLAN_VENDOR := BROADCOM
BOARD_WLAN_DEVICE_REV := BCM43341
#for broadcom BCM43341
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
HOSTAPD_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"
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_FW_PATH_STA := "system/etc/firmware/fw_bcmdhd.bin"
WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcmdhd_p2p.bin"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcmdhd_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "iface_name=eth1 firmware_path=/system/etc/frimware/fw_bcmdhd.bin nvram_path=/system/etc/firmware/nvram.txt"

 

大家知道什么原因影响造成编译错误,这个文件屏蔽的部分是下面:

#WIFI_TEST_INTERFACE := "sta"
# UNITE is a virtual device support both atheros and realtek wifi(ar6103 and rtl8723as)
#BOARD_WLAN_DEVICE := UNITE
#WPA_SUPPLICANT_VERSION := VER_0_8_UNITE
#TARGET_KERNEL_MODULES := \
# kernel_imx/drivers/net/wireless/rtl8723as/8723as.ko:system/lib/modules/8723as.ko \
# kernel_imx/drivers/net/wireless/rtl8723au/8723au.ko:system/lib/modules/8723au.ko \
# kernel_imx/drivers/bluetooth/rtk_btusb.ko:system/lib/modules/rtk_btusb.ko \
# kernel_imx/net/wireless/cfg80211.ko:system/lib/modules/cfg80211_realtek.ko
#BOARD_WPA_SUPPLICANT_DRIVER := NL80211
#BOARD_HOSTAPD_DRIVER := NL80211

#BOARD_HOSTAPD_PRIVATE_LIB_QCOM := lib_driver_cmd_qcwcn
#BOARD_WPA_SUPPLICANT_PRIVATE_LIB_QCOM := lib_driver_cmd_qcwcn
#BOARD_HOSTAPD_PRIVATE_LIB_RTL := lib_driver_cmd_rtl
#BOARD_WPA_SUPPLICANT_PRIVATE_LIB_RTL := lib_driver_cmd_rtl
#for intel vendor
#ifeq ($(BOARD_WLAN_VENDOR),INTEL)
#BOARD_HOSTAPD_PRIVATE_LIB := private_lib_driver_cmd
#BOARD_WPA_SUPPLICANT_PRIVATE_LIB := private_lib_driver_cmd
#WPA_SUPPLICANT_VERSION := VER_0_8_X
#HOSTAPD_VERSION := VER_0_8_X
#BOARD_WPA_SUPPLICANT_PRIVATE_LIB := private_lib_driver_cmd_intel
#WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/iwlagn.ko"
#WIFI_DRIVER_MODULE_NAME := "iwlagn"
#WIFI_DRIVER_MODULE_PATH ?= auto
#endif

把以前系统带的就是我屏蔽的打开,我添加的部分屏蔽掉就编译没有问题,

大家知道这是什么原因造成的。谢谢

Outcomes