출처





OS 설치
OS 다운로드 - Orange Pi Zero 2+ H5
부팅후 계정 설정
Ubuntu 16.04.3 LTS orangepizeroplus2 ttyS0
orangepizeroplus2 login: root
Password: [1234]
You are required to change your password immediately (root enforced)
Changing password for root.
(current) UNIX password: [1234]
Enter new UNIX password: [orangepi]
Retype new UNIX password: [orangepi]
___ ____ _ _____ ____ _ ____
/ _ \| _ \(_) |__ /___ _ __ ___ | _ \| |_ _ ___ |___ \
| | | | |_) | | / // _ \ '__/ _ \ | |_) | | | | / __| __) |
| |_| | __/| | / /| __/ | | (_) | | __/| | |_| \__ \ / __/
\___/|_| |_| /____\___|_| \___/ |_| |_|\__,_|___/ |_____|
Welcome to ARMBIAN 5.34.171121 nightly Ubuntu 16.04.3 LTS 4.13.14-sunxi64
System load: 0.42 0.12 0.04 Up time: 0 min
Memory usage: 8 % of 482MB IP:
CPU temp: 27°C
Usage of /: 4% of 29G
[ General system configuration (beta): armbian-config ]
New to Armbian? Check the documentation first: https://docs.armbian.com
You are using an Armbian nightly build meant only for developers to provide
constructive feedback to improve build system, OS settings or user experience.
If this does not apply to you, STOP NOW!. Especially don't use this image for
daily work since things might not work as expected or at all and may break
anytime with next update. YOU HAVE BEEN WARNED!
This image is provided AS IS with NO WARRANTY and NO END USER SUPPORT!.
Creating a new user account. Press <Ctrl-C> to abort
Please provide a username (eg. your forename): pi
Trying to add user pi
Adding user `pi' ...
Adding new group `pi' (1000) ...
Adding new user `pi' (1000) with group `pi' ...
Creating home directory `/home/pi' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: [orangepi]
Retype new UNIX password: [orangepi]
passwd: password updated successfully
Changing the user information for pi
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
Dear pi, your account pi has been created and is sudo enabled.
Please use this account for your daily work from now on.
root@orangepizeroplus2:~#
Wifi 설정
armbian 와이파이 설정
출처 : 오렌지파이 제로 무선인터넷 설정 1.2 암비안 와이파이 설정
$ sudo nmtui



eMMC os 설치
출처 : #Test: Orange Pi Plus 2e: unpacking and installing Armbian on eMMC memory • DIY Projects
$ sudo nand-sata-install








XFCE 4.x Desktop 설치
$ su -
# apt-get purge xorg lightdm
# apt-get autoremove
# apt-get -y install xorg lightdm xfce4 tango-icon-theme gnome-icon-theme
JDK 설치
출처 : Install Java 8 on Armbian (Orange Pi Lite or higher) • DIY Projects
저장소 추가
$ sudo add-apt-repository ppa:webupd8team/java
추가한 저장소 반영
$ sudo apt-get update
JDK 설치
$ sudo apt-get install oracle-java8-installer
JAVA_HOME 환경변수 추가
$ sudo vi /etc/profile
내용 추가 export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
JDK 설치 확인
$ $JAVA_HOME/bin/java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) Client VM (build 25.151-b12, mixed mode)
SD 추가
출처 : Setting up the bootable SD card - Orange Pi
디스크 확인
$ sudo fdisk -l
Disk /dev/mmcblk2: 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: 0x2e3d2df2
Device Boot Start End Sectors Size Id Type
/dev/mmcblk2p1 8192 15117183 15108992 7.2G 83 Linux
Disk /dev/mmcblk2boot1: 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/mmcblk2boot0: 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/zram0: 60.3 MiB, 63270912 bytes, 15447 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zram1: 60.3 MiB, 63270912 bytes, 15447 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zram2: 60.3 MiB, 63270912 bytes, 15447 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zram3: 60.3 MiB, 63270912 bytes, 15447 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 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: 0x67c048bb
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 61710591 61702400 29.4G 83 Linux
기존 파이션 삭제 및 파티션 생성
pi@orangepizeroplus2:~$ sudo fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Partition number (1,2, default 2): [Enter]
Partition 2 has been deleted.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): [Enter]
Using default response p.
Partition number (1-4, default 1): [Enter]
First sector (2048-62333951, default 2048): [Enter]
Last sector, +sectors or +size{K,M,G,T,P} (2048-62333951, default 62333951): [Enter]
Created a new partition 1 of type 'Linux' and of size 29.7 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
pi@orangepizeroplus2:~$
디스크 포맷
$ sudo mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: done
Creating filesystem with 7791488 4k blocks and 1949696 inodes
Filesystem UUID: 620c3235-2471-45b6-bd2e-5ead5fc11350
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
마운트
$ sudo mount /dev/mmcblk0p1 /mnt
마운트 확인
$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
udev 178792 0 178792 0% /dev
tmpfs 49432 2440 46992 5% /run
/dev/mmcblk2p1 7304800 1201820 5708872 18% /
tmpfs 247148 0 247148 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 247148 0 247148 0% /sys/fs/cgroup
tmpfs 247148 0 247148 0% /tmp
log2ram 51200 1320 49880 3% /var/log
tmpfs 49432 0 49432 0% /run/user/0
tmpfs 49432 0 49432 0% /run/user/1000
/dev/mmcblk0p1 30545420 44992 28925748 1% /mnt
eMMC 백업
$ sudo dd bs=4M if=/dev/mmcblk2 of=/mnt/emmc_backup.img
1864+0 records in
1864+0 records out
7818182656 bytes (7.8 GB, 7.3 GiB) copied, 474.25 s, 16.5 MB/s