• Document: BT Kernel Module & Android Porting Guide RTL8723AS
  • Size: 16.58 KB
  • Uploaded: 2019-02-13 20:31:49
  • Status: Successfully converted


Some snippets from your converted document:

Product RTL8723 WIFI/BT Kernel Module & Android Porting Guide RTL8723AS Function: WIFI (station/softap/p2p) + BT Interface Type: SDIO 1.1 . config .config requires the following configuration option, wifi driver compiled as a module CONFIG_RTL8723AS = m 1.2 BoardConfig.mk BoardConfig.mk file determines which module android will use for WIFI and Bluetooth support. Configuration for rtl8723as modules need the following BoardConfig.mk file definitions. # 1. Wifi Configuration BOARD_WIFI_VENDOR: = realtek #BOARD_WIFI_VENDOR: = broadcom # 1.1 realtek wifi support ifeq ($ (BOARD_WIFI_VENDOR), realtek) WPA_SUPPLICANT_VERSION: = VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER: = NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB: = lib_driver_cmd_rtl BOARD_HOSTAPD_DRIVER: = NL80211 BOARD_HOSTAPD_PRIVATE_LIB: = Lib_driver_cmd_rtl SW_BOARD_USR_WIFI: = rtl8723as BOARD_WLAN_DEVICE: = rtl8723as Endif # 2. Bluetooth Configuration BOARD_HAVE_BLUETOOTH: = true # BOARD_HAVE_BLUETOOTH_BCM: = true BOARD_HAVE_BLUETOOTH_RTK: = true BLUETOOTH_HCI_USE_RTK_H5: = true SW_BOARD_HAVE_BLUETOOTH_NAME: = rtl8723as BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR: = device/softwinner/awsom/bluetooth/ Note: To be commented out # BOARD_HAVE_BLUETOOTH_BCM: = true Make sure BOARD_HAVE_BLUETOOTH=true for every bt vendor 1.3 init.sun7i.rc init.sun7i.rc is related resources and services configuration file, use rtl8723as module needs to be modified as follows. # Realtek bluetooth Page 1 / 6 (c) 2017 AW-SoM Tech Team <mmcandrew@aw-som.com> | 2017-11-29 13:01 URL: https://aw-som.com/faqindex.php?action=artikel&cat=30&id=21&artlang=en Product # UART device chmod 0660/dev/ttyS2 chown bluetooth net_bt_stack/dev/ttyS2 mkdir/data/misc/bluedroid 0770 bluetooth net_bt_stack # Power up/down interface chmod 0660/sys/class/rfkill/rfkill0/state chmod 0660/sys/class/rfkill/rfkill0/type chown bluetooth net_bt_stack/sys/class/rfkill/rfkill0/state chown bluetooth net_bt_stack/sys/class/rfkill/rfkill0/type write/sys/class/rfkill/rfkill0/state 0 # Bluetooth MAC address programming chown bluetooth net_bt_stack ro.bt.bdaddr_path chown bluetooth net_bt_stack/system/etc/bluetooth chown bluetooth net_bt_stack/data/misc/bluetooth setprop ro.bt.bdaddr_path "/ data/misc/bluetooth/bdaddr" # Bluetooth LPM # Chmod 0220/proc/bluetooth/sleep/lpm # Chmod 0220/proc/bluetooth/sleep/btwrite # Chown bluetooth net_bt_stack/proc/bluetooth/sleep/lpm # Chown bluetooth net_bt_stack/proc/bluetooth/sleep/btwrite # 1. Realtek wifi service # 1.1 realtek wifi sta service service wpa_supplicant/system/bin/wpa_supplicant-iwlan0-Dnl80211 \ -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot # 1.2 realtek wifi sta p2p concurrent service service p2p_supplicant/system/bin/wpa_supplicant \ -Ip2p0-Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin-N \ -Iwlan0-Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot Note: if init.sun7i.rc files without modifying the code, you can manually add; 1.4 awsom.mk awsom.mk copy rtl8723as wifi file determines the firmware to the appropriate directory, to be configured to use rtl8723as mold Groups need to awsom.mk file modified as follows (part of the code). PRODUCT_PACKAGES + = \ Page 2 / 6 (c) 2017 AW-SoM Tech Team <mmcandrew@aw-som.com> | 2017-11-29 13:01 URL: https://aw-som.com/faqindex.php?action=artikel&cat=30&id=21&artlang=en Product TSCalibration2 \ Bluetooth # Wifi & bt config file PRODUCT_COPY_FILES + = \ frameworks/native/data/etc/android.hardware.wifi.xml: system/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml: system/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml: system/etc/permissions/android.hardware.bluetooth.xml \ system/bluetooth/data/main.nonsmartphone.conf: system/etc/bluetooth/main.conf # Rtl8723as bt fw and config # PRODUCT_COPY_FILES + = \ device/softwinner/common/hardware/realtek/bluetooth/firmware/rtl8723as/rtl8723a_fw:system/ etc/firmware/rtlbt/rtlbt_fw \ device/softwinner/common/hardware/realtek/bluetooth/firmware/rtl8723as/rtl8723a_config:syst em/etc/Firmware/rtlbt/rtlbt_config \ PRODUCT_PROPERTY_OVERRIDES + = \ dalvik.vm.heapsize = 256m \ dalvik.vm.heapstartsize = 8m \ dalvik.vm.heapgrowthlimit = 96m \ dalvik.vm.heaptargetutilization = 0.75 \ dalvik.vm.heapminfree = 2m \ dalvik.vm.heapmaxfree = 8m \ persist.sys.usb.config = mass_storage, adb \ ro.property.tabletUI = false \ ro.sf.lcd_density = 120 \ ro.udisk.lable = AWSOM \ ro.product.firmware = v1.3 \ ro.property.bluetooth.rtk8723a = true \ 1.5 ueventd.sun7i.rc

Recently converted files (publicly available):