티스토리 뷰

OS/NanoPi

NanoPi M1 Plus

파란크리스마스 2017. 3. 24. 12:20
728x90

출처

x윈도우 설치

$ sudo apt-get install lubuntu-desktop
$ sudo shutdown -r now

eMMC에 OS 복사하기

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

eMMC 용량 확인

$ sudo fdisk -l
Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 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: 0x36acac02
 
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       49152   131071    81920   40M 83 Linux
/dev/mmcblk0p2      131072 31116287 30985216 14.8G 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
Disklabel type: dos
Disk identifier: 0x3794dafa
 
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk1p1       49152   131071    81920   40M 83 Linux
/dev/mmcblk1p2      131072 15269887 15138816  7.2G 83 Linux
 
 
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 메모리를 제거하고 재부팅

$ sudo dd if=nanopi-m1-plus_friendlycore-xenial_4.14.52_20180628.img of=/dev/mmcblk1 bs=10MB
389+1 records in
389+1 records out
3899999232 bytes (3.9 GB, 3.6 GiB) copied, 511.303 s, 7.6 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

IP 확인 (eflasher 에서)

# ip addr

add-apt-repository 명령이 없는 경우

# apt-get install python-software-properties
# apt-get install software-properties-common

jre repository 주소 추가

# add-apt-repository ppa:webupd8team/java
# apt-get update

JDK 1.7 설치

# apt-get install openjdk-7-jre  openjdk-7-jdk

JDK 1.8 설치

출처 : Installing OpenJDK 8 and Tomcat 8 on Debian Jessie

# vi /etc/apt/sources.list

내용추가

# Backport Testing on stable
# JDK 8
deb http://ftp.de.debian.org/debian jessie-backports main

jre 설치

# apt install -t jessie-backports  openjdk-8-jre-headless ca-certificates-java
댓글
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
글 보관함