Open main menu

Wiki-Orange Pi β

Changes

Orange Pi One Plus

80 bytes removed, 20:29, 30 June 2022
no edit summary
=== '''Orange Pi One Plus hardware features''' ===
<br>
<div>[[文件File:Orange-pi-one-plus-img1.png|800px]]</div><div>[[文件File:Orange-pi-one-plus-img2.png|800px]]</div>
<br>
<div>[[文件File:Orange-pi-one-plus-img3.png|800px]]</div>
<br>
=== '''GPIO specifications''' ===
<br>
The following figure is the GPIO pin function diagram of Orange Pi One Plus:
<div>[[文件File:Orange-pi-3-img4.png|800px]]</div>{| class="wikitable" style="text-align:center;width:1000px800px;background:#ffffff;"
|-
| colspan=3| Orange Pi One Plus GPIO 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 above software can be obtained through Github, Mega network disk and Baidu cloud disk.
<p style="padding-left:200px;">'''http://www.orangepi.orgcn/html/hardWare/computerAndMicrocontrollers/downloadresourcesservice-and-support/Orange-pi-One-Plus.html'''<br>'''http://www.orangepi.cnorg/html/hardWare/computerAndMicrocontrollers/downloadresourcescnservice-and-support/Orange-pi-One-Plus.html'''
</p>
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>
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 orangepi oneplus, enter the kernel version selection interface after entering<br>
<br>
<div style="padding-left:200px ;">[[文件File:Orange-pi-one-plus-img4.png|600px]]</div>
<br>
At present, the orangepi oneplus 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:
httpshttp://panwww.baiduorangepi.comorg/shtml/15NOF_eAwbN9ah3dfWx0ArQhardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-One-Plus.html 
=== '''Build a compilation environment''' ===
<br>
<br>
Select OrangePi oneplus and press Enter
<div>[[文件File:Orange-pi-lite2one-img5plus-img6.png|600px]]</div>
The functions of each option are as follows:<br>
<div style="font-weight:700">
</div>
The final file generated by the compilation will be saved in the output directory
<div>[[文件File:Orange-pi-3-img10.png|600px]]</div>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
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>
* '''(1)Get the source code of rtl8812AU from github'''
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
</div>
<br>
* '''(2)Add rtl8812AU configuration'''
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
</div>
<br>
* '''(3)Select Realtek 8812A USB WiFi in the kernel configuration and compile it into a kernel module'''
<br>
<div style="padding-left:300px ;">[[文件File:Orange-pi-3-img11.png|600px]]</div>* '''(4)Recompile the kernel according to the method 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>
* '''(5)Update the kernel module'''
<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 steps''' ===
<br>
* '''(1)Format TF card'''<br>
<br>
Check whether the inserted TF card is consistent with the selected drive letter, click the "Restore Card" button to start formatting the TF
<div>[[文件File:Orange-pi-3-img14.png|800px]]</div><div>[[文件File:Orange-pi-3-img15.png|800px]]</div>
<br>
* '''(2)Then select firmware, select boot card.'''
<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>
We can burn the Linux firmware of Orange Pi Lite 2 One Plus into the TF card through Etcher. Since Orange Pi Lite 2 has no on-board One Plus does not have eMMConboard, we can only start the system through TF. Etcher supports the following operating systems:<br>
* Linux (most distributions, such as Ubuntu)
* MacOS 10.9 and later
* Windows 7 and later
The Etcher software installation package can be downloaded from its official website https://etcher.io/, or it can be downloaded from the official tools on tool of the Orange Pi One Plus official website download page of Orange Pi Lite 2.<br>
<br>
=== '''How to install Etcherinstallation 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;">
<br>
<br>
3.Update and installinstallation<br>
$ sudo apt-get update && sudo apt-get install etcher-electron
<br>
<br>
4.Uninstallation Uninstall method<br>
$ sudo apt-get remove etcher-electron<br>
$ sudo rm /etc/apt/sources.list.d/etcher.list && sudo apt-get update
=== '''How to flash Linux firmware through Etcher''' ===
<br>
* '''(1)First open Etcher, its interface is shown below'''<br>
<br>
<div>[[文件File:Orange-pi-3-img24.png|800px]]</div>
<br>
* '''(2)Then use "Select image" to select the Linux firmware to be burned'''<br>
<br>
* '''(3)Then insert the TF card, Etcher will automatically identify the corresponding drive'''<br>
<br>
* '''(4)Finally, click “Flash!” To start burning. After burning, you can insert the development board to start the system.'''<br>
<br>
<div>[[文件File:Orange-pi-3-img25.png|800px]]</div>
<br>
== '''Instructions for use of Linux systemsystems''' ==
<br>
=== '''Linux boot light description''' ===
<br>
* After booting, the on board onboard LED light will first turn on the red light up red, then the red light will turn be off, and the yellow light will stay be on.<br>* The network port light will not turn on without a network cable<br>* If the network cable is plugged in after power on, the network port light will turn on. After a period of time, the network port light will turn off for about 2 seconds and then turn on again.
<br>
 
=== '''Login account and password''' ===
<br>
Username orangepi, password: orangepi<br>
<br>
=== '''extend Extend rootfs partition''' ===
<br>
After the system operating card is prepared, the rootfs partition of the file system should be expanded immediately. This will greatly improve the performance of the system and avoid various complicated problems caused by insufficient space.<br>
<td>0%</td>
<td>/dev/shm</td>
</tr>
<tr>
<td>tmpfs </td>
<td>489M</td>
<td>6.6M</td>
<td>489M</td>
<td>2%</td>
<td>/run</td>
</tr>
<tr>
</div>
<br>
 
=== '''Recording playback test method''' ===
<br>
<span style="color:red;">Note: The Audio Codec audio driver for the mainline kernel is not yet available</span><br>
<br>
'''(1)* Test recording function'''<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepilite2orangepioneplus:~# arecord -d 10 -f cd -D hw:1,0 -t wav Test.wav Recording<br>Recording WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,<br> StereoStereo<br>root@orangepilite2orangepioneplus:~#
</div>
<br>
'''(2)* Test the HDMI playback function, just use the aplay command to play'''<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepilite2orangepioneplus:~# aplay Test.wav
</div>
<br>
<br> === '''WIFI configuration method''' ===<br>Add the following configuration to / etc / network / interface and restart* Test headset playback<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
auto wlan0<br>iface wlan0 inet dhcp<br>wparoot@orangepioneplus:~# aplay -ssid orangepi&nbsp;&nbsp;&nbsp;&nbsp;//Fill in the WIFI account here(orangepi)<br>wpa-psk orangepi&nbsp;&nbsp;&nbsp;&nbsp;//Fill in the WIFI password here(orangepi)<br>D hw:1,0 Test.wav
</div>
<br>
== '''Introduction to serial debugging tools''' ==
<br>
First you need to prepare a USB to TTL serial cable similar to the picture belowfollowing figure:<br><div style="padding-left:200px ;">[[文件File:Orange-pi-3-img28.png|800px600px]]</div>Connect the serial port cable as shown in the figure below. 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—GND
* Green-RX
* White-TX
<div style="padding-left:200px ;">[[文件File:Orange-pi-lite2one-plus-img6img5.png|800px600px]]</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>
* '''(1)Install USB driver'''<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>* '''(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>
<p>Double-click the downloaded putty.exe directly to open putty. The software interface
is shown in the figure below.</p>
<div style="padding-left:40px;">[[文件File:Orange-pi-lite2-img7.png|600px]]</div>'''(3)Acquisition of equipment information'''<br>
<br>
 In Windows 7, we can check whether the serial port connection is normal and the device number * '''Acquisition 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.equipment information'''<div>[[文件:Orange-pi-3-img33.png|800px]]</divbr>
<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 normally, please check whether the driver is successfully installed. If there is a problem with the driver installation, you can try to use 360 Driver Master to scan and install the driver.<div>[[File:Orange-pi-3-img33.png|800px]]</div><br>* '''(4)Putty configuration'''<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>* '''(5)Start debugging serial output'''<br>
<br>
OrangePi is powered on and putty will automatically print serial port log information<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>
* '''(1)Install and launch Putty'''<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
$ sudo apt-get install putty<br>
</div>
<br>
* '''(2)Configure Putty'''<br>
<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''' ==
</tr>
<tr style="height:50px;">
<td>1.0</td><td>2018-05-07</td><td>Leeboby</td><td>Create Filesdocument</td><td></td><td></td>
</tr>
<tr style="height:50px;">
</table>
<br>
== '''Download the Orange Pi One Plus User Manual''' ==<br>For more information on using the Orange Pi Lite 2One Plus, please see the [https://drive.google.com/open?id=1i_jeJRCf0Sr5p62RMo5xodUwTFXELpEi <span style="color:red;">Orange Pi Lite 2 One Plus User Manual</span>]. (Click to download)