Orange Pi Manual Copy right by Shenzhen Xunlong Software Co., Ltd
www.orangepi.org www.xunlong.tv
Contents
I. Orange Pi Introduction........................................................................................................................... 3
1. What is Orange Pi Zero Plus2?............................................................................................. 3
2. What can I do with Orange Pi Zero Plus2?...........................................................................3
3. Whom is it for?...................................................................................................................... 3
4. Hardware specification of Orange Pi Zero Plus2..................................................................3
5. GPIO Specifications.............................................................................................................. 6
6. Specification of CSI Camera Connector............................................................................... 7
II. Using Method Introduction...................................................................................................................8
1. Step 1: Prepare Accessories Needed..................................................................................... 7
2. Step 2: Prepare a TF Card or EMMC Image.........................................................................8
3. Step 3: Boot your Orange Pi................................................................................................16
4. Step 4: Turn off your Orange Pi correctly...........................................................................20
5. Other configuration............................................................................................................. 20
6. Universal software configuration........................................................................................ 22
7. Moify the size of ext4 file system....................................................................................... 28
8. How to use gc2035 on Linux.............................................................................................. 30
9. eth0 and wlan0 static mac address setting...........................................................................31
10. Orange Pi Android root..................................................................................................... 32
III. Linux Kernel Source Code Compilation...........................................................................................36
1. Download Linux Source Code............................................................................................ 36
2. Compile Project Source Code............................................................................................. 37
3. Update the Kernel Image File and Replace Library........................................................... 39
IV. Android Kernel Source Code Compilation.......................................................................................42
1. Install JDK...........................................................................................................................42
2. Install Platform Supported Software...................................................................................43
3. Download Android Source Package....................................................................................43
4. Install Compiler Tool Chain................................................................................................ 44
5. Compile Lichee Source Code..............................................................................................44
6. Compile Command of Android Code..................................................................................44
V. Use Project Configuration Files..........................................................................................................48
1. sys_config.fex Introduction.................................................................................................48
2. Examples..............................................................................................................................48
VI. OrangePi Driver development...........................................................................................................51
1. Device Driver and Application Programming.....................................................................51
2. Compile device driver......................................................................................................... 54
3. Cross compiler Application Program.................................................................................. 56
4. Running Driver and Application......................................................................................... 58
VII. Using Debug tools on OrangePi...................................................................................................... 60
1. Operation Steps on Windows.............................................................................................. 60
2. Operation Steps on Linux....................................................................................................64