Android 7.1 wifi for Nano Fire 3
Posted: Tue Mar 31, 2020 6:19 am
Android 7.1 source has an option to build with the Realtek RTL8xxxxu driver which supports the RTL8192CU wifi USB module but I am not able to get this to work. I get the following error in the debug output.
The correct driver rtl8192cufw_TMSC.bin is being detected because if I put the USB wifi module into the Linux PC, it shows the same driver being loaded.
Error code 2 indicates no file found but I am positive this is in the correct location. I have it located in the following directory:
/system/vendor/realtek/rtlwifi
This was the default setting in the wifi_bt.mk file that was provided by FriendlyArm.
The correct driver is being loaded and trying to load the firmware but I can't see where it is actually looking as the full path is not shown.
Any ideas??
Code: Select all
[ 113.926666] usb 2-1.3: new high-speed USB device number 4 using exynos-ehci
[ 114.023333] usb 2-1.3: New USB device found, idVendor=0bda, idProduct=8176
[ 114.023333] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber
=3
[ 114.033333] usb 2-1.3: Manufacturer: Realtek
[ 114.036666] usb 2-1.3: SerialNumber: 00e04c000001
[ 114.219999] usb 2-1.3: Vendor: Realtek
[ 114.219999] usb 2-1.3: Product:
[ 114.219999] usb 2-1.3: RTL8188CU rev A (TSMC) 1T1R, TX queues 2, WiFi=1, BT=0
, GPS=0, HI PA=0
[ 114.229999] usb 2-1.3: RTL8188CU MAC: e8:4e:06:1f:f6:5c
[ 114.236666] usb 2-1.3: rtl8xxxu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bi
n
[ 114.243333] usb 2-1.3: Direct firmware load for rtlwifi/rtl8192cufw_TMSC.bin
failed with error -2
[ 114.249999] usb 2-1.3: Falling back to user helper
[ 114.259999] usb 2-1.3: request_firmware(rtlwifi/rtl8192cufw_TMSC.bin) failed
[ 114.263333] usb 2-1.3: Fatal - failed to load firmware
[ 114.266666] rtl8xxxu: probe of 2-1.3:1.0 failed with error -11
The correct driver rtl8192cufw_TMSC.bin is being detected because if I put the USB wifi module into the Linux PC, it shows the same driver being loaded.
Error code 2 indicates no file found but I am positive this is in the correct location. I have it located in the following directory:
/system/vendor/realtek/rtlwifi
This was the default setting in the wifi_bt.mk file that was provided by FriendlyArm.
Code: Select all
# ----------------------------------------------------------
# Wi-Fi
ifeq ($(BOARD_WIFI_VENDOR),ap6212)
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WLAN_DEVICE := bcmdhd
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcm43438a0.bin"
WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/fw_bcm43438a0_p2p.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcm43438a0_apsta.bin"
endif
ifeq ($(BOARD_WIFI_VENDOR),realtek)
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WLAN_DEVICE := rtl8xxxu
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
WIFI_DRIVER_MODULE_NAME := "rtl8xxxu"
WIFI_DRIVER_MODULE_PATH := "/system/vendor/realtek/rtl8xxxu.ko"
WIFI_DRIVER_MODULE_ARG := ""
WIFI_FIRMWARE_LOADER := ""
WIFI_DRIVER_FW_PATH_STA := "STA"
WIFI_DRIVER_FW_PATH_AP := "AP"
WIFI_DRIVER_FW_PATH_P2P := "P2P"
WIFI_DRIVER_FW_PATH_PARAM := "/system/vendor/realtek"
endif
# ----------------------------------------------------------
# Bluetooth
ifeq ($(BOARD_BLUETOOTH_VENDOR),broadcom)
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/friendlyelec/$(TARGET_DEVICE)/bluetooth
endif
The correct driver is being loaded and trying to load the firmware but I can't see where it is actually looking as the full path is not shown.
Any ideas??