8,367
edits
Changes
no edit summary
Orange Pi Lite 2 is not just a consumer product, it is also designed for anyone who wants to use technology to create and innovate. It is a very simple, interesting and practical tool that you can use to build the world around you.<br>
<br>
<div>[[文件File:Orange-pi-lite2-img1.png|800px]]</div>
<br>
=== '''Hardware Features of Orange Pi Lite 2''' ===
<br>
<div>[[文件File:Orange-pi-lite2-img2.png|800px]]</div><div>[[文件File:Orange-pi-lite2-img3.png|800px]]</div>
<br>
=== '''GPIO specifications''' ===
The following figure is the GPIO pin function diagram of Orange Pi Lite 2:
<div>[[文件File:Orange-pi-3-img4.png|800px]]</div>{| class="wikitable" style="text-align:center;width:1000px800px;background:#ffffff;"
|-
| colspan=3| Orange Pi Lite 2 pin correspondence table
* TF card, minimum 8GB capacity, class 10, recommended 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<br>
</p>
The operating system is best:
<p style="padding-left:200px;">
'''Ubuntu14.04 (for compiling Android)'''<br>
'''Ubuntu18.04 (for compiling Linux source code)'''
The above software can be obtained through Github, Mega network disk and Baidu cloud disk.
<p style="padding-left:200px;">'''http://www.orangepi.org/downloadresourceshtml/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Lite2.html''' <br>'''http://www.orangepi.cn/downloadresourcescnhtml/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Lite2.html'''
</p>
lichee/bootloader/uboot_2014_sunxi_spl #boot0 Code directory<br>
lichee/linux-3.10 #Kernel code<br>
lichee/tools #Solution hardware <br>configuration, packaging tools, etc.
</div>
<br>
Welcome to mkscript setup progress<br>
All available chips:<br>
<p style="padding-left:20px ;">
# sun50iw1p1
# sun50iw2p1
Choice: 2<br>
All available platforms:
<p style="padding-left:20px ;">
# android
# dragonboard
Choice: 0<br>
All available business:
<p style="padding-left:20px ;">
# 5.1
# 4.4
<br>
<br>
== '''Linux compilation environment setup''' ==
<br>
<br>
Enter the root password and press enter
<div style="padding-left:200px;">[[文件File:Orange-pi-3-img5.png|600px]]</div>
<br>
Select 0 Build system with uboot / kernel / rootfs / image to enter the interface of development board model selection.
<br>
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3-img6.png|600px]]</div>
<br>
Select orange pi lite2, enter the kernel version selection interface after entering<br>
<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-lite2-img4.png|600px]]</div>
<br>
At present, the orangepi 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;">[[文件File:Orange-pi-3-img8.png|600px]]</div>
The downloaded source code will be stored in the same directory of OrangePi_Build<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ ls ../OrangePi_Build -l OrangePi_Build<br>
<p style="padding-left:20px ;">'''OrangePiH6_Linux4.9''' (Where the kernel version is Linux4.9)<br>
'''OrangePiH6_mainline''' (The current kernel version is Linux5.3.5)</p>
</div>
If GitHub fails to download the code, you can download the source code compression package of Linux SDK directly from Baidu Cloud Disk.<br>
Download link is:
=== '''Build a compilation environment''' ===
<br>
├── scripts Script files used during compilation<br>
├── toolchain Cross-compilation toolchain used by the kernel and u-boot<br>
└── uboot Store boot0 and u-boot source code6 code<br>6 directories, 1 file<br>
</div>
<br>
=== '''Compile Linux and U-boot source code''' ===
<br>
<br>
Select OrangePi lite2 and press Enter
<div>[[文件File:Orange-pi-lite2-img5.png|600px]]</div>
The functions of each option are as follows:<br>
<div style="font-weight:700">
* 7 Update Uboot —— Update boot0 and u-boot and dtb configuration of SD card Linux system
</div>
<div>[[文件File:Orange-pi-3-img10.png|600px]]</div>
The final file generated by the compilation will be saved in the output directory<br>
<br>
=== '''Linux SDK usage example''' ===
<br>
The following will fully demonstrate the use of the Linux SDK by adding a rtl8812AU USB WIFI kernel module to the kernel source.<br>
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ cd OrangePiH6_Linux4.9/kernel/drivers/net/wireless<br>
$ git clone https://github.com/diederikdehaas/rtl8812AU.git<br>
remote: Counting objects: 2347, done.<br>
Receiving objects: 100% (2347/2347), 7.87 MiB | 22.00 KiB/s, done.<br>
</div>
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
</div>
<br>
<br>
<div style="padding-left:300px ;">[[文件File:Orange-pi-3-img11.png|600px]]</div>* '''(4)Recompile the kernel according to the method of in `` Compiling Linux and U-boot Source '''''<div style="padding-left:300px ;">[[文件File:Orange-pi-3-img12.png|300px]]</div>
Partially compiled log looks like this:
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
</div>
<br>
<br>
First, insert the SD card that has been burned with Linux firmware into a PC used
<br>
Then choose 6 Update Module to update the kernel module according to the instructions in the section `` Compiling Linux and U-boot Source ''
<div>[[文件File:Orange-pi-3-img13.png|600px]]</div>
<br>
Next, you can start the system through the SD card and use the new 8812au.ko kernel module to drive the USB WIFI network card.
== '''Android firmware burning''' ==
<br>
Android firmware cannot be written to the TF card via the dd command in Linux or the Win32 Diskimager tool in Windows. Need to use the tool PhoenixCard to write, PhoenixCard current latest version is PhoenixCard V4.1.2, can be downloaded from the official tool on the official website download page.<br>
<br>
=== '''Android firmware burning steps (TF card start up)''' ===
<br>
<br>
<br>
<br>
Please note the red mark in the picture below:
<br>
<br>
<div>[[File:Orange-pi-3-img16.png|800px]]</div>
'''(3)Click "Burn Card" to start writing to the TF card and wait for the burning to complete.'''
<div>[[File:Orange-pi-3-img17.png|800px]]</div>
After the Android firmware is successfully programmed, click the "Close" button, and then you can insert the TF card into the development board to start the system
<br>
== '''Linux firmware burning''' ==
<br>
* Linux (most distributions, such as Ubuntu)
* MacOS 10.9 and later
* Windows 7 and later
<br>
=== '''How to install Etcher installation method''' ===
<br>
* The installation method of Etcher in Windows is the same as that of ordinary software, so I won't go into details here.
* Etcher is installed on Ubuntu and Debian systems as follows
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
=== '''How to flash Linux firmware through Etcher''' ===
<br>
<br>
<br>
<br>
<br>
<br>
<br>
=== '''Linux boot light description''' ===
<br>
<br>
=== '''Login account and password''' ===
<br>
<br>
=== '''extend rootfs partition''' ===
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
<div style="font-weight:700;">
</tr>
<tr style="font-weight:700;">
<td>/dev/mmcblk1p2mmcblk0p2</td>
<td>1.1G</td>
<td>981M520M</td><td>28M488M</td><td>9852%</td>
<td>/</td>
</tr>
<tr>
<td>devtmpfs</td>
<td>985M481M</td>
<td>0</td>
<td>985M 481M</td>
<td>0%</td>
<td>/dev</td>
<tr>
<td>tmpfs </td>
<td>994M489M</td>
<td>0</td>
<td>994M489M</td>
<td>0%</td>
<td>/dev/shm</td>
<tr>
<td>tmpfs </td>
<td>994M489M</td><td>86.9M6M</td><td>985M 489M</td><td>12%</td>
<td>/run</td>
</tr>
<tr>
<td>tmpfs</td>
<td>994M489M</td>
<td>0</td>
<td>994M489M</td>
<td>0%</td>
<td>/sys/fs/cgroup</td>
<td>/dev/mmcblk1p1</td>
<td>50M</td>
<td>15M29M</td><td>36M 22M</td><td>3058%</td>
<td>/boot</td>
</tr>
</table>
<br>
<div style="font-weight:700;">
</tr>
<tr style="font-weight:700;">
<td>/dev/mmcblk1p2mmcblk0p2</td><td>15G7.2G</td><td>982M539M</td><td>13G6.4G</td><td>78%</td>
<td>/</td>
</tr>
<tr>
<td>devtmpfs</td>
<td>985M481M</td>
<td>0</td>
<td>985M 481M</td>
<td>0%</td>
<td>/dev</td>
<tr>
<td>tmpfs </td>
<td>994M489M</td>
<td>0</td>
<td>994M489M</td>
<td>0%</td>
<td>/dev/shm</td>
<tr>
<td>tmpfs </td>
<td>994M489M</td><td>8.9M13M</td><td>985M 477M</td><td>13%</td>
<td>/run</td>
</tr>
<tr>
<td>tmpfs</td>
<td>994M489M</td>
<td>0</td>
<td>994M489M</td>
<td>0%</td>
<td>/sys/fs/cgroup</td>
<td>/dev/mmcblk1p1</td>
<td>50M</td>
<td>15M29M</td><td>36M 22M</td><td>3058%</td>
<td>/boot</td>
</tr>
</table>
=== '''Recording playback test method''' ===
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepi3orangepilite2:~# arecord -d 10 -f cd -D hw:1,0 -t wav Test.wav Recording<br>
WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,<br>
Stereo<br>
root@orangepi3orangepilite2:~#
</div>
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepi3orangepilite2:~# aplay -D hw:1,0 Test.wav
</div>
<br>
<br>
=== '''WIFI configuration method''' ===
<br>
</div>
<br>
== '''Introduction to serial debugging tools''' ==
<br>
First you need to prepare a USB to TTL serial cable similar to the picture below:<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3-img28.png|800px]]</div>Connect the serial cable as shown in the figure below. The From the silk screen on the back of the board, you can see that the corresponding functions of the cables of different colors are as follows:<br>* Black——GNDBlack—GND
* Green-RX
* White-TX
<div style="padding-left:200px;">[[文件File:Orange-pi-3lite2-img29img6.png|800px]]</div>
<br>
=== '''Use on Windows platform''' ===
In the process of using OrangePi for project development, in order to obtain more debugging information, OrangePi supports serial port information debugging by default. For developers, they only need to prepare the materials mentioned above to get serial debugging information. The serial debugging tools used by different host computers are similar. Basically, you can refer to the methods below to deploy. There are many tools for serial debugging on the Windows platform. The commonly used tool is putty. This section uses putty as an example to explain deployment.<br>
<br>
Download the latest driver PL2303_Prolific_DriverInstaller_v130.zip, download and unzip.<br>
<div>[[文件File:Orange-pi-3-img30.png|800px]]</div>
Select application installation as administrator<br>
<div style="padding-left:200px;">[[文件File:Orange-pi-3-img31.png|800px]]</div>
Wait for the installation to complete
<div style="padding-left:200px;">[[文件File:Orange-pi-3-img32.png|800px]]</div>* '''Download (2)Download and install Putty'''<br><br>
Putty can be downloaded from the following address, please choose the version suitable for your development environment.<br>
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
<p>Double-click the downloaded putty.exe directly to open putty. The software interface
is shown in the figure below.</p>
<br>
In Windows 7, we can check whether the serial port connection is normal and the device number of the serial port through the device manager. If the device is not recognized properly, please check if the driver is successfully installed. If there is a problem with the driver installation, you can try to scan and install the driver using 360 Driver Master.
<div>[[文件File:Orange-pi-3-img33.png|800px]]</div>
<br>
<br>
Set the serial port to the corresponding port number (COM4), disable flow control, and set the speed to 115200
<div>[[文件File:Orange-pi-3-img34.png|800px]]</div>* Start '''(5)Start debugging serial output'''<br><br>
OrangePi is powered on and putty will automatically print serial port log information<br>
<br>
=== '''Use on Linux platform''' ===
<br>
There is not much difference between using putty on the Linux platform and the Windows platform. The following mainly describes the operation steps where there are differences. All operations are based on Ubuntu 14.04 system.<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
$ sudo apt-get install putty<br>
</div>
<br>
The serial number can be viewed through ls / dev / ttyUSB *<br>
Baud rate needs to be set to 115200<br>
And turn off flow control
<div>[[文件File:Orange-pi-3-img35.png|800px]]</div>
== '''History''' ==
<br>
</tr>
<tr style="height:50px;">
<td>1.0</td><td>20192018-0105-2407</td><td>Leeboby</td><td>Create documentFiles</td><td></td><td></td>
</tr>
<tr style="height:50px;">
</table>
<br>
== '''Download the Orange Pi Lite 2 User Manual''' ==<br>For more information on using the Orange Pi 3Lite 2, please see the [httphttps://localhost:8080drive.google.com/index.phpopen?titleid=%E6%96%87%E4%BB%B6:Orange_Pi_3.docx 1i_jeJRCf0Sr5p62RMo5xodUwTFXELpEi <span style="color:red;">Orange Pi 3 Lite 2 User Manual</span>]. (Click to download)