[SOLVED] NanoPi Neo wireless connection

When trying to set up a wireless dongle on NanoPi Neo I ran into a few problems. I can’t get the wireless working regardless of what I try. dietpi-config seems to have some issues too.

  1. Netplug and iproute are not on dietpi by default. Therefore if you are trying to set up wifi and don’t have an internet connection then nothing works.
  2. When trying to activate the wifi through dietpi-config with ethernet internet connection, first time was to download Netplug an iproute then second try was to enable the connection. Then things stalled. ssh connection broken

Connecting to Williams
, please wait

DietPi-Services
─────────────────────────────────────────────────────
Mode: stop
Please wait…

[Ok] cron
[Ok] proftpd
[Ok] netdata

[Info] Dropping connections, please wait…

DietPi-Set_Hardware
─────────────────────────────────────────────────────
Mode: wifi (enable)
Please wait…

[Info] Please wait, enabling WiFi Modules…
[Ok] wifi enable | Completed

\

  • Restarting networking services…
    Internet Systems Consortium DHCP Client 4.3.1
    Copyright 2004-2014 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/0e:13:de:11:a2:c1
Sending on LPF/eth0/0e:13:de:11:a2:c1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
bound to 192.168.1.104 – renewal in 37631 seconds.
Error for wireless request “Set Power Management” (8B2C) :
SET failed on device wlan0 ; Operation not supported.
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:e0:4c:81:92:1d
Sending on LPF/wlan0/00:e0:4c:81:92:1d
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7


I see that this is wlan0. See below wlan1 and wlan2 are also used.


3. Log back on. iwconfig says. The ESSID and password I entered earlier now gone.
root@nanopi:~# iwconfig
lo no wireless extensions.

tunl0 no wireless extensions.

wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off

eth0 no wireless extensions.

Here it is now wlan1 that is being used.



4. 3rd try with dietpi config.
Ethernet : Available | Enabled | Connected │
│ Wifi : Available | Enabled | Disconnected

Going into wireless the SSID and Password entered earlier are there.

Try to set Country code. The currently set one is 00.
I live in Canada so tried CA
Error Message

┌───────────────┤ Error: Country Code ├───────────────┐
│ │
│ Country code (CA) could not been applied. Please │
│ check the country code and try again. │
│ │
│ │
│ │
└─────────────────────────────────────────────────────┘
OK so try USA from list
Error Message
┌───────────────┤ Error: Country Code ├───────────────┐
│ │
│ Country code (US) could not been applied. Please │
│ check the country code and try again. │
│ │

There was a message on the screen while it was setting the country code, but it was too fast to catch before the menu came back up

Why is there no country code setting for Manual IP Setup??

  1. Forget country code and see what happens with apply wifi settings.
    Connecting to Williams , please wait

DietPi-Services
─────────────────────────────────────────────────────
Mode: stop
Please wait…

[Ok] cron
[Ok] proftpd
[Ok] netdata

[Info] Dropping connections, please wait…

DietPi-Set_Hardware
─────────────────────────────────────────────────────
Mode: wifi (enable)
Please wait…

[Info] Please wait, enabling WiFi Modules…
[Ok] wifi enable | Completed

\

  • Restarting networking services…
    Internet Systems Consortium DHCP Client 4.3.1
    Copyright 2004-2014 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/0e:13:de:11:a2:c1
Sending on LPF/eth0/0e:13:de:11:a2:c1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
bound to 192.168.1.104 – renewal in 36435 seconds.
Error for wireless request “Set Power Management” (8B2C) :
SET failed on device wlan1 ; Operation not supported.
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan1/00:e0:4c:81:92:2f
Sending on LPF/wlan1/00:e0:4c:81:92:2f
Sending on Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 13
Write failed: Broken pipe
gordon@gordon-linux ~ $

Still using wlan1

Log back on.

iwconfig says:
root@nanopi:~# iwconfig
wlan2 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off

lo no wireless extensions.

tunl0 no wireless extensions.

eth0 no wireless extensions.

Now using wlan2 :thinking:

root@nanopi:~# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@nanopi:~# lsmod
Module Size Used by
rtl8192cu 61143 0
rtlwifi 45784 1 rtl8192cu
rtl8192c_common 33420 1 rtl8192cu
mac80211 358429 3 rtlwifi,rtl8192c_common,rtl8192cu
bmp085 3487 0
pcf8591 3363 0
root@nanopi:~#

dmesg says
[ 1.389396] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[ 1.395792] [rf_pm]: module power0 name vcc-wifi-33
[ 1.395824] [rf_pm]: Did not config module_power1 in sys_config
[ 1.395845] [rf_pm]: Did not config module_power2 in sys_config
[ 1.395866] [rf_pm]: Did not config module_power3 in sys_config
[ 1.395887] [rf_pm]: mod has no chip_en gpio
[ 1.395904] [rf_pm]: failed to fetch lpo_use_apclk
[ 1.395920] [rf_pm]: regulator on.
[ 1.395940] [wifi_pm]: no wifi used in configuration
[ 1.395960] [rfkill]: init no bt used in configuration
[ 1.395977] ALSA device list:
[ 1.395992] #0: sndhdmi
[ 1.397589] Freeing init memory: 328K
[ 1.479766] systemd-udevd[92]: starting version 215

Is rf_pm some power module for internal wifi on some H3 boards?

[ 13.132496] twi_start()434 - [i2c0] START can’t sendout!
[ 13.132802] twi_start()434 - [i2c0] START can’t sendout!
[ 13.133102] twi_start()434 - [i2c0] START can’t sendout!
[ 13.133261] bmp085: probe of 0-0077 failed with error -121
[ 13.263594] rtl8192cu: Chip version 0x10
[ 13.946157] EXT4-fs (mmcblk0p2): re-mounted. Opts: discard
[ 14.712441] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 14.712694] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 14.713408] usbcore: registered new interface driver rtl8192cu
[ 14.717929] ieee80211 phy0: Selected rate control algorithm ‘rtl_rc’
[ 14.720694] rtlwifi: wireless switch is on
[ 14.951409] systemd-udevd[203]: renamed network interface wlan0 to wlan2
[ 16.043395] systemd-journald[173]: Received request to flush runtime journal from PID 1
[ 16.771054] gmac0: probed
[ 16.771484] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
[ 17.820882] Adding 102396k swap on /var/swap. Priority:-1 extents:3 across:233468k SS
[ 17.966291] rtl8192cu: MAC auto ON okay!
[ 18.000330] rtl8192cu: Tx queue select: 0x05
[ 18.384658] ADDRCONF(NETDEV_UP): wlan2: link is not ready
[ 20.770270] PHY: gmac0-0:00 - Link is Up - 100/Full
[ 35.831007] twi_start()434 - [i2c0] START can’t sendout!
[ 35.831284] twi_start()434 - [i2c0] START can’t sendout!
[ 35.831564] twi_start()434 - [i2c0] START can’t sendout!

What is this above. Says it is renamed, but it is not.
[ 14.951409] systemd-udevd[203]: renamed network interface wlan0 to wlan2

Is there anything that I can update?

Gordon Williams

Hi Gordon,

Thanks for the report.

I have the same adapter and got the same results. Scanning wasn’t working for me, so replaced kernel module with one from RPi, fixed that but all other issues still remain.

Non-functional wifi modules, unable to set country code, unstable WiFi: Seems to be a common issue on all ARMbian images that we use, at the moment.

I’ll rebuild the NEO image today and re-test, hopefully the ARMbian devs have fixed those issues since then, if not, i’ll create a ticket for these issues.

Gordon,

Appears ARMbian are aware of current WiFi issues on their images: https://github.com/igorpecovnik/lib/issues/558.

As we use ARMbian as the base for NanoPi NEO image (and therefore, their kernel, firmware and modules), I can only suggest you contact ARMbian and report your issues directly with them, as it is out of our hands at the moment.

Do you use the Ubuntu or Debian image for Dietpi?

Gordon

Debian, built with ARMbian build tools.

I’ve sent you an email, but i’ll also post here.

We have created a 4.9 kernel image, wifi appears to be working, can you please test the image and let us know results?
https://github.com/Fourdee/DietPi/issues/667#issuecomment-269234187

That fixes the wifi and i2c errors.

There is an issue with software installation that I have sent you a separate message.

I think that this thread can be closed.

Thanks,
Gordon Williams