Orange Pi R1 Plus User manual

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 1www.xunlong.tv
Orange Pi R1 Plus
User Manual

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 2www.xunlong.tv
Content
1. Basic features of Orange Pi R1 Plus................................................................................1
1.1. What is Orange Pi R1 Plus?...................................................................................................1
1.2. Purpose of Orange Pi R1 Plus?..............................................................................................1
1.3. Who is for?.............................................................................................................................1
1.4. Hardware features of Orange Pi R1 Plus............................................................................... 2
1.5. Top view and Bottom view of Orange Pi R1 Plus................................................................. 3
1.6. Orange Pi R1 Plus interface details........................................................................................4
2. Introduction to the use of the development board............................................................5
2.1. Prepare the necessary accessories..........................................................................................5
2.2. Download the image and related information of the development board..............................9
2.3. Method to burn Linux image or OpenWRT image to TF card based on Windows PC....... 10
2.4. Method of flashing Linux image or OpenWRT image to TF card based on Ubuntu PC.....12
2.5. Method of flashing Android firmware to TF card................................................................15
2.6. Start the Orange Pi development board............................................................................... 19
2.7. How to use the debug serial port?......................................................................................19
2.7.1. Debug serial port connection instructions..................................................19
2.7.2. How to use the debug serial port on Ubuntu platform?.............................20
2.7.3. How to use the debug serial port on Windows platform?..........................24
3. OpenWRT system instructions.......................................................................................27
3.1. OpenWRT version................................................................................................................27
3.2. OpenWRT system default login account and password.......................................................27
3.3. Expand the rootfs in the TF card before the first boot......................................................... 28
3.4. Ethernet port test.................................................................................................................. 31
3.4.1. Wan port test.............................................................................................. 31
3.4.2. Lan port test............................................................................................... 33

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 3www.xunlong.tv
3.5. SSH remote login to the development board....................................................................... 34
3.5.1. SSH remote login development board under Ubuntu................................34
3.5.2. SSH remote login development board under Windows.............................35
3.6. USB interface test................................................................................................................ 37
3.6.1. Connect USB storage device test...............................................................37
3.7. Onboard LED light test instructions.................................................................................... 37
3.8. Log in to the OpenWRT management page.........................................................................38
3.9. Install packages....................................................................................................................38
3.9.1. Install via opkg in the terminal.................................................................. 38
3.9.2. Install on the package management page...................................................39
3.10. Mount external storage devices..........................................................................................41
3.10.1. Mount in the terminal...............................................................................41
3.10.2. Mount on the mount point management page..........................................41
3.11. Using Aria2........................................................................................................................ 45
3.12. Use samba network share...................................................................................................46
4. OpenWRT SDK instructions..........................................................................................49
4.1. Download the source code of OpenWRT SDK....................................................................49
4.1.1. Download OpenWRT from github.............................................................49
4.1.2. Download OpenWRT from Baidu Cloud...................................................49
4.2. Compile OpenWRT..............................................................................................................50
4.2.1. Compile OpenWRT Source Code..............................................................50
5. Linux system instructions.............................................................................................. 51
5.1. Supported Linux Release version and kernel version..........................................................51
5.2. linux5.8 kernel driver adaptation situation...........................................................................51
5.3. Linux system default login account and password.............................................................. 51
5.4. Start the rootfs in the auto-expanding TF card for the first time......................................... 52
5.5. How to modify the linux log level (loglevel)?.....................................................................53
5.6. Ethernet port test.................................................................................................................. 54
5.6.1. Lan Port Test.............................................................................................. 54

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 4www.xunlong.tv
5.6.2. Wan Port Test............................................................................................. 56
5.7. SSH remote login to the development board....................................................................... 57
5.7.1. SSH remote login development board under Ubuntu................................57
5.7.2. SSH remote login development board under Windows.............................58
5.8. Onboard LED light test instructions.................................................................................... 59
5.9. USB Port Test.......................................................................................................................60
5.9.1. Connect USB storage device test...............................................................60
5.10. USB wireless network card test......................................................................................... 60
5.11. WIFI connection test.......................................................................................................... 63
5.11.1. Linux OS test method...............................................................................63
5.12. Bluetooth test..................................................................................................................... 67
5.12.1. Linux OS test method.............................................................................. 67
5.13. USB camera test.................................................................................................................69
5.14. Temperature sensor............................................................................................................ 71
5.15. How to install Docker........................................................................................................ 71
5.16. 13Pin transfer board interface pin description................................................................... 73
5.17. How to install wiringOP.................................................................................................... 74
5.18. 13pin interface GPIO, I2C, UART test.............................................................................. 75
5.18.1. 13pin GPIO port test................................................................................ 75
5.18.2. 13pin I2C test...........................................................................................77
5.18.3. 13pin UART test...................................................................................... 79
5.19. Method of outputting kernel print information to 13pin serial port...................................81
5.20. View the serial number of the RK3328 chip......................................................................82
5.21. Method to restart the system.............................................................................................. 82
6. Linux SDK instructions................................................................................................. 83
6.1. Get the source code of linux sdk..........................................................................................83
6.1.1. Download orangepi-build from github...................................................... 83
6.1.2. Download cross compilation toolchain......................................................84
6.1.3. Orangepi-build complete directory structure description.......................... 85

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 5www.xunlong.tv
6.2. Compile u-boot.................................................................................................................... 86
6.3. Compile the Linux kernel.....................................................................................................90
6.4. Compile rootfs......................................................................................................................96
6.5. Compile linux image............................................................................................................98
7. Android OS instructions...............................................................................................101
7.1. Supported Android version................................................................................................ 101
7.2. Android 9.0 function adaptation situation..........................................................................101
7.3. Onboard LED light display description............................................................................. 101
7.4. How to use ADB................................................................................................................ 102
7.4.1. Open USB debugging option...................................................................102
7.4.2. Use network connection adb debugging.................................................. 104
7.4.3. Use data cable to connect adb for debugging.......................................... 105
8. Android SDK instructions............................................................................................106
8.1. Download the source code of Android SDK......................................................................106
8.2. Build Android compilation environment........................................................................... 107
8.3. Compile Android image.....................................................................................................108
8.3.1. Compile u-boot........................................................................................ 108
8.3.2. Compile the kernel...................................................................................108
8.3.3. Compile Android......................................................................................109
8.3.4. Firmware packaging.................................................................................109
8.3.5. Generate upgrade image...........................................................................109
8.3.6. Automatically compile scripts..................................................................110

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 1www.xunlong.tv
1. Basic features of Orange Pi R1 Plus
1.1. What is Orange Pi R1 Plus?
Orange Pi is an open source single-board computer, a new generation of arm-64
development board, it can run Android 9.0, Ubuntu, Debian and OpenWRT and other
operating systems. Orange Pi R1 Plus uses Rockchip rk3328 system-on-chip and has
1GB DDR4 memory
1.2. Purpose of Orange Pi R1 Plus?
Typical Application:
A router
One switch
Of course there are other more functions, because Orange Pi 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 2www.xunlong.tv
1.4. Hardware features of Orange Pi R1 Plus
Hardware Specification introduction
CPU
Rockchip RK3328
Quad-core ARM Cortex-A53 64-bit processor,
main frequency speeds up to 1.5GHz
GPU
Mali-450MP2
Supports OpenGL ES 1.0/2.0
Power management
chip
RK805
Memory(SDRAM)
1GB DDR4(shared with GPU)
Onboard Storage
• Micro-SD Card slot
• 16MB SPI Flash
Onboard Network
10M/100M/1000M Ethernet (RTL8211E)
10M/100M/1000M USB Ethernet (RTL8153B)
Video Output
TV CVBS output(Via 13pin interface board)
Audio output
3.5mm audio port(Via 13pin interface board)
Power Source
USB Type C interface 5V2A input
USB
1x USB 2.0 HOST
Low-level peripherals
13pin header with IR pin、Tv-out、AUDIO(no MIC) 2xUSB2.0(not
support)and 1 GPIO port
Debug serial port
UART-TX、UART-RX and GND
Button
1x Reset Button
Fan interface
1x cooling fan interface (5V)
LED
Power led & Status led
IR receiver
Support IR remote control (via 13pin interface board)
Supported OS
Android 9、Ubuntu、Debian、OpenWRT
Appearance specification introduction
Dimension
56mm×57mm
Weight
30.5g

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 3www.xunlong.tv
Orange Pi™ is a trademark of the Shenzhen Xunlong Software CO., Limited
1.5. Top view and Bottom view of Orange Pi R1 Plus
Top view:
Bottom view:

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 4www.xunlong.tv
1.6. Orange Pi R1 Plus interface details

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 5www.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 tests are all SanDisk TF cards. Other
brands of TF cards may cause the system to fail to start.
2) TF card reader, used to read and write TF card
3) Power adapter, 5V/2A or 5V/3A high-quality Type C interface power adapter

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 6www.xunlong.tv
4) 13pin interface board
a. The actual interface board is shown below
b. The way to insert the interface board into the development board is as follows,
remember not to insert it backwards
c. The 13pin header on the Orange Pi R1 Plus development board can be connected
to the interface board to expand the functions that are not on the development
board. The functions included in the interface board are:

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 7www.xunlong.tv
1
microphone
not support
2
Analog audio and video
output interface
Connect TV through AV cable to output analog audio
and video signals (Android system only)
3
USB2.0 x 2
not support
4
IR receiving function
Android system can be controlled by IR remote control
d.The schematic diagram of the 13pin header of Orange Pi R1 Plus is shown
below
5) CPU fan, used to dissipate heat to the CPU, the interface voltage is 5V, the
interface specification is 2pin, 1.5mm spacing
6) IR remote control, mainly used to control Android system

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 8www.xunlong.tv
7) 100M or 1000M network cable, used to connect the development board to the Internet
8) AV video cable, used to connect the development board to the TV through the CVBS
interface to display video (only available for Android System)
9) USB to TTL module and DuPont cable, when using the serial port debugging function,
you need USB to TTL module and DuPont cable to connect the development board and
the computer
10) A personal computer with Ubuntu and Windows operating systems
1
Ubuntu18.04 PC
Optional, used to compile Linux, Android and OpenWRT
source code
2
Windows PC
Used to burn Android, Linux and OpenWRT images

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 9www.xunlong.tv
2.2. Download the image and related information
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/orangepi-build
c. OpenWRT source code: saved on github, the link address is
https://github.com/orangepi-xunlong/openwrt
d. User manual and schematic diagram: chip related data manual will also be placed
here
e. Official tools: mainly include the software needed in the use of the development
board
f. Android image: saved on Baidu Cloud Disk and Google Cloud Disk
g. Ubuntu image: saved on Baidu Cloud Disk and Google Cloud Disk
h. Debian image: saved on Baidu Cloud Disk and Google Cloud Disk
i. OpenWRT image: saved on Baidu Cloud Disk and Google Cloud Disk

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 10 www.xunlong.tv
2.3. Method to burn Linux image or OpenWRT image to TF
card based on Windows PC
1) The method of burning OpenWRT image based on Windows PC is the same as the
method of burning Linux image. The following is an example of burning Linux image
2) 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
3) Then use a card reader to insert the TF card into the computer
4) Then format the TF card
a. You can use SD Card Formatter to format the TF card, the download address is
https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip
b. After downloading, unzip and install directly, and then open the software
c. If the computer only has a TF card inserted, the “Select card” column will
display the drive letter of the TF card. If multiple USB storage devices are
inserted into the computer, 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)"

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 11 www.xunlong.tv
e. After formatting the TF card, the message shown below will pop up, click OK
5) Download the Linux operating system image file compression package that 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
6) 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

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 12 www.xunlong.tv
c. After the image is written, click the "Exit" button to exit, then you can pull out
the TF card and insert it into the development board to start
2.4. Method of flashing Linux image or OpenWRT image to TF
card based on Ubuntu PC
1) The method of flashing OpenWRT image based on Ubuntu PC is the same as that of
flashing Linux image. The following is an example of flashing Linux image
2) 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
3) Then use a card reader to insert the TF card into the computer
4) Download balenaEtcher software, the download address is
https://www.balena.io/etcher/
5) After entering the balenaEtcher download page, please select the Linux version of the
software through the drop-down box to download

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 13 www.xunlong.tv
6) After downloading, use unzip to decompress. The decompressed
balenaEtcher-1.5.109-x64.AppImage is the software needed to burn Linux image
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
7) Download the Linux operating system image file compression package you want to
burn from Orange Pi's 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 Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.7z
test@test:~$ ls Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.*
Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.7z
Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.img.sha # Checksum file
Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.img # image file
8) After decompressing the image, you can first use the sha256sum -c *.sha command to
calculate whether the checksum is correct. If it is prompted that the downloaded image is
correct, you can safely burn it to the TF card. If the checksum does not match, it indicates
There is a problem with the downloaded image, please try to download again
test@test:~$ sha256sum -c *.sha

range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 14 www.xunlong.tv
Orangepir1plus_2.1.0_ubuntu_bionic_server_linux5.8.18.img: Success
9) Then double-click balenaEtcher-1.5.109-x64.AppImage on the graphical interface of
Ubuntu PC to open balenaEtcher (no installation required), the opened interface is shown
in the figure below
a. First select the path of the linux image file
b. Then select the device number of the TF card
c. Finally click Flash to start burning
10) The writing speed and remaining time will be prompted during the burning process
11) 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 15 www.xunlong.tv
2.5. Method of flashing Android firmware to TF card
Android image can only be burned to TF card using SDDiskTool software under
Windows platform, and 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 9.0 firmware and SDDiskTool burning tool from Orange Pi's data
download page
4) Use the decompression software to decompress the downloaded Android firmware
compressed package. In the decompressed file, the file ending with ".img" is the Android
firmware
5) Use decompression software to decompress SDDiskTool_v1.59, this software does not
need to be installed, find SD_Firmware_Tool in the decompressed folder and open it
Other manuals for R1 Plus
1
Table of contents
Other Orange Pi Computer Hardware manuals