wifi module
rtl8723bu 源码被放置在/source/bluetooth_wifi/
1.linux driver是淘宝店家提供。/kernel_imx/drivers/net/wireless/rtlwifi/rtl8723bu。
menuconfig配置相应的宏定义,使其被编译成m。
2.修改device/fsl/sabresd_6dq/BoardConfig.mk,添加reatlek相关信息。
/hardware/libhardware_legacy/wifi/wifi.c需要上面这些被定义的宏。
3.拷贝rtl8723b_fw和rtl8723bu_config到/system/etc/firmware/。
调试注意事项:
可通过insmod 8723bu.ko 是否成功判断内核驱动是否可用。
使用netcfg/ifconfig/iwconfig/iwlist等WiFi调试工具来验证内核驱动。
Realtek BT Android part
添加realtek BT库到hardware realtek目录,修改externel/bluetooth/bluedroid/hci/src/vendor.c,通过修改*get_vendor_lib()将realtek BT库链接到bluetooth,使得系统调用realtek的bt-vendor。
Bluetooth and wifi
realtek官方提供rlt8723驱动/source/bluetooth_wifi/realtek offical,见附件。
参照官方资料
xRealtek_Android5.0_USB_driver_Guide_Chinese.doc
Realtek_Wi-Fi_SDK_for_Android_L_5.x.pdf
wifi bug:在多次关闭和开启wifi后,不能打开wifi设备。
rtl8723bu 源码被放置在/source/bluetooth_wifi/
1.linux driver是淘宝店家提供。/kernel_imx/drivers/net/wireless/rtlwifi/rtl8723bu。
menuconfig配置相应的宏定义,使其被编译成m。
2.修改device/fsl/sabresd_6dq/BoardConfig.mk,添加reatlek相关信息。
kernel_imx/drivers/net/wireless/rtlwifi/rtl8821as/8821as.ko:system/lib/modules/8821as.ko \
...
BOARD_HOSTAPD_PRIVATE_LIB_RTL := lib_driver_cmd_rtl
BOARD_WPA_SUPPLICANT_PRIVATE_LIB_RTL := lib_driver_cmd_rtl
...
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/8723bu.ko"
WIFI_DRIVER_MODULE_NAME := "8723bu"
/hardware/libhardware_legacy/wifi/wifi.c需要上面这些被定义的宏。
3.拷贝rtl8723b_fw和rtl8723bu_config到/system/etc/firmware/。
调试注意事项:
可通过insmod 8723bu.ko 是否成功判断内核驱动是否可用。
使用netcfg/ifconfig/iwconfig/iwlist等WiFi调试工具来验证内核驱动。
调试完成后,关闭wifi相关的多余打印信息。修改/kernel_imx/drivers/net/wireless/rtlwifi/rtl8723bu/include/autoconf.h.注释掉
#defined CONFIG_DEBUG
Realtek BT Android part
添加realtek BT库到hardware realtek目录,修改externel/bluetooth/bluedroid/hci/src/vendor.c,通过修改*get_vendor_lib()将realtek BT库链接到bluetooth,使得系统调用realtek的bt-vendor。
在/device/fsl/sabresd_6dq/BoardConfig.mk中添加默认蓝牙
vendor "ro.boot.btdev=realtek"
Bluetooth and wifi
realtek官方提供rlt8723驱动/source/bluetooth_wifi/realtek offical,见附件。
参照官方资料
xRealtek_Android5.0_USB_driver_Guide_Chinese.doc
Realtek_Wi-Fi_SDK_for_Android_L_5.x.pdf
wifi bug:在多次关闭和开启wifi后,不能打开wifi设备。