Power & Source of Big Ideas

WiFi on NanoFire3 - anyone got it working?

Moderators: chensy, FATechsupport

Has anyone been able to get a USB WiFi module to work with the NanoFire3 boards?

According to the FriendlyArm Wiki it supports a number of devices but I have tried all of them and nothing works.

I have even tried to build into the kernel and Android OS the drivers but it doesn't work.

Looks like my investment in the NanoFire3 was a waste of time and money unless I can get this to work.
Hi,
Which model of usb wifi do you use? We tested the following types:
Index Model
1 RTL8188CUS/8188EU 802.11n WLAN Adapter
2 RT2070 Wireless Adapter
3 RT2870/RT3070 Wireless Adapter
4 RTL8192CU Wireless Adapter
5 mi WiFi mt7601
6 5G USB WiFi RTL8821CU
7 5G USB WiFi RTL8812AU

Thank you~
I have tried many of them. I am trying just now with an RTL8192CU based module as that is the one I have added the Kernel drivers for.

When I checked the Kernel drivers, there were no WiFi drivers except for the one used on the NanoPC T3 Plus. I am not using your pre-built image but instead building from your source. I also did try your pre-built image but it still does not work.

I have had to modify the kernel and the Android OS to add the drivers but Android still does not correctly associate the USB module with WiFi.

I see the following in DMESG output so I know the module is being detected on the USB port.

Code: Select all

<7>[    1.680000] usb 1-1.3: default language 0x0409
<7>[    1.680000] usb 1-1.3: udev 3, busnum 1, minor = 2
<6>[    1.680000] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=8179
<6>[    1.680000] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[    1.688000] usb 1-1.3: Product: 802.11n NIC
<6>[    1.692000] usb 1-1.3: Manufacturer: Realtek
<6>[    1.696000] usb 1-1.3: SerialNumber: 3CA31503056C
<7>[    1.700000] usb 1-1.3: usb_probe_device
<7>[    1.700000] usb 1-1.3: configuration #1 chosen from 1 choice
<7>[    1.700000] usb 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)


And further down I see this for the wifi configuration:

Code: Select all

<7>[  144.304000] dhd_module_init: in
<7>[  144.304000] ======== bcm_wlan_set_plat_data ========
<7>[  144.304000] host_oob_irq: 187
<7>[  144.304000] host_oob_irq_flags = 414
<7>[  144.304000] dhd_wifi_platform_load: Enter
<7>[  144.304000] Power-up adapter 'DHD generic adapter'
<7>[  144.304000] wifi_platform_set_power = 1
<7>[  144.304000] ======== PULL WL_REG_ON HIGH! ========
<7>[  144.304000] wifi_pm: bcmdhd: 1
<7>[  144.620000] wifi_platform_bus_enumerate device present 1
<3>[  145.656000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
<7>[  145.820000] failed to power up DHD generic adapter, 1 retry left
<7>[  145.848000] wifi_platform_set_power = 0
<7>[  145.848000] ======== PULL WL_REG_ON LOW! ========
<7>[  145.848000] wifi_pm: bcmdhd: 0
<7>[  145.960000] wifi_platform_bus_enumerate device present 0
<3>[  146.660000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
<3>[  147.664000] dw_mmc dw_mmc.1: Data0: Never released by cmd0
<3>[  148.668000] dw_mmc dw_mmc.1: Data0: Never released by cmd8
<3>[  149.672000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  150.680000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  151.688000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  152.692000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  153.700000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  154.704000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  155.708000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  156.712000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  157.716000] dw_mmc dw_mmc.1: Data0: Never released by cmd1
<7>[  157.716000] failed to power up DHD generic adapter, max retry reached**
<7>[  157.716000] unregister wifi platform drivers
<7>[  157.716000] wifi_platform_bus_enumerate device present 0
<7>[  157.716000] dhd_module_init: Failed to load the driver, try cnt 1
<7>[  157.716000] ======== bcm_wlan_set_plat_data ========
<7>[  157.716000] host_oob_irq: 187
<7>[  157.716000] host_oob_irq_flags = 414
<7>[  157.716000] dhd_wifi_platform_load: Enter
<7>[  157.716000] Power-up adapter 'DHD generic adapter'
<7>[  157.716000] wifi_platform_set_power = 1
<7>[  157.716000] ======== PULL WL_REG_ON HIGH! ========
<7>[  157.716000] wifi_pm: bcmdhd: 1
<7>[  158.032000] wifi_platform_bus_enumerate device present 1
<3>[  159.068000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
<7>[  159.232000] failed to power up DHD generic adapter, 1 retry left
<7>[  159.260000] wifi_platform_set_power = 0
<7>[  159.260000] ======== PULL WL_REG_ON LOW! ========
<7>[  159.260000] wifi_pm: bcmdhd: 0
<7>[  159.376000] wifi_platform_bus_enumerate device present 0
<3>[  160.076000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
<3>[  161.080000] dw_mmc dw_mmc.1: Data0: Never released by cmd0
<3>[  162.084000] dw_mmc dw_mmc.1: Data0: Never released by cmd8
<3>[  163.088000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  164.092000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  165.096000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  166.104000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
<3>[  167.108000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  168.116000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  169.124000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  170.128000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
<3>[  171.132000] dw_mmc dw_mmc.1: Data0: Never released by cmd1
<7>[  171.132000] failed to power up DHD generic adapter, max retry reached**
<7>[  171.132000] unregister wifi platform drivers
<7>[  171.132000] wifi_platform_bus_enumerate device present 0
Will the Raspberry Pi USB WIFI module with the BCM43438 chipset work with the NanoFire3 drivers using the same one that drives the NanoPC T3 Plus? I get the following in the debug output when I plug this in.

Code: Select all

[    5.636000] dw_mmc dw_mmc.1: Data0: Never released by cmd0
[    6.644000] dw_mmc dw_mmc.1: Data0: Never released by cmd8
[    7.652000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
[    8.660000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
[    9.672000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
[   10.676000] dw_mmc dw_mmc.1: Data0: Never released by cmd5
[   11.684000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
[   12.688000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
[   13.696000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
[   14.704000] dw_mmc dw_mmc.1: Data0: Never released by cmd55
[   15.708000] dw_mmc dw_mmc.1: Data0: Never released by cmd1
chensy wrote:
Hi,
Which model of usb wifi do you use? We tested the following types:
Index Model
1 RTL8188CUS/8188EU 802.11n WLAN Adapter
2 RT2070 Wireless Adapter
3 RT2870/RT3070 Wireless Adapter
4 RTL8192CU Wireless Adapter
5 mi WiFi mt7601
6 5G USB WiFi RTL8821CU
7 5G USB WiFi RTL8812AU

Thank you~


I have tried to use your existing images and neither Android 5 or 7 detect my WiFi USB module. I have tried RTL8188EU and RTL8192CU modules and nothing works. Which OS did you test with above?

I tried to build the Android OS with support for the RTL8192CU but it does not work. I admit that I am not 100% familiar yet on how to add this to the OS but I am learning. The Linux kernel includes the RTL8192CU drivers and I managed to create the .ko module file, and add this to the vendor prebuilt files and install to /system/lib/modules but nothing works.

I would appreciate it if you could create a Wiki entry on how to add this support to the source files.

PS. I looked in /system/lib/modules for the default images but there are no .ko files for the above wifi modules. Where are the files for these stored?

Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 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 26 guests