版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
前 wifiwake wifi&btwake 本文档适合需要使用或移植wifi配置每款wifi模组。表 android4.2平台wifi模组列wifi(到linux-3.3 下,输入makeARCH=arm support,即可看到参与编译的wifi驱动)去到去到linux- < < RFswitchsubsystem 去到去到linux-然后选择DeviceDriversNetworkdevicesupport--->WirelessLAN---> 4329/30wirelesscardssupport(/system/vendor/modules/fw_bcmxxxx.bin)FirmwarepathInterrupttype(Out-of-Band [ LowleveltriggerforOOB注意:“[ LowleveltriggerforOOBinterrupt”选项是否需要看实际的原理图,模组<*> 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”宏表示使用哪个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”选项是否需要看实际的原理图,模组<*> 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”宏表示使用哪个SD接口连接SDIOwifi;4wifi_mod_sel”宏表示选用哪一款wifi模组;“ap6xxx_bt_host_wake”是ap6210的控制引脚;去到linux- 去到linux- 选 ->Networkingsupport(NET->Bluetoothsubsystemsupport(BT->Bluetoothdevice-><*>BluetoothLowPowerManager< Aninverterbetweenbthostwakepinand注意:“<> Aninverterbetweenbthostwakepinandcpu”选项是否需要看实际的原理图,模组的BT-WAKE-HOST脚与主控相连中间是否有连三极管,若有接三极管则把该选项选择上。<*> 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文件,设置蓝牙的属性信息,###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中实现,修改的部份代码如下。<!--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进相应的,详细操作如下。 “makej8”cant\下使用“touch*”命令更新下所有文件的时间戳,然后在相应下使用“mm”命令进行libhardware_legacy.so和_supplicant推入目标机器,最后更改执行权限并重adbpushD:\wap_supplicant adbpushD:\wap_supplicant adbadbod777od666 再使用make-j8命令进行整体编译。修改配置文件并进行整体编译重烧固件或单独模块编译把生成文件推进目标机器后发现指定的wifi####UARTod0660##powerup/downod0660od0660chownbluetoothne
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB 11562-2025轻型汽车驾驶员前方视野要求及测量方法
- GB/T 46823-2025过渡、脉冲和相关波形术语、定义和算法
- 广东省汕头市澄海区2025-2026学年上学期七年级数学期末试题(含答案)
- 中学教师绩效考核制度
- 养老院入住老人医疗保健制度
- 企业内部保密工作执行制度
- CCAA - 2022年12月认通基答案及解析 - 详解版(62题)
- 吕蒙介绍教学课件
- 老年终末期压疮护理中的环境优化策略
- 老年终末期压疮护理中人文关怀实施策略
- 二手房提前交房协议书
- 2025年高考物理 微专题十 微元法(讲义)(解析版)
- 2025年国家能源投资集团有限责任公司校园招聘笔试备考题库含答案详解(新)
- 形位公差培训讲解
- 医学影像肺部结节诊断与处理
- 药店物价收费员管理制度
- 数据风险监测管理办法
- 2025年数字经济下灵活就业发展研究报告-新京报-202605
- 儿童语言发育迟缓课件
- 2025年河南省郑州市中考一模英语试题及答案
- 防爆箱技术协议书
评论
0/150
提交评论