Orange Pi PC Plus User manual

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
Orange Pi PC Plus User Manual

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 1www.xunlong.tv
Content
1. Basic features of Orange Pi PC Plus................................................................................5
1.1. What’s Orange Pi PC Plus?....................................................................................................5
1.2. What can I do with Orange Pi PC Plus?................................................................................ 5
1.3. Who is for?.............................................................................................................................5
1.4. Hardware Specification..........................................................................................................6
1.5. Top and bottom views............................................................................................................ 7
1.6. Interface Details..................................................................................................................... 8
2. Introduction to the use of the development board............................................................9
2.1. Prepare the necessary accessories..........................................................................................9
2.2. Download the image and related information of the development board............................12
2.3. Use the Android image pre-installed in eMMC to test the functions of the development
board............................................................................................................................................13
2.4. Method of flashing Linux image to TF card based on Windows PC...................................13
2.5. Method of flashing Linux image to TF card based on Ubuntu PC...................................... 15
2.6. Method of flashing Linux image to eMMC.........................................................................18
2.7. Method of flashing Android firmware to TF card................................................................18
2.8. Method of flashing Android firmware to eMMC.................................................................21
2.9. Start the Orange Pi development board............................................................................... 26
2.10. How to use the debug serial port........................................................................................26
2.10.1. Debug serial port connection instructions........................................................... 26
2.10.2. How to use the debug serial port on the Ubuntu platform...................................28
2.10.3. How to use the debug serial port on Windows platform......................................30
3. Linux system instructions.............................................................................................. 34
3.1. Supported Linux distribution types and kernel versions......................................................34
3.2. Linux5.4 kernel image driver adaptation situation.............................................................. 34

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 2www.xunlong.tv
3.3. Linux3.4 kernel image driver adaptation situation.............................................................. 35
3.4. Login account and password................................................................................................35
3.5. On-board LED light display control instructions.................................................................36
3.6. Description of automatic login for desktop version system.................................................37
3.7. The first time the Linux5.4 system starts to automatically expand rootfs........................... 38
3.8. Linux3.4 system automatic expansion rootfs instructions...................................................40
3.9. How to modify the linux log level (loglevel).......................................................................43
3.10. Ethernet port test................................................................................................................ 44
3.11. SSH remote login to the development board..................................................................... 45
3.11.1. SSH remote login development board under Ubuntu..........................................45
3.11.2. SSH remote login development board under Windows.......................................46
3.12. HDMI display test..............................................................................................................47
3.13. WIFI connection test..........................................................................................................48
3.13.1. The server version image connects to WIFI by command...................................48
3.13.2. The server version image is connected to WIFI graphically............................... 50
3.13.3. Test method of desktop version image.................................................................53
3.14. USB interface test.............................................................................................................. 55
3.14.1. Connect mouse or keyboard test..........................................................................55
3.14.2. Connect USB storage device test.........................................................................56
3.15. USB Ethernet card test.......................................................................................................56
3.16. USB camera test.................................................................................................................58
3.17. Audio test........................................................................................................................... 59
3.17.1. Headphone jack play audio test........................................................................... 59
3.17.2. Mic recording test................................................................................................ 61
3.17.3. HDMI audio playback test...................................................................................61
3.18. linux5.4 IR receiving test...................................................................................................62
3.19. linux3.4 IR receiving test...................................................................................................63
3.20. Hardware watchdog test.....................................................................................................65

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 3www.xunlong.tv
3.21. CSI camera test.................................................................................................................. 66
3.21.1. CSI camera interface specifications.....................................................................66
3.21.2. Linux3.4 system gc2035 camera test...................................................................67
3.21.3. Linux3.4 system ov5640 camera test...................................................................70
3.21.4. Linux5.4 system ov5640 camera test...................................................................72
3.22. 40 Pin interface pin description..........................................................................................75
3.23. Install wiringOP................................................................................................................. 76
3.24. 40Pin's GPIO, I2C, UART, SPI test...................................................................................77
3.24.1. Ordinary GPIO port test.......................................................................................77
3.24.2. SPI interface test.................................................................................................. 79
3.24.3. I2C test.................................................................................................................81
3.24.4. UART test............................................................................................................ 83
3.25. How to use 0.96 inch OLED module with I2C interface...................................................86
3.26. How to use SPI LCD display............................................................................................. 88
3.26.1. 2.4 inch SPI LCD display.................................................................................... 88
3.26.2. 3.2 inch RPi SPI LCD display............................................................................. 92
3.26.3. 3.5 inch SPI LCD display.................................................................................... 96
3.27. linux3.4 desktop version system GPU driver test method...............................................101
3.28. How to burn linux image to eMMC.................................................................................102
3.29. View the chipid of the H3 chip........................................................................................ 104
3.30. How to use linux3.4 system TV-OUT..............................................................................104
3.31. Boot and shutdown method..............................................................................................106
4. Android system instructions.........................................................................................107
4.1. Supported Android version................................................................................................ 107
4.2. Android 4.4 function adaptation situation..........................................................................108
4.3. Android 7.0 function adaptation situation..........................................................................108
4.4. Onboard LED light display description............................................................................. 109
4.5. How to use ADB................................................................................................................ 109
4.5.1. Android4.4 method to open the USB debugging option......................................109

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 4www.xunlong.tv
4.5.2. How to enable the USB debugging option in Android7.0................................... 110
4.5.3. Use data cable to connect adb for debugging.......................................................111
4.5.4. Use network connection adb debugging..............................................................112
4.6. How to use USB camera.................................................................................................... 113
4.7. How to use CSI camera......................................................................................................114
4.7.1. CSI camera interface specifications.....................................................................114
4.7.2. How to use gc2035 camera in Android4.4 system...............................................115
4.7.3. How to use the ov5640 camera in Android4.4 system.........................................117
5. Linux SDK instructions................................................................................................118
5.1. Get the source code of linux sdk........................................................................................118
5.1.1. Download orangepi-build from github................................................................ 118
5.1.2. Download the cross-compilation toolchain......................................................... 119
5.1.3. Description of the complete directory structure of orangepi-build......................120
5.1.4. Download from Google Cloud............................................................................ 122
5.2. Compile u-boot.................................................................................................................. 122
5.3. Compile the linux kernel....................................................................................................126
5.4. Compile rootfs....................................................................................................................132
5.5. Compile linux image..........................................................................................................135
6. Android SDK instructions............................................................................................139
6.1. Android 4.4 SDK instructions............................................................................................139
6.1.1. Download the source code of android 4.4 sdk.....................................................139
6.1.2. Build android compilation environment..............................................................141
6.1.3. Compile android image........................................................................................142
6.2. Android 7.0 SDK instructions............................................................................................144
6.2.1. Download the source code of android 7.0 sdk.....................................................144
6.2.2. Build android compilation environment..............................................................146
6.2.3. Compile android image........................................................................................147

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 5www.xunlong.tv
1. Basic features of Orange Pi PC Plus
1.1. What’s Orange Pi PC Plus?
Orange Pi is an open source single-board card computer, a new generation of arm
development board, it can run Android 4.4, Android 7.0, Ubuntu and Debian and other
operating systems. Orange Pi PC Plus uses Allwinner H3 system-on-chip and has 1GB
DDR3 memory
1.2. What can I do with Orange Pi PC Plus?
We can use it to build:
A computer
A wireless network server
Games
Music player
HD video player
Speaker
Android
Pretty much anything else, because Orange Pi Pc Plus is open source
1.3. Who is for?
The Orange Pi development board is not only a consumer product, but also designed
for anyone who wants to use technology to create and innovate. It is a very simple,
interesting and practical tool, you can use it to create the world around you

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 6www.xunlong.tv
1.4. Hardware Specification
Hardware feature introduction
CPU
Allwinner H3 ARM Cortex-A7 Quad Core
GPU
Mali400MP2 GPU @600MHz
Supports OpenGL ES 2.0
Memory (SDRAM)
1GB DDR3 (shared with GPU)
Onboard Storage
TF card (Max. 32GB) /8GB eMMC Flash card slot
Onboard Network
10/100 Ethernet RJ45, WIFI Onboard network
Video Input
CSI interface camera
Audio Input
MIC
Video Outputs
HDMI, CVBS
Audio Output
3.5 mm audio port and HDMI
Power Source
DC input, MicroUSB (OTG) cannot be used as power
input
USB 2.0 Ports
3*USB 2.0 HOST, 1*USB 2.0 OTG
Low-level
peripherals
40 pin connector, compatible with Raspberry Pi
Debug serial port
UART-TX,UART-RX,GND
LED
Power led & Status led
Buttons
Power button(SW4)
IR receiver
Support IR remote control
Supported OS
Android,Ubuntu,Debian Image
Interface Definition
Product Size
85mm×56mm
Weight
43g
range Pi™ is a trademark of the Shenzhen Xunlong Software CO., Limited

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 9www.xunlong.tv
2. Introduction to the use of the development board
2.1. Prepare the necessary accessories
1) TF card, a high-speed card of class 10 or higher with a minimum capacity of 8GB, it
is recommended to use SanDisk TF card, Orange Pi test is to use SanDisk TF card, other
brands of TF card may have the problem of system failure
2) TF card reader, used to read and write TF card
3) Standard HDMI to HDMI cable, used to connect the development board to an HDMI
monitor or TV for display
4) Power adapter, at least 5V/2A high-quality power adapter, note that the OTG interface
of the development board cannot be used as a power input

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 10 www.xunlong.tv
5) USB interface mouse and keyboard, as long as it is a standard USB interface mouse
and keyboard, the mouse and keyboard can be used to control the Orange Pi development
board
6) IR remote control, mainly used to control Android system
7) 100M or Gigabit network cable, used to connect the development board to the Internet
8) GC2035 or OV5640 camera kit, which can be connected to the CSI interface of the
development board to display video images

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 11 www.xunlong.tv
9) Micro USB interface data cable, when using the ADB debugging function of the
Android system, you need to connect the development board to the computer through the
Micro USB interface data cable
10) AV video cable, if you want to display video through the CVBS interface instead of
the HDMI interface, then you need to connect the development board to the TV through
the AV video cable
11) USB to TTL module and DuPont cable. When using the serial port debugging
function, USB to TTL module and DuPont cable are required to connect the development
board and the computer

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 12 www.xunlong.tv
12) A personal computer with Ubuntu and Windows operating systems
1
Ubuntu14.04 PC
Optional, used to compile Android source code
2
Ubuntu18.04 PC
Optional, used to compile Linux source code
3
Windows PC
Used to burn Android and Linux images
2.2. Download the image and related information of the
development board
1) The download URL of the Chinese version is
http://www.orangepi.cn/downloadresourcescn/
2) The download URL of the English version is
http://www.orangepi.org/downloadresources/
3) The information mainly contains
a. Android source code: saved on Baidu Cloud Disk and Google Cloud Disk
b. Linux source code: saved on github, the link address is
https://github.com/orangepi-xunlong
c. User manuals and schematic diagrams: chip-related data manuals will also be
placed here
d. Official tools: mainly include the software that needs to be used during the use
of the development board
e. Android image: saved on Baidu Cloud Disk and Google Cloud Disk
f. Ubuntu image: saved on Baidu Cloud Disk and Google Cloud Disk
g. Debian image: saved on Baidu Cloud Disk and Google Cloud Disk
h. Armbian image, a image developed by the Armbian community. If you
encounter any problems during use, please report to the armbian forum first. The
maintainer of the Armbian image and other people who use the Armbian image

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 13 www.xunlong.tv
will assist in solving various problems. This is also a fastest solution way to the
problem.Orange Pi is not responsible for maintaining this image.
2.3. Use the Android image pre-installed in eMMC to test the
functions of the development board
Orange Pi PC Plus has 8GB of eMMC onboard. Before leaving the factory, the
factory will pre-install Android image to eMMC for testing. After getting the
development board, you can use the pre-installed Android image in eMMC to test the
functions of the development board and confirm the development. After all the functions
of the board are ok, then burn the system you want to use
2.4. Method of flashing Linux image to TF card based on
Windows PC
1) First, prepare a TF card with 8GB or larger capacity. The transmission speed of the TF
card must be above class10. It is recommended to use a TF card of SanDisk and other
brands
2) Then use the card reader to insert the TF card into the windows computer
3) Then format the TF card
a. You can use the SD Card Formatter software to format the TF card, the
download address is
https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip
b. After downloading, you can directly unzip and install, and then open the
software

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 14 www.xunlong.tv
c. If the computer only has a TF card inserted, the TF card's drive letter will be
displayed in the Select card column. If the computer has multiple USB storage
devices inserted, you can select the drive letter corresponding to the TF card
through the drop-down box
d. Then click Format, a warning box will pop up before formatting, and formatting
will start after selecting "Yes (Y)"
e. After formatting the TF card, the message shown in the figure below will pop up,
click OK
4) Download the Linux operating system image file compression package you want to

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 15 www.xunlong.tv
burn from the Orange Pi data download page, and then use the decompression software to
decompress it. In the decompressed file, the file ending with ".img" is the operating
system image file. The size is generally above 1GB
5) Use Win32Diskimager to burn Linux image to TF card
a. The download page of Win32Diskimager is
http://sourceforge.net/projects/win32diskimager/files/Archive/
b. Install directly after downloading, the interface of Win32Diskimager is shown
below
a) First select the path of the image file
b) Then confirm that the drive letter of the TF card is consistent with the one
displayed in the "Device" column
c) Finally click "write" to start burning
c. After the image is written, click the "Exit" button to exit, and then you can pull
out the TF card and insert it into the development board to start
2.5. Method of flashing Linux image to TF card based on Ubuntu
PC
1) First, prepare a TF card with 8GB or larger capacity. The transmission speed of the TF
card must be above class10. It is recommended to use a TF card of SanDisk and other
brands

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 16 www.xunlong.tv
2) Then use a card reader to insert the TF card into the computer
3) Download balenaEtcher software, the download address is
https://www.balena.io/etcher/
4) After entering the balenaEtcher download page, please select the Linux version of the
software through the drop-down box to download
5) After downloading, use unzip to decompress, the decompressed
balenaEtcher-1.5.109-x64.AppImage is the software needed for burning
test@test:~$ unzip balena-etcher-electron-1.5.109-linux-x64.zip
Archive: balena-etcher-electron-1.5.109-linux-x64.zip
inflating: balenaEtcher-1.5.109-x64.AppImage
test@test:~$ ls
balenaEtcher-1.5.109-x64.AppImage balena-etcher-electron-1.5.109-linux-x64.zip
6) Download the Linux operating system image file compression package you want to
burn from the Orange Pi data download page, and then use the decompression software to
decompress it. In the decompressed file, the file ending with ".img" is the operating
system image file. The size is generally above 1GB
a. The decompression command of the compressed package at the end of 7z is as
follows
test@test:~$ 7z x image_filename.7z
b. The decompression command for the compressed package at the end of tar.gz is
as follows
test@test:~$ tar -zxf image_filename.tar.gz

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 17 www.xunlong.tv
7) Double-click balenaEtcher-1.5.109-x64.AppImage on the graphical interface of
Ubuntu PC to open balenaEtcher. The opened interface is shown in the figure below
a. First select the path of the image file
b. Then select the device number of the TF card
c. Finally click Flash to start burning
8) The writing speed and remaining time will be prompted during the burning process
9) After burning, the following interface will be displayed. At this time, you can unplug
the TF card from the computer and insert it into the development board to start.

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 18 www.xunlong.tv
2.6. Method of flashing Linux image to eMMC
See section How to burn linux image to eMMC
2.7. Method of flashing Android firmware to TF card
Android image can only be burned to TF card using PhoenixCard software
under Windows platform, but cannot be burned under Linux platform
1) First, prepare a TF card with 8GB or larger capacity. The transmission speed of the TF
card must be above class10. It is recommended to use a TF card of SanDisk and other
brands
2) Then use a card reader to insert the TF card into the computer
3) Download Android 4.4 or Android 7.0 firmware and PhoenixCard burning tool
from Orange Pi's data download page, please make sure that the phonenixCrad tool
version is PhoenixCard v4.1.2
4)Use the decompression software to decompress the compressed package of the
downloaded Android firmware. In the decompressed file, the file ending with ".img" is
the Android firmware

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 19 www.xunlong.tv
5) Use decompression software to decompress PhoenixCard v4.1.2.rar, this software does
not need to be installed, you can find PhoenixCard in the decompressed folder and open it
6) After opening PhoenixCard, if the TF card is recognized normally, the drive letter and
capacity of the TF card will be displayed in the middle list. Please make sure that the
displayed drive letter is consistent with the drive letter of the TF card you want to burn. If
it is not displayed You can try to unplug and plug the TF card
7) After confirming the drive letter, format the TF card first, click the restore card button
in PhoenixCard, or use the aforementioned SD Card Formatter to format the TF card
Table of contents
Other Orange Pi Computer Hardware manuals