Changes

Jump to: navigation, search

Orange Pi 3

5,284 bytes added, 15:22, 17 June 2022
no edit summary
=== '''Use of Orange Pi 3''' ===
 
We can use it to build:<br>
 
* A computer
* A web server
* Game console
* HD video player
* Speaker
* Android
* ......
 
=== '''Who is the Orange Pi 3 designed for?''' ===
 
Orange Pi 3 is not just a consumer product, it is also designed for anyone who wants to use technology for creative creation. It is a very simple, fun and practical tool that you can use to build the world around you.
 
=== '''Orange Pi 3 hardware parameters''' ===
 
<div>[[文件:Orange-pi-3-img1.png|800px]]</div>
<div>[[文件:Orange-pi-3-img2.png|800px]]</div>
<div>[[文件:Orange-pi-3-img3.png|800px]]</div>
 
=== '''GPIO specifications''' ===
<br>
 
The following figure is the GPIO pin function diagram of Orange Pi 3:
<div>[[文件:Orange-pi-3-img4.png|800px]]</div>
{| class="wikitable" style="text-align:center;width:1000px;"
|-
| colspan=3| Orange Pi 3 pin correspondence table
|-
| CON12-P01 || VCC-3.3V|| VCC-IO
|-
| CON12-P02|| VCC-5V|| DCIN
|-
| CON12-P03 || TWI0-SDA|| PD26
|-
| CON12-P04|| VCC-5V|| DCIN
|-
| CON12-P05|| TWI0-SCK|| PD25
|-
| CON12-P06 || GND|| GND
|-
| CON12-P07 || PWM0|| PD22
|-
| CON12-P08|| S-UART-TX|| PL02
|-
| CON12-P09|| GND|| GND
|-
| CON12-P10|| S-UART-RX|| PL03
|-
| CON12-P11|| UART3-RX|| PD24
|-
| CON12-P12|| PD18|| PD18
|-
| CON12-P13|| UART3-TX|| PD23
|-
| CON12-P14|| GND|| GND
|-
| CON12-P15|| PL10|| PL10
|-
| CON12-P16|| PD15|| PD15
|-
| CON12-P17|| VCC-3.3V|| VCC-IO
|-
| CON12-P18 || PD16|| PD16
|-
| CON12-P19|| SPI1_MOSI|| PH05
|-
| CON12-P20|| GND|| GND
|-
| CON12-P21|| SPI1_MISO|| PH06
|-
| CON12-P22|| PD21|| PD21
|-
| CON12-P23|| SPI1_CLK|| PH04
|-
| CON12-P24|| SPI1_CS|| PH03
|-
| CON12-P25|| GND || GND
|-
| CON12-P26|| PL08|| PL08
|}
<br>
 
== '''Development board instructions''' ==
 
=== '''Prepare hardware and software tools''' ===
 
'''Hardware requirements:'''<br>
 
* Orange Pi 3 development board
* TF card, minimum 8GB capacity, class 10, it is recommended to use brand TF card, such as SanDisk 16G TF card
* For a compiling host, the configuration should preferably meet the following conditions:
<p style="padding-left:20px;">
64bit CPU;<br>
8 GB and above;<br>
100GB of free disk space;
</p>
The operating system is preferably
<p style="padding-left:200px;">
'''Ubuntu14.04 (for compiling Android source code)'''<br>
'''Ubuntu18.04 (for compiling Linux source code)'''
</p>
 
'''Software Requirements:'''<br>
 
 
* Orange Pi 3 SDK
* Orange Pi 3 firmware
* Android and Linux programming tools
 
The above software can be obtained through Github, Google Web Disk and Baidu Cloud Disk.
 
<p style="padding-left:200px;">
'''http://www.orangepi.org/downloadresources/''' <br>
'''http://www.orangepi.cn/downloadresourcescn/'''
</p>
 
=== '''Power supply mode of development board''' ===
 
There are two ways to power the development board:<br>
 
* DC (5V 2A) power supply: Power on after inserting the DC adapter
* Micro USB (5V 2A) OTG power supply:Plug in the Micro USB adapter to power on.
 
== '''Android compilation environment''' ==
 
The following operations are performed on a PC with Ubuntu 14.04 installed. Other versions of Ubuntu systems or Linux distributions may have some differences.
 
=== '''Get SDK source code zip''' ===
 
After downloading the Android source package, first you need to combine multiple compressed files into one and then decompress them.
 
<div style="background:#f1f1f1;border:1px solid #000;">
$ mkdir OrangePi_3<br>
$ cat H6-2018-1-2.tar.gza* > OrangePi_3.tar<br>
$ tar xf OrangePi_3.tar -C OrangePi_3
</div>
 
=== '''Build a compilation environment''' ===
 
* Install JDK
Android 7.0 development can only use the version of openjdk8, higher or lower than this version and Oracle's JDK will cause the compilation to fail. Openjdk-8 installation command is as follows:
 
<div style="background:#f1f1f1;border:1px solid #000;">
$ sudo add-apt-repository ppa:openjdk-r/ppa<br>
$ sudo apt-get update<br>
$ sudo apt-get install openjdk-8-jdk
</div>
 
* Configure JAVA environment variables
 For example, the installation path is / usr / lib / jvm / java-8-openjdk-amd64. You can run the following command in the terminal to configure the environment variables:
 
<div style="background:#f1f1f1;border:1px solid #000;">
$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64<br>
$ export PATH=$JAVA_HOME/bin:$PATH<br>
$ export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
</div>
 
* Install platform support software
 
For Ubuntu 14.04:
 
<div style="background:#f1f1f1;border:1px solid #000;">
$ sudo apt-get update<br>
$ sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \ lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \ libgl1-mesa-dev libxml2-utils xsltproc unzip<br>
 
$ sudo apt-get install u-boot-tools
</div>
 
=== '''Compile SDK source code''' ===
 
After the SDK is decompressed, there will be two subdirectories andorid and lichee under the decompressed directory. The main contents of the lichee directory are as follows:
<div style="background:#f1f1f1;border:1px solid #000;">
lichee/brandy/u-boot-2014.0 #uboot Code directory<br>
lichee/bootloader/uboot_2014_sunxi_spl #boot0 Code directory<br>
lichee/linux-3.10 #Kernel code<br>
lichee/tools #Solution hardware configuration, packaging tools, etc.
</div>

Navigation menu