Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 3

53 bytes removed, 19:42, 30 June 2022
no edit summary
The following figure is the GPIO pin function diagram of Orange Pi 3:
<div>[[File:Orange-pi-3-img4.png|800px]]</div>
{| class="wikitable" style="text-align:center;width:1000px800px;"
|-
| colspan=3| Orange Pi 3 pin correspondence table
</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)'''
The above software can be obtained through Github, Google Web Disk and Baidu Cloud Disk.
<p style="padding-left:200px;">'''http://www.orangepi.orgcn/html/downloadresourcesserviceAndSupport/''' index.html <br>'''http://www.orangepi.cnorg/html/downloadresourcescnserviceAndSupport/'''index.html
</p>
$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64<br>
$ export PATH=$JAVA_HOME/bin:$PATH<br>
$ export CLASSPATH=.:$JAVA_HOME/lib:<br>$JAVA_HOME/lib/tools.jar
</div>
<div style="background:#f1f1f1;border:1px solid #000;">
lichee/brandy/u-boot-2014.07&nbsp;&nbsp;&nbsp;&nbsp; #uboot Code directory<br>
lichee/bootloader/uboot_2014_sunxi_spl<br>&nbsp;&nbsp;&nbsp;#boot0 Code directory<br>
lichee/linux-3.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#Kernel code<br>
lichee/tools&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#Solution hardware configuration, packaging tools, etc.
Dragon execute image.cfg SUCCESS !<br>
----------image is at----------<br>
OrangePi_3/lichee/tools/pack/<br>sun50iw6p1_android_petrel-p1_uart0.img<br>
<br>
pack finish
<br>
<br>
 
== '''Setting up a Linux compilation environment''' ==
<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 3, enter the kernel version selection interface after entering<br>
<br>
<div style="padding-left:200px;">[[File:Orange-pi-3-img7.png|600px]]</div>
<br>
At present, the orangepi 3 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>
<br>
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:<br>http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-pi-3.html 
=== '''Set up a compilation environment''' ===
<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ cd OrangePiH6_Linux4.9/kernel/<br>drivers/net/wireless<br>
$ git clone https://github.com/diederikdehaas/rtl8812AU.git<br>
Cloning into 'rtl8812AU'...<br>
$ cd OrangePiH6_Linux4.9/kernel/drivers/net/wireless<br>
$ git diff .<br>
diff --git a/drivers<br>/net/wireless/Kconfig b/<br>drivers/net/wireless/Kconfig<br>
index 373666b..b7ebd5c 100755<br>
--- a/drivers/net/wireless/Kconfig<br>
* 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>
* '''Recompile the kernel according to the method of `` 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;">
Start Compile Module<br>
<p style="padding-left:10px;">
CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_cmd.o<br>CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_security.o <br>CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_debug.o<br>CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_io.o<br>CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_ioctl_query.o <br>CC [M] drivers/net/wireless/rtl8812AU/core/<br>rtw_ioctl_set.o<br>
</p>
</div>
4.9.118 + / kernel / drivers / net / wireless / rtl8812AU
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
$ cd output/lib/modules/4.9.118+/kernel/<br>drivers/net/wireless/rtl8812AU<br>
$ ls <br>
'''8812au.ko'''
<div>[[File:Orange-pi-3-img26.png|800px]]</div>
 Insert the RTL8822BE wireless network card module according to the method shown in the figure below and start the system. The system will automatically identify and load the 88x2be.ko kernel module.
<div style="padding-left:200px;">[[File:Orange-pi-3-img27.png|800px]]</div>
 The lsmod command can be used to check whether the driver is successfully loaded.
The ifconfig command can be used to check the network node corresponding to the PCIE wireless network card.<br>
<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|800px600px]]</div>
Connect the serial cable as shown in the figure below. The 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-3-img29.png|800px600px]]</div>
<br>
=== '''Use on Windows platform''' ===
<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|800px600px]]</div>
Wait for the installation to complete
<div style="padding-left:200px;">[[File:Orange-pi-3-img32.png|800px600px]]</div>
* '''Download and install Putty'''
Putty can be downloaded from the following address, please choose the version suitable for your development environment.<br>
</table>
<br>
== '''Download the Orange Pi 3 User Manual''' ==For more information on using the Orange Pi 3, 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 User Manual</span>]. (Click to download)