![02 a31ampa31s android4 2 wifi模塊移植說明_第1頁(yè)](http://file4.renrendoc.com/view/7fa9bbf7f9bd72c9bb25bbd7e5caedfa/7fa9bbf7f9bd72c9bb25bbd7e5caedfa1.gif)
![02 a31ampa31s android4 2 wifi模塊移植說明_第2頁(yè)](http://file4.renrendoc.com/view/7fa9bbf7f9bd72c9bb25bbd7e5caedfa/7fa9bbf7f9bd72c9bb25bbd7e5caedfa2.gif)
![02 a31ampa31s android4 2 wifi模塊移植說明_第3頁(yè)](http://file4.renrendoc.com/view/7fa9bbf7f9bd72c9bb25bbd7e5caedfa/7fa9bbf7f9bd72c9bb25bbd7e5caedfa3.gif)
![02 a31ampa31s android4 2 wifi模塊移植說明_第4頁(yè)](http://file4.renrendoc.com/view/7fa9bbf7f9bd72c9bb25bbd7e5caedfa/7fa9bbf7f9bd72c9bb25bbd7e5caedfa4.gif)
![02 a31ampa31s android4 2 wifi模塊移植說明_第5頁(yè)](http://file4.renrendoc.com/view/7fa9bbf7f9bd72c9bb25bbd7e5caedfa/7fa9bbf7f9bd72c9bb25bbd7e5caedfa5.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
前 wifiwake wifi&btwake 本文檔適合需要使用或移植wifi配置每款wifi模組。表 android4.2平臺(tái)wifi模組列wifi(到linux-3.3 下,輸入makeARCH=arm support,即可看到參與編譯的wifi驅(qū)動(dòng))去到去到linux- < < RFswitchsubsystem 去到去到linux-然后選擇DeviceDriversNetworkdevicesupport--->WirelessLAN---> 4329/30wirelesscardssupport(/system/vendor/modules/fw_bcmxxxx.bin)FirmwarepathInterrupttype(Out-of-Band [ LowleveltriggerforOOB注意:“[ LowleveltriggerforOOBinterrupt”選項(xiàng)是否需要看實(shí)際的原理圖,模組<*> LowleveltriggerforOOBinterruptWL-WAKE-HOST與主控端沒接三極管:< LowleveltriggerforOOBBoardConfigmk文件決定android加載哪一款wifi模組,要配置成使用ap6181模組需要把##wifiandbtconfiguration#1.WifiConfiguration#1.1realtekwifisupport#BOARD_WIFI_VENDOR:=realtek#wifi :=NL80211 :=bcmdhd :=SW_BOARD_USR_WIFI:=AP6181 :="/system/vendor/modules/fw_bcm40181a2.bin" :="/system/vendor/modules/fw_bcm40181a2_p2p.bin" )ifeq ###wifiwifistationand -iwlan0-Dnl80211-c/data/misc/wifi/ classmain _wlan0dgram660wifiwifi#wifistap2pconcurrent -iwlan0-Dnl80211- classmain _wlan0dgram660wifiwifi #wifi&btconfigfile#wifi&btconfigfileframeworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/androidhardware.wifi.xml\i.direct.xml\#ap6181sdiowififwandnvramPRODUCT_COPY_FILES+=81a2_p2p.bin181a2_apsta.bin.bin <!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifi<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifiinterfaces.Ifthedevicedoesn'twanttosupporttetheringoverWifithisshouldbeempty.Anexamplewouldbe"softap.*"-- default:disableSoftapfeature--<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresent==================;;wifi 0-SDC0,1-SDC1,2-SDC2,3- 0-USB0,1-USB1,2- 1-EHCI(speed2.0),2-OHCI(speed0-none,1-ap6181,2-;;3-rtl8723as(wifi+bt),4-5-rtl8192cu,6-;=;;1-ap6181sdiowifigpio =;2-ap6210sdiowifigpio = ======3wifi_sdc_id”宏表示使用哪個(gè)SD接口連接SDIOwifi;4wifi_mod_sel”宏表示選用哪一款wifi模組;wifiwake ;(cpu:apb:ahb)= ====1=;;1-ap6181sdiowifigpio ======的pin保持一致;接口添加到wifi_pm.c。 去到去到linux-然后選擇DeviceDriversNetworkdevicesupport--->WirelessLAN---> 4329/30wirelesscardssupport(/system/vendor/modules/fw_bcmxxxx.bin)FirmwarepathInterrupttype(Out-of-Band [ LowleveltriggerforOOB注意:“[ LowleveltriggerforOOBinterrupt”選項(xiàng)是否需要看實(shí)際的原理圖,模組<*> LowleveltriggerforOOBinterruptWL-WAKE-HOST與主控端沒接三極管:< LowleveltriggerforOOBBoardConfigmk文件決定android加載哪一款wifi模組,要配置成使用ap6210模組需要把##wifiandbtconfiguration#1.WifiConfiguration#1.1realtekwifisupport#BOARD_WIFI_VENDOR:=realtek#wifi :=NL80211 :=bcmdhd :=SW_BOARD_USR_WIFI:=AP6210 :="/system/vendor/modules/fw_bcm40181a2.bin" :="/system/vendor/modules/fw_bcm40181a2_p2p.bin" )ifeq ###wifiwifistationand -iwlan0-Dnl80211-c/data/misc/wifi/ classmain _wlan0dgram660wifiwifi#wifistap2pconcurrent -iwlan0-Dnl80211- classmain _wlan0dgram660wifiwifi #wifi&btconfigfile#wifi&btconfigfileframeworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/androidhardware.wifi.xml\i.direct.xml\tooth.xml\#ap6210sdiowififwandnvramPRODUCT_COPY_FILES+=.bin181a2_apsta.bin81a2_p2p.bin <!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifi<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifiinterfaces.Ifthedevicedoesn'twanttosupporttetheringoverWifithisshouldbeempty.Anexamplewouldbe"softap.*"-- default:disableSoftapfeature--<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresent==============;;wifi 0-SDC0,1-SDC1,2-SDC2,3-;;;0-none,1-ap6181,2-3-rtl8723as(wifi+bt),4-5-rtl8192cu,6-======3wifi_sdc_id”宏表示使用哪個(gè)SD接口連接SDIOwifi;4wifi_mod_sel”宏表示選用哪一款wifi模組;“ap6xxx_bt_host_wake”是ap6210的控制引腳;去到linux- 去到linux- 選 ->Networkingsupport(NET->Bluetoothsubsystemsupport(BT->Bluetoothdevice-><*>BluetoothLowPowerManager< Aninverterbetweenbthostwakepinand注意:“<> Aninverterbetweenbthostwakepinandcpu”選項(xiàng)是否需要看實(shí)際的原理圖,模組的BT-WAKE-HOST腳與主控相連中間是否有連三極管,若有接三極管則把該選項(xiàng)選擇上。<*> AninverterbetweenbthostwakepinandcpuBT-WAKE-HOST與主控端沒接三極管:< Aninverterbetweenbthostwakepinand去到去到linux-選 ->Device ->HID -><*>User-spaceI/OdriversupportforHID去到去到linux-選 ->Networkingsupport(NET->Character->Serial-><>8250/16550andcompatibleserial-><*>Winnerserial-> ConsoleonWinnerserial#ifdef#ifdefexternvoidbluesleep_setup_uart_port(struct staticintdevinit {u32id=pdev->id;structuart_port*port;#ifdefCONFIG_PROC_FS#ifdef SERIAL_MSG("failedtofetchbtuart return- if(val.val!=0&&val.val==sw_uport->id) SERIAL_DBG("adduart%dport,port_type%d,uartclk%d\n",id,port->type,port->uartclk);}##btdefault ##2.Bluetooth#makesureBOARD_HAVE_BLUETOOTHistrueforeverybtvendorBOARD_HAVE_BLUETOOTH:=trueBOARD_HAVE_BLUETOOTH_BCM:=trueSW_BOARD_HAVE_BLUETOOTH_NAME:=ap6210#SW_BOARD_HAVE_BLUETOOTH_NAME:=ap6330六、修改init.sun6irc文件,設(shè)置藍(lán)牙的屬性信息,###UARTod0660#powerup/downod0660od0660chownbluetoothnet_bt_stack/sys/class/rfkill/rfkill0/type#bluetoothod0220od0220chownbluetoothnet_bt_stack/proc/bluetooth/sleep/lpm#wifi&btconfigfile#wifi&btconfigfilewifi.xml\dware.wifi.direct.xml\are.xml =====----bluetoothused(0-noused,1-----uart;;blue;=======wifi&btwake ;(cpu:apb:ahb)= =====1======;;2-ap6210sdiowifigpio =port:PLXX<1><default><default><0>ap6xxx_wl_host_wake=port:PM01<0><default><default><0> =port:PLXX<1><default><default><0> ap6xxx_bt_host_wake=port:PM04<0><default><default><0>2wakeup_btwakeup_wifipin[wifi_paraap6210“ap6xxx_bt_host_wakeap6xxx_wl_host_wake”指定的pin保持一致;接口添加到wifi_pm.c。 BoardConfigmk文件決定android加載哪一款wifi模組,要配置成使用rtl8188eu模組需要把##wifiandbtconfiguration#1.WifiConfiguration#1.1realtekwifisupport_SUPPLICANT_VERSION:=VER_0_8_X :=NL80211 :=#SW_BOARD_USR_WIFI:=rtl8192cu#SW_BOARD_USR_WIFI:=rtl8189es#SW_BOARD_USR_WIFI:=rtl8723as#SW_BOARD_USR_WIFI:=rtl8723au#wifi ifeq 4、“SW_BOARD_USR_WIFIrtl8188euBOARD_WLAN_DEVICErtl8188eu”宏指明使用rtl8188eu模組;##1.realtekwifi#1.1realtekwifista _supplicant.conf-e/data/misc/wifi/entropy.binclassmain _wlan0dgram660wifiwifi#1.2realtekwifistap2pconcurrent -iwlan0-Dnl80211-c/data/misc/wifi/ classmain _wlan0dgram660wifiwifi ##wifi&btconfigwifi.xml\ 在config.xml中實(shí)現(xiàn),修改的部份代碼如下。<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifi<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresenttetherableWifiinterfaces.Ifthedevicedoesn'twanttosupporttetheringoverWifithisshouldbeempty.Anexamplewouldbe"softap.*"-- default:disableSoftapfeature--<!--Listofregexpressionsdescribingtheinterface(ifany)thatrepresent;; ;=====0-none,1-bcm40181,2-;3-rtl8723as(wifi+bt),4-;;5-rtl8192cu,6-4wifi_usbc_type”宏表示使哪種接口的usb;wifi_pm.c。模塊編譯然后把生成的文件push進(jìn)相應(yīng)的,詳細(xì)操作如下。 “makej8”cant\下使用“touch*”命令更新下所有文件的時(shí)間戳,然后在相應(yīng)下使用“mm”命令進(jìn)行l(wèi)ibhardware_legacy.so和_supplicant推入目標(biāo)機(jī)器,最后更改執(zhí)行權(quán)限并重adbpushD:\wap_supplicant adbpushD:\wap_supplicant adbadbod777od666 再使用make-j8命令進(jìn)行整體編譯。修改配置文件并進(jìn)行整體編譯重?zé)碳騿为?dú)模塊編譯把生成文件推進(jìn)目標(biāo)機(jī)器后發(fā)現(xiàn)指定的wifi####UARTod0660##powerup/downod0660od0660chownbluetoothne
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝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ù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 班主任心理健康與壓力管理的培訓(xùn)總結(jié)
- 公交掃惡除霸承諾書范本
- 2025-2030全球船用防火窗行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 2025年全球及中國(guó)運(yùn)動(dòng)刺激療法行業(yè)頭部企業(yè)市場(chǎng)占有率及排名調(diào)研報(bào)告
- 2025年全球及中國(guó)矩形橋式起重機(jī)行業(yè)頭部企業(yè)市場(chǎng)占有率及排名調(diào)研報(bào)告
- 2025-2030全球便攜式鼻腔沖洗器行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 2025-2030全球農(nóng)用氧化亞銅行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 2025年全球及中國(guó)鋼制螺旋錐齒輪行業(yè)頭部企業(yè)市場(chǎng)占有率及排名調(diào)研報(bào)告
- 2025年全球及中國(guó)戶外電氣箱行業(yè)頭部企業(yè)市場(chǎng)占有率及排名調(diào)研報(bào)告
- 2025-2030全球軸承精密滾珠行業(yè)調(diào)研及趨勢(shì)分析報(bào)告
- 蛋糕店服務(wù)員勞動(dòng)合同
- 土地買賣合同參考模板
- 2025高考數(shù)學(xué)二輪復(fù)習(xí)-專題一-微專題10-同構(gòu)函數(shù)問題-專項(xiàng)訓(xùn)練【含答案】
- 2025年天津市政建設(shè)集團(tuán)招聘筆試參考題庫(kù)含答案解析
- 2024-2030年中國(guó)烘焙食品行業(yè)運(yùn)營(yíng)效益及營(yíng)銷前景預(yù)測(cè)報(bào)告
- 2025年上半年水利部長(zhǎng)江水利委員會(huì)事業(yè)單位招聘68人(湖北武漢)重點(diǎn)基礎(chǔ)提升(共500題)附帶答案詳解
- 寧德時(shí)代筆試題庫(kù)
- 五年級(jí)下冊(cè)北京版英語單詞
- 康復(fù)醫(yī)院患者隱私保護(hù)管理制度
- 新課標(biāo)I、Ⅱ卷 (2024-2020) 近五年高考英語真題滿分作文
- 浙江省嘉興市2023-2024學(xué)年六年級(jí)(上)期末數(shù)學(xué)試卷
評(píng)論
0/150
提交評(píng)論