Orange Pi Zero 2 User manual

THE OFFICIAL
Orange Pi
User's Guide
A USER GUIDE FOR ORANGE PI ZERO 2
1st
Edition
Orange Pi


3
THE OFFICIAL ORANGE PI USER'S GUIDE
THE OFFICIAL
Orange Pi
User's Guide

4THE OFFICIAL ORANGE PI USER'S GUIDE

5
THE OFFICIAL ORANGE PI USER'S GUIDE
Contents
Chapter 1: Getting familiar with your Orange Pi 6
Chapter 2: Getting started with your Orange Pi 10
Chapter 3: Using Linux on your Orange Pi 18
Chapter 4: Using Android on your Orange Pi 32
Chapter 5: Building Linux from source 38
Chapter 6: Building Android from source 41
APPENDICES
Appendix A: Installing an OS to a microSD card 46
Appendix B: Connect to the Serial Port 51

THE OFFICIAL ORANGE PI USER'S GUIDE
6
Chapter 1
Getting familiar with
your Orange Pi
Know your new pocket-sized Orange Pi
computer by taking a walkthrough over
its various components and features.
Orange Pi is an open-source single board computer, a new generation of arm64
development board, which can run systems such as Android 10, Ubuntu and
Debian and so on. Orange Pi Zero 2 uses the Allwinner H616 system-on-chip
and has 512MB/1GB DDR3 memory.
Orange Pi Zero 2 is for anyone who wants to start creating with technology not just
consuming it. It's a simple, fun, useful tool that you can use to start taking control of
the world around you.

7
THE OFFICIAL ORANGE PI USER'S GUIDE
Hardware Overview

8THE OFFICIAL ORANGE PI USER'S GUIDE
Hardware Specification
•Allwinner H616, Quad core Cortex-A53 64-bit SoC @ 1.5GHz
•512MB or 1GB DDR3 SDRAM (depending on model)
•H.265 (4kp60 decode), H264 (4kp30 decode, 4kp25 encode or 1080p60 encode)
•ARM G31 GPU Supports OpenGL ES 3.2/2.0/1.0, Vulkan 1.1 OpenCL 2.0
•AW859A module Support IEEE 802.11 a/b/g/n/ac wireless, Bluetooth 5.0
•1000M/100M/10M Ethernet
•Micro-HDMI ports (up to 4kp60 supported)
•3 USB 2.0 ports. (Two of them are via 13pin interface board)
•26 pin GPIO header with I2C, SPI, UART and multiple GPIO ports
•13 pin GPIO header with 2 USB Host, IR pin, TV-out, Audio and GPIO ports
•5V DC via USB-C connector (minimum 2A)
•OS: Android10, Ubuntu and Debian
•Dimension: 85mm×56mm
•Weight: 30g
Pinout Diagram

9
THE OFFICIAL ORANGE PI USER'S GUIDE
Expansion board
The expansion board is an easy way to expand the functionalities of the Orange Pi
Zero2 board by providing two extra USB ports, One IR receiver, and an audio/video
composite port.
Note: The Orange Pi Zero2 does not support MIC Input on the expansion board.
Expansion board schematic

THE OFFICIAL ORANGE PI USER'S GUIDE
10
Chapter 2
Getting started with
your Orange Pi
Find out what items you'll need
for Orange Pi and how to set up
everything to get it running.
Orange Pi boards are easy to set up and beginners friendly. The Orange Pi
boards are mostly self-contained and only required a few extra components
to get it working. This mini-computer only needs a computer monitor or TV
with an HDMI connection for display. If you want it to run as a mini headless server
then you don't need a display screen either.
The Orange Pi Zero2 is very compact and offers only two USB ports out-of-box. The
USB Type-C port used for powering the board and the USB Type-A port is available
for use. We can get additional two USB Type-A ports with the Orange Pi Zero Addon
board.
As we generally have only one USB port is available to use. We recommend using the
Orange Pi Zero Addon board to get access to more USB ports and other features like
an Audio/Video composite port and an IR receiver.
Optionally, you can use a USB Hub to get more USB ports to connect different
peripherals.

11
THE OFFICIAL ORANGE PI USER'S GUIDE
Peripheral Requirements
If you have only bought the Orange Pi Zero2 board then you will need the following
items.
USB power supply – A 5V 3amps(3A) power supply with a USB Type-C connector.
The official OrangePi power supply is recommended for this board.
microSD card with OrangePi OS – The microSD card acts as an primary permanent
storage for the OrnagePi Zero2 board. A minimum of 8GB class 10 card is required.
Although 16GB microSD card is recommended. You need to write the OrangePi OS
into this blank microSD card. follow Appendix A for instructions.

12 THE OFFICIAL ORANGE PI USER'S GUIDE
A keyboard and mouse – The keyboard and mouse are used to control your Orange
Pi. Any wired or wireless keyboard and mouse will work. Although wired USB
keyboard and mouse are preferred as they are most likely to work without any driver
issues.
Micro-HDMI cable – A Micro-HDMI to HDMI cable is needed for getting Audio/Video
from Orange Pi to your TV or Monitor.

13
THE OFFICIAL ORANGE PI USER'S GUIDE
USB Hub – The Orange Pi Zero2 has only one USB Type-A port that you may need to
use a USB Hub if you want to use more the one USB device.
Orange Pi Zero expansion board(Optional) – The expansion board can provide two
extra USB Type-A ports and some other functionalities.

14 THE OFFICIAL ORANGE PI USER'S GUIDE
Connect your OrangePi Zero2
Insert the SD card – Insert the SD card into the microSD card slot on the underside
of your OrangePi Zero2.
Connect USB Mouse & Keyboard – Connect the mouse to a USB port on OrangePi
Zero2 (You can use either a USB Hub or OrangePi Addon board).

15
THE OFFICIAL ORANGE PI USER'S GUIDE
Connect Ethernet cable(Optional) – If you want to connect your OrangePi Zero2 to
the internet via Ethernet then use an Ethernet cable to connect the Ethernet port on
OrangePi to your internet router.
Connect HDMI cable – Connect your moniter to the Micro HDMI port of OrangePi
Zero2.

16 THE OFFICIAL ORANGE PI USER'S GUIDE
Connect USB-C Power Supply – Connect a USB-C Power supply to the Orange Pi
Zero2. This board doesn't have a power switch, so it will start booting as soon as you
connect it to a power supply.
Finally, supply power to the USB-C power adapter, and OrangePi Zero2 will start
booting.

17
THE OFFICIAL ORANGE PI USER'S GUIDE
After boot-up is complete, you will be greeted with the login screen. The default
password for OrangePi OS is "orangepi". Enter the password and hit return.
Congratulations! You have booted your first Operating System on the OrangePi
Zero2.

THE OFFICIAL ORANGE PI USER'S GUIDE
18
Chapter 3
Using Linux on your
Orange Pi
Learn about the Orange Pi Operating System.
Orange Pi Zero2 can run a wide range of Operating Systems like Ubuntu,
Debian, and Android 10, including server editions of Ubuntu and Debian.
In this chapter, we will learn some basic configurations like changing the screen
resolution, adjusting Linux log levels, setting up an SSH connection, etc.
Changing the Linux log level
The log level of the Linux system is set to 1 by default. When using the serial port to
view the boot logs, it only shows minimal information. We can increase the log levels
to get more detailed system logs for debugging.
The following command will change the log level to 7.
root@orangepi:~# sed -i "s/verbosity=1/verbosity=7/" /boot/orangepiEnv.txt

19
THE OFFICIAL ORANGE PI USER'S GUIDE
Changing the screen resolution.
The screen resolution can be changed by choosing a different mode for the
disp_mod variable and adjusting the width/height values of the frame buffer.
We need to change the values of fb0_width, fb0_height, and disp_mode in the /boot/
orangepiEnv.txt file according to the following table.
disp_mode fb0_width/fb0_height Frame rate
480i 720x480 60
576i 720x480 50
480p 720x480 60
576p 720x576 60
720p50 1280x720 50
720p60 1280x720 60
1080i50 1920x1080 50
1080i60 1920x1080 60
1080p24 1920x1080 24
1080p50 1920x1080 50
1080p60 1920x1080 60
Setup SSH remote access
SSH remote login development board under Ubuntu
1) Get the IP address of the development board
2) Then you can log in to the linux system remotely through the ssh command
Note: Need to be replaced with the IP address of the development board
$ ssh r[email protected]8.1.36
Next: Enter the password here, the default password is orangepi
r[email protected].1.36's password:

20 THE OFFICIAL ORANGE PI USER'S GUIDE
After a successful SSH login system, you can get access to the system remotely.
SSH remote login development board under Windows
MobaXterm can be used to remotely log in to the development board under
windows, first create a new ssh session
a. Open Session
b. Then select SSH in Session Setting
c. Then enter the IP address of the development board in Remote host
d. Then enter the username root or orangepi of the Linux system in Specify
username
e. Finally click OK
Table of contents
Popular Single Board Computer manuals by other brands

Arduino
Arduino Portenta X8 Product reference manual

Nematron
Nematron AESQ67-967 user manual

IEI Technology
IEI Technology WAFER-ULT-i1 Quick installation guide

Kontron
Kontron 3.5-SBC-KBL Quick installation guide

Seco
Seco SYS-B68-IGW Installation, Use and Warnings Manual

Artesyn
Artesyn iVPX7225 RTM quick start guide

National Instruments
National Instruments sbRIO-9605 Operating instructions and specifications

AXIOMTEK
AXIOMTEK SHB230 Quick installation guide

Phytec
Phytec phyCORE-P8xC51Mx2 Hardware manual

Grantech
Grantech SYS8F377VGGA-OM user manual

Portwell
Portwell ROBO-8712E Series user manual

Lex System
Lex System 2I110AW manual