Power & Source of Big Ideas

Android 7.1 wifi for Nano Fire 3

Moderators: chensy, FATechsupport

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.

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??
I shuuld that I set the Realtek as the wifi vendor in wfi_bt_config.mk

Code: Select all

#BOARD_WIFI_VENDOR := ap6212
BOARD_WIFI_VENDOR := realtek
BOARD_BLUETOOTH_VENDOR := broadcom

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests