티스토리 뷰

OS/NanoPi

NanoPi NEO Air

파란크리스마스 2017. 3. 21. 23:41
728x90

NanoPi NEO Air

출처 : NanoPi NEO Air

시리얼 연결

  • Debug Port(UART0)

RX | TX | 5v | GND

터미널 연결

기본 로그인 아이디, 패스워드

"root" / "fa"

Wifi 설정

# vi /etc/wpa_supplicant/wpa_supplicant.conf 

wpa_supplicant.conf

network={
        ssid="ssid1"
        psk="YourWiFiPassword"
}

network={
        ssid="ssid2"
        psk="YourWiFiPassword"
}

무선랜카드 다시 시작

# ifdown wlan0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
 
Listening on LPF/wlan0/94:a1:a2:94:d1:a0
Sending on   LPF/wlan0/94:a1:a2:94:d1:a0
Sending on   Socket/fallback
DHCPRELEASE on wlan0 to 192.168.0.1 port 67 (xid=0x2f0e629b)
# ifup wlan0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
 
Listening on LPF/wlan0/94:a1:a2:94:d1:a0
Sending on   LPF/wlan0/94:a1:a2:94:d1:a0
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0xc921c22e)
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 (xid=0xc921c22e)
DHCPREQUEST of 192.168.0.59 on wlan0 to 255.255.255.255 port 67 (xid=0x2ec221c9)
DHCPOFFER of 192.168.0.59 from 192.168.0.1
DHCPACK of 192.168.0.59 from 192.168.0.1
bound to 192.168.0.59 -- renewal in 2738 seconds.

패키지 업데이트

# apt-get update

Bluetooth

# apt-get install bluetooth bluez obexftp openobex-apps python-gobject ussp-push time bc

How to burn Linux image to eMMC

출처 : How to burn Linux image to eMMC
bpi-copy command

# fdisk -l
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbac8c0ae
 
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       49152   131071    81920   40M 83 Linux
/dev/mmcblk0p2      131072 15523839 15392768  7.3G 83 Linux
 

Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 

Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 

Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

이미지 복원

이미지 복원이 완료되면 SD 메모리를 제거하고 재부팅

# dd if=nanopi-air-ubuntu-core-qte-sd4g-20170220.img of=/dev/mmcblk1 bs=10MB
389+1 records in
389+1 records out
3899999232 bytes (3.9 GB, 3.6 GiB) copied, 346.862 s, 11.2 MB/s

OpenJDK 1.8 설치

# apt-get install openjdk-8-jdk

JAVA_HOME 환경변수 추가

# vi /etc/profile

내용 추가 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함