全志R16调通USB接口的WIFI:RTL8188CUv1.0版本.txt
来源:互联网 发布:身边低调的有钱人知乎 编辑:程序博客网 时间:2024/05/02 04:33
全志R16调通USB接口的WIFI:RTL8188CUv1.0版本.txt
2017/4/5 16:56
开发板:SC3817R
OS/SDK:Android4.4.2/ParrotV1.1
测试步骤/请眼中注意:打开WIFI之前必须将 USB接口的WIFI:RTL8188CU插入到USB1中去,否则会死机!!!!切记!
1、(如果SDK没有编译过,请跳过本次执行步骤!!!!)
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1$ cd lichee/
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun8iw5p1
Choice: 0
All available platforms:
0. android
1. dragonboard
2. linux
3. tina
Choice: 0
All available kernel:
0. linux-3.4
Choice: 0
All available boards:
0. bell-one
1. evb
2. evb-20
3. evb-30
4. evb-rtl8723bs
5. sc3813r
Choice: 3
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee$ cd linux-3.4/
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee/linux-3.4$ make ARCH=arm menuconfig
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
(其它的可以全部关闭的!!!!)
<M> Realtek 8188E USB WiFi
2、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\BoardConfig.mk
关闭这里:
#BOARD_WIFI_VENDOR := broadcom
打开这里:
# wifi and bt configuration
# 1. Wifi Configuration
# 1.1 realtek wifi support
# 1.1 realtek wifi configuration
BOARD_WIFI_VENDOR := realtek
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 := rtl8188eu
BOARD_WLAN_DEVICE := rtl8188eu
#SW_BOARD_USR_WIFI := rtl8189es
#BOARD_WLAN_DEVICE := rtl8189es
#SW_BOARD_USR_WIFI := rtl8723bs
#BOARD_WLAN_DEVICE := rtl8723bs
endif
3、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\init.sun8i.rc
关闭这里:
#insmod /system/vendor/modules/bcm_btlpm.ko
## bluetooth
# # UART device
# chmod 0660 /dev/ttyS1
# chown bluetooth net_bt_stack /dev/ttyS1
#
# # 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 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
## 2. broadcom wifi service
## 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot
#
## 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot
打开这里:
# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/logwrapper /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 \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
#rtl8189es cob set macaddr
#service engsetmacaddr /system/bin/setmacaddr /data/wifimac.txt
# class main
# oneshot
4、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\astar_evb30.mk
关闭这里:
# wifi features
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 \
#frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
# ap6181/6210/6330 sdio wifi fw and nvram
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6181/device-bcm.mk)
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6212/device-bcm.mk)
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6330/device-bcm.mk)
#PRODUCT_PACKAGES += bt_vendor.conf \
# libbt-client-api \
# com.broadcom.bt \
# com.broadcom.bt.xml \
# com.dsi.ant.antradio_library \
# com.dsi.ant.antradio_library.xml \
# AntHalService \
# ANTRadioService
PRODUCT_PACKAGES += com.dsi.ant.antradio_library \
com.dsi.ant.antradio_library.xml \
AntHalService \
ANTRadioService
#PRODUCT_PACKAGES += Bluetooth
5、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\overlay\frameworks\base\core\res\res\values\config.xml
关闭这里:
<!-- List of regexpressions describing the interface (if any) that represent tetherable
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<!-- default: disable Bluetooth PAN feature -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bt-pan"</item>
</string-array>
Z:\home\wwt\rtl8188eu_parrotv1.1\lichee\tools\pack\chips\sun8iw5p1\configs\evb-30\sys_config.fex
关闭这里:
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
;wakeup_src_bt = port:PL09<4><default><default><0>
bb_wake_ap = port:PL02<4><default><default><0>
[usbc1]
usb_used = 1
usb_drv_vbus_gpio = port:PD12<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
[rf_para]
module_num = 3
module_power1 = "axp22_dldo1"
module_power1_vol = 3300000
module_power2 = "axp22_dldo2"
module_power2_vol = 3300000
module_power3 = "axp22_aldo1"
module_power3_vol = 3300000
power_switch =
chip_en =
lpo_use_apclk = "losc_out"
[bt_para]
bt_used = 0
;bt_uart_id = 1
;bt_rst_n = port:PL08<1><default><default><0>
;bt_wake = port:PL10<1><default><default><0>
;bt_host_wake = port:PL09<4><default><default><0>
;bt_host_wake_invert = 0
2017/4/5 16:56
开发板:SC3817R
OS/SDK:Android4.4.2/ParrotV1.1
测试步骤/请眼中注意:打开WIFI之前必须将 USB接口的WIFI:RTL8188CU插入到USB1中去,否则会死机!!!!切记!
1、(如果SDK没有编译过,请跳过本次执行步骤!!!!)
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1$ cd lichee/
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun8iw5p1
Choice: 0
All available platforms:
0. android
1. dragonboard
2. linux
3. tina
Choice: 0
All available kernel:
0. linux-3.4
Choice: 0
All available boards:
0. bell-one
1. evb
2. evb-20
3. evb-30
4. evb-rtl8723bs
5. sc3813r
Choice: 3
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee$ cd linux-3.4/
rootroot@cm-System-Product-Name:/home/wwt/rtl8188eu_parrotv1.1/lichee/linux-3.4$ make ARCH=arm menuconfig
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
(其它的可以全部关闭的!!!!)
<M> Realtek 8188E USB WiFi
2、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\BoardConfig.mk
关闭这里:
#BOARD_WIFI_VENDOR := broadcom
打开这里:
# wifi and bt configuration
# 1. Wifi Configuration
# 1.1 realtek wifi support
# 1.1 realtek wifi configuration
BOARD_WIFI_VENDOR := realtek
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 := rtl8188eu
BOARD_WLAN_DEVICE := rtl8188eu
#SW_BOARD_USR_WIFI := rtl8189es
#BOARD_WLAN_DEVICE := rtl8189es
#SW_BOARD_USR_WIFI := rtl8723bs
#BOARD_WLAN_DEVICE := rtl8723bs
endif
3、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\init.sun8i.rc
关闭这里:
#insmod /system/vendor/modules/bcm_btlpm.ko
## bluetooth
# # UART device
# chmod 0660 /dev/ttyS1
# chown bluetooth net_bt_stack /dev/ttyS1
#
# # 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 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
## 2. broadcom wifi service
## 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot
#
## 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot
打开这里:
# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/logwrapper /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 \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
#rtl8189es cob set macaddr
#service engsetmacaddr /system/bin/setmacaddr /data/wifimac.txt
# class main
# oneshot
4、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\astar_evb30.mk
关闭这里:
# wifi features
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 \
#frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
# ap6181/6210/6330 sdio wifi fw and nvram
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6181/device-bcm.mk)
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6212/device-bcm.mk)
#$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6330/device-bcm.mk)
#PRODUCT_PACKAGES += bt_vendor.conf \
# libbt-client-api \
# com.broadcom.bt \
# com.broadcom.bt.xml \
# com.dsi.ant.antradio_library \
# com.dsi.ant.antradio_library.xml \
# AntHalService \
# ANTRadioService
PRODUCT_PACKAGES += com.dsi.ant.antradio_library \
com.dsi.ant.antradio_library.xml \
AntHalService \
ANTRadioService
#PRODUCT_PACKAGES += Bluetooth
5、
Z:\home\wwt\rtl8188eu_parrotv1.1\android\device\softwinner\astar-evb30\overlay\frameworks\base\core\res\res\values\config.xml
关闭这里:
<!-- List of regexpressions describing the interface (if any) that represent tetherable
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<!-- default: disable Bluetooth PAN feature -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
<item>"bt-pan"</item>
</string-array>
Z:\home\wwt\rtl8188eu_parrotv1.1\lichee\tools\pack\chips\sun8iw5p1\configs\evb-30\sys_config.fex
关闭这里:
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
;wakeup_src_bt = port:PL09<4><default><default><0>
bb_wake_ap = port:PL02<4><default><default><0>
[usbc1]
usb_used = 1
usb_drv_vbus_gpio = port:PD12<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
[rf_para]
module_num = 3
module_power1 = "axp22_dldo1"
module_power1_vol = 3300000
module_power2 = "axp22_dldo2"
module_power2_vol = 3300000
module_power3 = "axp22_aldo1"
module_power3_vol = 3300000
power_switch =
chip_en =
lpo_use_apclk = "losc_out"
[bt_para]
bt_used = 0
;bt_uart_id = 1
;bt_rst_n = port:PL08<1><default><default><0>
;bt_wake = port:PL10<1><default><default><0>
;bt_host_wake = port:PL09<4><default><default><0>
;bt_host_wake_invert = 0
0 0
- 全志R16调通USB接口的WIFI:RTL8188CUv1.0版本.txt
- 全志R16调通USB接口的WIFI:RTL8188CU(分色排版)V1.0版本
- UNICODE 全志R16平台TINAV2.0下的USB接口摄像头的配置
- 全志R16的tinav2.1系统的AP6212A1版本和A0版本兼容(WIFI通了)
- 全志R16平台调通AP6181单WIFI模块v1.0.txt
- 全志R16的开发板SC3817匹配AP6212A1(WIFI+BT模块)V1.0
- 全志R16支持USB摄像头
- UNICODE 全志R16平台TINAV2.0下的CSI接口摄像头ov5640的配置
- 全志R16平台的TINAV2.0系统下的WIFI连接和SSH连接(AP6212)
- 全志R16的tinav2.1下调通AP6181的步骤.txt
- 全志R16的TINAV2.0平台的cameratest程序精简版本V1.1(cameratest_x17H全局变量成功.c)
- 全志R16的TINAV2.0平台的cameratest程序精简版本V1.3(按g之后抓图到数组)
- 通过全志R16平台TINAV2.1下的LCD显示BMP图片(分色排版)V1.0版本
- 全志R16调通AP6181(分色排版)V1.0
- 全志R16平台的GPIO操作
- 全志R16平台SPI0接口的验证(分色排版)
- 全志R16平台SPI0接口的验证V1.1(分色排版)
- UNICODE 全志R16的tinav2.1系统增加opencv3.1.0的库的步骤2完成.txt(草稿)
- C#枚举类型的常用操作总结
- 判断某个窗口是否是活动窗口(当前正在使用、操作的窗口)
- iOS开发:整理UITextField属性的基本用法(部分)
- tcp socket文件句柄泄漏
- 交换瓶子
- 全志R16调通USB接口的WIFI:RTL8188CUv1.0版本.txt
- boost 时间与日期处理
- 三种编程命名规则(匈牙利法,小驼峰法,大驼峰法)
- java操作数据 “ 读写 ” excle文件
- Excel Sheet Column Title
- 正则表达式截取字符串
- itunes找不到设备
- js定时器的时间最小值-setTimeout、setInterval
- cocos2d-x 提升篇 (18) 碰到的一些问题