8,367
edits
Changes
no edit summary
<br>
=== '''Hardware Features of Orange Pi Lite 2''' ===
<br><div>[[文件:Orange-pi-lite2-img2.png|800px]]</div><div>[[文件:Orange-pi-lite2-img3.png|800px]]</div><br>
=== '''GPIO specifications''' ===
<br>
The following figure is the GPIO pin function diagram of Orange Pi 3Lite 2:
<div>[[文件:Orange-pi-3-img4.png|800px]]</div>
{| class="wikitable" style="text-align:center;width:1000px;background:#ffffff;"
|-
| colspan=3| Orange Pi 3 Lite 2 pin correspondence table
|-
| CON12-P01 || VCC-3.3V|| VCC-IO
| CON12-P02|| VCC-5V|| DCIN
|-
| CON12-P03 || TWI0TWI1-SDA|| PD26PH06
|-
| CON12-P04|| VCC-5V|| DCIN
|-
| CON12-P05|| TWI0TWI1-SCK|| PD25PH05
|-
| CON12-P06 || GND|| GND
|-
| CON12-P07 || PWM0PWM1|| PD22PH04
|-
| CON12-P08|| S-UART-TXPD21|| PL02PD21
|-
| CON12-P09|| GND|| GND
|-
| CON12-P10|| S-UART-RXPD22|| PL03PD22
|-
| CON12-P11|| UART3-RX|| PD24
|-
| CON12-P12|| PD18PC09|| PD18PC09
|-
| CON12-P13|| UART3-TX|| PD23
| CON12-P14|| GND|| GND
|-
| CON12-P15|| PL10UART3_CTS|| PL10PD26
|-
| CON12-P16|| PD15PC08|| PD15PC08
|-
| CON12-P17|| VCC-3.3V|| VCC-IO
|-
| CON12-P18 || PD16PC07|| PD16PC07
|-
| CON12-P19|| SPI1_MOSISPI0_MOSI|| PH05PC02
|-
| CON12-P20|| GND|| GND
|-
| CON12-P21|| SPI1_MISOSPI0_MISO|| PH06PC03
|-
| CON12-P22|| PD21UART3_RTS|| PD21PD25
|-
| CON12-P23|| SPI1_CLKSPI0_CLK|| PH04PC00
|-
| CON12-P24|| SPI1_CSSPI0_CS0|| PH03PC05
|-
| CON12-P25|| GND || GND
|-
| CON12-P26|| PL08PH03|| PL08PH03
|}
<br>
'''Hardware requirements:'''<br>
* Orange Pi 3 Lite 2 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 memory and above;above<br>
100GB of free disk space;
</p>
The operating system is preferablybest:
<p style="padding-left:200px;">
'''Ubuntu14.04 (for compiling Android source code)'''<br>
'''Ubuntu18.04 (for compiling Linux source code)'''
</p>
* Orange Pi 3 Lite 2 SDK* Orange Pi 3 Lite 2 firmware* Android and Linux programming flashing tools
The above software can be obtained through Github, Google Web Disk Mega network disk and Baidu Cloud Diskcloud disk.
<p style="padding-left:200px;">
</p>
=== '''Power Development board power supply mode of development board''' ===
There are two ways to power the development board:<br>
* DC (5V 2A) power supply: <br>Power on after inserting the DC adapter* Micro USB (5V 2A) OTG power supply:<br>Plug in the Micro USB adapter to power on.
== '''Android compilation environment''' ==
<div style="background:#f1f1f1;border:1px solid #000;">
$ mkdir OrangePi_3OrangePi_Lite2<br>$ cat H6-2018-1-2.tar.gza* > OrangePi_3OrangePi_Lite2.tar<br>$ tar xf OrangePi_3OrangePi_Lite2.tar -C OrangePi_3OrangePi_Lite2
</div>
* '''Install JDK'''
<br>
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>
<br>
<br>
Enter the following command in the lichee directory:
<br>
The kernel code is in the lichee / linux-3.10 directory. Executing the above commands will automatically copy the configuration file from lichee / linux-3.10 / arch / arm64 / configs / sun50iw6p1smp_android_7.x_defconfig to lichee / linux-3.10 / .config as the default configuration before compiling , You can run ./build.sh directly in the lichee directory for the next compilation, and will continue to use the previous .config configuration.
<br>
<br>
<br>
<br>
<br>
<br>
<div style="border:1px solid #000;background:#f1f1f1">
</div>
<br>
The pack command is used to generate the firmware. If the compilation and packaging process passes successfully, the following message will be prompted:
<br>
<br>
Dragon execute image.cfg SUCCESS !<br>
----------image is at----------<br>
<br>
pack finish
</div>
<br>
According to the prompt, you can see the generated Android firmware sun50iw6p1_android_petrel-p1_uart0.img in the OrangePi_3 OrangePi_Lite2 / lichee / tools / pack / directory. Below, please refer to the "Android Firmware Burning" section to complete the Android firmware burning.
<br>
<br>
== '''Setting up a Linux compilation environmentsetup''' ==
<br>
=== '''Get the Linux SDK source code from Github''' ===
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ sudo apt-get install git<br>
</div>
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
<div style="padding-left:200px;">[[文件:Orange-pi-3-img6.png|600px]]</div>
<br>
Select orange pi 3lite2, enter the kernel version selection interface after entering<br>
<br>
<div style="padding-left:200px;">[[文件:Orange-pi-3-img7.png|600px]]</div>
<br>
At present, the orangepi 3 lite2 development board supports the kernel code of '''Linux 4.9 and mainline.''' Select one of them and press Enter to start downloading the corresponding SDK source code.<br>
<div style="padding-left:200px;">[[文件:Orange-pi-3-img8.png|600px]]</div>
The downloaded source code will be stored in the same directory of OrangePi_Build<br>