NanoPi NEO Air


Essentials You Need

Before starting to use your NanoPi NEO AIR get the following items ready

  • NanoPi NEO AIR
  • microSD Card/TFCard: Class 10 or Above, minimum 8GB SDHC
  • microUSB power. A 5V/2A power is a must
  • A Host computer running Ubuntu 16.04 64 bit system
  •  USB to Serial conversion board 


Install OS

Refer: http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Install_OS

Boot from eMMC

  • Extract the eflasher Image and win32diskimager.rar files. Insert a TF card(at least 4G) into a Windows PC and run the win32diskimager utility as administrator. On the utility's main window select your TF card's drive, the wanted image file and click on "write" to start flashing the TF card.
  • Insert this card into your board's BOOT slot and power on (with a 5V/2A power source). If the green LED is on and the blue LED is blinking this indicates your board has successfully booted.
  • Connect the board to an HDMI monitor or an LCD and a USB mouse, and select an OS to start installation.
Note: use "etcher" to flash the TF card in Linux OS.



Serial Configure

Secure CRT Configure:

 Baud rate: 115200, Data rate: 8, Stop bit 1


Please make sure RTS/CTS is not checked, the input is not allowed if checked.


If everything works fine, you can see this:


FriendlyCore User Accounts

Non-root User:

  User Name: pi
  Password: pi

Root:

 User Name: root
 Password: fa

npi-config

The npi-config is a commandline utility which can be used to initialize system configurations such as user password, system language, time zone, Hostname, SSH switch , Auto login and etc. Type the following command to run this utility.

Network Config

Search nearby WiFi network

sudo iwlist wlan0 scanning | grep "ESSID"

I established a Mobile hotspot on Win10. However, my ESSID is not enumerated by scanning.

 

Therefore, you need to change band rate to 2.5GHZ.

iwconfig

Config wlan0 ESSID

sudo iwconfig wlan0 essid mywifi

iwconfig

NAME
       iwconfig - configure a wireless network interface

SYNOPSIS
       iwconfig [interface]
       iwconfig interface [essid X] [nwid N] [mode M] [freq F]
                          [channel C][sens S ][ap A ][nick NN ]
                          [rate R] [rts RT] [frag FT] [txpower T]
                          [enc E] [key K] [power P] [retry R]
                          [modu M] [commit]
       iwconfig --help
       iwconfig --version


List all the interfaces

ifconfig -a

Network Interface Config

/etc/network/interfaces

pi@NanoPi-NEO-Air:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "mywifi"
wpa-psk "88888888"

wpasupplicant

Refer to:

wpa_supplicant 配置与应用, https://www.cnblogs.com/lidabo/p/5062204.html


Encounter this error when connecting wlan:

pi@NanoPi-NEO-Air:~$ sudo iwconfig wlan0 essid "ESSID-DEFINE"
pi@NanoPi-NEO-Air:~$ sudo iwconfig wlan0 key "ladf;jasf;"
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.

Solved:

Use "wpasupplicant Software:

#wpa_passphrase ESSID PWD > xxx.conf
#wpa_supplicant -B -i wlan0 -Dwext -c ./xxx.conf
#iwconfig wlan0
#dhclient wlan0

wpa_cli

Refer:

wpa_supplicant及wpa_cli使用方法,  https://segmentfault.com/a/1190000011579147


Install packages

Update Packages:

pi@NanoPi-NEO-Air:~$ sudo  apt-get update

Install C/C++ Compiler

$ sudo apt-get install build-essential manpages-dev

OpenCV Dependences

[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev


Install Cross Compiler for Qt

Download cross compiler:

http://wiki.friendlyarm.com/wiki/index.php?title=How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards&redirect=no

chmod 755 ./install.sh
sudo ./install.sh

How do I cross-compile the kernel on a Ubuntu host?

Refer to

https://raspberrypi.stackexchange.com/questions/192/how-do-i-cross-compile-the-kernel-on-a-ubuntu-host

First, we need to install the required prerequisites. I assume you have sudo access.

sudo apt-get install git ncurses-dev make gcc-arm-linux-gnueabi

We first need to move the config file by running

cp arch/arm/configs/bcmrpi_cutdown_defconfig .config

Then configure the kernel build

make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- oldconfig

Optional: Customise the build using menuconfig

make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig

Then run the compilation

make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k

References:

  1. NanoPi NEO Air/zh,   http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air/zh#.E5.87.86.E5.A4.87.E5.B7.A5.E4.BD.9C_2
  2. NanoPi-NEO-AIR ROM, doc, and tools, https://pan.baidu.com/s/1kUMRucf#list/path=%2FNanoPi-NEO-AIR%2Fofficial-ROMs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值