NanoPi Neo first boot with wifi

Having issues with your DietPi installation, or, found a bug? Post it here.
Gord_W
Posts: 134
Joined: Sat Oct 24, 2015 6:30 pm

NanoPi Neo first boot with wifi

Post by Gord_W »

Hi,

I'm trying NanoPi Neo again with V145 hoping that things would now work smoothly. Unfortunately that hasn't been the case. Seems to be a problem with wifi

After copying img files to the sd card and editing dietpi.txt to use wifi and not ethernet, added wifi pw/ssid etc. And also AUTO_Install_Enable=1 with dropbear and proftp enabled. Plugged it in and got a steady green light and a repeating blue light with 2 quick flashes and a short pause.

The wifi dongle led light was not turned on and no connection made. Looking back at the sd card, the wifi stuff had been added to etc/network/interfaces so the device booted somewhat. The file system partition had also been expanded.

I replugged the nanopi a few time to see if it was a reboot issue and got same blue flashing light. :cry:

After a lot of searching around it appears you have gone back to the 3.4.x kernal from the 4.9 kernal that was working with wifi. We had a discussion about that here - http://dietpi.com/phpbb/viewtopic.php?f=11&t=1038

Does wifi work for you on Nanopi Neo?

In Dec I gave up with Nanopi as there was too many problems with wifi and ethernet working together and moved all my work to rPi 2 and 3 because I had a deadline to meet. I would now like to salvage the rPis and get the code onto the Nanopis that I bought for the purpose.

Thanks,
Gordon Williams
Gord_W
Posts: 134
Joined: Sat Oct 24, 2015 6:30 pm

Re: NanoPi Neo first boot with wifi

Post by Gord_W »

I tried the Armbian nanopineo 4.10.3-sun8i nightly build and wifi and ethernet work on that.

After booting the board connected to ethernet I used nmtui-connect to activate the wifi. Dongle is attached to the USB and that seems to be working as expected.

Gordon Williams

Edit - I should say though that wlan0 has been renamed as shown below

wlx6cfdb90a99bd Link encap:Ethernet HWaddr 6c:fd:b9:0a:99:bd
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e29f:ff2a:11fd:b451/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5017 (5.0 KB) TX bytes:1278 (1.2 KB)
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: NanoPi Neo first boot with wifi

Post by Fourdee »

Hi Gordon,
After a lot of searching around it appears you have gone back to the 3.4.x kernal from the 4.9 kernal that was working with wifi. We had a discussion about that here - viewtopic.php?f=11&t=1038
Yep, the 4.9 kernel with NanoPi Neo WiFi was excellent, really improved its stability. The issue is 4.x is under dev branch of ARMbian, regular updates via their repo/apt. When an update came out for 4.10, it broke basic USB detection. This was too unstable/unpredictable, so we reverted back to stable 3.x images.

The only issue with 3.x, WiFi isn't great, but it should be functional at limited range. Mine does give the odd "temporary delay" over SSH, but it is functional.

I'll make another 4.x dev image and put it under our "unsupported" images:
http://dietpi.com/downloads/images/no_release/

Ticket:
https://github.com/Fourdee/DietPi/issues/847
Edit - I should say though that wlan0 has been renamed as shown below
Should be fine if this does not change after boot, DietPi will pick up the active index during boot.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: NanoPi Neo first boot with wifi

Post by Fourdee »

Hi Gordon,

4.x image now available, let us know if this improves WiFi:
http://dietpi.com/downloads/images/no_r ... Jessie).7z
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Gord_W
Posts: 134
Joined: Sat Oct 24, 2015 6:30 pm

Re: NanoPi Neo first boot with wifi

Post by Gord_W »

I downloaded the NanoPi Neo (not air) and found that it was kernel 4.10.0 and not 4.10.3 which was Armbian package that I used.

I see that you created the air version yesterday, but the non-air version dates back to end of Feb.

Since I have already got the 4.10.0 flashed on the SD card, I will see it I can get it started with wifi.

Gordon Williams

Edit: So I did as in message 1 of this thread - plugged the dongle in and changed dietpi.txt to use wifi. The wifi dongle led did not light and no connection made. :(

I think 4.10.3 would be a better bet.
Gord_W
Posts: 134
Joined: Sat Oct 24, 2015 6:30 pm

Re: NanoPi Neo first boot with wifi

Post by Gord_W »

Bump

I think there is a misunderstanding. :o

Can the dietpi version for Nanopi Neo Air be used for Nanopi Neo??? I *don't* have the AIR version. What you supplied was for the AIR version.

Gordon
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: NanoPi Neo first boot with wifi

Post by Fourdee »

Gord_W wrote:Bump

I think there is a misunderstanding. :o

Gordon
Hi Gordon,

Ah yes there is, apologies. I assumed you were using Neo AiR with onboard WiFi.

On the NR (no release) 4.x image for NEO below:
http://dietpi.com/downloads/images/no_r ... Jessie).7z
apt-get upgrade / apt-get dist-upgrade should pull in the latest kernel from ARMbian repo, however, if this is not the case, let me know and i'll generate a 4.10.3+ image.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Gord_W
Posts: 134
Joined: Sat Oct 24, 2015 6:30 pm

Re: NanoPi Neo first boot with wifi

Post by Gord_W »

What I did:

1. Connected to router via cable and plugged in power
2. ssh into device
3. After clicking GPL OK, it went through update and click Ok for reboot. V147
4. Click OK for GPL again. Got Setup screen and clicked exit to get back to command prompt.
5. apt-get upgrade, tzdata upgrade yes.
6. Tested to see what kernel
root@DietPi:~# uname -a
Linux DietPi 4.10.0-sun8i #3 SMP Thu Feb 23 19:57:03 CET 2017 armv7l GNU/Linux
7. root@DietPi:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So nothing happened ....

hmm,
8. dietpi-software
9. set locale, timezone
10. went to install, nothing selected, OK anyway
11. Update & upgrade APT mode, nothing to install, then automatic reboot
12. ssh into again
13. test kernel
root@DietPi:~# uname -a
Linux DietPi 4.10.0-sun8i #3 SMP Thu Feb 23 19:57:03 CET 2017 armv7l GNU/Linux

No change.

Gordon

PS. Side note:

root@DietPi:~# cpu

─────────────────────────────────────────────────────
DietPi CPU Info
Use dietpi-config to change CPU / performance options
─────────────────────────────────────────────────────
Architecture | armv7l
Temp | 26'c | Who put me in the freezer!
Governor | ondemand
Throttle up | 50% CPU usage

Current Freq Min Freq Max Freq
CPU0 | 1008 MHz 120 MHz 1008 MHz
CPU1 | 1008 MHz 120 MHz 1008 MHz
CPU2 | 1008 MHz 120 MHz 1008 MHz
CPU3 | 1008 MHz 120 MHz 1008 MHz

CPU is not throttling back to 120 Mhz with top showing 1 cpu with 2% usage.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: NanoPi Neo first boot with wifi

Post by Fourdee »

Gord_W wrote:root@DietPi:~# uname -a
Linux DietPi 4.10.0-sun8i #3 SMP Thu Feb 23 19:57:03 CET 2017 armv7l GNU/Linux
Thanks Gordon,

Looks like 4.10.3 has not reached the ARMbian repo as an update yet. So i'll need to compile/build a new image with it:
https://github.com/Fourdee/DietPi/issues/864

I'll try and get that done today, will let you know once ready.
CPU3 | 1008 MHz 120 MHz 1008 MHz

CPU is not throttling back to 120 Mhz with top showing 1 cpu with 2% usage.
The bash script will most likely trigger ondemand to scale up clocks, due to cpu load required for the script execution. Unfortunately, there is nothing we can do to avoid that in bash AFAIK. 80%+ ondemand up scaling may do it (50% default), but will hinder system performance and response time.

Try obtaining the raw value, without script execution:

Code: Select all

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: NanoPi Neo first boot with wifi

Post by Fourdee »

Hi Gordon,

Image updated, please let me know results:
https://github.com/Fourdee/DietPi/issue ... -292521358
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply