Power & Source of Big Ideas

wifi enabling on first boot from sd card

Moderators: chensy, FATechsupport

I have been using neo air for about 9 months in a machine vision/drone application.
Initially i brought up 9 nanoPi NEO Airs, booting from sd card, with console over wifi using ssh by writing a valid wpa_supplicant.conf in the /rootfs/etc/wpa_supplicant on the sd card image. This worked like a charm.

I now need to configure some more nanoPis - but I cannot get them to come up on wifi.

The website now shows that the radio must be enabled with a straightforward 'nmcli r wifi on' command. Unfortunately, I cannot seem to get this to work on the initial boot from an sd card. I have added '/usr/bin/nmcli r wifi on' to rc.local, and of course written a valid wpa_supplicant.conf. But it is not working.

Can anyone tell me how to accomplish this? I need to be able ssh over wifi on the initial boot from sd card. I am pretty sure that the missing piece with new images is enabling wifi with the nmcli command. But how do I get this to work from the initial boot?

thanks,

seth
I did solve this. Both of the current (today is August 9, 2017) 3.4.39 images, and the 4.11.2 non eflasher image do not have wlan0 enabled. In order to do so at first boot:

For a typical dhcp served wifi lan, add these lines to rootfs/etc/network/interfaces on the bootable sd card:

Code: Select all

allow-hotplug wlan0
iface wlan0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


And add a valid wpa_supplicant.conf file in rootfs/etc/wpa_supplicant/. For most WPA2/WPA Personal networks as are typical, it will be this:

Code: Select all

network={
   ssid="YourWifiNetworkName"
   psk="YourWifiNetworkPassword"
}


The 4.11.2 eflasher image does have wlan0 enabled. It will still need a valid wpa_supplicant.conf file.
Hello,

I have the same problem.
I now used the eflasher and non-eflasher (3.4.39) .img and added a valid wpa_supplicant.conf.
It still won't connect to my router. My raspberry PI zero works the same way.
What am I doing wrong?

Thanks!

EDIT:

I have used rc.local to WIFI r on. Now it works.
You could try to disable the Network Manager and configure manually like on the NanoPi Duo:
http://wiki.friendlyarm.com/wiki/index. ... _Static_IP

Who is online

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