打开r40平台Anroid6.0下的AP6212A1版本的WIFI(兼容配置)(分色排版)

移动开发 waitig 776℃ 百度已收录 0评论

打开r40平台Anroid6.0下的AP6212A1版本的WIFI

2017/10/19 15:04

版本:V1.0

 

 

1、增加AP6212A1版本的firmware固件:

E:\IMG\r40m\r40m\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\device-bcm.mk

#

# Copyright (C) 2008 The Android Open Source Project

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

#      http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

#

 

 

-include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk

 

WIFI_DRIVER_FW_PATH_STA    := "/system/vendor/modules/fw_bcm43438a0.bin"

WIFI_DRIVER_FW_PATH_AP     := "/system/vendor/modules/fw_bcm43438a0_apsta.bin"

WIFI_DRIVER_FW_PATH_P2P    := "/system/vendor/modules/fw_bcm43438a0_p2p.bin"

 

PRODUCT_COPY_FILES += \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0.bin:system/vendor/modules/fw_bcm43438a0.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0_apsta.bin:system/vendor/modules/fw_bcm43438a0_apsta.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0_p2p.bin:system/vendor/modules/fw_bcm43438a0_p2p.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1.bin:system/vendor/modules/fw_bcm43438a1.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1_apsta.bin:system/vendor/modules/fw_bcm43438a1_apsta.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1_p2p.bin:system/vendor/modules/fw_bcm43438a1_p2p.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/nvram_ap6212.txt:system/vendor/modules/nvram.txt \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/bcm43438a0.hcd:system/vendor/modules/bcm43438a0.hcd

 

 

W:\r40\ap6212a0a1_r40m\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\fw_bcm43438a1.bin

W:\r40\ap6212a0a1_r40m\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\fw_bcm43438a1_apsta.bin

W:\r40\ap6212a0a1_r40m\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\fw_bcm43438a1_p2p.bin

(这个只有稍微的更新:)

W:\r40\ap6212a0a1_r40m\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\nvram_ap6212.txt

#AP6212_NVRAM_V1.0.1_20160606

# 2.4 GHz, 20 MHz BW mode

 

# The following parameter values are just placeholders, need to be updated.

manfid=0x2d0

prodid=0x0726

vendid=0x14e4

devid=0x43e2

boardtype=0x0726

boardrev=0x1101

boardnum=22

macaddr=00:90:4c:c5:12:38

sromrev=11

boardflags=0x00404201

xtalfreq=26000

nocrc=1

ag0=255

aa2g=1

ccode=ALL

 

pa0itssit=0x20

extpagain2g=0

 

#PA parameters for 2.4GHz, measured at CHIP OUTPUT

pa2ga0=-168,7161,-820

AvVmid_c0=0x0,0xc8

cckpwroffset0=5

 

# PPR params

maxp2ga0=90

txpwrbckof=6

cckbw202gpo=0x5555

legofdmbw202gpo=0x77777777

mcsbw202gpo=0xaaaaaaaa

 

# OFDM IIR :

ofdmdigfilttype=7

# PAPD mode:

papdmode=2

 

il0macaddr=00:90:4c:c5:12:38

wl0id=0x431b

 

#OOB parameters

hostwake=0x40

hostrdy=0x41

usbrdy=0x03

usbrdydelay=100

deadman_to=0xffffffff

# muxenab: 0x1 for UART enable, 0x10 for Host awake

muxenab=0x10

# CLDO PWM voltage settings – 0x4 – 1.1 volt

#cldo_pwm=0x4

glitch_based_crsmin=1

 

 

 

 

2、原始编译r40m的Anroid6.0:

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m$
tar zxvf android_r40m_20170424_repack.tar.gz

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m$
tar zxvf lichee_r40m_20170424_repack.tar.gz

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m$
cd lichee

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/lichee$
./build.sh config

   1. sun8iw11p1

Choice: 1

All available platforms:

   0. android

Choice: 0

All available kernel:

   0. linux-3.10

Choice: 0

All available boards:

   1. m2ultra

Choice: 1

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/lichee$
./build.sh

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/lichee$
cd ../android/

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/android$
source build/envsetup.sh

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/android$
lunch

     20. azalea_m2ultra-eng

Which would you like? [aosp_arm-eng] 20

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/android$
extract-bsp

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/android$
make -j12

rootroot@cm-System-Product-Name:/home/wwt/r40/ap6212a0a1_r40m/android$
pack

 

 

刷机之后可以上yahoo雅虎了!


本文由【waitig】发表在等英博客
本文固定链接:打开r40平台Anroid6.0下的AP6212A1版本的WIFI(兼容配置)(分色排版)
欢迎关注本站官方公众号,每日都有干货分享!
等英博客官方公众号
点赞 (0)分享 (0)