NANOPI NEO-AIR WIFI IS NOT WORKING

hj park
I tested the below guideline found on wiki but I can't get link up. (no
ipaddr from ipconfig wlan0)

==========================================================================
Insert a TF card with eflasher to a PC running Ubuntu and make the
following changes in the etc/wpa_supplicant/wpa_supplicant.conf file under
the rootfs section:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="YOUR-WIFI-ESSID"
        psk="YOUR-WIFI-PASSWORD"
}
Note: the "YOUR-WIFI-ESSID" and "YOUR-WIFI-PASSWORD" need to be replaced
with your actual ESSID and password.
Save, exit and insert the TF card to your AIR. After power on your AIR and
the blue LED is blinking for one minute you will be able to check AIR's IP
address.
===========================================================================


I think that wifi driver is working because I can scan wifi networks like
below.. but.. it is strange why the network link is not going up.
if you have any reason, pls let me know..


=============================================
root@FriendlyARM:~# sudo iwlist wlan0 scan                                 
    
sudo: unable to resolve host FriendlyARM                                   
    
wlan0     Scan completed :                                                 
    
          Cell 01 - Address: 20:C0:6D:98:A2:F0                             
    
                    Channel:11                                             
    
                    Frequency:2.462 GHz (Channel 11)                       
    
                    Quality=15/70  Signal level=-95 dBm                    
    
                    Encryption key:on                                      
    
                    ESSID:"SC Pub 2.4G"                                    
    
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s    
    
                              18 Mb/s; 36 Mb/s; 54 Mb/s                    
    
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s            
    
                    Mode:Master                                            
    
                    Extra:tsf=00000000c098dac1                             
    
                    Extra: Last beacon: 10880ms ago                        
    
                    IE: Unknown: 000B53432050756220322E3447                
    
                    IE: Unknown: 010882848B961224486C                      
    
                    IE: Unknown: 03010B                                    
    
                    IE: Unknown: 32040C183060                              
    
                    IE: Unknown: 33082001020304050607                      
    
                    IE: Unknown: 33082105060708090A0B                      
    
                    IE: Unknown: 0505000100000A                            
    
                    IE: Unknown:
DD310050F204104A0001101044000102104700102880280
                    IE: Unknown: 2A0100                                    
    
                    IE: Unknown:
2D1AEE1117FFFF0000010000000000000000000000000C0
                    IE: Unknown:
3D160B07050000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1                        
    
                        Group Cipher : CCMP                                
    
                        Pairwise Ciphers (1) : CCMP                        
    
                        Authentication Suites (1) : PSK                    
    
                    IE: Unknown:
DD180050F2020101000003A4000027A4000042435E00620
                    IE: Unknown: 0B0507003F127A                            
    
                    IE: Unknown: DD07000C4307000000                        
    
          Cell 02 - Address: 00:26:66:D4:39:FC                             
    
                    Channel:2                                              
    
                    Frequency:2.417 GHz (Channel 2)                        
    
                    Quality=13/70  Signal level=-97 dBm                    
    
                    Encryption key:on                                      
    
                    ESSID:"core"                                           
    
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s    
    
                              9 Mb/s; 12 Mb/s; 18 Mb/s                     
    
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s           
    
                    Mode:Master                                            
    
                    Extra:tsf=00000000c13dc575                             
    
                    Extra: Last beacon: 70ms ago                           
    
                    IE: Unknown: 0004636F7265                              
    
                    IE: Unknown: 010882848B960C121824                      
    
                    IE: Unknown: 030102                                    
    
                    IE: Unknown: 050400030000                              
    
                    IE: Unknown: 2A0104                                    
    
                    IE: Unknown: 32043048606C                              
    
                    IE: Unknown:
2D1A6E181EFFFF000000000000000000000000000000000
                    IE: Unknown:
3D160205000000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1                        
    
                        Group Cipher : CCMP                                
    
                        Pairwise Ciphers (1) : CCMP                        
    
                        Authentication Suites (1) : PSK                    
    
                    IE: Unknown:
DD180050F2020101800003A4000027A4000042435E00620
                    IE: Unknown:
DD1E00904C336E181EFFFF0000000000000000000000000
                    IE: Unknown:
DD1A00904C3402050000000000000000000000000000000
                    IE: Unknown: DD0600E04C020160                          
    
                    IE: Unknown: DD0E0050F204104A0001101044000102          
    
          Cell 03 - Address: 20:C0:6D:98:A2:F1                             
    
                    Channel:11                                             
    
                    Frequency:2.462 GHz (Channel 11)                       
    
                    Quality=14/70  Signal level=-96 dBm                    
    
                    Encryption key:on                                      
    
                    ESSID:"SC Pub 2.4G Free"                               
    
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s    
    
                              18 Mb/s; 36 Mb/s; 54 Mb/s                    
    
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s            
    
                    Mode:Master                                            
    
                    Extra:tsf=00000000bfdd20ff                             
    
                    Extra: Last beacon: 23180ms ago                        
    
                    IE: Unknown: 001053432050756220322E34472046726565      
    
                    IE: Unknown: 010882848B961224486C                      
    
                    IE: Unknown: 03010B                                    
    
                    IE: Unknown: 32040C183060                              
    
                    IE: Unknown: 33082001020304050607                      
    
                    IE: Unknown: 33082105060708090A0B                      
    
                    IE: Unknown: 050400010010                              
    
                    IE: Unknown: 2A0100                                    
    
                    IE: Unknown:
2D1AEE1117FFFF0000010000000000000000000000000C0
                    IE: Unknown:
3D160B07050000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1                        
    
                        Group Cipher : CCMP                                
    
                        Pairwise Ciphers (1) : CCMP                        
    
                        Authentication Suites (1) : PSK                    
    
                    IE: Unknown:
DD180050F2020101000003A4000027A4000042435E00620
                    IE: Unknown: 0B05070049127A                            
    
                    IE: Unknown: DD07000C4307000000                        
    
                                                                           
    
root@FriendlyARM:~#

davef
What does /etc/hostname say?

hj park
root@FriendlyARM:~# cat /etc/hostname                                      
    
FriendlyARM                                                                


Why do you ask hostname?

davef
It was the only thing that came to mind.  Maybe it was incorrect or spelt
differently.

stuxnet
I've had the same issue as mentioned by user: hj park

I booted up a ubuntu computer, touched/edited the wpa_supplicant.conf in
the correct folder. Nothing, wont connect.

The wifi is also working since:
sudo iwlist wlan0 scan

command lists all nearby ssids. Whats the solution to this? Why are the
docs for this board on the FriendlyArm wiki not correct?

stuxnet
The culprit/fix for this issue, is that following the directions found
here:

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Get_Started

to get the wifi running by altering the wpa_supplicant.conf from within an
Ubuntu environment, you have to be running off FriendlyArm's
nanopi-air-eflasher-sd8g.img

NOT the base image, nanopi-air-core-qte-sd4g.img

To be fair it does mention this in the provided wiki link, however only
briefly and not enough to make it seem required and limited to the eflasher
image.