下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、. 本次修改基于廠商提供的包下載:一修改記錄:1.配置linu*核 (1)Networking support -Wireless下增加802.11 協(xié)議棧的支持- Wireless cfg80211 - wireless configuration API* nl80211 testmode mand * enable developer warnings * cfg80211 regulatory debugging* enable powersave by default cfg80211 DebugFS entries use statically piled regulatory r
2、ules database * cfg80211 wireless e*tensions patibility * Wireless e*tensions sysfs files-*- mon routines for IEEE802.11 drivers lib80211 debugging messages * Allow reconnect while already connected Generic IEEE 802.11 Networking Stack (mac80211) PID controller based rate control algorithm * Minstre
3、l* Minstrel 802.11n support Default rate control algorithm (Minstrel) - * Enable mac80211 mesh networking (pre-802.11s) support * Enable LED triggers E*port mac80211 internals in DebugFS Select mac80211 debugging features -(2) 配置Device Drivers -USB support - USB Wireless Device Management support 支持
4、WIFI2.將下的壓縮包拷貝到ANDROID_SDK/kernel_im*/drivers/net/wireless下,解壓,修改其Makefile,編譯wifi驅(qū)動(dòng)模塊,修改容如下:CONFIG_PLATFORM_IM*6Q = yifeq ($(CONFIG_PLATFORM_IM*6Q), y)E*TRA_CFLAGS += -DCONFIG_LITTLE_ENDIANE*TRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -DCONFIG_PLATFORM_ANDROID -DCONFIG_ANDROID
5、 -DCONFIG_CONCURRENT_MODEARCH := armCROSS_PILE := */prebuilts/gcc/linu*-*86/arm/arm-eabi-4.6/bin/arm-eabi-KSRC := */kernel_im*/MODULE_NAME := 8723buendif如果1中選項(xiàng)沒(méi)有選上,會(huì)導(dǎo)致加載wifi模塊時(shí)報(bào)如下錯(cuò)誤:rtl8723bu: no symbol version for cfg80211_ready_on_channelrtl8723bu: Unknown symbol cfg80211_ready_on_channel (err -22
6、)rtl8723bu: Unknown symbol odm_SwAntDetectInit (err 0)rtl8723bu: no symbol version for _ieee80211_get_channelrtl8723bu: Unknown symbol _ieee80211_get_channel (err -22)rtl8723bu: no symbol version for cfg80211_roamedrtl8723bu: Unknown symbol cfg80211_roamed (err -22)rtl8723bu: no symbol version for w
7、iphy_registerrtl8723bu: Unknown symbol wiphy_register (err -22)原因就是:編譯WiFi模塊時(shí)會(huì)去KSRC所指的路徑下找相應(yīng)的庫(kù),假設(shè)果相關(guān)的編譯選項(xiàng)沒(méi)有選上會(huì)導(dǎo)致*些庫(kù)缺失,從而導(dǎo)致編出來(lái)的WiFi模塊不完整。上述是由于編譯核時(shí)有勾選80211協(xié)議棧導(dǎo)致。3.用廠商提供的hardware/realtek 替換hardware/realtek4.用廠商提供的替換ANDROID_SDK/e*tern/wpa_supplicant_8,并修改文件夾的名字為wpa_supplicant_8。5.hardware/libhardware_le
8、gacy/wifi/Android.mk修改容如下:- Android.mk (版本 170)+ Android.mk (工作副本) -49,15 +49,21 LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_PARAM=$(WIFI_DRIVER_FW_PATH_PARAM)endif-ifeq ($(BOARD_WLAN_DEVICE),UNITE)- LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_ath/wpa_supplicant/src/mon- LOCAL_SRC_FILES
9、+= wifi/wifi_unite.c-else ifeq ($(BOARD_WLAN_VENDOR), INTEL)- LOCAL_SRC_FILES += wifi/wifi_intel.c- LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_8/src/mon+#ifeq ($(BOARD_WLAN_DEVICE),UNITE)+# LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_ath/wpa_supplicant/src/mon+#
10、LOCAL_SRC_FILES += wifi/wifi_unite.c+#else ifeq ($(BOARD_WLAN_VENDOR), INTEL)+# LOCAL_SRC_FILES += wifi/wifi_intel.c+# LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_8/src/mon+#else+# LOCAL_SRC_FILES += wifi/wifi.c+# LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_8/src/
11、mon+#endif+ifeq ($(BOARD_WIFI_VENDOR), realtek)+LOCAL_SRC_FILES += ./realtek/wlan/libhardware_legacy/wifi/wifi_realtek.celse- LOCAL_SRC_FILES += wifi/wifi.c- LOCAL_C_INCLUDES += $(LOCAL_PATH)/././e*ternal/wpa_supplicant_8/src/mon+LOCAL_SRC_FILES += wifi/wifi.cendif6.修改device/fsl/sabresd_6dq/BoardCon
12、fig.mk修改容如下:- BoardConfig.mk (版本 170)+ BoardConfig.mk (工作副本) -26,6 +26,33 TARGET_BOOTLOADER_BOARD_NAME := SABRESDPRODUCT_MODEL := SABRESD-M*6DQ+BOARD_WIFI_VENDOR := realtek+ifeq ($(BOARD_WIFI_VENDOR), realtek)+WPA_SUPPLICANT_VERSION := VER_0_8_*+BOARD_WPA_SUPPLICANT_DRIVER := NL80211+CONFIG_DRIVER_W
13、E*T :=y+BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl+BOARD_HOSTAPD_DRIVER := NL80211+BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl+#BOARD_WLAN_DEVICE := rtl8192cu+#BOARD_WLAN_DEVICE := rtl8192du+#BOARD_WLAN_DEVICE := rtl8192ce+#BOARD_WLAN_DEVICE := rtl8192de+#BOARD_WLAN_DEVICE := rtl8723
14、as+#BOARD_WLAN_DEVICE := rtl8723au+#BOARD_WLAN_DEVICE := rtl8189es+#BOARD_WLAN_DEVICE := rtl8723bs+BOARD_WLAN_DEVICE := rtl8723bu+WIFI_DRIVER_MODULE_NAME := 8723bu+WIFI_DRIVER_MODULE_PATH := /system/lib/modules/8723bu.ko+WIFI_DRIVER_MODULE_ARG := ifname=wlan0 if2name=p2p0+WIFI_FIRMWARE_LOADER := +WI
15、FI_DRIVER_FW_PATH_STA := +WIFI_DRIVER_FW_PATH_AP := +WIFI_DRIVER_FW_PATH_P2P := +WIFI_DRIVER_FW_PATH_PARAM := +else# UNITE is a virtual device support both atheros and realtek wifi(ar6103 and rtl8723as)BOARD_WLAN_DEVICE := UNITEWPA_SUPPLICANT_VERSION := VER_0_8_UNITE -39,6 +66,7 BOARD_WPA_SUPPLICANT
16、_PRIVATE_LIB_Q := lib_driver_cmd_qcwBOARD_HOSTAPD_PRIVATE_LIB_RTL := lib_driver_cmd_rtlBOARD_WPA_SUPPLICANT_PRIVATE_LIB_RTL := lib_driver_cmd_rtl+endif#for intel vendorifeq ($(BOARD_WLAN_VENDOR),INTEL)BOARD_HOSTAPD_PRIVATE_LIB := private_lib_driver_cmd -118,3 +146,4 fs_use untrusted_app.te genfs_con
17、te*ts上述步驟完成后,到根目錄下執(zhí)行make 編譯整個(gè)系統(tǒng)。二測(cè)試1.安裝cfg80211.ko,8723bu.ko依賴此模塊,缺省會(huì)報(bào)如下錯(cuò)誤:8723bu: Unknown symbol cfg80211_ready_on_channel (err 0)8723bu: Unknown symbol _ieee80211_get_channel (err 0)8723bu: Unknown symbol cfg80211_roamed (err 0)8723bu: Unknown symbol wiphy_register (err 0)8723bu: Unknown symbol cf
18、g80211_disconnected (err 0)8723bu: Unknown symbol cfg80211_new_sta (err 0)8723bu: Unknown symbol cfg80211_connect_result (err 0)8723bu: Unknown symbol cfg80211_inform_bss_frame (err 0)2.安裝8723bu.ko模塊,兩個(gè)模塊都安裝好之后,執(zhí)行netcfg,會(huì)看到多出wlan0和p2p0設(shè)備節(jié)點(diǎn),他們是8723bu驅(qū)動(dòng)創(chuàng)立出來(lái)的,放到sys/class/net/下。lo UP 127.0.0.1/8 0*00000
19、049 00:00:00:00:00:00can0 DOWN 0.0.0.0/0 0*00000080 00:00:00:00:00:00can1 DOWN 0.0.0.0/0 0*00000080 00:00:00:00:00:00eth0 UP 0.0.0.0/0 0*00001043 1e:ed:19:27:1a:b3wlan0 DOWN 0.0.0.0/0 0*00001002 7c:c7:09:30:c5:4dp2p0 DOWN 0.0.0.0/0 0*00001002 7e:c7:09:30:c5:4d3.執(zhí)行ifconfig wlan0 up,翻開(kāi)wlan04.執(zhí)行system/
20、bin/wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wifi/wpa_supplicant.conf,啟動(dòng)wpa_supplicant進(jìn)程。啟動(dòng)過(guò)程報(bào)如下錯(cuò)誤:E/wpa_supplicant( 3251): mkdirctrl_interface=wlan0: Permission deniedE/wpa_supplicant( 3251): Failed to initialize control interface wlan0.E/wpa_supplicant( 3251): You may have another wpa_supplicant pr
21、ocess already running or the file wasE/wpa_supplicant( 3251): left by an unclean termination of wpa_supplicant in which case you will needE/wpa_supplicant( 3251): to manually remove this file before starting wpa_supplicant again.錯(cuò)誤原因:wpa_supplicant進(jìn)程運(yùn)行時(shí)的配置文件wpa_supplicant.conf文件中的ctrl_interface的路徑不對(duì)
22、,沒(méi)有匹配成功,導(dǎo)致進(jìn)程啟動(dòng)失敗。原來(lái)ctrl_interface的路徑是/var/run/wpa_supplicant,把ctrl_interface改成/data/misc/wifi/wpa_supplicant就可以了。ctrl_interface在哪里?在工程下的e*ternal/wpa_supplicant_8/wpa_supplicant/wpa_supplicant.conf中。深入分析:wpa_supplicant_init_iface函數(shù)分析init_iface初始化的第一個(gè)工作是解析運(yùn)行時(shí)配置文件。其中,wpa_s-confname的值為/data/misc/wifi/wp
23、a_supplicant.conf,解析函數(shù)是wpa_config_read。wpa_s-ctrl_iface = wpa_supplicant_ctrl_iface_init(wpa_s); if (wpa_s-ctrl_iface = NULL) wpa_printf(MSG_ERROR, Failed to initialize control interface %s.n You may have another wpa_supplicant process already running or the file wasn left by an unclean termination
24、of wpa_supplicant in which case you will needn to manually remove this file before starting wpa_supplicant again.n, wpa_s-conf-ctrl_interface); return -1; 如果是linu*系統(tǒng),可能沒(méi)有wpa_supplicant工具,可參考wpa_supplicant-2.6穿插編譯,移植此工具。5.執(zhí)行system/bin/wpa_cli -p/data/misc/wifi/wpa_supplicant,配置并連接wifi熱點(diǎn)。Could not con
25、nect to wpa_supplicant: wlan0 - re-tryingwpa_cli v2.0-devel-4.4.2_rtw_r12456.20141003Copyright (c) 2004-2013, Jouni Malinen and contributorsThis software may be distributed under the terms of the BSD license.See README for more details.Selected interface wlan0Interactive mode1 scanOKCTRL-EVENT-STATE
26、-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00 SSID=CTRL-EVENT-SCAN-RESULTSWPS-AP-AVAILABLECTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00 SSID=2 scan_resultsbssid / frequency / signal level / flags / ssid78:eb:14:bd:f6:9e 2412 -58 WPA-PSK-CCMPWPA2-PSK-CCMPESS B1412bc:67:1c:41:29:4d 243
27、7 -65 WPA-PSK-CCMP+TKIPWPA2-PSK-CCMP+TKIPWPSESS systec-ciscoe0:05:c5:23:fc:52 2452 -71 WPA-PSK-CCMP+TKIPWPA2-PSK-CCMP+TKIPWPSESS30:fc:68:0b:c9:f6 2437 -71 WPA-PSK-CCMPWPA2-PSK-CCMPESS gsdqec:26:ca:53:ea:f1 2462 -72 WPA-PSK-CCMPWPA2-PSK-CCMPWPSESS TP-LINK_EAF100:1f:f3:bf:d0:6f 2462 -73 WPA2-PSK-CCMPE
28、SS tcs appled4:ee:07:29:9b:4a 2442 -73 WPA-PSK-CCMPWPA2-PSK-CCMPESS Cherry&Filippo24:69:68:16:a9:1e 2462 -74 WPA-PSK-CCMPWPA2-PSK-CCMPESS *e6*b2*83*e7*95*89fc:d7:33:8d:0a:36 2412 -74 WPA-PSK-CCMPWPA2-PSK-CCMPESS dangyuanwei*inb0:c0:90:3a:24:a3 2422 -74 WPA2-PSK-CCMPESS 360*e8*a1*8c*e8*bd*a6*e8*ae*b0
29、*e5*bd*95*e4*bb*aa-A3c8:3a:35:1f:5f:88 2422 -80 WPA-PSK-CCMPWPA2-PSK-CCMPESS wangzihaoc8:3a:35:06:a9:b0 2452 -82 WPA-PSK-CCMPESS Tenda_06A9B000:3a:99:9b:9b:40 2417 -45 WEPESS systec-AP00:0c:43:30:50:a0 2437 -51 ESS Wii-Link_3050A008:10:78:e1:27:a5 2412 -74 ESS NETCORE_27A53 add_network04 set_network
30、 0 ssid systec-ciscoOK5 set_network 0 psk *OK6 select_network 0OKCTRL-EVENT-STATE-CHANGE id=0 state=3 BSSID=00:00:00:00:00:00 SSID=systec-ciscoCTRL-EVENT-SCAN-RESULTSWPS-AP-AVAILABLETrying to associate with bc:67:1c:41:29:4d (SSID=systec-cisco freq=2437 MHz)CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID
31、=00:00:00:00:00:00 SSID=systec-ciscoCTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=00:00:00:00:00:00 SSID=systec-ciscoAssociated with bc:67:1c:41:29:4dCTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=bc:67:1c:41:29:4d SSID=systec-ciscoCTRL-EVENT-STATE-CHANGE id=0 state=8 BSSID=bc:67:1c:41:29:4d SSID=systec-ci
32、scoWPA: Key negotiation pleted with bc:67:1c:41:29:4d PTK=CCMP GTK=TKIPCTRL-EVENT-CONNECTED - Connection to bc:67:1c:41:29:4d pleted (auth) id=0 id_str=CTRL-EVENT-STATE-CHANGE id=0 state=9 BSSID=bc:67:1c:41:29:4d SSID=systec-cisco7enable_network 0OK查看狀態(tài): statusbssid=bc:67:1c:41:29:4dssid=systec-ciscoid=0mode=stationpairwise_cipher=CCMPgroup_cipher=TKIPkey_mgmt=WPA2-PSKwpa_state=PLETEDp2p_device_address=7c:c7:09:30:c5:4daddress=7c:c7:09:30:c5:4dC
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 醫(yī)院滿意度培訓(xùn)
- 光伏發(fā)電培訓(xùn)資料
- 福建省莆田市涵江區(qū)實(shí)驗(yàn)小學(xué)2023-2024學(xué)年三年級(jí)上學(xué)期期末檢測(cè)數(shù)學(xué)試題
- T-XMSSAL 0110-2024 供廈食品 蘆筍
- 期中模擬試卷(1-4單元) (試題)-2024-2025學(xué)年六年級(jí)上冊(cè)數(shù)學(xué)北師大版
- 語(yǔ)文學(xué)習(xí)任務(wù)群的解讀及設(shè)計(jì)要領(lǐng)
- 余靜無(wú)機(jī)化學(xué)酸堿平衡
- 部編版六年級(jí)語(yǔ)文上冊(cè)第七單元《京劇趣談》教學(xué)課件
- 高中語(yǔ)文第11課師說(shuō)課件5新人教版必修
- 路基石方填筑試驗(yàn)路段施工總結(jié)-
- 《新員工培訓(xùn)課件:企業(yè)文化及價(jià)值觀》
- 商務(wù)談判與推銷技巧課件
- 波峰焊治具設(shè)計(jì)規(guī)范
- 小數(shù)乘整數(shù)(說(shuō)課 上課 課件)
- 滿族介紹(課堂PPT)
- 小學(xué)生主題班會(huì)教學(xué)設(shè)計(jì) 隊(duì)會(huì)《男女平等》 通用版
- 原發(fā)性醛固酮增多癥護(hù)理查房
- 【北汽藍(lán)谷新能源汽車公司稅收籌劃方案設(shè)計(jì)(5000字論文)】
- 成為公關(guān)高手:我在奧美、聯(lián)想、美團(tuán)的15年公關(guān)經(jīng)驗(yàn)總結(jié)
- 工貿(mào)企業(yè)重大事故隱患判定標(biāo)準(zhǔn)培訓(xùn)PPT
- 小學(xué)英語(yǔ)課程與教學(xué)論(小學(xué)教育專業(yè))PPT完整全套教學(xué)課件
評(píng)論
0/150
提交評(píng)論