Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 3B

39,130 bytes added, 09:06, 24 August 2023
Interface details of Orange Pi 3B
Orange Pi 3B brings out quite a lot of interfaces, including HDMI output, M.2 PCIe2.0x1, Gigabit Ethernet port, USB2.0, USB3.0 interface and 40pin expansion pin header, etc. It can be widely used in high-end tablet, edge computing, artificial intelligence, cloud computing, AR/VR, smart security, smart home and other fields, covering various AIoT industries.
Orange Pi 3B supports Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, open source Hongmeng OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on open source Hongmeng OpenHarmony and other operating systems.
<span id="purpose-of-orange-pi-3b"></span>
 
== Purpose of Orange Pi 3B ==
• Integrated RKNN NPU AI accelerator, 0.8Tops@INT8 performance
• Supports one-click conversion of C affeCaffe/TensorFlow/TFLite/ONNX/PyTorch/Keras/Darknet architecture models
|-
| storage
|
• Support eMMC module: 16GB/32GB/64GB/128GB/256GB
• SPI Flash: 16MB/32MB
| Wi-Fi+Bluetooth
|
Wi-Fi 5+BT 5.0,BLE(20U5622)0, BLE(20U5622)
|-
| ethernet transceiver
| Supported OS
|
Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, open source Hongmeng OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on open source Hongmeng OpenHarmony and other operating systems.
|-
|colspan=2|
<div class="figure">
[[File:pi3b-img3.png|800px]]
</div>
<div class="figure">
[[File:pi3b-img4.png|800px]]
</div>
== Interface details of Orange Pi 3B ==
[[File:pi3b-img5-1.png|800px]]
[[File:pi3b-img6.png|800px]]
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''The diameter of the four positioning holes is 32.0mm7mm, and the diameter of the M.2 PICE device fixing hole is 32.5mm9mm.'''</big>
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Power adapter, Orange Pi 3B is recommended to use 5V/3A or 5V/4A Type-C power supply for power supply</li>
[[File:pi3b-img11-1.png]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li>'''3.3V''' USB to TTL module and DuPont line, when using serial port debugging function, need USB to TTL module and DuPont line to connect the development board and computer</li>
[[File:pi3b-img17.png|400px]] [[File:pi3b-img18.png|400px]]
</ol>
<ol start="12" style="list-style-type: decimal;">
<div class="figure">
::[[File:pi3b-img19.png|800px]]
</div>
|-
|
'''https://www.balena.io/etcher/'''
|}
<div class="figure">
[[File:pi3b-img25.png|501x281px|03]]
</div></ol>
<li>The interface displayed in the process of burning the Linux image by balenaEtcher is shown in the figure below, and the progress bar displays purple, indicating that the Linux image is being burned into the TF card</li>
[[File:pi3b-img26.png|428x268px]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>After burning the Linux image, balenaEtcher will also verify the image burned into the TF card by default to ensure that there is no problem in the burning process. As shown in the figure below, a green progress bar indicates that the image has been burnt, and balenaEtcher is verifying the burnt image</li>
[[File:pi3b-img27.png|427x267px]]
</ol>
<ol start="11" style="list-style-type: decimal;">
<li>After the successful burning is completed, the display interface of balenaEtcher is as shown in the figure below. If the a green indicator icon is displayed, it means that the image burning is successful. At this time, you can exit balenaEtcher, and then pull out the TF card and insert it into the TF card slot of the development boardfor use. up</li>
<div class="figure">
[[File:pi3b-img28.png|523x324px|04]]
</div></ol>
<div class="figure">
::[[File:pi3b-img16.png|146x143px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
</div>
<ol start="2" style="list-style-type: decimal;">
<li><p>You also need to prepare a 16GB or larger capacity TF card. The transmission speed of the TF card must be '''class''' 10 or above. It is recommended to use a TF card of SanDisk and other brands</p></li>
<li><p>Then download the Rockchip driver '''DriverAssitant_v5.12.zip''' and '''MiniLoader''' and the burning tool '''RKDevTool_Release_v3.15.zip''' from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
<ol style="list-style-type: lower-alpha;">
<li>On the data download page of Orange Pi, first select the '''official tool''', and then enter the following folder</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img29.png|283x90px|6d1c77df7eeb7e491e5f79e8d85cbdc]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
<div class="figure">
[[File:pi3b-img30.png|290x130px|34acacded202b29eee42fd20f5b4c92]]
</div>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''</big>|}</ol></li></ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Then download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system , the size is generally more than 2GB</p></li><li><p>Then use the decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</p></li></ol> [[File:pi3b-img31.png|464x136px]]
[[File:pi3b-img31.png]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol></li></ol> [[File:pi3b-img32.png|245x129px]]
[[File:pi3b-img32.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>After waiting for a period of time, a pop-up window will prompt &quot;'''The driver is installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li></ol> [[File:pi3b-img33.png|254x132px]]
[[File:pi3b-img33.png]]
</ol>
</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>Then decompress '''RKDevTool_Release_v3.15.zip''', this software does not need to be installed, just find '''RKDevTool''' in the decompressed folder and open it</li></ol> [[File:pi3b-img34.png|448x132px]]
[[File:pi3b-img34.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>After opening the '''RKDevTool''' burning tool, because the computer has not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol> [[File:pi3b-img35.png|402x189px]]
[[File:pi3b-img35.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li><p>Then start burning the Linux image to the TF card</p>
<ol style="list-style-type: lower-alpha;">
<li>First, connect the development board to the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming port of the development board is shown in the figure below</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img36.png|271x115px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Make sure the TF card slot is not inserted into the TF card</p></li>
<li><p>Then press and hold the MaskROM button on the development board, the position of the MaskROM button on the development board is shown in the figure below:</p></li></ol> [[File:pi3b-img37.png|289x100px]]
[[File:pi3b-img37.png]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button</li></ol>
<blockquote>[[File:pi3b-img38.png|305x94px]]</blockquoteol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li></ol> [[File:pi3b-img39.png|454x213px]]
[[File:pi3b-img39.png]]
</ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li><p>At this time, please insert the TF card into the TF card slot</p></li>
<li><p>Then place the mouse cursor in the area below</p></li></ol>
<div class="figure">
[[File:pi3b-img40.png|455x216px|图片1]]
</div></ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li></ol> [[File:pi3b-img41.png|453x213px]]
[[File:pi3b-img41.png]]
</ol>
<ol style="list-style-type: lower-roman;">
<li>Then select the '''import configuration''' option</li></ol> [[File:pi3b-img42.png|458x215px]]
[[File:pi3b-img42.png]]
</ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>Then select the '''rk3588_Linux_tfcard.cfg''' configuration file in the '''MiniLoader''' folder downloaded earlier, and click '''Open'''</li></ol> [[File:pi3b-img43.png|457x215px]]
[[File:pi3b-img43.png]]
</ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>Then click '''OK'''</li></ol> [[File:pi3b-img44.png|483x227px]]
[[File:pi3b-img44.png]]
</ol>
<ol start="12" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img45.png|486x228px]]
[[File:pi3b-img45.png]]
</ol>
<ol start="13" style="list-style-type: lower-alpha;">
<li>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and click to '''open'''</li></ol>
<div class="figure">
[[File:pi3b-img46.png|494x232px|[78~~Z7UFB@US@8P$QL%OM6]]
</div></ol>
<ol start="14" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img47.png|493x232px]]
[[File:pi3b-img47.png]]
</ol>
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then select the path of the Linux image you want to burn, and then click '''Open'''</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Before burning the image, it is recommended to rename the Linux image to be burned to orangepi.img or other shorter names, so that you can see the percentage value of the burning progress when burning the image.'''</big> [[File:pi3b-img48.png|499x234px]]}
[[File:pi3b-img48.png]]
</ol>
<ol start="16" style="list-style-type: lower-alpha;">
<li>Then please check the '''mandatory write by address''' option</li></ol> [[File:pi3b-img49.png|497x234px]]
[[File:pi3b-img49.png]]
</ol>
<ol start="17" style="list-style-type: lower-alpha;">
<li>Click the execute button again to start burning the Linux image to the tf card of the development board</li></ol> [[File:pi3b-img50.png|497x233px]]
[[File:pi3b-img50.png]]
</ol>
<ol start="18" style="list-style-type: lower-alpha;">
<li>The display log after burning the Linux image is shown in the figure below</li></ol>
<div class="figure">
[[File:pi3b-img51.png|492x231px|%O4~FPPAT$0RH{3S~CGJ@@Q(1)]]
</div></ol>
<ol start="19" style="list-style-type: lower-alpha;">
<li>After burning the Linux image to the TF card, the Linux system will start automatically.</li></ol>
</li></ol>
<span id="how-to-use-win32diskimager-to-burn-linux-image"></span>
<span id="how-to-use-win32diskimager-to-burn-linux-image"></span>
=== How to use Win32Diskimager to burn Linux image ===
<li><p>Then format the TF card</p>
<ol style="list-style-type: lower-alpha;">
<li>'''SD Card Formatter''' can be used to format the TF card. The download address is:</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-| '''https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip'''|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>After downloading, unzip and install directly, and then open the software</p></li>
<li><p>If only a TF card is inserted into the computer, the drive letter of the TF card will be displayed in the &quot;'''Select card'''&quot; column. If multiple USB storage devices are inserted into the computer, you can select the corresponding drive letter of the TF card through the drop-down box</p></li></ol>
<div class="figure">
[[File:pi3b-img52.png|209x228px|选区_199]]
</div></ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then click &quot;'''Format'''&quot;, a warning box will pop up before formatting, and formatting will start after selecting &quot;'''Yes (Y)'''&quot;</li></ol> [[File:pi3b-img53.png|304x147px]]
[[File:pi3b-img53.png]]
</ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>After formatting the TF card, the information shown in the figure below will pop up, click OK</li></ol>
<blockquote>[[File:pi3b-img54.png|186x149px]]</blockquoteol></li></ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system. The size is generally more than 2GB</p></li>
<li><p>Use '''Win32Diskimager''' to burn the Linux image to the TF card</p>
<ol style="list-style-type: lower-alpha;">
<li>The download page of Win32Diskimager is</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-| '''http://sourceforge.net/projects/win32diskimager/files/Archive/'''|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>After downloading, install it directly. The interface of Win32Diskimager is as follows</p>
<ol style="list-style-type: lower-alphanone;"><li><p>a) First select the path of the image file</p></li><li><p>b) Then confirm that the drive letter of the TF card is consistent with that displayed in the &quot;'''Device'''&quot; column</p></li><li><p>c) Finally click &quot;'''Write'''&quot; to start burning</p></li></ol></li></ol>
<div class="figure">
[[File:pi3b-img55.png|297x206px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\a8fda8737c5b0b3b38fbb75ef68acfc.pnga8fda8737c5b0b3b38fbb75ef68acfc]]
</div></ol></li></ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>After the image writing is completed, click the &quot;'''Exit'''&quot; button to exit, and then you can pull out the TF card and insert it into the development board to start</li></ol>
</li></ol>
<span id="method-of-burning-linux-image-to-tf-card-based-on-ubuntu-pc"></span>
== Method of burning Linux image to TF card based on Ubuntu PC ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the [http://www.orangepi.org/html/serviceAndSupporthardWare/computerAndMicrocontrollers/service-and-support/indexOrange-Pi-3B.html Orange Pi data download page], and the Ubuntu PC refers to the personal computer with the Ubuntu system installed.'''</big>|}
# First prepare a TF card with a capacity of 16GB or more. The transmission speed of the TF card must be '''class 10''' or above. It is recommended to use a TF card of SanDisk and other brands
# Download the balenaEtcher software, the download address is
::{| class="wikitable" style="width:800px;"
|-
|
[https://www.balena.io/etcher/ '''https://www.balena.io/etcher/''']
|}
<ol start="4" style="list-style-type: decimal;">
<li>After entering the balenaEtcher download page, click the green download button to jump to the place where the software is downloaded</li></ol> [[File:pi3b-img20.png|434x208px]]
[[File:pi3b-img20.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then choose to download the Linux version of the software</li></ol>
[[File:pi3b-img56.png|430x163px]]</ol><ol start="6" style="list-style-type: decimal;"><li>Download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system. The size is generally more than 2GB</li>
<ol start="6" style="list-style-type: decimal;"><li>Download The decompression command for the Linux operating system image file compression compressed package that you want to burn from the [http://www.orangepi.org/html/serviceAndSupport/index.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system. The size in 7z is generally more than 2GB</li></ol>as follows
<blockquote>The decompression command for the compressed package ending in 7z is as follows{| class="wikitable" style="width:800px;" </blockquote>|-|
test@test:~$ '''7z x Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.7z'''
test@test:~$ '''ls Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.*'''
Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.7z  Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.sha #checksum file
Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.img #mirror file
|}</ol>
<ol start="7" style="list-style-type: decimal;">
<li>After decompressing the image, you can first use the '''sha256sum -c *.sha''' command to calculate whether the checksum is correct. If the prompt is successful, it means that the downloaded image is '''correct''', and you can safely burn it to the TF card. If it prompts that the '''checksum does not match''', it means There is a problem with the downloaded image, please try to download again</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sha256sum -c *.sha'''
Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.img: OK
|}</ol>
<ol start="8" style="list-style-type: decimal;">
<li>Then double-click '''balenaEtcher-1.5.109-x64.AppImage''' on the graphical interface of Ubuntu PC to open balenaEtcher (no installation required), and the interface after balenaEtcher is opened is shown in the figure below</li></ol> [[File:pi3b-img57.png|423x251px]]
[[File:pi3b-img57.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li><p>The specific steps of using balenaEtcher to burn the Linux image are as follows</p>
<li><p>First select the path of the Linux image file to be burned</p></li>
<li><p>Then select the drive letter of the TF card</p></li>
<li><p>Finally, click Flash to start burning the Linux image to the TF card</p></li></ol></li></ol>
<div class="figure">
[[File:pi3b-img25.png|501x281px|03]]
</div></ol></li></ol>
<ol start="10" style="list-style-type: decimal;">
<li>The interface displayed in the process of burning the Linux image by balenaEtcher is shown in the figure below, and the progress bar displays purple, indicating that the Linux image is being burned into the TF card</li></ol> [[File:pi3b-img58.png|429x184px]]
[[File:pi3b-img58.png]]
</ol>
<ol start="11" style="list-style-type: decimal;">
<li>After burning the Linux image, balenaEtcher will also verify the image burned into the TF card by default to ensure that there is no problem in the burning process. As shown in the figure below, a green progress bar indicates that the image has been burnt, and balenaEtcher is verifying the burnt image</li></ol> [[File:pi3b-img59.png|436x190px]]
[[File:pi3b-img59.png]]
</ol>
<ol start="12" style="list-style-type: decimal;">
<li>After successful burning, the display interface of balenaEtcher is as shown in the figure below. If a green indicator icon is displayed, it means that the image burning is successful. At this time, you can exit balenaEtcher, and then pull out the TF card and insert it into the TF card slot of the development board for use. up</li></ol>
[[File:pi3b-img60.png|435x257px]]</ol><span id="how-to-burn-linux-image-to-emmc"></span>
<span id="how-to-burn-linux-image-to-emmc"></span>
== How to burn Linux image to eMMC ==
=== Using RKDevTool to burn the Linux image into eMMC ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that all the following operations are performed on a Windows computer.'''</big>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html Orange Pi data download page].'''</big>|}
# The development board reserves the expansion interface of the eMMC module. Before burning the system to the eMMC, you first need to purchase an eMMC module that matches the eMMC interface of the development board. Then install the eMMC module to the development board. The eMMC module and the method of plugging into the development board are as follows:
::[[File:pi3b-img61.png|115x84px400px]] [[File:pi3b-img62.png|120x87px400px]]
::[[File:pi3b-img63.png|277x129px800px]]
<ol start="2" style="list-style-type: decimal;">
<li>You also need to prepare a good quality USB2.0 male-to-male data cable</li></ol>
<div class="figure">
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
</div></ol>
<ol start="3" style="list-style-type: decimal;">
<li><p>Then download the Rockchip driver '''DriverAssitant_v5.12.zip''' and '''MiniLoader''' and the burning tool '''RKDevTool_Release_v3.15.zip''' from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
<ol style="list-style-type: lower-alpha;">
<li>On the data download page of Orange Pi, first select the official tool, and then enter the following folder</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img29.png|360x115px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\6d1c77df7eeb7e491e5f79e8d85cbdc.png6d1c77df7eeb7e491e5f79e8d85cbdc]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
<div class="figure">
[[File:pi3b-img30.png|320x144px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\34acacded202b29eee42fd20f5b4c92.png34acacded202b29eee42fd20f5b4c92]]
</div>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''</big>|}</ol></li></ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Then download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system , the size is generally more than 2GB</p></li><li><p>Then use the decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</p></li></ol> [[File:pi3b-img31.png|496x146px]]
[[File:pi3b-img31.png]]
</ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol></li></ol> [[File:pi3b-img32.png|284x149px]]
[[File:pi3b-img32.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>After waiting for a period of time, a pop-up window will prompt &quot;'''The driver is installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li></ol> [[File:pi3b-img33.png|296x154px]]
[[File:pi3b-img33.png]]
</ol>
</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>Then decompress '''RKDevTool_Release_v3.15.zip''', this software does not need to be installed, just find '''RKDevTool''' in the decompressed folder and open it</li></ol> [[File:pi3b-img34.png|484x143px]]
[[File:pi3b-img34.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>After opening the '''RKDevTool''' burning tool, because the computer has not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol> [[File:pi3b-img35.png|442x208px]]
[[File:pi3b-img35.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li><p>Then start burning the Linux image into eMMC</p>
<ol style="list-style-type: lower-alpha;">
<li>First, connect the development board to the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming port of the development board is shown in the figure below</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Make sure that the development board is not inserted into the TF card and not connected to the power supply</p></li>
<li><p>Then press and hold the MaskROM button on the development board, the position of the MaskROM button on the development board is shown in the figure below:</p></li></ol> [[File:pi3b-img37.png|289x100px]]
[[File:pi3b-img37.png]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button</li></ol> [[File:pi3b-img38.png|305x94px]]
[[File:pi3b-img38.png]]
</ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li></ol> [[File:pi3b-img39.png|457x215px]]
[[File:pi3b-img39.png]]
</ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then place the mouse cursor in the area below</li></ol>
<div class="figure">
[[File:pi3b-img64.png|458x215px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-4.jpg未标题-4]]
</div></ol>
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li></ol> [[File:pi3b-img41.png|460x216px]]
[[File:pi3b-img41.png]]
</ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then select the '''import configuration''' option</li></ol> [[File:pi3b-img42.png|458x215px]]
[[File:pi3b-img42.png]]
</ol>
<ol style="list-style-type: lower-roman;">
<li>Then select the '''rk3588_Linux_emmc.cfg''' configuration file in the '''MiniLoader''' folder downloaded earlier, and click '''Open'''</li></ol> [[File:pi3b-img65.png|466x219px]]
[[File:pi3b-img65.png]]
</ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>Then click '''OK'''</li></ol> [[File:pi3b-img66.png|468x220px]]
[[File:pi3b-img66.png]]
</ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img67.png|462x217px]]
[[File:pi3b-img67.png]]
</ol>
<ol start="12" style="list-style-type: lower-alpha;">
<li>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and then click to '''open'''</li></ol>
<div class="figure">
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
</div></ol>
<ol start="13" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img69.png|459x216px]]
[[File:pi3b-img69.png]]
</ol>
<ol start="14" style="list-style-type: lower-alpha;">
<li>Then select the path of the Linux image you want to burn, and then click '''Open'''</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Before burning the image, it is recommended to rename the Linux image to be burned to orangepi.img or other shorter names, so that you can see the percentage value of the burning progress when burning the image.'''</big> [[File:pi3b-img48.png|499x234px]]}
[[File:pi3b-img48.png]]
</ol>
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then please check the option to '''force writing by address'''</li></ol> [[File:pi3b-img70.png|501x235px]]
[[File:pi3b-img70.png]]
</ol>
<ol start="16" style="list-style-type: lower-alpha;">
<li>Click the execute button again to start burning the Linux image to the eMMC of the development board</li></ol> [[File:pi3b-img71.png|502x236px]]
[[File:pi3b-img71.png]]
</ol>
<ol start="17" style="list-style-type: lower-alpha;">
<li>The log displayed after burning the Linux image is shown in the figure below</li></ol> [[File:pi3b-img72.png|500x235px]]
[[File:pi3b-img72.png]]
</ol>
<ol start="18" style="list-style-type: lower-alpha;">
<li>After burning the Linux image into the eMMC, the Linux system will start automatically.</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note, after burning the image into eMMC, if the test finds that it cannot be started, please clear the SPIFlash and try again. For the method of clearing SPIFlash, please refer to [[Orange Pi 3B#Using RKDevTool to clear SPIFlash|the method of using RKDevTool to clear SPIFlash]].'''</big>|}</ol></li></ol><span id="use-the-dd-command-to-burn-the-linux-image-into-emmc"></span>
'''Note, after burning the image into eMMC, if the test finds that it cannot be started, please clear the SPIFlash and try again. For the method of clearing SPIFlash, please refer to [[\l|the method of using RKDevTool to clear SPIFlash]].'''
 
<span id="use-the-dd-command-to-burn-the-linux-image-into-emmc"></span>
=== Use the dd command to burn the Linux image into eMMC ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the Linux image mentioned here specifically refers to the image of Linux distributions such as Debian, Ubuntu, OpenWRT or OPi OS Arch downloaded from the [http://www.orangepi.org/html/serviceAndSupporthardWare/computerAndMicrocontrollers/indexservice-and-support/Orange-Pi-3B.html Orange Pi data download page].'''</big>|}
# The development board reserves the expansion interface of the eMMC module. Before burning the system to the eMMC, you first need to purchase an eMMC module that matches the eMMC interface of the development board. Then install the eMMC module to the development board. The eMMC module and the method of plugging into the development board are as follows:
::[[File:pi3b-img61.png|115x84px400px]] [[File:pi3b-img62.png|120x87px400px]]
::[[File:pi3b-img63.png|286x133px800px]]
<ol start="2" style="list-style-type: decimal;">
<li><p>Using the dd command to burn the Linux image to eMMC needs to be completed with the help of a TF card, so first you need to burn the Linux image to the TF card, and then use the TF card to start the development board to enter the Linux system. For the method of burning the Linux image to the TF card, please refer to the instructions in the two sections of [[\lOrange Pi 3B#Method of burning Linux image to TF card based on Windows PC|'''the method of burning the Linux image to the TF card based on the Windows PC''']] and [[\lOrange Pi 3B#Method of burning Linux image to TF card based on Ubuntu PC|'''the method of burning the Linux image to the TF card based on the Ubuntu PC''']].</p></li><li><p>After using the TF card to start the Linux system, we first upload the decompressed Linux image file (Debian, Ubuntu image or OPi Arch image downloaded from the official website) to the TF card. For the method of uploading the Linux image file to the development board, please refer to the description in the section of [[\lOrange Pi 3B#The method of uploading files to the Linux system of the development board|'''the method of uploading files to the development board Linux system''']].</p></li><li><p>After uploading the image to the Linux system of the development board, we enter the storage path of the image file in the command line of the Linux system of the development board. For example, I store the Linux image of the development board in the '''/home/orangepi/Desktop''' directory Download it, and then enter the '''/home/orangepi/Desktop''' directory to see the uploaded image file.</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''How to enter the command line of the development board Linux system?'''
'''1. For the method of using the serial port to log in to the terminal, please refer to the instructions in the section on [[Orange Pi 3B#How to enter use the command line of debugging serial port|how to use the development board Linux system?debugging serial port]].'''
# '''For the method of using the serial port to log in to the terminal, please refer to the instructions in the section on [[\l|how to use the debugging serial port]]2.'''# '''Use ssh to remotely log in to the Linux system, please refer to the instructions in the section of [[\lOrange Pi 3B#SSH remote login development board|SSH remote login to the development board]].'''# '''If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.'''
'''3. If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.'''</big>
|}
</ol>
<!-- -->
<ol start="5" style="list-style-type: decimal;">
<li>Next, we first use the following command to confirm the device node of eMMC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~/Desktop$ '''ls /dev/mmcblk*boot0 | cut -c1-12'''
'''<span style="color:#FF0000">/dev/mmcblk0</span>'''|}</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Then we can use the dd command to clear the eMMC. Note that after the '''of=''' parameter, please fill in the output result of the above command</li></ol>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/Desktop$ '''sudo dd bs=1M if=/dev/zero of=<span style="color:#FF0000">/dev/mmcblk0 </span> count=1000 status=progress'''
orangepi@orangepi:~/Desktop$ '''sudo sync'''
|}</ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>Then you can use the dd command to burn the Linux image of the development board into the eMMC</p>
<ol style="list-style-type: lower-alpha;">
<li><p>In the following command, the '''if= ''' parameter is followed by the full path where the Linux image is stored + the name of the Linux image (such as '''the name of /home/orangepi/Desktop/Linux image'''). Because we have entered the path of the Linux image above, we only need to fill in the name of the Linux image.</p></li><li><p>Please do not copy the Linux image name in the following command, but replace it with the actual image name (because the version number of the image may be updated).</p></li></ol></li></ol>{| class="wikitable" style="width:800px;" |-| '''sudo dd bs=1M if=Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img of=<span style="color:#FF0000">/dev/mmcblk0 </span> status=progress'''
'''sudo''' '''sync'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''<span style="color:#FF0000">Note, if you upload a .7z or .xz Linux image compressed file, please remember to decompress it before using the dd command to burn.</span>'''
'''Note, if you upload a .7z or .xz Linux image compressed file, please remember to decompress it before using the dd command to burn.'''
 
'''The detailed description of all parameters of the dd command and more usage can be viewed by executing the man dd command in the Linux system.'''
'''The detailed description of all parameters of the dd command and more usage can be viewed by executing the man dd command in the Linux system.'''</big>
|}
</ol>
</li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>After successfully burning the Linux image of the development board to the eMMC, you can use the '''poweroff''' command to shut down. Then please pull out the TF card, and then short press the power button to turn on, and then the Linux system in the eMMC will be started.</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </olbig> '''Note, after burning the image into eMMC, if the test finds that it cannot be started, please clear the SPIFlash and try again. For the method of clearing SPIFlash, please refer to [[\lOrange Pi 3B#Using RKDevTool to clear SPIFlash|the method of using RKDevTool to clear SPIFlash]].'''</big>|}</ol><span id="how-to-write-linux-image-to-spiflashnvme-ssd"></span>
<span id="how-to-write-linux-image-to-spiflashnvme-ssd"></span>
== How to write Linux image to SPIFlash+NVMe SSD ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html Orange Pi data download page].'''</big>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that all the following operations are performed on a Windows computer.'''</big>|}
<span id="using-rkdevtool-to-burn"></span>
<li><p>First, you need to prepare an NVMe SSD. The PCIe supported by the M.2 slot of the development board is PCIe2.0x1, and the theoretical maximum speed is 500MB/s. PCIe3.0 and PCIe4.0 NVMe SSDs are also available, but the highest speed is only PCIe2.0x1.</p>
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol></li></ol> [[File:pi3b-img73.png|157x112px]]
[[File:pi3b-img73.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol> [[File:pi3b-img74.png|174x96px]]
[[File:pi3b-img74.png]]
</ol>
</li></ol>
<ol start="2" style="list-style-type: decimal;">
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li></ol> [[File:pi3b-img75.png|283x63px]]
[[File:pi3b-img75.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>The position of the SPI Flash on the development board is shown in the figure below, no other settings are required before starting the programming</li></ol> [[File:pi3b-img76.png|266x211px]]
[[File:pi3b-img76.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then you need to prepare a good quality USB2.0 male-to-male data cable</li></ol>
<div class="figure">
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
</div></ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>Then download the Rockchip driver '''DriverAssitant_v5.12.zip''' and '''MiniLoader''' and the burning tool '''RKDevTool_Release_v3.15.zip''' from the Orange Pi data download page</p>
<ol style="list-style-type: lower-alpha;">
<li>On the data download page of Orange Pi, first select the '''official tool''', and then enter the following folder</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img29.png|362x115px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\6d1c77df7eeb7e491e5f79e8d85cbdc.png6d1c77df7eeb7e491e5f79e8d85cbdc]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
<div class="figure">
[[File:pi3b-img30.png|264x118px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\34acacded202b29eee42fd20f5b4c92.png34acacded202b29eee42fd20f5b4c92]]
</div>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''</big>|}</ol></li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system , the size is generally more than 2GB</p></li><li><p>Then use the decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</p></li></ol> [[File:pi3b-img31.png|446x131px]]
[[File:pi3b-img31.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol></li></ol> [[File:pi3b-img32.png|253x133px]]
[[File:pi3b-img32.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>After waiting for a period of time, a pop-up window will prompt &quot;'''The driver is installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li></ol> [[File:pi3b-img33.png|269x140px]]
[[File:pi3b-img33.png]]
</ol>
</li></ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then decompress '''RKDevTool_Release_v3.15.zizip'''p, this software does not need to be installed, just find '''RKDevTool''' in the decompressed folder and open it</li></ol> [[File:pi3b-img34.png|402x119px]]
[[File:pi3b-img34.png]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>After opening the '''RKDevTool''' burning tool, because the computer is not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol> [[File:pi3b-img35.png|402x189px]]
[[File:pi3b-img35.png]]
</ol>
<ol start="11" style="list-style-type: decimal;">
<li><p>Then start burning the Linux image to the SSD</p>
<ol style="list-style-type: lower-alpha;">
<li>First, connect the development board to the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming interface of the development board is shown in the figure below</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Make sure that the development board is not connected to the power supply and inserted into the TF card and eMMC</p></li>
<li><p>Then press and hold the MaskROM button on the development board, the position of the MaskROM button on the development board is shown in the figure below:</p></li></ol> [[File:pi3b-img37.png|289x100px]]
[[File:pi3b-img37.png]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button</li></ol> [[File:pi3b-img38.png|305x94px]]
[[File:pi3b-img38.png]]
</ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li></ol> [[File:pi3b-img39.png|457x215px]]
[[File:pi3b-img39.png]]
</ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then place the mouse cursor in the area below</li></ol>
<div class="figure">
[[File:pi3b-img64.png|458x215px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-4.jpg未标题-4]]
</div></ol>
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li></ol> [[File:pi3b-img41.png|453x213px]]
[[File:pi3b-img41.png]]
</ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then select the '''import configuration''' option</li></ol>
[[File:pi3b-img42.png|458x215px]]</ol><ol start="9" style="list-style-type: lower-romanalpha;"><li>i. Then enter the '''MiniLoader''' folder downloaded earlier, then select the '''rk3588_Linux_pcie.cfg''' configuration file, and click '''Open'''</li></ol> [[File:pi3b-img77.png|462x217px]]
[[File:pi3b-img77.png]]
</ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>Then click '''OK'''</li></ol> [[File:pi3b-img78.png|468x220px]]
[[File:pi3b-img78.png]]
</ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img79.png|475x223px]]
[[File:pi3b-img79.png]]
</ol>
<ol start="12" style="list-style-type: lower-alpha;">
<li>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and then click to '''open'''</li></ol>
<div class="figure">
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
</div></ol>
<ol start="13" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img80.png|486x228px]]
[[File:pi3b-img80.png]]
</ol>
<ol start="14" style="list-style-type: lower-alpha;">
<li>Then enter the MiniLoader folder downloaded earlier, select '''rk3566_rkspi_loader.img''', and click '''Open'''</li></ol>
<div class="figure">
[[File:pi3b-img81.png|488x228px|GGU}ZN)TL%P[INB(M%MNJV7]]
</div></ol>
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol> [[File:pi3b-img82.png|493x231px]]
[[File:pi3b-img82.png]]
</ol>
<ol start="16" style="list-style-type: lower-alpha;">
<li>Then select the path of the Linux image you want to burn, and then click '''Open'''</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Before burning the image, it is recommended to rename the Linux image to be burned to orangepi.img or other shorter names, so that you can see the percentage value of the burning progress when burning the image.'''</big> [[File:pi3b-img48.png|499x234px]]}
[[File:pi3b-img48.png]]
</ol>
<ol start="17" style="list-style-type: lower-alpha;">
<li>Then please check '''the mandatory write option to force writing by address''' option</li></ol> [[File:pi3b-img83.png|498x234px]]
[[File:pi3b-img83.png]]
</ol>
<ol start="18" style="list-style-type: lower-alpha;">
<li>Click the Execute button again to start burning the Linux image to the SSD</li></ol> [[File:pi3b-img84.png|500x235px]]
[[File:pi3b-img84.png]]
</ol>
<ol start="19" style="list-style-type: lower-alpha;">
<li>The log displayed after burning the Linux image is shown in the figure below</li></ol>
[[File:pi3b-img85.png|504x240px]] '''If there is a problem with burning, please clear the SPIFlash first and then try burning again. For the method of clearing SPIFlash, please refer to the description of [[\l|the method of using RKDevTool to clear SPIFlash]].'''
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''If there is a problem with burning, please clear the SPIFlash first and then try burning again. For the method of clearing SPIFlash, please refer to the description of [[Orange Pi 3B#Using RKDevTool to clear SPIFlash|the method of using RKDevTool to clear SPIFlash]].'''</big>
|}
</ol>
<ol start="20" style="list-style-type: lower-alpha;">
<li>After the image is burnt, it will automatically start the Linux system in SPIFlash+PCIe SSD. If it does not start normally, please power on and try again.</li></ol></li></ol><span id="the-method-of-using-the-dd-command-to-burn"></span>
<span id="the-method-of-using-the-dd-command-to-burn"></span>
=== The method of using the dd command to burn ===
<li><p>First, you need to prepare an NVMe SSD. The PCIe supported by the M.2 slot of the development board is PCIe2.0x1, and the theoretical maximum speed is 500MB/s. PCIe3.0 and PCIe4.0 NVMe SSDs are also available, but the highest speed is only PCIe2.0x1.</p>
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol></li></ol> [[File:pi3b-img73.png|158x114px]]
[[File:pi3b-img73.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol> [[File:pi3b-img74.png|192x104px]]
[[File:pi3b-img74.png]]
</ol>
</li></ol>
<ol start="2" style="list-style-type: decimal;">
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li></ol> [[File:pi3b-img75.png|283x63px]]
[[File:pi3b-img75.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>The position of SPI Flash on the development board is shown in the figure below, no other settings are required before starting to burn</li></ol> [[File:pi3b-img76.png|261x198px]]
[[File:pi3b-img76.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Burning the Linux image to SPIFlash+NVMe SSD requires a TF card, so first you need to burn the Linux image to the TF card, and then use the TF card to start the development board to enter the Linux system. For the method of burning the Linux image to the TF card, please refer to the instructions in the two sections of [[\lOrange Pi 3B#Method of burning Linux image to TF card based on Windows PC|'''Method of burning Linux image to TF card based on Windows PC''']] and [[\lOrange Pi 3B#Method of burning Linux image to TF card based on Ubuntu PC|'''the method of burning the Linux image to the TF card based on the Ubuntu PC''']].</p></li>
<li><p>After using the TF card to start the Linux system, we first burn the u-boot image into the SPI Flash</p>
<ol style="list-style-type: lower-alpha;">
<li>Run nand-sata-install first, '''<span style="color:#FF0000">ordinary users remember to add sudo permission</span>'''</li></ol></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''sudo nand-sata-install'''
|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select '''7 Install/Update the bootloader on SPI Flash'''</li></ol>
<div class="figure">
[[File:pi3b-img86.png|355x174px|IMG_256]]
</div></ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Yes&gt;'''</li></ol>
<div class="figure">
[[File:pi3b-img87.png|356x179px|IMG_256]]
</div></ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then please wait patiently for the burning to complete. After the burning is completed, the display will be as follows (a '''Done''' will be displayed in the lower left corner):</li></ol>
<div class="figure">
[[File:pi3b-img88.png|358x161px|IMG_256]]
</div></ol></li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then upload the Linux image file (Debian or Ubuntu image downloaded from the official website) to the TF card. For the method of uploading the Linux image file to the development board, please refer to the description in the section of [[\lOrange Pi 3B#The method of uploading files to the Linux system of the development board|'''the method of uploading files to the development board Linux system''']].</p></li><li><p>After uploading the image to the Linux system of the development board, we enter the storage path of the image file in the command line of the Linux system of the development board. For example, I store the Linux image of the development board in the '''/home/orangepi/Desktop''' directory Download it, and then enter the '''/home/orangepi/Desktop''' directory to see the uploaded image file.</p></li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''How to enter the command line of the development board Linux system?'''
'''1. For the method of using the serial port to log in to the terminal, please refer to the instructions in the section on [[Orange Pi 3B#How to enter use the command line of debugging serial port|how to use the development board Linux system?debugging serial port]].'''
# '''For the method of using the serial port to log in to the terminal, please refer to the instructions in the section on [[\l|how to use the debugging serial port]]2.'''# '''Use ssh to remotely log in to the Linux system, please refer to the instructions in the section of [[\lOrange Pi 3B#SSH remote login development board|SSH remote login to the development board]].'''# '''If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.'''
'''3. If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.'''</big>
|}
</ol>
<!-- -->
<ol start="8" style="list-style-type: decimal;">
<li>Next, let's confirm that the NVMe SSD has been recognized by the development board's Linux. If the NVMe SSD is recognized normally, use the '''sudo fdisk -l''' command to see '''nvme''' related information</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
|}
Use the '''lspci''' command to see an NVMe-related PCI device
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~/Desktop$ '''lspci'''
01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)
|}</ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then we can use the dd command to clear the NVMe SSD (optional)</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi3b:~/Desktop$ '''sudo dd bs=1M if=/dev/zero of=/dev/nvme0n1 count=2000 status=progress'''
orangepi@orangepi3b:~/Desktop$ '''sudo sync'''
|}</ol>
<ol start="10" style="list-style-type: decimal;">
<li>Then you can use the dd command to burn the Linux image of the development board to the NVMe SSD</li></ol>
<!-- -->
<ol style="list-style-type: lower-alpha;">
<li><p>In the following command, the '''if= ''' parameter is followed by the full &gt; path where the Linux image is stored + the name of the Linux image &gt; (such as '''the name of /home/orangepi/Desktop/Linux image'''). &gt; Because we have entered the path of the Linux image above, we only &gt; need to fill in the name of the Linux image.</p></li><li><p>Please do not copy the Linux image name in the following command, &gt; but replace it with the actual image name (because the version &gt; number of the image may be updated).</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
'''sudo dd bs=1M if=Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img of=/dev/nvme0n1 status=progress'''
 
'''sudo''' '''sync'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''<span style="color:#FF0000">Note, if you upload a .7z or .xz or .gz Linux image compressed file, please remember to decompress it before using the dd command to burn.</span>'''
'''Note, if you upload a .7z or .xz or .gz Linux image compressed file, please remember to decompress it before using the dd command to burn.'''
 
'''The detailed description of all parameters of the dd command and more usage can be viewed by executing the man dd command in the Linux system.'''
'''The detailed description of all parameters of the dd command and more usage can be viewed by executing the man dd command in the Linux system.'''</big>
|}
</ol>
</ol>
<ol start="11" style="list-style-type: decimal;">
<li><p>After successfully burning the Linux image of the development board to the NVMe SSD, you can use the poweroff command to shut down. Then please pull out the TF card, and then short press the power button to turn on, then the Linux system in SPIFlash+NVMe SSD will be started.</p></li>
<li><p>After starting the system in the NVMe SSD, use the '''df -h''' command to see the actual hard disk capacity</p>
<ol style="list-style-type: lower-alpha;">
<li>128GB NVMe SSD</li> {| class="wikitable" style="width:800px;"|-|<p>orangepi@orangepi:~$ '''df -h'''</p><span style="margin-right: 80px;">Filesystem </span><span style="margin-right: 50px;">Size </span><span style="margin-right: 30px;">Used </span><span style="margin-right: 30px;">Avail</span><span style="margin-right: 50px;">Use% Mounted on</span><br><span style="margin-right: 110px;">udev</span><span style="margin-right: 60px;">3.8G </span><span style="margin-right: 50px;">8.0K </span><span style="margin-right: 70px;">3.8G </span><span style="margin-right: 90px;">1% /dev</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 30px;">1.4M </span><span style="margin-right: 70px;">768M </span><span style="margin-right: 90px;">1% /run</span><br><span style="margin-right: 25px;color:#FF0000">'''/dev/nvme0n1p2'''</span><span style="margin-right: 50px;color:#FF0000">'''118G '''</span><span style="margin-right: 35px;color:#FF0000">'''5.8G '''</span><span style="margin-right: 80px;color:#FF0000">'''111G '''</span><span style="margin-right: 90px;color:#FF0000">'''5% /'''</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">3.8G </span><span style="margin-right: 50px;">0</span><span style="margin-right: 50px;">3.8G </span><span style="margin-right: 90px;">0% /dev/shm</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">5.0M </span><span style="margin-right: 50px;">4.0K </span><span style="margin-right: 50px;">5.0M </span><span style="margin-right: 90px;">1% /run/lock</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">3.8G </span><span style="margin-right: 50px;">16K </span><span style="margin-right: 50px;">3.8G </span><span style="margin-right: 90px;">1% /tmp</span><br><span style="margin-right: 25px;color:#FF0000">'''/dev/nvme0n1p1'''</span><span style="margin-right: 50px;color:#FF0000">'''256M '''</span><span style="margin-right: 35px;color:#FF0000">'''90M '''</span><span style="margin-right: 80px;color:#FF0000">'''166M '''</span><span style="margin-right: 90px;color:#FF0000">'''36% /boot'''</span><br><span style="margin-right: 65px;">/dev/zram1</span><span style="margin-right: 60px;">194M </span><span style="margin-right: 50px;">9.9M </span><span style="margin-right: 50px;">170M </span><span style="margin-right: 90px;">6% /var/log</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">769M </span><span style="margin-right: 50px;">60K </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 90px;">1% /run/user/1000</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">769M </span><span style="margin-right: 50px;">48K </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 90px;">1% /run/user/0</span><br>|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>2TB NVMe SSD</li>{| class="wikitable" style="width:800px;"|-|<p>orangepi@orangepi:~$ '''df -h'''</p><span style="margin-right: 80px;">Filesystem </span><span style="margin-right: 50px;">Size </span><span style="margin-right: 30px;">Used </span><span style="margin-right: 30px;">Avail</span><span style="margin-right: 50px;">Use% Mounted on</span><br><span style="margin-right: 110px;">udev</span><span style="margin-right: 60px;">3.8G </span><span style="margin-right: 50px;">8.0K </span><span style="margin-right: 70px;">3.8G </span><span style="margin-right: 90px;">1% /dev</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 30px;">1.4M </span><span style="margin-right: 70px;">768M </span><span style="margin-right: 90px;">1% /run</span><br><span style="margin-right: 25px;color:#FF0000">'''/dev/nvme0n1p2'''</span><span style="margin-right: 50px;color:#FF0000">'''1.9T '''</span><span style="margin-right: 35px;color:#FF0000">'''4.1G '''</span><span style="margin-right: 80px;color:#FF0000">'''1.8T '''</span><span style="margin-right: 90px;color:#FF0000">'''1% /'''</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">3.8G </span><span style="margin-right: 50px;">0</span><span style="margin-right: 50px;">3.8G </span><span style="margin-right: 90px;">0% /dev/shm</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">5.0M </span><span style="margin-right: 50px;">4.0K </span><span style="margin-right: 50px;">5.0M </span><span style="margin-right: 90px;">1% /run/lock</span><br><span style="margin-right: 65px;">/dev/zram2</span><span style="margin-right: 60px;">3.7G </span><span style="margin-right: 50px;">76K </span><span style="margin-right: 50px;">3.5G </span><span style="margin-right: 90px;">1% /tmp</span><br><span style="margin-right: 25px;color:#FF0000">'''/dev/nvme0n1p1'''</span><span style="margin-right: 50px;color:#FF0000">'''256M '''</span><span style="margin-right: 35px;color:#FF0000">'''90M '''</span><span style="margin-right: 80px;color:#FF0000">'''166M '''</span><span style="margin-right: 90px;color:#FF0000">'''36% /boot'''</span><br><span style="margin-right: 65px;">/dev/zram1</span><span style="margin-right: 60px;">194M </span><span style="margin-right: 50px;">9.9M </span><span style="margin-right: 50px;">170M </span><span style="margin-right: 90px;">6% /var/log</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">769M </span><span style="margin-right: 50px;">60K </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 90px;">1% /run/user/1000</span><br><span style="margin-right: 100px;">tmpfs </span><span style="margin-right: 60px;">769M </span><span style="margin-right: 50px;">48K </span><span style="margin-right: 50px;">769M </span><span style="margin-right: 90px;">1% /run/user/0</span><br>|}</ol>
</li></ol>
<ol start="13" style="list-style-type: decimal;">
<li>When the same system is programmed in the TF card and NVMe SSD, '''if both the TF card and NVMe SSD are inserted into the development board, then power on and start the development board, and u-boot will give priority to starting the system in the TF card.''' However, since the systems in the TF card and the NVMe SSD are exactly the same, the UUIDs of the /'''boot''' partition and the '''rootfs''' partition in the two storage devices are also the same, which may cause the partition in the NVMe SSD to be loaded when the TF card starts. Running the script below resolves this issue.</li>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''df sudo fix_mmc_ssd.sh'''|}{| class="wikitable" style="background-hcolor:#ffffdc;width:800px;" |-| <big>'''Exactly the same system means that the image name is exactly the same. Even if they are all Debian11 systems, the versions are different.'''</big>|}</ol><span id="how-to-use-balenaetcher-software-to-burn"></span>
Filesystem Size Used Avail Use% Mounted on=== How to use balenaEtcher software to burn ===
udev 3<ol style="list-style-type: decimal;"><li><p>First, you need to prepare an NVMe SSD.8G 8The PCIe supported by the M.0K 32 slot of the development board is PCIe2.8G 1% 0x1, and the theoretical maximum speed is 500MB/devs. PCIe3.0 and PCIe4.0 NVMe SSDs are also available, but the highest speed is only PCIe2.0x1.</p><ol style="list-style-type: lower-alpha;"><li>The M.2 2230 SSD is as follows</li>
tmpfs 769M 1[[File:pi3b-img73.4M 768M 1% png]]</runol><ol start="2" style="list-style-type: lower-alpha;"><li>The M.2 2242 SSD is as follows</li>
'''[[File:pi3b-img74.png]]</ol></devli></nvme0n1p2 118G 5ol><ol start="2" style="list-style-type: decimal;"><li>Then insert the NVMe SSD into the M.8G 111G 5% 2 PCIe interface of the development board and fix it</'''li>
tmpfs 3[[File:pi3b-img75.8G 0 png]]</ol><ol start="3.8G 0% /dev" style="list-style-type: decimal;"><li>The position of the SPI Flash on the development board is shown in the figure below, no other settings are required before starting the programming</shmli>
tmpfs 5[[File:pi3b-img76.0M png]]</ol><ol start="4" style="list-style-type: decimal;"><li><p>Burning the Linux image to SPIFlash+NVMe SSD requires a TF card, so first you need to burn the Linux image to the TF card, and then use the TF card to start the development board to enter the Linux system.0K 5For the method of burning the Linux image to the TF card, please refer to the instructions in the two sections of [[Orange Pi 3B#Method of burning Linux image to TF card based on Windows PC|'''the method of burning the Linux image to the TF card based on the Windows PC''']] and [[Orange Pi 3B#Method of burning Linux image to TF card based on Ubuntu PC|'''the method of burning the Linux image to the TF card based on the Ubuntu PC''']].0M 1% </p></li><li><p>After booting into the Linux system in the TF card, please confirm that the NVMe SSD has been properly recognized by the Linux of the development board. If the NVMe SSD is recognized normally, use the '''sudo fdisk -l''' command to see '''nvme''' related information</p></runli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/lockDesktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
tmpfs 3.8G 16K 3Disk /dev/nvme0n1: 1.8G 1% /tmp86 TiB, 2048408248320 bytes, 4000797360 sectors|}
Use the '''/dev/nvme0n1p1 256M 90M 166M 36% /bootlspci'''command to see an NVMe-related PCI device
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/dev/zram1 194M 9.9M 170M 6% /var/logDesktop$ '''lspci'''
tmpfs 769M 60K 769M 1% /run/user/100000:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3566 (rev 01)
tmpfs 769M 48K 769M 1% 01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)|}</runol><ol start="6" style="list-style-type: decimal;"><li>The balenaEtcher has been pre-installed in the Linux image, and the opening method is as follows:</user/0li>
<ol startdiv class="2figure" style="list-style-type: lower-alpha;"><li>2TB NVMe SSD</li></ol>
orangepi@orangepi[[File:~$ '''df pi3b-h'''img89.png]]
Filesystem Size Used Avail Use% Mounted </div>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''If it is not pre-installed, for [[Orange Pi 3B#The method of downloading and installing the balenaEtcher version of arm64|how to download and install the arm64 version of balenaEtcher]], please refer to the instructions in the section onhow to download and install the arm64 version of balenaEtcher.'''</big>|}</ol><ol start="7" style="list-style-type: decimal;"><li>The interface after balenaEtcher is opened is as follows:</li>
udev 3.8G 8.0K 3.8G 1% /dev<div class="figure">
tmpfs 769M 1[[File:pi3b-img90.4M 768M 1% /runpng]]
</div></ol><ol start="8" style="list-style-type: decimal;"><li><p>The method of using balenaEtcher to burn u-boot to the SPI Flash of the development board is as follows:</p><ol style="list-style-type: lower-alpha;"><li>First click on '''/dev/nvme0n1p2 1.9T 4.1G 1.8T 1% /Flash from file'''</li>
tmpfs 3.8G 0 3.8G 0% /dev/shm<div class="figure">
tmpfs 5[[File:pi3b-img91.0M 4.0K 5.0M 1% /run/lockpng]]
</devdiv></zram2 3ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then enter the '''/usr/lib/Linux-u-boot-legacy-orangepi3b_1.x.7G 76K 3x_arm64''' directory, select '''rkspi_loader.5G 1% img''', and click '''Open''' to open</tmpli>
'''/dev/nvme0n1p1 256M 90M 166M 36% /boot'''<div class="figure">
/dev/zram1 194M 15M 165M 9% /var/log[[File:pi3b-img92.png]]
tmpfs 769M 60K 769M 1% </rundiv></userol><ol start="3" style="list-style-type: lower-alpha;"><li>The interface after opening '''rkspi_loader.img''' is as follows:</1000li>
tmpfs 769M 48K 769M 1% [[File:pi3b-img93.png]]</runol><ol start="4" style="list-style-type: lower-alpha;"><li>Then click '''Select target'''</user/0li>
<ol startdiv class="13figure" style="list-style-type: decimal;"><li>When the same system is programmed in the TF card and NVMe SSD, '''if both the TF card and NVMe SSD are inserted into the development board, then power on and start the development board, and u-boot will give priority to starting the system in the TF card.''' However, since the systems in the TF card and the NVMe SSD are exactly the same, the UUIDs of the /'''boot''' partition and the '''rootfs''' partition in the two storage devices are also the same, which may cause the partition in the NVMe SSD to be loaded when the TF card starts. Running the script below resolves this issue.</li></ol>
orangepi@orangepi[[File:~$ '''sudo fix_mmc_ssdpi3b-img94.sh'''png]]
</div></ol><ol start="5" style="list-style-type: lower-alpha;"><li>Then click '''Exactly the same system means that the image name is exactly the same. Even if they are all Debian11 systems, the versions are different.Show 2 hidden'''to open more options for storage devices</li>
<span iddiv class="how-to-use-balenaetcher-software-to-burnfigure"></span>=== How to use balenaEtcher software to burn ===
<ol style="list-style-type: decimal;"><li><p>First, you need to prepare an NVMe SSD. The PCIe supported by the M.2 slot of the development board is PCIe2.0x1, and the theoretical maximum speed is 500MB/s. PCIe3.0 and PCIe4.0 NVMe SSDs are also available, but the highest speed is only PCIe2.0x1.</p><ol style="list-style-type[[File: lowerpi3b-alpha;"><li>The Mimg95.2 2230 SSD is as follows</li></ol></li></ol>png]]
[[File</div></ol><ol start="6" style="list-style-type:pi3blower-img73.png|189x136px]]alpha;"><li>Then select the device name of SPI Flash '''/dev/mtdblock0''', and click '''Select'''</li>
<ol startdiv class="2figure" style="list-style-type: lower-alpha;"><li>The M.2 2242 SSD is as follows</li></ol>
[[File:pi3b-img74img96.png|238x129px]]
</div></ol><ol start="27" style="list-style-type: decimallower-alpha;"><li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix itclick '''Flash'''</li></ol>
[[File:pi3b-img75.png|283x63px]]<div class="figure">
<ol start="3" style="list[[File:pi3b-style-type: decimal;"><li>The position of the SPI Flash on the development board is shown in the figure below, no other settings are required before starting the programming</li></ol>img97.png]]
[[File</div></ol><ol start="8" style="list-style-type:pi3blower-img76.png|261x198px]]alpha;"><li>Then click '''Yes, I'm sure'''</li>
<ol startdiv class="4figure" style="list-style-type: decimal;"><li><p>Burning the Linux image to SPIFlash+NVMe SSD requires a TF card, so first you need to burn the Linux image to the TF card, and then use the TF card to start the development board to enter the Linux system. For the method of burning the Linux image to the TF card, please refer to the instructions in the two sections of [[\l|'''the method of burning the Linux image to the TF card based on the Windows PC''']] and [[\l|'''the method of burning the Linux image to the TF card based on the Ubuntu PC''']].</p></li><li><p>After booting into the Linux system in the TF card, please confirm that the NVMe SSD has been properly recognized by the Linux of the development board. If the NVMe SSD is recognized normally, use the '''sudo fdisk -l''' command to see '''nvme''' related information</p></li></ol>
orangepi@orangepi[[File:~/Desktop$ '''sudo fdisk pi3b-l | grep &quot;nvme0n1&quot;'''img98.png]]
Disk </devdiv></nvme0n1ol><ol start="9" style="list-style-type: 1.86 TiBlower-alpha;"><li>Then enter the password '''orangepi''' of the development board Linux system, 2048408248320 bytes, 4000797360 sectorsand it will start burning the u-boot image into the SPI Flash</li>
Use the '''lspci''' command to see an NVMe-related PCI device<div class="figure">
orangepi@orangepi[[File:~/Desktop$ '''lspci'''pi3b-img99.png]]
00:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3566 (rev 01) 01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)</div></ol><ol start="610" style="list-style-type: decimallower-alpha;"><li>The balenaEtcher has been pre-installed in display of the Linux image, and the opening method burning process is as follows:</li></ol>
<div class="figure">
[[File:pi3b-img89img100.png|506x249px|IMG_256]]
</div>'''If it is not pre-installed, for [[\l|how to download and install the arm64 version of balenaEtcher]], please refer to the instructions in the section on how to download and install the arm64 version of balenaEtcher.'''</ol><ol start="711" style="list-style-type: decimallower-alpha;"><li>The interface display after balenaEtcher is opened burning is as follows:</li></ol>
<div class="figure">
[[File:pi3b-img90img101.png|406x207px|IMG_256]]
</div></ol></li></ol><ol start="89" style="list-style-type: decimal;"><li><p>The method of using balenaEtcher burning the Linux system in the TF card to burn u-boot the NVMe SSD (this method is equivalent to cloning the system in the SPI Flash of TF card to the development board is as follows:NVMe SSD)</p>
<ol style="list-style-type: lower-alpha;">
<li>First click on '''Flash from fileClone drive'''</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img91img102.png|406x205px|IMG_256]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then enter select the device name of the TF card '''/usrdev/lib/Linux-u-boot-legacy-orangepi3b_1.x.x_arm64''' directory, select '''rkspi_loader.imgmmcblk1''', and click '''Open''' to open</li></ol>
<div class="figure">
[[File:pi3b-img92img103.png|563x110px|IMG_256]]
</div></ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>The interface after opening '''rkspi_loader.img''' the TF card is as follows:</li> </oldiv class="figure">
[[File:pi3b-img93img104.png|379x181px]]
</div></ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then click '''Select target'''</li></ol>
<div class="figure">
[[File:pi3b-img94.png|379x171px|IMG_256]]
</div></ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then click '''Show 2 hidden''' to open more options for storage devices</li></ol>
<div class="figure">
[[File:pi3b-img95.png|385x155px|IMG_256]]
</div></ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then select the device name of SPI Flash the NVMe SSD '''/dev/mtdblock0nvme0n1''', and click '''Select'''</li> [[File:pi3b-img105.png]]</ol><ol start="7" style="list-style-type: lower-alpha;"><li>Then click '''Flash'''</li>
<div class="figure">
[[File:pi3b-img96img106.png|389x264px|IMG_256]]
</div><ol start="7" style="list-style-type: lower-alpha;"><li>Then click '''Flash'''</li></ol> <div class="figure"> [[File:pi3b-img97.png|394x268px|IMG_256]] </div>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click '''Yes, I'm sure'''</li></ol>
<div class="figure">
[[File:pi3b-img98img107.png|396x269px|IMG_256]]
</div></ol><ol start="9" style="list-style-type: lower-romanalpha;"><li>Then enter the password '''orangepi''' of the Linux system on the development board Linux system, and it will start burning the u-boot Linux image into to the SPI FlashSSD</li></ol>
<div class="figure">
[[File:pi3b-img99img108.png|393x269px|IMG_256]]
</div></ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>The display of the burning process is as follows:</li></ol> [[File:pi3b-img109.png]]
<div class="figure">
[[File:pi3b-img100img110.png|397x272px|IMG_256]]
</div></ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>The display after burning is as follows:</li></ol>
<div class="figure"> [[File:pi3b-img101img111.png|395x225px|IMG_256]] </divol><ol start="912" style="list-style-type: decimallower-alpha;"><li><p>The method of burning the Linux system in the TF card Then you need to expand the NVMe SSD (this method is equivalent to cloning capacity of the system rootfs partition in the TF card to the NVMe SSD). The steps are as follows:</p><ol style="list-style-type: lower-alphanone;"><li>First click <p>a) Open '''Clone driveGParted'''first, if the system does not have Gparted pre-installed, please use the apt command to install it</lip>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo apt-get install -y gparted'''</olp>|}</li></ol>
<div class="figure">
[[File:pi3b-img102img112.png|386x204px|IMG_256]]
</div></ol><ol start="2" style="list-style-type: lower-alphanone;"><li>b) Then select enter the device name password orangepi of the TF card Linux system, and click '''/dev/mmcblk1Authenticate'''</li></ol>
[[File:pi3b-img113.png]]<div class/ol><ol start="3" style="figurelist-style-type: none;"><li>c) Then click '''Fix'''</li>
[[File:pi3b-img103img114.png|379x256px|IMG_256]] </divol><ol start="34" style="list-style-type: lower-alphanone;"><li>The interface after opening the TF card is as follows:d) Then select NVMe SSD</li></ol>
<div class="figure">
[[File:pi3b-img104img115.png|381x191px|IMG_256]]
</div></ol><ol start="45" style="list-style-type: lower-alphanone;"><li>Then click '''Select target'''e) The display interface after selecting NVMe SSD is as follows:</li></ol>
<div class="figure">
[[File:pi3b-img94img116.png|379x171px|IMG_256]]
</div></ol><ol start="56" style="list-style-type: lower-alphanone;"><li>f) Then select the '''/dev/nvme0n1p2''' partition, click the right button again, and then select '''Show 2 hiddenResize/Move''' to open more options for storage devices</li></ol>
<div class="figure">
[[File:pi3b-img95img117.png|385x155px|IMG_256]]
</div></ol><ol start="67" style="list-style-type: lower-alphanone;"><li>g) Then select drag the device name of capacity to the NVMe SSD '''/dev/nvme0n1''', and click '''Select'''maximum at the position shown in the figure below</li></ol>
[[File:pi3b-img105img118.png|386x264px]]</ol><ol start="8" style="list-style-type: none;"><li>h) Then click '''Resize/Move'''</li>
[[File:pi3b-img119.png]]</ol><ol start="7" style="list-style-type: lower-alphanone;"><li>i) Then click the green '''Flash'''in the position below</li></ol>
[[File:pi3b-img120.png]]<div class/ol><ol start="10" style="figurelist-style-type: none;"><li>j) Then click '''Apply'''</li>
[[File:pi3b-img106img121.png|389x264px|IMG_256]]</ol><ol start="11" style="list-style-type: none;"><li>k) Then click '''Close''' to close</li>
[[File:pi3b-img122.png]]</divol></li></ol><ol start="813" style="list-style-type: lower-alpha;"><li>Then click At this point, you can use the '''sudo poweroff'''Yescommand to shut down. Then please pull out the TF card, Iand then short press the power button to turn on, then the Linux system in SPIFlash+NVMe SSD will be started.</li></ol></li></ol><!-- --><ol start="10" style="list-style-type: decimal;"><li><p>Step 'm sure''9''' is to clone the system in the TF card to the NMVe SSD. We can also directly burn the Linux image file to the NVMe SSD. Here are the steps:</p><ol style="list-style-type: lower-alpha;"><li><p>Upload the Linux image file to the Linux system of the development board</p></li><li><p>Then use balenaEtcher to burn</olp></li>
<div class="figure">
[[File:pi3b-img107img123.png|392x268px|IMG_256]]
</div></ol><ol start="3" style="list-style-type: lower-romanalpha;"><li>Then enter '''After using this method to burn the password orangepi of image, there is no need to manually expand the Linux system on the development boardcapacity, and it will start burning automatically expand the Linux image to capacity at the SSDfirst startup.'''</li></ol></li></ol><span id="how-to-burn-android-image-to-tf-card"></span>
<div class="figure">= How to burn Android image to TF card ==
[[File:pi3b<span id="method-img108of-burning-android-image-to-tf-card-through-usb2.0-burning-port"></span>=== Method of burning Android image to TF card through USB2.png|390x267px|IMG_256]]0 burning port ===
</div><ol start="10" style="list-style-type: lower-alpha;"><li># First prepare a TF card with 8GB or larger capacity. The display transmission speed of the burning process TF card must be class10 or above. It is as follows:</li></ol>recommended to use a TF card of SanDisk and other brands [[File:pi3b# You also need to prepare a good quality USB2.0 male-to-img109.png|393x212px]]male data cable
<div class="figure">
::[[File:pi3b-img110img16.png|395x205px|IMG_256]]
</div>
<ol start="113" style="list-style-type: lower-alphadecimal;"><li>The display after <p>Then download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning is as followstool '''RKDevTool_Release_v3.15.zip''' from [http:</li></ol> [[File:pi3bwww.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-img1113B.png|398x227pxhtml '''Orange Pi's data download page''']] <ol start="12" style="list-style-type: lower-alpha;"/p></li><li><p>Then you need to expand download the capacity of the rootfs partition in the NVMe SSDAndroid image from [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's download page''']. The steps are as follows:</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Open '''GParted''' firstAfter opening the download link of the Android image, if you can see the system does not have Gparted pre-installedfollowing two types of Android images, please use select the image in the apt command to install it</p><p>orangepi@orangepi:~$ '''sudo apt-get install -y gpartedTF card and eMMC startup image'''</p></li></ol>folder to download</li></ol>
<div class="figure">
[[File:pi3b-img112img124.png|576x215px|IMG_256]]
</div>
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then enter <p>After entering the password orangepi of the Linux system, and click '''AuthenticateTF card and eMMC startup image'''folder, you can see the following two images, the difference between them is:</p><ol style="list-style-type: none;"><li><p>a) The first image is dedicated to HDMI display and supports 4K display. If you don't use LCD screen, please download the image without lcd</olp></li><li><p>b) If you want to use lcd screen, please choose image with lcd</p></li>
[[File:pi3b-img113img125.png|356x173px]]</ol></li></ol></li></ol><ol start="5" style="list-style-type: decimal;"><li><p>Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li><li><p>Then use the decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</p></li>
[[File:pi3b-img31.png]]</ol><ol start="37" style="list-style-type: decimal;" ><li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Then click Click the &quot;'''FixDriver Installation'''&quot; button</li></ol>
[[File:pi3b-img114img32.png|355x261px]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After waiting for a period of time, a pop-up window will prompt &quot;'''The driver is installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li>
[[File:pi3b-img33.png]]</ol></li></ol><ol start="48" style="list-style-type: lower-alphadecimal;"><li>Then select NVMe SSDdecompress '''RKDevTool_Release_v3.15.zip''', this software does not need to be installed, just find '''RKDevTool''' in the decompressed folder and open it</li></ol>
[[File:pi3b-img34.png]]<div class/ol><ol start="9" style="figurelist-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer has not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li>
[[File:pi3b-img115img35.png|452x187px|IMG_256]] </divol><ol start="510" style="list-style-type: decimal;"><li><p>Then start burning the Android image to the TF card</p><ol style="list-style-type: lower-alpha;"><li>First, connect the development board to the Windows computer through the USB2.0 male-to-male data cable. The display position of the USB2.0 programming interface after selecting NVMe SSD of the development board is as follows:shown in the figure below</li></ol>
<div class="figure">
[[File:pi3b-img116img36.png|451x187px|IMG_256]]
</div></ol><ol start="62" style="list-style-type: lower-alpha;"><li><p>Then select make sure that the development board is not inserted into the TF card and not connected to the '''power supply</devp></nvme0n1p2''' partitionli><li><p>Then press and hold the MaskROM button on the development board, click the right position of the MaskROM button again, and then select '''Resize/Move'''on the development board is shown in the figure below:</lip></olli>
[[File:pi3b-img37.png]]<div class/ol><ol start="4" style="figurelist-style-type: lower-alpha;"><li>Then connect the power supply of the Type-C interface to the development board, and power on</li>
[[File:pi3b-img117img38.png|448x345px|IMG_256]]</ol><ol start="5" style="list-style-type: lower-alpha;"><li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li>
[[File:pi3b-img39.png]]</divol><ol start="76" style="list-style-type: lower-alpha;"><li><p>Then drag insert the capacity to TF card into the maximum at development board</p></li><li><p>Then please select '''advanced features'''</p><p>[[File:pi3b-img126.png]]</p></li><li><p>Then click the position shown in the figure below</p><p>[[File:pi3b-img127.png]]</p></li><li><p>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and click to open</p></olli>
[[File:pi3b-img118.png|339x210px]] <ol startdiv class="8figure" style="list-style-type: lower-alpha;"><li>Then click '''Resize/Move'''</li></ol>
[[File:pi3b-img119img68.png|339x212px]]
</div></ol><ol start="10" style="list-style-type: lower-romanalpha;"><li><p>Then click the green '''download'''</p><p>[[File:pi3b-img128.png]]</p></li><li><p>The display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the position figure below</p><p>[[File:pi3b-img129.png]]</p></li><li><p>Then select the storage device as '''SD''', and then click '''Switch Storage'''</olp><div class="figure">
[[File:pi3b-img120img130.png|425x166px]]
<ol start="10" style="list-style-type: lower-alpha;"/div></li><li>Then click '''Apply'''<p>The display of successful switching is shown in the figure below</lip></olli>
[[File:pi3b-img121.png|378x276px]]<div class="figure">
<ol start="11" style="list-style-type[[File: lowerpi3b-alpha;"><li>Then click '''Close''' to close</li></ol>img131.png]]
[[File</div></ol><ol start="14" style="list-style-type:pi3blower-img122.png|383x234px]]alpha;"><li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
[[File:pi3b-img132.png]]</ol><ol start="1315" style="list-style-type: lower-alpha;"><li>At this point, you can use Then click the &quot;'''sudo poweroffFirmware''' command &quot; button to shut down. Then please pull out select the TF card, and then short press path of the power button Android image that needs to turn on, then the Linux system in SPIFlash+NVMe SSD will be started.burned</li></ol>
[[File:pi3b-img133.png]]<!-- --/ol><ol start="1016" style="list-style-type: decimallower-alpha;"><li><p>Step Finally, click the &quot;'''9)Upgrade''' is &quot; button to clone start burning, and the log during the system burning process is shown in the TF card to the NMVe SSDfigure below. We can also directly burn After burning is completed, the Linux image file to the NVMe SSDAndroid system will start automatically. Here are the steps:</p><ol style="list-style-type: lower-alpha;"><li><p>Upload the Linux image file to the Linux system of the development board</p></li><li><p>Then use balenaEtcher to burn</p></li></ol></li></ol>
<div class="figure">
[[File:pi3b-img123img134.png|529x333px|图片1]]
</div></ol></li></ol start><span id="3" style="listhow-to-styleuse-type: lowersddisktool-alpha;"><li>'''After using this method to -burn the -android-image, there is no need -to manually expand the capacity, and it will automatically expand the capacity at the first startup.'''</li-tf-card"></olspan>
<span id="how-to-burn-android-image-to-tf-card"></span>== How to use SDDiskTool to burn Android image to TF card ===
<span idol style="methodlist-ofstyle-burning-android-image-to-tf-card-through-usb2.0-burning-porttype: decimal;"></spanli><p>=== Method of burning Android image to TF card through USB2.0 burning port === # First prepare a TF card with 8GB or larger capacity. The transmission speed of the TF card must be class10 or above. It is recommended to use a TF card of SanDisk and other brands</p></li># You also need to prepare a good quality USB2.0 male-to-male data cable <div class="figure"li><p[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]] Then use the card reader to insert the TF card into the computer</divp><ol start="3" style="list-style-type: decimal;"/li><li><p>Then download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning the SDDiskTool programming tool '''RKDevTool_Release_v3.15.zip''' from the [http://www.orangepi.org/html/serviceAndSupporthardWare/computerAndMicrocontrollers/service-and-support/indexOrange-Pi-3B.html '''Orange Pi's data download page'''], '''<span style="color:#FF0000">please make sure that the version of the SDDiskTool tool is the latest v1.72</span>.'''</p></li><li><p>Then download the Android Android11 image from the [http://www.orangepi.org/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's data download page'''].</p>
<ol style="list-style-type: lower-alpha;">
<li>After opening the download link of the Android image, you can see the following two types of Android images, please select the image in the '''TF card and eMMC startup image''' folder to download</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>After entering the '''TF card and eMMC startup boot image''' folder, you can see the following two images, the difference between them is:</p><ol style="list-style-type: lower-alpha;"><li><p>The first image is dedicated to HDMI display and supports 4K display. If you don’t use LCD screen, please download the image without lcd</p></li><li><p>If you want to use lcd screen, please choose image with lcd</p></li></ol></li></ol>
[[File<ol style="list-style-type:pi3b-img125none;"><li><p>a) The image without lcd is specially used for HDMI display and supports 4K display.png|264x58px]]If you do not use the LCD screen, please download the image without lcd</p></li><li><p>b) If you want to use LCD screen, please choose image with lcd</p></li>
[[File:pi3b-img125.png]]
</ol>
</li></ol>
</li></ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li><li><p>Then use the decompression software to decompress '''DriverAssitant_v5SDDiskTool_v1.1272.zip''', and then this software does not need to be installed, just find the '''DriverInstallSD_Firmware_Tool.exe''' executable file in the decompressed folder and open it</p></li></ol> [[File:pi3b-img31.png|575x169px]]
[[File:pi3b-img135.png]]
</ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>After opening '''DriverInstall.exeSDDiskTool''', if the steps to install TF card is recognized normally, the Rockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Click inserted disk device will be displayed in the &quot;'''Driver InstallationSelect Removable Disk Device'''&quot; button</li></ol></li></ol> [[File:pi3b-img32column.png|300x157px]] '''<ol start="2" span style="list-style-typecolor: lower-alpha;#FF0000">Please make sure that the displayed disk device is consistent with the drive letter of the TF card you want to burn<li/span>After waiting for a period of time, a pop-up window will prompt &quot;'''The driver , if there is installed successfully'''&quot;no display, and then click you can try to unplug the &quot;'''OK'''&quot; button.TF card</li></ol> [[File:pi3b-img33.png|315x164px]]
[[File:pi3b-img136.png]]
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>Then decompress After confirming the drive letter, you can format the TF card first, click the '''restore disk button'RKDevTool_Release_v3.15.zip''in '''SDDiskTool, this software does not need to be installed, just find '''RKDevToolor use the '''SD Card Formatter''' in mentioned above to format the decompressed folder and open itTF card</li></ol> [[File:pi3b-img34.png|454x134px]]
[[File:pi3b-img137.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>After opening the '''RKDevTool''' burning tool, because <p>Then start to write the computer has not connected Android image to the development board through the USB2.0 maleTF card</p><ol style="list-tostyle-male data cable at this time, the type: lower left corner will prompt -alpha;"><li><p>First check &quot;SD Boot&quot;'''No device found'''in &quot;Select Function Mode&quot;</p></li><li><p>Then select the path of the Android image in the &quot;Select to upgrade firmware&quot; column</p></olli[[File:pi3b-img35.png|442x208px]]<li><p>Finally click the &quot;Start Create&quot; button to start burning the Android image to the TF card</p></li>
[[File:pi3b-img138.png]]
</ol>
</li></ol>
<ol start="10" style="list-style-type: decimal;">
<li><p>Then start After burning , you can exit the Android image to SDDiskTool software, and then you can pull out the TF card</p><ol style="list-style-type: lower-alpha;"><li>First, connect the development board to from the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming interface of and insert it into the development board is shown in the figure belowto start</li></ol></li></ol>
[[File:pi3b-img139.png]]<div class/ol><span id="figurehow-to-burn-android-image-to-emmc"></span>
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]== How to burn Android image to eMMC ==
</div><ol start{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig><p>Then make sure that '''Note, after burning the development board is not inserted image into eMMC, if the TF card and not connected to test finds that it cannot be started, please clear the power supply</p></li><li><p>Then press SPIFlash and hold try again. For the MaskROM button on the development boardmethod of clearing SPIFlash, please refer to [[Orange Pi 3B#Using RKDevTool to clear SPIFlash|the position method of the MaskROM button on the development board is shown in the figure below:using RKDevTool to clear SPIFlash]].'''</p></li></olbig>|}
[[File:pi3b<span id="method-img37of-burning-android-image-into-emmc-through-usb2.0-burning-port"></span>=== Method of burning Android image into eMMC through USB2.png|289x100px]]0 burning port ===
<ol start{| class="4wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig>Then connect the power supply of the Type-C interface to '''Note that all the development board, and power following operations are performed ona Windows computer.'''</li></olbig>|}
[[File<ol style="list-style-type:pi3b-img38decimal;"><li><p>The development board reserves an eMMC expansion interface. Before programming the system to eMMC, you first need to purchase an eMMC module that matches the eMMC interface of the development board. Then install the eMMC module to the development board.png|305x94px]]</p><p>The eMMC module and the method of plugging into the development board are as follows:</p></li>
<ol start="5" style="list-style[[File:pi3b-typeimg61.png|400px]] [[File: lowerpi3b-alpha;"><li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li></ol>img62.png|400px]]
[[File:pi3b-img39img63.png|457x215px800px]]</ol><ol start="62" style="list-style-type: lower-alphadecimal;"><li><p>Then insert the TF card into the development board</p></li><li><p>Then please select '''advanced features'''</p><p>[[File:pi3b-img126You also need to prepare a good quality USB2.png|458x138px]]</p></li><li><p>Then click the position shown in the figure below</p><p>[[File:pi3b0 male-img127.png|459x216px]]</p></li><li><p>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and click to open</p>-male data cable</li></ol>
<div class="figure">
[[File:pi3b-img68img16.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
</div></ol><ol start="103" style="list-style-type: lower-alphadecimal;"><li><p>Then click download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning tool '''downloadRKDevTool_Release_v3.15.zip'''</p><p>from [[Filehttp:pi3b-img128//www.orangepi.png|472x222px]]<org/html/hardWare/computerAndMicrocontrollers/p><service-and-support/li><li><p>The display after downloading Orange-Pi-3B.html '''Orange Pi'rk3566_MiniLoaderAll.bins data download page''' is shown in the figure below</p><p>[[File:pi3b-img129.png|474x227px]]</p></li><li><p>Then select download the storage device as Android image from '''SD''', [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and then click -support/Orange-Pi-3B.html Orange Pi'''Switch Storages download page].'''</p><div classol style="figure"> [[Filelist-style-type:pi3blower-img130.png|477x222px|D~T2CO%X~K2@ELR98)BVP~2]] </div></lialpha;"><li><p>The display After opening the download link of the Android image, you can see the following two types of successful switching is shown Android images, please select the image in the figure below</p>'''TF card and eMMC startup image folder''' to download</li></ol>
<div class="figure">
[[File:pi3b-img131img124.png|474x223px|QFVLTK~19N32OK2UGH{D{AK]]
</div></ol><ol start="142" style="list-style-type: lower-alpha;"><li>Then click <p>After entering the &quot;'''Upgrade FirmwareTF card and eMMC startup image folder'''&quot, you can see the following two images, the difference between them is</p><ol style="list-style-type: none; column of "><li><p>a) The first image is dedicated to HDMI display and supports 4K display. If you don't use LCD screen, please download the burning toolimage without lcd</p></li><li><p>b) If you want to use lcd screen, please choose image with lcd</olp></li>
[[File:pi3b-img132img125.png|477x224px]]</ol></li></ol></li></ol><ol start="5" style="list-style-type: decimal;"><li><p>Then use decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li><li><p>Then use decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</p></li>
[[File:pi3b-img31.png]]</ol><ol start="157" style="list-style-type: decimal;"><li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Then click Click the &quot;'''FirmwareDriver Installation'''&quot; button to select the path of the Android image that needs to be burned</li></ol>
[[File:pi3b-img133img32.png|444x209px]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After waiting for a period of time, a pop-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li>
[[File:pi3b-img33.png]]</ol></li></ol><ol start="168" style="list-style-type: lower-alphadecimal;"><li>Finally, click the &quot;Then decompress '''UpgradeRKDevTool_Release_v3.15.zip'''&quot; button , this software does not need to start burningbe installed, and the log during the burning process is shown just find '''RKDevTool''' in the figure below. After burning is completed, the Android system will start automatically.decompressed folder and open it</li></ol>
[[File:pi3b-img34.png]]<div class/ol><ol start="9" style="figurelist-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer is not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li>
[[File:pi3b-img134img35.png|455x214px|GO~ZSPN`B]JCQM`@_9UU8[R]] </divol><span idol start="how-to-use-sddisktool-to-burn-android-image-to-tf-card10"></span>=== How to use SDDiskTool to burn Android image to TF card === <ol style="list-style-type: decimal;"><li><p>First prepare a TF card with 8GB or larger capacity. The transmission speed of the TF card must be class10 or above. It is recommended to use a TF card of SanDisk and other brands</p></li><li><p>Then use start burning the card reader to insert the TF card Android image into the computer</p></li><li><p>Then download the SDDiskTool programming tool from the [http://www.orangepi.org/html/serviceAndSupport/index.html '''Orange Pi data download page'''], '''please make sure that the version of the SDDiskTool tool is the latest v1.72.'''</p></li><li><p>Then download '''the Android11 image from the Orange Pi download''' '''page'''eMMC</p>
<ol style="list-style-type: lower-alpha;">
<li>After opening First, connect the development board to the Windows computer through the download link USB2.0 male-to-male data cable. The position of the Android image, you can see the following two types USB2.0 programming interface of Android images, please select the image development board is shown in the '''TF card and eMMC startup image''' folder to download</li></ol>figure below</li></ol>
<blockquote><div class="figure">
[[File:pi3b-img124img36.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
</div></blockquoteol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>After entering <p>Then make sure that the development board is not inserted into the '''TF card and eMMC boot image''' foldernot connected to the power supply</p></li><li><p>Then press and hold the MaskROM button on the development board, you can see the following two images, position of the MaskROM button on the difference between them development board isshown in the figure below:</p></li> [[File:pi3b-img37.png]]</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then connect the power supply of the Type-C interface to the development board</li>
[[File:pi3b-img38.png]]<!-- --/ol><ol start="5" style="list-style-type: lower-alpha;"><li><p>The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the LCD screenprevious steps are successful, the development board will enter the '''MASKROM''' mode at this time, please download and the interface of the image without lcdburning tool will prompt &quot;'''found a MASKROM device'''&quot;</p>[[File:pi3b-img39.png]]</li><li><p>If you want to use LCD screen, Then please choose image with lcdselect '''Advanced Features'''</p><p>[[File:pi3b-img126.png]]</p></li><li><p>Then click the position shown in the figure below</p><p>[[File:pi3b-img127.png]]</p></li></ol>
[[File<ol start="8" style="list-style-type:pi3blower-img125alpha;"><li>Select '''rk3566_MiniLoaderAll.bin''' in the MiniLoader folder downloaded earlier, and click to open.png|281x62px]]</li>
<ol startdiv class="5figure" style="list-style-type: decimal;"><li><p>Then use decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li><li><p>Then use decompression software to decompress '''SDDiskTool_v1.72.zip''', this software does not need to be installed, just find '''SD_Firmware_Tool.exe''' in the decompressed folder and open it</p></li></ol>
[[File:pi3b-img135img68.png|415x99px]]
</div></ol><ol start="79" style="list-style-type: decimallower-alpha;"><li>After opening <p>Then click '''Download'''</p><p>[[File:pi3b-img128.png]]</p></li><li><p>The display after downloading '''SDDiskToolMiniLoaderAll.bin''', if is shown in the TF card is recognized normally, figure below</p><p>[[File:pi3b-img140.png]]</p></li><li><p>Then select the inserted disk storage device will be displayed in the &quot;as '''Select Removable Disk DeviceEMMC'''&quot; column. P, and then click Switch '''lease make sure that the displayed disk device is consistent with the drive letter of the TF card you want to burnStorage''', if there </p><p>[[File:pi3b-img141.png]]</p></li><li><p>The display of successful switching is no display, you can try to unplug shown in the TF cardfigure below</lip></olli>
[[File:pi3b-img136img142.png|267x228px]]</ol><ol start="13" style="list-style-type: lower-alpha;"><li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
[[File:pi3b-img132.png]]</ol><ol start="814" style="list-style-type: decimallower-alpha;"><li>After confirming the drive letter, you can format the TF card first, Then click the &quot;'''restore disk buttonFirmware''' in '''SDDiskTool,''' or use &quot; button to select the path of the '''SD Card Formatter''' mentioned above Android image that needs to format the TF cardbe burned</li></ol>
[[File:pi3b-img137img133.png|264x226px]]</ol><ol start="15" style="list-style-type: lower-alpha;"><li>Finally, click the &quot;'''Upgrade'''&quot; button to start burning, and the log during the burning process is shown in the figure below. After burning is completed, the Android system will start automatically.</li>
<ol startdiv class="9figure" style="list-style-type: decimal;"><li><p>Then start to write the Android image to the TF card</p><ol style="list-style-type: lower-alpha;"><li><p>First check &quot;SD Boot&quot; in &quot;Select Function Mode&quot;</p></li><li><p>Then select the path of the Android image in the &quot;Select to upgrade firmware&quot; column</p></li><li><p>Finally click the &quot;Start Create&quot; button to start burning the Android image to the TF card</p></li></ol></li></ol>
[[File:pi3b-img138img134.png|286x242px]]
</div></ol start="10" style="list-style-type: decimal;"></li>After burning, you can exit the SDDiskTool software, and then you can pull out the TF card from the computer and insert it into the development board to start</liol><span id="how-to-burn-android11-image-into-emmc-via-tf-card"></olspan>
[[File:pi3b-img139.png|288x244px]]=== How to burn Android11 image into eMMC via TF card ===
<span id{| class="wikitable" style="howbackground-tocolor:#ffffdc;width:800px;" |-burn-android-image-to-emmc"| <big>'''Note that all the following operations are performed on a Windows computer.'''</spanbig>== How to burn Android image to eMMC ==|}
'''Note, after burning # The development board reserves an eMMC expansion interface. Before programming the image into system to eMMC, if you first need to purchase an eMMC module that matches the test finds that it cannot be started, please clear eMMC interface of the SPIFlash and try againdevelopment board. For Then install the method of clearing SPIFlash, please refer eMMC module to''' [[\l|the development board. The eMMC module and the method of using RKDevTool to clear SPIFlash]]'''.'''plugging into the development board are as follows:
<span id="method::[[File:pi3b-of-burning-android-image-into-emmc-through-usb2img61.0-burningpng|400px]] [[File:pi3b-port"></span>=== Method of burning Android image into eMMC through USB2img62.0 burning port ===png|400px]]
'''Note that all the following operations are performed on a Windows computer.''' <ol style="list-style-type: decimal;"><li><p>The development board reserves an eMMC expansion interface. Before programming the system to eMMC, you first need to purchase an eMMC module that matches the eMMC interface of the development board. Then install the eMMC module to the development board.</p><p>The eMMC module and the method of plugging into the development board are as follows:</p></li></ol> [[File:pi3b-img61.png|115x84px]] [[File:pi3b-img62.png|120x87px]] [[File:pi3b-img63.png|286x133px800px]]
<ol start="2" style="list-style-type: decimal;">
<li><p>You also need to prepare a good quality USB2TF card with 8GB or larger capacity. The transmission speed of the TF card must be class10 or above. It is recommended to use a TF card of SanDisk and other brands</p></li><li><p>Then use the card reader to insert the TF card into the computer</p></li><li><p>Then download the SDDiskTool programming tool from the [http://www.0 maleorangepi.org/html/hardWare/computerAndMicrocontrollers/service-toand-support/Orange-Pi-male 3B.html '''Orange Pi data cabledownload page'''], '''<span style="color:#FF0000">please make sure that the version of the SDDiskTool tool is the latest v1.72</span>'''</p></li><li><p>Then download the Android image from [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's download page''']</p><olstyle="list-style-type: lower-alpha;"><li>After opening the download link of the Android image, you can see the following two types of Android images, please select the image in '''the TF card and eMMC startup image folder''' to download</li>
<div class="figure">
[[File:pi3b-img16img124.png|141x138px|D6BB9058]] </div></ol><ol start="2" style="list-style-CDC3type: lower-42d7alpha;"><li><p>After entering '''the TF card and eMMC boot image folder''', you can see the following tow images, the difference between them is:</p><ol style="list-A7FCstyle-FBF630D886B7]]type: none;"><li><p>a) The first image is dedicated to HDMI display and supports 4K display. If you don't use LCD screen, please download the image without lcd</p></li><li><p>b) If you want to use lcd screen, please choose image with lcd</p></li>
</div><ol start="3" style="list-style-type: decimal;"><li><p>Then download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning tool '''RKDevTool_Release_v3.15.zip''' from [http[File://wwwpi3b-img125.orangepi.org/html/serviceAndSupport/index.html '''Orange Pi's data download page'''png]]</p></li><li><p>Then download the Android image from '''[http://www.orangepi.org/html/serviceAndSupport/index.html Orange Pi's download page].'''</p><ol style="list-style-type: lower-alpha;"><li>After opening the download link of the Android image, you can see the following two types of Android images, please select the image in the '''TF card and eMMC startup image folder''' to download</li></ol>
</li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li>
<li><p>Then use decompression software to decompress '''SDDiskTool_v1.72.zip''', this software does not need to be installed, just find '''SD_Firmware_Tool.exe''' in the decompressed folder and open it</p></li>
[[File:pi3b-img135.png]]<div class/ol><ol start="8" style="figurelist-style-type: decimal;"><li>After opening '''SDDiskTool''', if the TF card is recognized normally, the inserted disk device will be displayed in the &quot;'''Select Removable Disk Device'''&quot; column. '''<span style="color:#FF0000">Please make sure that the displayed disk device is consistent with the drive letter of the TF card you want to burn</span>''', if there is no display, you can try to unplug the TF card.</li>
[[File:pi3b-img124img136.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]</ol><ol start="9" style="list-style-type: decimal;"><li>After confirming the drive letter, you can format the TF card first, click the '''restore disk button''' in SDDiskTool, or use the '''SD Card Formatter''' mentioned above to format the TF card</li>
[[File:pi3b-img137.png]]</divol><ol start="210" style="list-style-type: lower-alphadecimal;"><li><p>After entering Then start to write the Android image into the '''TF card and eMMC startup image folder''', you can see the following two images, the difference between them is</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The first image First confirm that the displayed drive letter is dedicated the drive letter corresponding to HDMI display and supports 4K display. If you don’t use LCD screen, please download the image without lcdTF card under &quot;'''Select Removable Disk Device'''&quot;</p></li><li><p>Then select &quot;'''Firmware Upgrade'''&quot; in &quot;'''Select Function Mode'''&quot;</p></li><li><p>Then select the path of the Android firmware in the &quot;'''Select Upgrade Firmware'''&quot; column</p></li><li><p>If you want Finally click the &quot;'''Start Create'''&quot; button to use lcd screen, please choose image with lcdstart burning</p></li> [[File:pi3b-img143.png]]</ol>
</li></ol>
<ol start="11" style="list-style-type: decimal;">
<li>After the burning is completed, the display is as shown in the figure below, and then you can exit SDDiskTool</li>
[[File:pi3b-img125img144.png|264x58px]]</ol><ol start="12" style="list-style-type: decimal;"><li><p>Then pull out the TF card from the computer and insert it into the development board. After the development board is powered on, it will automatically start burning the Android image in the TF card to the eMMC of the development board.</p></li><li><p>If the development board is connected to an HDMI display, you can also see the progress bar of burning the Android image to eMMC from the HDMI display</p></li>
[[File:pi3b-img145.png]]</ol><ol start="514" style="list-style-type: decimal;"><li><p>Then use decompression software to decompress When the HDMI monitor displays the following information, it means that the compressed package burning of the downloaded Android imageinto the eMMC has been completed. Among At this time, the decompressed filesTF card can be pulled out, the file ending with &quot;.img&quot; is and then the Android image file, and system in the size is more than 1GB</p>eMMC will start.</li><li><p>Then use decompression software to decompress '''DriverAssitant_v5[[File:pi3b-img146.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open itpng]]</pol></lispan id="how-to-burn-android-image-to-spiflashnvme-ssd"></olspan>
[[File:pi3b-img31.png|575x169px]]== How to burn Android image to SPIFlash+NVMe SSD ==
<ol start{| class="7wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that all the following operations are performed on a Windows computer.'''</big>|} <ol style="list-style-type: decimal;"><li><p>After opening '''DriverInstall.exe'''First, the steps you need to install the Rockchip driver are as followsprepare an NVMe SSD solid state drive</p>
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>The M.2 2230 SSD is as follows</li></ol> [[File:pi3b-img32.png|300x157px]]
[[File:pi3b-img73.png]]
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>After waiting for a period of time, a pop-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; buttonThe M.2 2242 SSD is as follows</li></ol>
[[File:pi3b-img33img74.png|315x164px]]</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li>
[[File:pi3b-img75.png]]</ol><ol start="83" style="list-style-type: decimal;"><li>Then decompress '''RKDevTool_Release_v3.15.zip''', this software does not need to be installedThe position of the SPI Flash on the development board is shown in the figure below, just find '''RKDevTool''' in no other settings are required before starting the decompressed folder and open itprogramming</li></ol>
[[File:pi3b-img34img76.png|454x134px]]</ol><ol start="4" style="list-style-type: decimal;"><li>You also need to prepare a good quality USB2.0 male-to-male data cable</li>
<ol startdiv class="9figure" style="list-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer is not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol>
[[File:pi3b-img35img16.png|442x208px]]
</div></ol><ol start="105" style="list-style-type: decimal;"><li><p>Then start download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning tool '''RKDevTool_Release_v3.15.zip''' from '''Orange Pi's data download page'''</p></li><li><p>Then download the Android image into eMMCof Android11</p>
<ol style="list-style-type: lower-alpha;">
<li>First, connect After opening the development board to download link of the Windows computer through the USB2.0 male-to-male data cable. The position of Android image, you can see the USB2.0 programming interface following two types of Android images, please select the development board is shown image in the figure belowS'''PIFlash-NVME SSD boot image folder''' to download</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img36img124.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div>
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Then make sure that After entering the development board is not inserted into '''SPIFlash-NVME SSD boot image folder''', you can see the TF card and not connected to the power supplyfollowing two images. Their differences are:</p></liol style="list-style-type: none;"><li><p>Then press a) The image without lcd is specially used for HDMI display and hold the MaskROM button on supports 4K display. If you do not use the development boardLCD screen, please download the position of the MaskROM button on the development board is shown in the figure below:image without lcd</p></li><li><p>b) If you want to use LCD screen, please choose image with lcd</olp></li>
[[File:pi3b-img37img147.png|289x100px]]</ol></li></ol></li></ol><ol start="7" style="list-style-type: decimal;"><li>Then use the decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</li>
[[File:pi3b-img31.png]]</ol><ol start="48" style="list-style-type: lower-alphadecimal;"><li>Then connect <p>After opening '''DriverInstall.exe''', the power supply of the Type-C interface steps to install the development boardRockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Click the &quot;'''Driver Installation'''&quot; button</olli>
[[File:pi3b-img38img32.png|305x94px]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After waiting for a period of time, a pop-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li>
[[File:pi3b-img33.png]]</ol></li></ol><ol start="59" style="list-style-type: lower-alphadecimal;"><li><p>If the previous steps are successful, the development board will enter the Then decompress '''MASKROMRKDevTool_Release_v3.15.zip''' mode at , this timesoftware does not need to be installed, and the interface of the burning tool will prompt &quot;just find '''found a MASKROM deviceRKDevTool'''&quot;in the decompressed folder and open it</li> [[File:pi3b-img39img34.png|457x215px]]</pol></liol start="10" style="list-style-type: decimal;"><li><p>Then please select After opening the '''Advanced FeaturesRKDevTool'''</p><p>[[File:pi3b-img126.png|458x138px]]</p></li><li><p>Then click burning tool, because the computer is not connected to the position shown in development board through the figure below</p><p>[[File:pi3bUSB2.0 male-to-img127.png|459x216px]]</p>male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol>
[[File:pi3b-img35.png]]</ol><!-- ol start="11" style="list-style-type: decimal;"><li><p>Then start burning the Android image to SPIFlash+NVMe SSD</p>
<ol style="list-style-type: lower-alpha;">
<li>Select '''rk3566_MiniLoaderAllFirst, connect the development board to the Windows computer through the USB2.0 male-to-male data cable.bin''' The position of the USB2.0 programming port of the development board is shown in the MiniLoader folder downloaded earlier, and click to open.figure below</li></ol>
<div class="figure">
[[File:pi3b-img68img36.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Then click '''Download'''</p><p>[[File:pi3b-img128.png|472x222px]]</p></li><li><p>The display after downloading '''MiniLoaderAll.bin''' Make sure that the development board is shown in not inserted into the TF card and not connected to the figure below</p><p>[[File:pi3b-img140.png|474x223px]]power supply</p></li><li><p>Then select press and hold the MaskROM button on the storage device as '''EMMC'''development board, and then click Switch '''Storage'''</p><p>[[File:pi3b-img141.png|468x225px]]</p></li><li><p>The display the position of successful switching the MaskROM button on the development board is shown in the figure below:</p></li></ol>
[[File:pi3b-img142img37.png|472x227px]]</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button</li>
[[File:pi3b-img38.png]]</ol><ol start="85" style="list-style-type: lower-alpha;"><li>Then click If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''Upgrade Firmwarefound a MASKROM device'''&quot; column of the burning tool</li></ol>
[[File:pi3b-img132img39.png|442x208px]]</ol><ol start="6" style="list-style-type: lower-alpha;"><li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
[[File:pi3b-img132.png]]</ol><ol start="7" style="list-style-type: lower-romanalpha;"><li>Then click the &quot;'''Firmware'''&quot; button to select the path of the Android image that needs to be burned</li></ol>
[[File:pi3b-img133.png|444x209px]]</ol><ol start="8" style="list-style-type: lower-alpha;"><li>Finally, click the &quot;Upgrade&quot; button to start burning. The burning process is shown in the figure below. You can see that the firmware will be burned to SPIFlash first, and then burned to PCIE. After burning is completed, the Android system will start automatically.</li>
[[File:pi3b-img148.png]]</ol start="10" style="list-style-type: lower-alpha;"></li>Finally, click the &quot;'''Upgrade'''&quot; button to start burning, and the log during the burning process is shown in the figure below. After burning is completed, the Android system will start automatically.</liol><span id="using-rkdevtool-to-clear-spiflash"></olspan>
<div class="figure">= Using RKDevTool to clear SPIFlash ==
[[File:pi3b-img134.png|455x214px|GO~ZSPN`B]JCQM`@_9UU8[R]]# The position of SPI Flash on the development board is shown in the figure below
</div><span id="how::[[File:pi3b-to-burn-android11-image-into-emmc-via-tf-card"></span>=== How to burn Android11 image into eMMC via TF card ===img76.png]]
'''Note that all the following operations are performed on <ol start="2" style="list-style-type: decimal;"><li>First, you need to prepare a Windows computergood quality USB2.'''0 male-to-male data cable</li>
# The development board reserves an eMMC expansion interface. Before programming the system to eMMC, you first need to purchase an eMMC module that matches the eMMC interface of the development board. Then install the eMMC module to the development board. The eMMC module and the method of plugging into the development board are as follows:<div class="figure">
[[File:pi3b-img61img16.png|115x84px]] [[File:pi3b-img62.png|120x87px]]
[[File:pi3b-img63.png|286x133px]]</div></ol><ol start="23" style="list-style-type: decimal;"><li><p>You also need to prepare a TF card with 8GB or larger capacity. The transmission speed of the TF card must be class10 or above. It is recommended to use a TF card of SanDisk and other brands</p></li><li><p>Then use the card reader to insert the TF card into the computer</p></li><li><p>Then download the SDDiskTool programming tool from the [http://www.orangepi.org/html/serviceAndSupport/index.html Rockchip driver '''Orange Pi data download pageDriverAssitant_v5.12.zip'''], and MiniLoader and the burning tool '''please make sure that the version of the SDDiskTool tool is the latest v1RKDevTool_Release_v3.15.72zip'''</p></li><li><p>Then download from the Android image from [http://www.orangepi.org/html/serviceAndSupporthardWare/computerAndMicrocontrollers/service-and-support/indexOrange-Pi-3B.html '''Orange Pi's data download page''']</p>
<ol style="list-style-type: lower-alpha;">
<li>After opening On the download link page of Orange Pi, first select the Android imageofficial tool, you can see and then enter the following two types of Android images, please select the image in '''the TF card and eMMC startup image folder''' to download</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img124img149.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>After entering '''the TF card and eMMC boot image folder''', you can see the following tow images, the difference between them is:</p><ol style="list-style-type: lower-alpha;"><li><p>The first image is dedicated to HDMI display and supports 4K display. If you don’t use LCD screen, please Then download all the image without lcd</p>files below</li><li><p>If you want to use lcd screen, please choose image with lcd</p></li></ol></li></ol>
[[File:pi3b-img125.png|283x62px]]<div class="figure">
<ol start="6" style="list-style[[File:pi3b-type: decimal;"><li><p>Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with &quot;.img&quot; is the Android image file, and the size is more than 1GB</p></li><li><p>Then use decompression software to decompress '''SDDiskTool_v1.72.zip''', this software does not need to be installed, just find '''SD_Firmware_Toolimg150.exe''' in the decompressed folder and open it</p></li></ol>png]]
[[File</div>{| class="wikitable" style="background-color:#ffffdc;width:pi3b800px;" |-| <big>'''Note that the &quot;MiniLoader-img135things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.png'''</big>|429x103px]]}</ol></li></ol><ol start="4" style="list-style-type: decimal;"><li>Then use decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</li>
[[File:pi3b-img31.png]]</ol><ol start="85" style="list-style-type: decimal;"><li><p>After opening '''SDDiskTool'''DriverInstall.exe, if the TF card is recognized normally, steps to install the inserted disk device will be displayed in Rockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Click the &quot;'''Select Removable Disk DeviceDriver Installation'''&quot; column. '''Please make sure that the displayed disk device is consistent with the drive letter of the TF card you want to burn''', if there is no display, you can try to unplug the TF card.button</li></ol>
[[File:pi3b-img136img32.png|267x228px]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After waiting for a period of time, a pop-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li>
[[File:pi3b-img33.png]]</ol></li></ol><ol start="96" style="list-style-type: decimal;"><li>After confirming the drive letter, you can format the TF card first, click the Then decompress '''restore disk buttonRKDevTool_Release_v3.15.zip''' in SDDiskTool, or use the this software does not need to be installed, just find '''SD Card FormatterRKDevTool''' mentioned above to format in the TF carddecompressed folder and open it</li></ol>
[[File:pi3b-img137img34.png|247x212px]]</ol><ol start="7" style="list-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer has not connected to the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li>
[[File:pi3b-img35.png]]</ol><ol start="108" style="list-style-type: decimal;"><li><p>Then you can start to write the Android image into clear the TF cardcontent in SPI FLASH</p>
<ol style="list-style-type: lower-alpha;">
<li><p>First confirm that , connect the development board to the displayed drive letter is Windows computer through the drive letter corresponding USB2.0 male-to -male data cable. The position of the TF card under &quot;'''Select Removable Disk Device'''&quot;</p></li><li><p>Then select &quot;'''Firmware Upgrade'''&quot; in &quot;'''Select Function Mode'''&quot;</p></li><li><p>Then select the path USB2.0 programming port of the Android firmware development board is shown in the &quot;'''Select Upgrade Firmware'''&quot; column</p>figure below</li><li><p>Finally click the &quot;'''Start Create'''&quot; button to start burning</p></li></ol></li></ol>
[[File:pi3b-img143.png|290x246px]]<div class="figure">
<ol start="11" style="list[[File:pi3b-style-type: decimal;"><li>After the burning is completed, the display is as shown in the figure below, and then you can exit SDDiskTool</li></ol>img36.png]]
[[File</div></ol><ol start="2" style="list-style-type:pi3blower-img144.png|285x243px]]alpha;"><li><p>Make sure that the development board is not inserted into the TF card and not connected to the power supply</p></li><li><p>Then press and hold the MaskROM button on the development board, the position of the MaskROM button on the development board is shown in the figure below:</p></li>
[[File:pi3b-img37.png]]</ol><ol start="124" style="list-style-type: decimallower-alpha;"><li><p>Then pull out connect the TF card from power supply of the computer and insert it into Type-C interface to the development board. After the development board is powered , and power on, it will automatically start burning the Android image in the TF card to the eMMC of the development board.</p></li><li><p>If and then release the development board is connected to an HDMI display, you can also see the progress bar of burning the Android image to eMMC from the HDMI display</p>MaskROM button</li></ol>
[[File:pi3b-img145img38.png|430x247px]]</ol><ol start="5" style="list-style-type: lower-alpha;"><li>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;'''found a MASKROM device'''&quot;</li>
[[File:pi3b-img39.png]]</ol><ol start="146" style="list-style-type: decimallower-alpha;"><li>When <p>Then please select '''Advanced Features'''</p><p>[[File:pi3b-img126.png]]</p></li><li><p>Then click the HDMI monitor displays position shown in the following information, it means that the burning of the Android image into the eMMC has been completedfigure below</p><p>[[File:pi3b-img127.png]]</p></li><li><p>Select '''rk3566_MiniLoaderAll. At this time, bin''' in the TF card can be pulled out'''MiniLoader''' folder you downloaded earlier, and then the Android system in the eMMC will start.click Open</lip></olli>
[[File:pi3b-img146.png|576x389px]]<div class="figure">
<span id="how[[File:pi3b-to-burn-android-image-to-spiflashnvme-ssd"></span>== How to burn Android image to SPIFlash+NVMe SSD ==img68.png]]
</div></ol><ol style="list-style-type: lower-roman;"><li><p>Then click '''Note that all the following operations are performed on a Windows computer.Download'''</p><p>[[File:pi3b-img128.png]]</p></li></ol>
<ol start="10" style="list-style-type: decimallower-alpha;"><li><p>First, you need to prepare an NVMe SSD solid state driveThe display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the figure below</p><p>[[File:pi3b-img140.png]]</p></li><li><p>Then select the storage device as '''SPINOR'''</p><ol style="listp>[[File:pi3b-styleimg151.png]]</p></li><li><p>Then click Switch '''Storage'''</p><p>[[File:pi3b-typeimg152.png]]</p></li><li><p>Then click '''Erase All''' to start erasing SPIFlash</p><p>[[File: lowerpi3b-alpha;"img153.png]]</p></li><li><p>The Mdisplay log after erasing SPIFlash is shown in the figure below</p><p>[[File:pi3b-img154.2 2230 SSD is as followspng]]</p></li></ol>
</li></ol>
<span id="start-the-orange-pi-development-board"></span>
[[File:pi3b-img73.png|147x106px]]== Start the Orange Pi development board ==
<ol start="2" style="list# Insert the TF card with the burned image into the TF card slot of the Orange Pi development board. If the image of SPIFlash+NVMe SSD has been burnt, then there is no need to insert a TF card, just make sure that the NVMe SSD is inserted into the development board normally.# The development board has an HDMI interface, and the development board can be connected to a TV or HDMI display through an HDMI-styleto-HDMI cable. If you have purchased an LCD screen, you can also use the LCD screen to display the system interface of the development board. If there is a Type-type: lowerC to HDMI cable, the system interface of the development board can also be displayed through the Type-alpha;">C interface.# Connect a USB mouse and keyboard to control the Orange Pi development board.<li># The Mdevelopment board has an Ethernet port, which can be plugged into a network cable for Internet access.2 2242 SSD is as follows<# Connect a high-quality power adapter with a 5V/li></ol>3A USB Type-C interface.
[[File:pi3b:{| class="wikitable" style="background-img74color:#ffffdc;width:800px;" |-| <big>'''<span style="color:#FF0000">Remember not to plug in a power adapter with a voltage output greater than 5V, as this will burn out the development board.png|216x119px]]'''</span>
'''<ol start="2" span style="list-style-typecolor: decimal;#FF0000"><li>Then insert Many unstable phenomena during the NVMe SSD into power-on and start-up process of the Msystem are basically caused by power supply problems, so a reliable power adapter is very important.2 PCIe interface If you find that there is a phenomenon of continuous restart during the startup process, please replace the power supply or the development board Type-C data cable and fix it</li>try again.'''</olspan>
[[File'''<span style="color:pi3b#FF0000">The Type-img75C power port does not support PD negotiation.png|283x63px]]'''</span>
'''<ol start="3" span style="list-style-typecolor: decimal;#FF0000"><li>The position In addition, please do not connect the USB interface of the SPI Flash on computer to power the development board is shown in the figure below, no other settings are required before starting the programming.'''</lispan></olbig>|}
[[File<ol start="6" style="list-style-type:pi3b-img76decimal;"><li>Then turn on the switch of the power adapter. If everything is normal, you can see the startup screen of the system on the HDMI monitor or LCD screen.png|266x211px]]</li>
<ol start="4" style="list-style-type: decimal;"><li>You also need If you want to prepare a good quality USB2view the output information of the system through the debugging serial port, please use the serial cable to connect the development board to the computer.0 male-For the connection method of the serial port, please refer to '''[[Orange Pi 3B#How to use the debugging serial port|the section on how to-male data cableuse the debugging serial port]].'''</li></ol><span id="how-to-use-the-debugging-serial-port"></span>
<div class="figure">= How to use the debugging serial port ==
[[File:pi3b<span id="connection-img16.png|141x138px|D6BB9058instruction-CDC3of-42d7debugging-A7FCserial-FBF630D886B7]]port"></span>=== Connection instruction of debugging serial port ===
</div><ol start="5" style="list-style-type: decimal;"><li><p>Then download Rockchip driver '''DriverAssitant_v5First, you need to prepare a 3.12.zip''' 3V USB-to-TTL module, and burning tool '''RKDevTool_Release_v3.15.zip''' from '''Orange Pi's data download page'''</p></li><li><p>Then download then insert the USB interface end of the USB-to-TTL module into the image USB interface of Android11the computer.</p><ol {| class="wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;"|-| <big><lip>After opening the download link of the Android image'''For better compatibility, you can see the following two types of Android imagesit is recommended to use CH340 USB to TTL module, please select the image in the Sdo not use CP2102, PL2303 USB to TTL module.'''PIFlash-NVME SSD boot image folder</p><p>''' Before purchasing a USB to downloadTTL module, please confirm that the module supports a baud rate of 1500000.'''</lip></olbig></li></ol>|}
<div class="figure">
[[File:pi3b-img124img155.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
</div><ol start="2" style="list-style-type: lower-alpha;"></li><p>After entering the '''SPIFlash-NVME SSD boot image folder''', you can see the following two images. Their differences are:</pol><ol start="2" style="list-style-type: lower-alphadecimal;"><li><p>The image without lcd is specially used for HDMI display corresponding relationship between GND, RXD and supports 4K display. If you do not use TXD pins of the debugging serial port of the LCD screen, please download development board is shown in the image without lcd</p>figure below</li><li><p>If you want to use LCD screen, please choose image with lcd</p></li></ol></li></ol>
[[File:pi3b-img147img156.png|305x58px]]</ol><ol start="3" style="list-style-type: decimal;"><li>The GND, TXD and RXD pins of the USB to TTL module need to be connected to the debugging serial port of the development board through a DuPont line</li>
<ol start="7" style="list-style-type: decimal;"><li>Then use a. Connect the decompression software GND of the USB to TTL module to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in GND of the decompressed folder and open it</li></ol>development board
[[File:pi3b-img31b.png|407x120px]]The '''<span style="color:#FF0000">RX of the USB to TTL module is connected to the TX</span>''' of the development board
<ol start="8" style="list-style-type: decimal;"><li><p>After opening '''DriverInstallc.exeThe ''', the steps to install the Rockchip driver are as follows</p><ol span style="list-style-typecolor: lower-alpha;#FF0000"><li>Click the &quot;'''Driver Installation'''&quot; button</li></ol></li></ol> [[File:pi3b-img32.png|286x150px]] <ol start="2" style="list-style-type: lower-alpha;"><li>After waiting for a period TX of time, a pop-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; button.</li></ol> [[File:pi3b-img33.png|296x154px]] <ol start="9" style="list-style-type: decimal;"><li>Then decompress '''RKDevTool_Release_v3.15.zip''', this software does not need USB to TTL module is connected to be installed, just find '''RKDevTool''' in the decompressed folder and open itTX</lispan></ol> [[File:pi3b-img34.png|413x122px]] <ol start="10" style="list-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer is not connected to of the development board through the USB2.0 male-to-male data cable at this time, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol> [[File:pi3b-img35.png|402x189px]] <ol start="114" style="list-style-type: decimal;"><li><p>Then start burning The schematic diagram of connecting the Android image USB to SPIFlash+NVMe SSD</p><ol style="list-style-type: lower-alpha;"><li>First, connect the development board TTL module to the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming port of and the Orange Pi development board is shown in the figure belowas follows</li></ol></li></ol>
<div class="figure">
[[File:pi3b-img36img157.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div>
<ol start{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig><p>Make sure that '''The TX and RX of the development board is not inserted into serial port need to be cross-connected. If you don't want to carefully distinguish the TF card order of TX and not connected to RX, you can connect the power supply</p></li><li><p>Then press TX and hold RX of the MaskROM button on serial port casually first. If there is no output in the development boardtest, then exchange the position order of TX and RX, so there is always a the MaskROM button on the development board order is shown in the figure below:right'''</pbig>|}</liol><span id="how-to-use-the-debugging-serial-port-on-the-ubuntu-platform"></olspan>
[[File:pi3b-img37.png|289x100px]]=== How to use the debugging serial port on the Ubuntu platform ===
<ol start{| class="4wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig>Then connect the power supply of the Type-C interface to the development board'''There are many serial port debugging software that can be used under Linux, such as putty, and power onminicom, and then release the MaskROM buttonetc. The following demonstrates how to use putty.'''</li></olbig>|}
[[File:pi3b# First, insert the USB-img38to-TTL module into the USB interface of the Ubuntu computer. If the connection and recognition of the USB-to-TTL module is normal, you can see the corresponding device node name under '''/dev''' on the Ubuntu PC.png|305x94px]]Remember this node name, and then set the serial port software will be used
<ol start::{| class="5wikitable" style="list-style-typewidth: lower-alpha800px;"><li>If the previous steps are successful, the development board will enter the |-| test@test:~$ '''MASKROM''' mode at this time, and the interface of the burning tool will prompt &quot;ls /dev/ttyUSB*'''found a MASKROM device'''&quot;</li></ol>
[[File:pi3b-img39.png/dev/ttyUSB0|443x208px]]}
<ol start="62" style="list-style-type: lower-alphadecimal;"><li>Then click use the &quotfollowing command to install putty on Ubuntu PC</li>{| class="wikitable" style="width:800px;" |-| test@test:~$ '''Upgrade Firmwaresudo apt-get update'''&quot; column of the burning tool</li></ol>
[[Filetest@test:pi3b~$ '''sudo apt-img132.pngget install -y putty'''|442x208px]]}</ol><ol start="3" style="list-style-type: decimal;"><li>Then run putty, '''<span style="color:#FF0000">remember to add sudo permission</span>'''</li>
{| class="wikitable" style="width:800px;" |-| test@test:~$ '''sudo putty'''|}</ol><ol start="74" style="list-style-type: lower-alphadecimal;"><li>Then click After executing the &quot;'''Firmware'''&quot; button to select putty command, the Android image to be burnedfollowing interface will pop up</li></ol>
[[File:pi3b-img133img158.png|444x209px]]</ol><ol start="5" style="list-style-type: decimal;"><li>First select the setting interface of the serial port</li>
[[File:pi3b-img159.png]]</ol><ol start="86" style="list-style-type: decimal;"><li><p>Then set the parameters of the serial port</p><ol style="list-style-type: lower-alpha;"><li>Finally, click the &quot;Upgrade&quot; button <p>Set Serial line to connect toas /dev/ttyUSB0((Modified to start burning. The burning process is shown in the figure below. You can see that the firmware will be burned to SPIFlash firstcorresponding node name, and then burned to PCIE. After burning is completed, the Android system will start automatically.generally /dev/ttyUSB0)</p></li><li><p>Set Speed(baud) as '''1500000'''(Serial port baud rate)</p></li><li><p>Set Flow control as None</olp></li>
[[File:pi3b-img148.png|453x212px]]<div class="figure">
<span id="using[[File:pi3b-rkdevtool-to-clear-spiflash"></span>== Using RKDevTool to clear SPIFlash ==img160.png]]
# The position of SPI Flash on the development board is shown in the figure below [[File:pi3b-img76.png|263x193px]]</div></ol></li></ol><ol start="27" style="list-style-type: decimal;"><li>First<p>After setting the setting interface of the serial port, you need return to prepare a good quality USB2.0 malethe Session interface</p><ol style="list-tostyle-type: lower-male data cablealpha;"><li><p>First select the Connection type as Serial</p></li><li><p>Then click the Open button to connect to the serial port</olp></li>
<div class="figure">
[[File:pi3b-img16img161.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
</div><ol start="3" style="list-style-type: decimal;"><li><p>Then download the Rockchip driver '''DriverAssitant_v5.12.zip''' and MiniLoader and the burning tool '''RKDevTool_Release_v3.15.zip''' from the [http://www.orangepi.org/html/serviceAndSupport/index.html '''Orange Pi data download page''']</p><ol style="list-style-type: lower-alpha;"><li>On the download page of Orange Pi, first select the official tool, and then enter the following folder</li></ol>
</li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>After starting the development board, you can see the Log information output by the system from the opened serial port terminal</li>
[[File:pi3b-img162.png]]<div class/ol><span id="figurehow-to-use-the-debugging-serial-port-on-windows-platform"></span>
[[File:pi3b-img149.png|342x56px|1691401357374]]=== How to use the debugging serial port on Windows platform ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''There are many serial port debugging software that can be used under Windows, such as SecureCRT, MobaXterm, etc. The following demonstrates how to use MobaXterm. This software has a free version and can be used without buying a serial number.'''</big>|} <ol style="list-style-type: decimal;"><li><p>Download MobaXterm</p><ol style="list-style-type: lower-alpha;"><li>Download MobaXterm website as follows</li>{| class="wikitable" style="width:800px;" |-| [https://mobaxterm.mobatek.net/ '''https://mobaxterm.mobatek.net''']|}</divol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then After entering the MobaXterm download all the files belowpage, click '''GET XOBATERM NOW!'''</li></ol>
[[File:pi3b-img163.png]]<div class/ol><ol start="3" style="figurelist-style-type: lower-alpha;"><li>Then choose to download the Home version</li>
[[File:pi3b-img150img164.png|347x139px|1691401520573]]</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then select the Portable version. After downloading, you don't need to install it, just open it and use it</li>
[[File:pi3b-img165.png]]</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>After downloading, use decompression software to decompress the downloaded compressed package, you can get the executable software of MobaXterm, and then double-click to open</li> [[File:pi3b-img166.png]]</ol><ol start="3" style="list-style-type: decimal;"><li><p>After opening the software, the steps to set up the serial port connection are as follows</p><ol style="list-style-type: lower-alpha;"><li><p>Open the session settings interface</p></li><li><p>Select the serial port type</p></li><li><p>Select the port number of the serial port (select the corresponding port number according to the actual situation)</divp></li><li><p>Select the baud rate of the serial port as '''Note that 1500000'''</p></li><li><p>Finally click the &quot;MiniLoader-things needed to burn the Linux image'''OK'''&quot; folder is hereinafter referred button to as complete the MiniLoader folder.'''setting</p></li>
<ol startdiv class="4figure" style="list-style-type: decimal;"><li>Then use decompression software to decompress '''DriverAssitant_v5.12.zip''', and then find the '''DriverInstall.exe''' executable file in the decompressed folder and open it</li></ol>
[[File:pi3b-img31img167.png|472x139px]]
<ol start="5" style="list-style-type: decimal;"><li><p>After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows</p><ol style="list-style-type: lower-alpha;"><li>Click the &quot;'''Driver Installation'''&quot; button</lidiv></ol>
</li></ol>
<ol start="4" style="list-style-type: decimal;">
<li>After clicking the &quot;'''OK'''&quot; button, you will enter the following interface. At this time, start the development board and you can see the output information of the serial port</li>
[[File:pi3b-img32.png|276x145px]]<div class="figure">
<ol start="2" style="list-style-type[[File: lower-alpha;"><li>After waiting for a period of time, a poppi3b-up window will prompt &quot;'''driver installed successfully'''&quot;, and then click the &quot;'''OK'''&quot; buttonimg168.</li></ol>png]]
[[File:pi3b</div></ol><span id="instructions-img33.png|292x151px]]for-using-the-5v-pin-in-the-40pin-interface-of-the-development-board-to-supply-power"></span>
<ol start="6" style="list-style-type: decimal;"><li>Then decompress '''RKDevTool_Release_v3.15.zip''', this software does not need to be installed, just find '''RKDevTool''' Instructions for using the 5v pin in the decompressed folder and open it</li></ol>40pin interface of the development board to supply power ==
[[File{| class="wikitable" style="background-color:pi3b#ffffdc;width:800px;" |-| <big>'''The power supply method we recommend for the development board is to use the 5V/3A Type C interface power cord to plug into the Type-C power interface of the development board for power supply. If you need to use the 5V pin in the 40pin interface to power the development board, please make sure that the power cord and power adapter used can meet the power supply requirements of the development board. If the use is unstable, please switch back to the Type-img34C power supply.png'''</big>|467x138px]]}
<ol start="7" style="list-style-type: decimal;"><li>After opening the '''RKDevTool''' burning tool, because the computer has not connected to the development board through the USB2.0 male-to-male data cable at this time# First, the lower left corner will prompt &quot;'''No device found'''&quot;</li></ol> [[File:pi3b-img35.png|402x189px]] <ol start="8" style="list-style-type: decimal;"><li><p>Then you can start to clear the content in SPI FLASH</p><ol style="list-style-type: lower-alpha;"><li>First, connect the development board need to the Windows computer through the USB2.0 male-to-male data cable. The position of the USB2.0 programming port of the development board is prepare a power cord as shown in the figure below</li></ol></li></ol>
<div class="figure">
::[[File:pi3b-img36img169.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
</div>
<ol start::{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig><p>Make sure that the development board is not inserted into the TF card and not connected to '''Please purchase the power supply</p></li><li><p>Then press and hold the MaskROM button on the development board, the position of the MaskROM button on the development board is cord shown in the figure below:picture above by yourself'''</p></li></olbig>|}
[[File<ol start="2" style="list-style-type:pi3bdecimal;"><li><p>Use the 5V pin in the 40pin interface to supply power to the development board. The connection method of the power line is as follows</p><ol style="list-img37.png|289x100px]]style-type: lower-alpha;"><li><p>The USB A port of the power cord shown in the above picture needs to be plugged into the 5V/3A power adapter connector ('''<span style="color:#FF0000">please do not plug into the computer's USB port for power supply</span>''')</p></li><li><p>The red DuPont line needs to be plugged into the 5V pin of the development board 40pin</p></li><li><p>The black Dupont wire needs to be inserted into the GND pin of the 40pin interface</p></li><li><p>The position of the 5V pin and GND pin of the 40pin interface on the development board is shown in the figure below, '''<span style="color:#FF0000">remember not to reverse the connection</span>'''</p></li>
[[File:pi3b-img170.png]]</ol start="4" style></li></ol><span id="listinstructions-stylefor-type: loweruse-alpha;"><li>Then connect the power supply of the Type-C interface to the development board, ubuntudebian-server-and power on, and then release the MaskROM button</li-xfce-desktop-system"></olspan>
[[File:pi3b-img38.png|305x94px]]= '''Instructions for use of Ubuntu/Debian Server and Xfce desktop system''' =
<ol start{| class="5wikitable" style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <libig>If the previous steps are successful, the development board will enter the '''MASKROM''' mode at The content of this time, and chapter is written based on the interface images of the burning tool will prompt &quot;'''found a MASKROM deviceLinux server version and the xfce desktop version.'''&quot;</li></olbig>|}
[[File:pi3b<span id="supported-img39.png|457x215px]]linux-image-types-and-kernel-versions"></span>== Supported Linux image types and kernel versions ==
<ol start{| class="6wikitable" style="listwidth:800px;text-style-typealign: lower-alphacenter;"><li><p>Then please select |-|'''Advanced FeaturesLinux image type'''</p><p>[[File:pi3b|'''kernel version'''|'''server version'''|'''desktop version'''|-|'''Debian 11 -img126Bullseye'''|'''Linux5.png10'''|'''support'''|458x138px]]</p></li>'''support'''<li><p>Then click the position shown in the figure below</p>|-<p>[[File:pi3b|'''Ubuntu 20.04 -img127Focal'''|'''Linux5.png10'''|459x216px]]</p></li>'''support'''<li><p>Select |'''rk3566_MiniLoaderAllsupport'''|-|'''Ubuntu 22.04 - Jammy'''|'''Linux5.bin10'''|'''support''' in the |'''MiniLoadersupport''' folder you downloaded earlier, and click Open</p></li></ol>|}
<div classspan id="figurelinux-system-adaptation"></span>== Linux System adaptation ==
[[File:pi3b-img68.png{|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]] </div><ol class="wikitable" style="listwidth:800px;text-style-typealign: lower-romancenter;"><li><p>Then click |-|'''DownloadFunction'''</p><p>[[File:pi3b-img128|'''Debian11'''|'''Ubuntu20.png04'''|472x222px]]</p></li></ol>'''Ubuntu22.04''' <ol start="10" style="list-style-type: lower|-alpha;"><li><p>The display after downloading |'''rk3566_MiniLoaderAllUSB2.bin0x3''' is shown in the figure below</p><p>[[File:pi3b-img140.png|474x223px]]</p></li>'''OK'''<li><p>Then select the storage device as |'''SPINOROK'''</p><p>[[File:pi3b-img151.png|467x220px]]</p></li><li><p>Then click Switch '''StorageOK'''</p><p>[[File:pi3b|-img152|'''USB3.png0x1'''|464x218px]]</p></li>'''OK'''<li><p>Then click |'''Erase AllOK''' to start erasing SPIFlash</p><p>[[File:pi3b-img153.png|467x220px]]</p></li>'''OK'''<li><p>The display log after erasing SPIFlash is shown in the figure below</p><p>[[File:pi3b-img154.png|460x216px]]</p></li></ol> <span id="start-the-orange-pi-development-board"></span>== Start the Orange Pi development board == # Insert the TF card with the burned image into the TF card slot of the Orange Pi development board|'''M. If the image of SPIFlash+2 NVMe SSD has been burnt, then there is no need to insert a TF card, just make sure that the NVMe SSD is inserted into the development board normally.Start'''# The development board has an HDMI interface, and the development board can be connected to a TV or HDMI display through an HDMI-to-HDMI cable. If you have purchased an LCD screen, you can also use the LCD screen to display the system interface of the development board. If there is a Type-C to HDMI cable, the system interface of the development board can also be displayed through the Type-C interface.|'''OK'''# Connect a USB mouse and keyboard to control the Orange Pi development board.|'''OK'''# The development board has an Ethernet port, which can be plugged into a network cable for Internet access.|'''OK'''# Connect a high|-quality power adapter with a 5V/3A or 5V/4A USB Type-C interface.|'''WIFI'''|'''Remember not to plug in a power adapter with a voltage output greater than 5V, as this will burn out the development board.OK'''|'''OK'''|'''Many unstable phenomena during the power-on and start-up process of the system are basically caused by power supply problems, so a reliable power adapter is very important. If you find that there is a phenomenon of continuous restart during the startup process, please replace the power supply or the Type-C data cable and try again.OK'''|-|'''The Type-C power port does not support PD negotiation.Bluetooth'''|'''OK'''|'''In addition, please do not connect the USB interface of the computer to power the development board.OK'''|'''OK'''6) Then turn on the switch of the power adapter. If everything is normal, you can see the startup screen of the system on the HDMI monitor or LCD screen.|-|'''GPIO(40pin)'''7) If you want to view the output information of the system through the debugging serial port, please use the serial cable to connect the development board to the computer. For the connection method of the serial port, please refer to |'''OK'''[[\l|the section on how to use the debugging serial port]].'''OK'''|'''OK'''<span id="how|-to-use-the-debugging-serial-port"></span>== How to use the debugging serial port ==|'''UART(40pin)'''|'''OK'''|'''OK'''|'''OK'''<span id="connection|-instruction-of-debugging-serial-port"></span>=== Connection instruction of debugging serial port ===|'''SPI(40pin)'''|'''OK'''|'''OK'''<ol style="list-style-type: decimal;">|'''OK'''<li><p>First, you need to prepare a 3.3V USB|-to-TTL module, and then insert the USB interface end of the USB-to-TTL module into the USB interface of the computer.</p><p>|'''For better compatibility, it is recommended to use CH340 USB to TTL module, please do not use CP2102, PL2303 USB to TTL module.I2C(40pin)'''</p><p>|'''Before purchasing a USB to TTL module, please confirm that the module supports a baud rate of 1500000.OK'''</p></li></ol>|'''OK'''<div class="figure">|'''OK'''|-[[File:pi3b-img155.png|576x115px'''PWM(40pin)'''|07]]'''OK'''|'''OK'''</div>|'''OK'''<ol start="2" style="list|-style-type: decimal;"><li>The corresponding relationship between GND, RXD and TXD pins of the debugging serial port of the development board is shown in the figure below</li></ol>|'''PWM fan interface'''|'''OK'''[[File:pi3b-img156.png|428x110px]]'''OK'''|'''OK'''<ol start="3" style="list-style|-type: decimal;"><li>The GND, TXD and RXD pins of the USB to TTL module need to be connected to the debugging |'''3pin Debug serial port of the development board through a DuPont line</li></ol>'''|'''OK'''<blockquote>a. Connect the GND of the USB to TTL module to the GND of the development board b. The |'''RX of the USB to TTL module is connected to the TXOK''' of the development board c. The |'''TX of the USB to TTL module is connected to the TXOK''' of the development board</blockquote><ol start="4" style="list-style|-type: decimal;"><li>The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is as follows</li></ol>|'''EMMC'''|'''OK'''<div class="figure">|'''OK'''|'''OK'''[[File:pi3b-img157.png|524x189px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\USB-to-TTL-module-to-the-computer.jpgUSB-to-TTL-module-to-the-computer]]|'''TF card start'''</div>|'''OK'''|'''The TX and RX of the serial port need to be cross-connected. If you don’t want to carefully distinguish the order of TX and RX, you can connect the TX and RX of the serial port casually first. If there is no output in the test, then exchange the order of TX and RX, so there is always a the order is rightOK'''|'''OK'''<span id="how-to-use-the-debugging-serial-port-on-the|-ubuntu-platform"></span>=== How to use the debugging serial port on the Ubuntu platform ===|'''HDMI Video'''|'''OK'''|'''There are many serial port debugging software that can be used under Linux, such as putty, minicom, etc. The following demonstrates how to use putty.OK'''|'''OK'''# First, insert the USB|-to-TTL module into the USB interface of the Ubuntu computer. If the connection and recognition of the USB-to-TTL module is normal, you can see the corresponding device node name under |'''/devHDMI Audio''' on the Ubuntu PC. Remember this node name, and then set the serial port software will be used|'''OK'''test@test:~$ |'''ls /dev/ttyUSB*OK'''|'''OK'''/dev/ttyUSB0 <ol start="2" style="list|-style-type: decimal;"><li>Then use the following command to install putty on Ubuntu PC</li></ol>|'''Camera'''|'''OK'''test@test:~$ |'''sudo apt-get updateOK''' test@test:~$ |'''sudo apt-get install -y puttyOK''' <ol start="3" style="list|-style-type: decimal;"><li>Then run putty, |'''remember to add sudo permissionLCD'''</li></ol>|'''OK'''test@test:~$ |'''sudo puttyOK'''|'''OK'''<ol start="4" style="list-style|-type: decimal;"><li>After executing the putty command, the following interface will pop up</li></ol>|'''Edp Display'''|'''OK'''[[File:pi3b-img158.png|367x321px]]'''OK'''|'''OK'''<ol start="5" style="list|-style-type: decimal;"><li>First select the setting interface of the serial |'''Gigabit Ethernet port</li></ol>'''|'''OK'''[[File:pi3b-img159.png|359x352px]]'''OK'''|'''OK'''<ol start="6" style="list|-style-type: decimal;"><li><p>Then set the parameters of the serial |'''Network port</p>status light'''<ol style="list-style-type: lower-alpha;">|'''OK'''<li><p>Set Serial line to connect toas /dev/ttyUSB0((Modified to the corresponding node name, generally /dev/ttyUSB0)</p></li>|'''OK'''<li><p>Set Speed(baud) as |'''1500000OK'''(Serial port baud rate)</p></li><li><p>Set Flow control as None</p></li></ol>|-</li></ol>|'''headphone playback'''|'''OK'''<div class="figure">|'''OK'''|'''OK'''[[File:pi3b|-img160.png|317x312px'''headphone recording'''|09]]'''OK'''|'''OK'''</div>|'''OK'''<ol start="7" style="list-style|-type: decimal;"><li><p>After setting the setting interface of the serial port, return to the Session interface</p>|'''LED Light'''<ol style="list-style-type: lower-alpha;">|'''OK'''<li><p>First select the Connection type as Serial</p></li>|'''OK'''<li><p>Then click the Open button to connect to the serial port</p></li></ol>|'''OK'''</li></ol>|-|'''RTC'''<div class="figure">|'''OK'''|'''OK'''[[File:pi3b|'''OK'''|-img161.png|345x340px'''GPU'''|10]]'''OK'''|'''OK'''</div>|'''OK'''<ol start="8" style="list-style|-type: decimal;"><li>After starting the development board, you can see the Log information output by the system from the opened serial port terminal</li></ol>|'''NPU'''|'''OK'''[[File:pi3b-img162.png|468x340px]]'''OK'''|'''OK'''<span id="how-to|-use-the-debugging-serial-port-on-windows-platform"></span>=== How to use the debugging serial port on Windows platform ===|'''VPU'''|'''OK'''|'''There are many serial port debugging software that can be used under Windows, such as SecureCRT, MobaXterm, etc. The following demonstrates how to use MobaXterm. This software has a free version and can be used without buying a serial number.OK'''|'''OK'''<ol style="list-style|-type: decimal;"><li><p>Download MobaXterm</p>|'''watchdog test'''<ol style="list-style-type: lower-alpha;">|'''OK'''<li>Download MobaXterm website as follows</li></ol>|'''OK'''</li></ol>|'''OK''' [https://mobaxterm.mobatek.net/ https://mobaxterm.mobatek.net] <ol start="2" style="list-style|-type: lower-alpha;"><li>After entering the MobaXterm download page, click |'''GET XOBATERM NOW!Chromium Hard solution video'''</li></ol>|'''OK'''[[File:pi3b-img163.png|576x334px]]'''OK'''|'''OK'''<ol start="3" style="list-style-type: lower-alpha;"><li>Then choose to download the Home version</li></ol>|}
[[File:pi3b<span id="the-img164.png|353x231px]]format-of-linux-commands-in-this-manual"></span>== The format of Linux commands in this manual ==
<ol start# In this manual, all commands that need to be entered in the Linux system will be marked with the following box::{| class="4wikitable" style="list-style-typewidth:800px;height: lower-alpha40px;"><li>Then select the Portable version. After downloading, you don’t need to install it, just open it and use it</li></ol>|-|
[[File|}::As shown below, the content in the yellow box indicates the content that needs special attention, except for the commands in it.::{| class="wikitable" style="background-color:#ffffdc;width:800px;height:pi3b40px;" |-img165.png|575x259px]]
|}
<ol start="2" style="list-style-type: decimal;">
<li>After downloading<p>Description of the prompt type in front of the command</p><ol style="list-style-type: lower-alpha;"><li>The prompt in front of the command refers to the content of the red part in the box below, use decompression software to decompress which is not part of the Linux command, so when entering the command in the downloaded compressed packageLinux system, you can get please do not enter the executable software content of MobaXterm, and then double-click to openthe red font part</li>{| class="wikitable" style="width:800px;" |-| '''<span style="color:#FF0000">orangepi@orangepi:~$</olspan>sudo apt update'''
[[File'''<span style="color:pi3b-img166#FF0000">root@orangepi:~#</span>''' '''vim /boot/boot.png|576x81px]]cmd'''
'''<span style="color:#FF0000">test@test:~$</span> ssh [mailto:root@192.168.1.36 root@192.168.1.]xxx'''
 
'''<span style="color:#FF0000">root@test:~#</span> ls'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>'''<span style="color:#FF0000">root@orangepi:~$</span>''' The prompt indicates that this command is entered in '''the Linux system of the development board'''. The $ at the end of the prompt indicates that the current user of the system is a normal user. When executing a privileged command, you need to add '''sudo'''</p></li>
<li><p>'''<span style="color:#FF0000">root@orangepi:~#</span>''' The prompt indicates that this command is entered in the Linux system of the development board, and the # at the end of the prompt indicates that the current user of the system is the root user, who can execute any desired command</p></li>
<li><p>'''<span style="color:#FF0000">test@test:~$</span>''' The prompt indicates that this command is entered in the Ubuntu PC or Ubuntu virtual machine, not in the Linux system of the development board. The $ at the end of the prompt indicates that the current user of the system is an ordinary user. When executing privileged commands, sudo needs to be added '''sudo'''</p></li>
<li><p>'''<span style="color:#FF0000">root@test:~#</span>''' The prompt indicates that this command is entered in the Ubuntu PC or Ubuntu virtual machine, not in the Linux system of the development board. The # at the end of the prompt indicates that the current user of the system is the root user and can execute any command you want</p></li></ol>
</li></ol>
<!-- -->
<ol start="3" style="list-style-type: decimal;">
<li><p>After opening the software, What are the steps commands that need to set up the serial port connection are as followsbe entered?</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Open the session settings interface</p></li><li><p>Select the serial port type</p></li><li><p>Select the port number of the serial port (select the corresponding port number according to the actual situation), if you can’t see the port numberAs shown below, please use '''Driver Masterthe black bold part''' is the command that needs to scan be input, and install the driver for content below the USB to TTL serial port chip</p></li><li><p>Select command is the baud rate output content (some commands have output, some may not), and this part of the serial port as '''1500000'''</p>content does not need to be input</li><li><p>Finally click the &quot{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''OKcat /boot/orangepiEnv.txt'''&quot; button to complete the setting</p></li></ol></li></ol>
'''<div classspan style="figurecolor:#FF0000">verbosity=7</span>'''
[[File:pi3b-img167.png|575x438px|11]]bootlogo=false
'''<span style="color:#FF0000">console=serial</divspan>'''|}</ol><ol start="42" style="list-style-type: decimallower-alpha;"><li>After clicking As shown below, some commands cannot be written in one line and will be placed on the next line. As long as the black and bold parts are all commands that need to be input. When these commands are entered into one line, the last &quot;'''OK'''\&quot; buttonof each line needs to be removed, you will enter this is not part of the following interfacecommand. At this timeIn addition, start the development board and you can see the output information there are spaces in different parts of the serial portcommand, please don't miss it</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''echo \'''
<div class'''&quot;deb [arch="figure">$(dpkg --print-architecture) \'''
[[File:pi3b'''signed-img168by=/usr/share/keyrings/docker-archive-keyring.png|575x291px|12]gpg]\'''
<'''https:/div><span id="instructions-for-using-the-5v-pin-in-the-40pin-interface-of-the-development-board-to-supply-power"></span>== Instructions for using the 5v pin in the 40pin interface of the development board to supply power ==download.docker.com/Linux/debian \'''
'''The power supply method we recommend for the development board is to use the 5V$(lsb_release -cs) stable&quot; | sudo tee /etc/3A or 5Vapt/4A Type C interface power cord to plug into the Type-C power interface of the development board for power supplysources. If you need to use the 5V pin in the 40pin interface to power the development board, please make sure that the power cord and power adapter used can meet the power supply requirements of the development boardlist. If the use is unstable, please switch back to the Type-C power supplyd/docker.list &gt; /dev/null'''|}</ol></li></ol><span id="linux-system-login-instructions"></span>
# First, you need to prepare a power cord as shown in the figure below== Linux system login instructions ==
<div classspan id="figurelinux-system-default-login-account-and-password"></span>=== Linux system default login account and password ===
[[File{| class="wikitable" style="width:800px;text-align:pi3bcenter;"|-|'''Account'''|'''Passport'''|-img169.png|151x108px'''root'''|C:\Users\'''orangepi\Desktop\用户手册插图\Pi5 Plus\未标题'''|-7.jpg未标题-7]]|'''orangepi'''|'''orangepi'''|}
</div>'''Please purchase the power cord shown in the picture above by yourself''' <ol start{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig><p>Use '''Note that when entering the 5V pin in the 40pin interface to supply power to the development board. The connection method of the power line is as followspassword, </p><ol span style="list-style-typecolor: lower-alpha;#FF0000"><li><p>The USB A port the specific content of the power cord shown in the above picture needs to entered password will not be plugged into displayed on the 5Vscreen</3A or 5V4A power adapter connector ('''span>, please do not plug into the computer’s USB port for power supplythink that there is any fault, just press Enter after inputting.''')</p></libig><li><p>The red DuPont line needs to be plugged into the 5V pin of the development board 40pin</p></li>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-<li><p>The black Dupont wire needs to be inserted into the GND pin of the 40pin interface</p></li>| <libig><p>The position of '''When the 5V pin and GND pin of the 40pin interface on the development board wrong password is prompted, or there is shown in a problem with the figure belowssh connection, remember not to reverse please note that as long as you are using the connectionLinux image provided by Orange Pi, </pspan style="color:#FF0000">please do not suspect that the above password is wrong</lispan>, but look for other reasons.'''</olbig></li></ol>|}
[[File:pi3b<span id="how-img170.png|365x71px]]to-set-automatic-terminal-login-in-linux-system"></span>
<span id="instructions-for-use-of-ubuntudebian-server-and-xfce-desktop-== How to set automatic terminal login in Linux system"></span>===
= # The Linux system automatically logs in to the terminal by default, and the default login user name is '''Instructions for use of Ubuntu<span style="color:#FF0000">orangepi</Debian Server and Xfce desktop systemspan>''' =
'''The content of this chapter is written based on the images of the Linux server version and the xfce desktop version::[[File:pi3b-img171.'''png]]
<span idol start="supported-linux-image-types2" style="list-andstyle-kernel-versionstype: decimal;"><li>Use the following command to set the root user to automatically log in to the terminal</spanli>== Supported Linux image types and kernel versions == {| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Linux image typesudo auto_login_cli.sh root'''|'''kernel version'''}</ol><ol start="3" style="list-style-type: decimal;">|'''server version'''<li>Use the following command to disable automatic login terminal</li>{|'''desktop version'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Debian 11 sudo auto_login_cli.sh - Bullseyed'''|'''Linux5.10'''}</ol><ol start="4" style="list-style-type: decimal;">|'''support'''<li>Use the following command to set the orangepi user to automatically log in to the terminal again</li>{|'''support'''class="wikitable" style="width:800px;"
|-
|'''Ubuntu 20.04 - Focal'''|'''Linux5.10'''|'''support'''|'''support'''|-|orangepi@orangepi:~$ '''Ubuntu 22sudo auto_login_cli.04 - Jammy'''|'''Linux5.10'''|'''support'''|'''supportsh orangepi'''
|}
</ol>
<span id="instructions-for-automatic-login-of-linux-desktop-version-system"></span>
=== Instructions for automatic login of Linux desktop version system === # After the desktop system starts, it will automatically log in to the desktop without entering a password <span iddiv class="linux-system-adaptationfigure"></span>== Linux System adaptation ==::[[File:pi3b-img172.png]]
</div><ol start="2" style="list-style-type: decimal;"><li>Run the following command to prohibit the desktop system from automatically logging into the desktop</li>{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Functionsudo disable_desktop_autologin.sh'''|'''Debian11'''}</ol><ol start="3" style="list-style-type: decimal;"><li><p>Then restart the system and a login dialog box will appear, at which point a [[\l|'''Ubuntu20password]] is required to enter the system</p><div class="figure"> [[File:pi3b-img173.04'''png]] </div></li></ol> <span id="the-setting-method-of-root-user-automatic-login-in-linux-desktop-version-system"></span> === The setting method of root user automatic login in Linux desktop version system === # Execute the following command to set the desktop system to automatically log in as the root user ::{|'''Ubuntu22.04'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''USB2sudo desktop_login.0x3sh root'''|'''OK'''} <ol start="2" style="list-style-type: decimal;"><li>Then restart the system, and the root user will automatically log in to the desktop</li> [[File:pi3b-img174.png]]|'''OK'''{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''USB3Note that if you log in to the desktop system as the root user, you cannot use pulseaudio in the upper right corner to manage audio devices.0x1'''|'''OKAlso note that this is not a bug, since pulseaudio is not allowed to run as root.'''</big>|'''OK'''}</ol><ol start="3" style="list-style-type: decimal;"><li>Execute the following command to set the desktop system to log in automatically with the orangepi user again</li> {|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Msudo desktop_login.2 NVMe SSD Startsh orangepi'''|}</ol><span id="the-method-of-disabling-the-desktop-in-the-linux-desktop-version-system"></span> === The method of disabling the desktop in the Linux desktop version system === # First enter the following command on the command line, '''OK<span style="color:#FF0000">Please remember to add sudo permission</span>'''|'''OK'''::{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''WIFIsudo systemctl disable lightdm.service'''|'''OK'''} <ol start="2" style="list-style-type: decimal;"><li>Then restart the Linux system and you will find that the desktop will not be displayed</li>|'''OK'''{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Bluetoothsudo reboot'''|}</ol><ol start="3" style="list-style-type: decimal;"><li><p>The steps to reopen the desktop are as follows:</p><ol style="list-style-type: lower-alpha;"><li>First enter the following command on the command line, '''OK<span style="color:#FF0000">Please remember to add sudo permission</span>'''</li>|'''OK'''{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''GPIO(40pin)sudo systemctl start lightdm.service'''|'''OK'''}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After the command is executed, the desktop will be displayed</li></ol></li></ol> <span id="onboard-led-light-test-instructions"></span> == Onboard LED Light Test Instructions == # There are three LED lights on the development board, one green light, one red light, and one PCIe light. The location is shown in the figure below: <div class="figure"> ::[[File:pi3b-img175.png]]|'''OK'''|'''OK'''</div>|<ol start="2" style="list-style-type: decimal;">|<li><p>'''UART(40pin)<span style="color:#FF0000">As long as the development board is powered on, the red LED light will always be on, which is controlled by the hardware and cannot be turned off by the software</span>'''</p></li><li><p>The green LED light will keep blinking after the kernel is started, which is controlled by software.</p></li>|'''OK'''<li><p>The PCIe indicator will flash when there is data transmission on the PCIe interface.</p></li>|'''OK'''<li><p>The method of setting the green light on and off and flashing is as follows</p>{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''SPI(40pin)Note that the following operations should be performed under the root user.'''</big>|'''OK'''}<ol style="list-style-type: lower-alpha;">|'''OK'''<li>First enter the setting directory of the green light</li>{|'''OK'''class="wikitable" style="width:800px;"
|-
|root@orangepi:~# '''I2C(40pin)cd /sys/class/leds/status_led'''|'''OK'''}</ol><ol start="2" style="list-style-type: lower-alpha;">|'''OK'''<li>The command to set the green light to stop flashing is as follows</li>{|'''OK'''class="wikitable" style="width:800px;"
|-
|root@orangepi:/sys/class/leds/status_led# '''PWM(40pin)echo none &gt; trigger'''|'''OK'''}</ol><ol start="3" style="list-style-type: lower-alpha;">|'''OK'''<li>The command to set the green light to be on is as follows</li>{|'''OK'''class="wikitable" style="width:800px;"
|-
|root@orangepi:/sys/class/leds/status_led# '''PWM fan interfaceecho default-on &gt; trigger'''|'''OK'''}</ol><ol start="4" style="list-style-type: lower-alpha;">|'''OK'''<li>The command to set the green light to flash is as follows</li>{|'''OK'''class="wikitable" style="width:800px;"
|-
|root@orangepi:/sys/class/leds/status_led# '''3pin Debug serial portecho heartbeat &gt; trigger'''|'''OK'''}</ol></li></ol><span id="network-connection-test"></span> |'''OK'''== Network connection test ==|'''OK'''|<span id="ethernet-port-test"></span>=== Ethernet port test === # First, insert one end of the network cable into the Ethernet interface of the development board, and connect the other end of the network cable to the router, and ensure that the network is unblocked|# After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP, '''EMMC<span style="color:#FF0000">No other configuration is required</span>'''|'''OK'''# The command to view the IP address in the Linux system of the development board is as follows|'''OK'''::{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''TF card startip addr show eth0'''|2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000 :link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff :inet '''OK<span style="color:#FF0000">192.168.1.150</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0 ::valid_lft 43150sec preferred_lft 43150sec :inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute ::valid_lft forever preferred_lft forever|'''OK'''} ::{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''HDMI VideoWhen using ifconfig to view the IP address, if the following information is displayed, it is because sudo is not added. The correct command is: sudo ifconfig'''</big>  |orangepi@orangepi:~$ '''OKifconfig'''|Command 'ifconfig'is available in the following places * /sbin/ifconfig * /usr/sbin/ifconfig The command could not be located because 'OK''/sbin:/usr/sbin'is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. ifconfig: command not found|} ::{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''There are three ways to check the IP address after the development board starts:''' '''1. Connect the HDMI Audiodisplay, then log in to the system and use the ip addr show eth0 command to view the IP address'''|'''2. Enter the ip addr show eth0 command in the debugging serial terminal to view the IP address''' '''3. If there is no debugging serial port and no HDMI display, you can also check the IP address of the development board's network port through the router's management interface. However, in this method, some people often cannot see the IP address of the development board normally. If you can't see it, the debug method looks like this:''' <ol style="list-style-type: upper-alpha;"><li><p>'''First check whether the Linux system has started normally. If the green light of the development board is blinking, it is generally started normally. If only the red light is on, it means that the system has not started normally;'''</p></li><li><p>'''Check whether the network cable is plugged in tightly, or try another network cable;'''</p></li><li><p>'''Try another router (I have encountered many problems with the router, such as the router cannot assign the IP address normally, or the IP address has been assigned normally but cannot be seen in the router);'''</p></li><li><p>'''OKIf there is no router to replace, you can only connect to an HDMI display or use the debugging serial port to view the IP address'''</p></li></ol>  |'''OKIn addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.'''</big>|} <ol start="4" style="list-style-type: decimal;"><li>The command to test the network connectivity is as follows, the '''OKping'''command can be interrupted through the shortcut key of '''Ctrl+C'''</li> {| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Cameraping www.baidu.com -I eth0''' PING www.a.shifen.com (14.215.177.38) from 192.168.1.12 eth0: 56(84) bytes of data. 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=56 time=6.74 ms 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=56 time=6.80 ms 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms 64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=56 time=7.27 ms ^C --- www.a.shifen.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms|'''OK'''}</ol><span id="wifi-connection-test"></span> === WIFI connection test ===|'''OK'''{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''LCDPlease do not connect to WIFI by modifying the /etc/network/interfaces configuration file. There will be problems connecting to the WIFI network in this way.'''</big>|'''OK'''} <span id="wifi-the-server-image-connects-to-wifi-through-commands"></span>==== The server image connects to WIFI through commands ====|'''OK'''{|'''OK'''class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|<big>'''Edp DisplayWhen the development board is not connected to Ethernet, not connected to HDMI display, but only connected to the serial port, it is recommended to use the commands demonstrated in this section to connect to the WIFI network. Because nmtui can only display characters in some serial port software (such as minicom), and cannot display the graphical interface normally. Of course, if the development board is connected to an Ethernet or HDMI display, you can also use the commands demonstrated in this section to connect to the WIFI network.'''</big>|'''OK'''} <ol style="list-style-type: decimal;"><li><p>First log in to the Linux system, there are the following three ways</p><ol style="list-style-type: lower-alpha;"><li><p>If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh</p></li><li><p>If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system</p></li><li><p>If the development board is connected to the HDMI display, you can log in to the Linux system through the terminal displayed on the HDMI</p></li></ol></li><li><p>First use the nmcli dev wifi command to scan the surrounding WIFI hotspots</p></li>|'''OK'''{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Gigabit Ethernet portnmcli dev wifi'''|} <div class="figure"> [[File:pi3b-img176.png]] </div></ol><ol start="3" style="list-style-type: decimal;"><li>Then use the nmcli command to connect to the scanned WIFI hotspot, where:</li> :a. '''OKwifi_name'''needs to be replaced with the name of the WIFI hotspot you want to connect to|:b. '''OKwifi_passwd'''needs to be replaced with the password of the WIFI hotspot you want to connect to :{|'''OK'''class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''Network port status lightnmcli dev wifi connect <span style="color:#FF0000">wifi_name</span> password <span style="color:#FF0000">wifi_passwd</span>'''|''Device 'OKwlan0'successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.|}</ol><ol start="4" style="list-style-type: decimal;"><li>You can view the IP address of wifi through the '''OKip addr show wlan0'''command {|'''OK'''class="wikitable" style="width:800px;"
|-
|'''headphone playback'''|'''OK'''|'''OK'''|orangepi@orangepi:~$ '''OKip addr show wlan0'''|-|'''headphone recording'''11: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000|'''OK'''|'''OK'''|'''OK'''|-|'''LED Light'''|'''OK'''|'''OK'''|'''OK'''|-|'''RTC'''|'''OK'''|'''OK'''|'''OK'''|-|'''GPU'''|'''OK'''|'''OK'''|'''OK'''|-|'''NPU'''|'''OK'''|'''OK'''|'''OK'''|-|'''VPU'''|'''OK'''|'''OK'''|'''OK'''|-|'''watchdog test'''|'''OK'''|'''OK'''|'''OK'''|-|'''Chromium Hard solution video'''|'''OK'''|'''OK'''|'''OK'''|}:link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
:inet '''<span idstyle="the-format-of-linux-commands-in-this-manualcolor:#FF0000">192.168.1.11</span>== The format of Linux commands in this manual =='''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
# In this manual, all commands that need to be entered in the Linux system will be marked with the following box::valid_lft 259192sec preferred_lft 259192sec
As shown below, the content in the yellow box indicates the content that needs special attention, except for the commands in it.:inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
<ol start="2" style="list-style-type: decimal;"><li><p>Description of the prompt type in front of the command</p><ol style="list-style-type: lower-alpha;"><li>The prompt in front of the command refers to the content of the red part in the box below, which is not part of the Linux command, so when entering the command in the Linux system, please do not enter the content of the red font part</li></ol></li></ol>valid_lft 259192sec preferred_lft 172792sec
'''orangepi@orangepi:~$ sudo apt update'''inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
::valid_lft forever preferred_lft forever|}</ol><ol start="5" style="list-style-type: decimal;"><li>Use the '''ping''' command to test the connectivity of the wifi network, and the '''root@orangepi:~#ping''' command can be interrupted through the shortcut key '''vim /boot/boot.cmdCtrl+C'''</li>
'''test{| class="wikitable" style="width:800px;" |-| orangepi@testorangepi:~$ ssh [mailto:root@192.168.1.36 root@192.168'''ping www.1orangepi.]xxxorg -I wlan0'''
'''root@testPING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0:~# ls'''56(84) bytes of data.
<ol start="2" style="list-style-type: lower-alpha;"><li><p>'''root@orangepi:~$''' The prompt indicates that this command is entered in '''the Linux system of the development board'''64 bytes from 182.92.236. The $ at the end of the prompt indicates that the current user of the system is a normal user130 (182. When executing a privileged command, you need to add '''sudo'''</p></li><li><p>'''root@orangepi:~#''' The prompt indicates that this command is entered in the Linux system of the development board, and the # at the end of the prompt indicates that the current user of the system is the root user, who can execute any desired command</p></li><li><p>'''test@test:~$''' The prompt indicates that this command is entered in the Ubuntu PC or Ubuntu virtual machine, not in the Linux system of the development board92. The $ at the end of the prompt indicates that the current user of the system is an ordinary user236. When executing privileged commands, sudo needs to be added '''sudo'''</p></li><li><p>'''root@test130):~#''' The prompt indicates that this command is entered in the Ubuntu PC or Ubuntu virtual machine, not in the Linux system of the development boardicmp_seq=1 ttl=52 time=43. The # at the end of the prompt indicates that the current user of the system is the root user and can execute any command you want</p></li></ol>5 ms
<!-- --><ol start64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq="3" style2 ttl="list-style-type: decimal;"><li><p>What are the commands that need to be entered?</p><ol style52 time="list-style-type: lower-alpha;"><li>As shown below, '''the black bold part''' is the command that needs to be input, and the content below the command is the output content (some commands have output, some may not), and this part of the content does not need to be input</li></ol></li></ol>41.3 ms
root@orangepi64 bytes from 182.92.236.130 (182.92.236.130):~# '''cat /boot/orangepiEnvicmp_seq=3 ttl=52 time=44.txt'''9 ms
'''verbosity64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=7'''4 ttl=52 time=45.6 ms
bootlogo64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=false5 ttl=52 time=48.8 ms
'''console=serial'''^C
<ol start="2" style="list-style-type: lower-alpha;"><li>As shown below, some commands cannot be written in one line and will be placed on the next linewww. As long as the black and bold parts are all commands that need to be inputorangepi. When these commands are entered into one line, the last &quot;\&quot; of each line needs to be removed, this is not part of the command. In addition, there are spaces in different parts of the command, please don’t miss it</li></ol>org ping statistics ---
orangepi@orangepi:~$ '''echo \'''5 packets transmitted, 5 received, 0% packet loss, time 4006ms
'''&quot;deb [archrtt min/avg/max/mdev =$(dpkg 41.321/44.864/48.834/2.484 ms|}</ol><span id="the-server-image-connects-to-wifi-in-a-printgraphical-architecture) \'''way"></span>
'''signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \'''=== The server image connects to WIFI in a graphical way ====
'''https<ol style="list-style-type://download.docker.com/decimal;"><li>First log in to the Linuxsystem, there are the following three ways</debian \li><ol style="list-style-type: lower-alpha;"><li><p>If the development board is connected with a network cable, you can remotely log in to [[Orange Pi 3B#SSH remote login development board|''' the Linux system through ssh'''$(lsb_release -cs) stable&quot; | sudo tee ]]</etcp></apt/sources.list.d/docker.list &gt; /dev/null'''li><span id="linux-li><p>If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system-login-instructions"(please use MobaXterm for the serial port software, and the minicom cannot display the graphical interface)</p></spanli>== <li><p>If the development board is connected to the HDMI display, you can log in to the Linux system login instructions ==through the HDMI display terminal</p></li></ol>
<span id="linux-system-default-login-account-and-password"li>Then enter the nmtui command in the command line to open the wifi connection interface</spanli>=== Linux system default login account and password === {| class="wikitable" style="width:800px;"
|-
|'''Account'''|'''Passport'''|-|'''root'''|'''orangepi'''|-|'''@orangepi:~$ '''|'''orangepinmtui'''
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Enter the nmtui command to open the interface as shown below</li>
[[File:pi3b-img177.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>Select '''Note that when entering the password, the specific content of the entered password will not be displayed on the screen, please do not think that there is any fault, just press Enter after inputting.Activate a connect'''and press Enter</li>
'''When the wrong password is prompted, or there is a problem with the ssh connection, please note that as long as [[File:pi3b-img178.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>Then you are using can see all the Linux image provided by Orange Pi, please do not suspect that the above password is wrong, but look for other reasons.'''searched WIFI hotspots</li>
<span iddiv class="how-to-set-automatic-terminal-login-in-linux-systemfigure"></span>=== How to set automatic terminal login in Linux system ===
# The Linux system automatically logs in to the terminal by default, and the default login user name is orangepi '''orangepi'''[[File:pi3b-img179.png]]
[[File</div></ol><ol start="6" style="list-style-type:pi3b-img171.png|351x198px]]decimal;"><li>Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on '''Activate''' and press Enter</li>
<ol startdiv class="2figure" style="list-style-type: decimal;"><li>Use the following command to set the root user to automatically log in to the terminal</li></ol>
orangepi@orangepi[[File:~$ '''sudo auto_login_clipi3b-img180.sh root'''png]]
</div></ol><ol start="37" style="list-style-type: decimal;"><li>Use Then a dialog box for entering a password will pop up, enter the following command corresponding password in '''Password''' and press Enter to start connecting to disable automatic login terminalWIFI</li></ol>
orangepi@orangepi:~$ '''sudo auto_login_cli.sh -d'''<div class="figure">
<ol start="4" style="list[[File:pi3b-style-type: decimal;"><li>Use the following command to set the orangepi user to automatically log in to the terminal again</li></ol>img181.png]]
orangepi@orangepi</div></ol><ol start="8" style="list-style-type:~$ '''sudo auto_login_cli.sh orangepi'''decimal;"><li>After the WIFI connection is successful, a &quot;*&quot; will be displayed in front of the connected WIFI name</li>
<span iddiv class="instructions-for-automatic-login-of-linux-desktop-version-systemfigure"></span>=== Instructions for automatic login of Linux desktop version system ===
# After the desktop system starts, it will automatically log in to the desktop without entering a password[[File:pi3b-img182.png]]
</div ></ol><ol start="9" style="list-style-type: decimal;"><li>You can view the IP address of wifi through the '''ip addr show wlan0''' command</li>{| class="figurewikitable">style="width:800px;" |-| orangepi@orangepi:~$ '''ip addr show wlan0'''
[[File11:pi3b-img172.png|576x324px|1]]wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
<:link/div><ol start="2" style="list-style-typeether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff: decimal;"><li>Run the following command to prohibit the desktop system from automatically logging into the desktop</li></ol>ff
orangepi@orangepi:~$ inet '''sudo disable_desktop_autologin<span style="color:#FF0000">192.168.1.sh11</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
<ol start="3" style="list-style-type: decimal;"><li><p>Then restart the system and a login dialog box will appear, at which point a [[\l|password]] is required to enter the system</p><div class="figure">:valid_lft 259069sec preferred_lft 259069sec
[[File:pi3b-img173.png|569x320px|IMG_256]]inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
</div></li></ol>::valid_lft 259071sec preferred_lft 172671sec
<span id="the-setting-method-of-root-user-automatic-login-in-linux-desktop-version-system"><:inet6 fe80::42f1:6019:a80e:4c31/span>=== The setting method of root user automatic login in Linux desktop version system ===64 scope link noprefixroute
# Execute ::valid_lft forever preferred_lft forever|}</ol><ol start="10" style="list-style-type: decimal;"><li>Use the following '''ping''' command to set test the desktop system to automatically log in as connectivity of the wifi network, and the '''ping''' command can be interrupted through the root usershortcut key '''Ctrl+C'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''
PING www.orangepi@orangepi.org (182.92.236.130) from 192.168.1.49 wlan0:~$ '''sudo desktop_login56(84) bytes of data.sh root'''
<ol start64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq="2" style1 ttl="list-style-type: decimal;"><li>Then restart the system, and the root user will automatically log in to the desktop</li></ol>52 time=43.5 ms
[[File64 bytes from 182.92.236.130 (182.92.236.130):pi3b-img174icmp_seq=2 ttl=52 time=41.png|448x187px]]3 ms
'''Note that if you log in to the desktop system as the root user, you cannot use pulseaudio in the upper right corner to manage audio devices64 bytes from 182.'''92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms
'''Also note that this is not a bug, since pulseaudio is not allowed to run as root64 bytes from 182.'''92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms
<ol start64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq="3" style5 ttl="list-style-type: decimal;"><li>Execute the following command to set the desktop system to log in automatically with the orangepi user again</li></ol>52 time=48.8 ms
orangepi@orangepi:~$ '''sudo desktop_login.sh orangepi'''^C
<span id="the-method-of-disablingwww.orangepi.org ping statistics -the-desktop-in-the-linux-desktop-version-system"></span>=== The method of disabling the desktop in the Linux desktop version system ===
# First enter the following command on the command line,'''Please remember to add sudo permission'''5 packets transmitted, 5 received, 0% packet loss, time 4006ms
orangepi@orangepi:~$ '''sudo systemctl disable lightdmrtt min/avg/max/mdev = 41.service'''321/44.864/48.834/2.484 ms|}</ol><span id="test-method-of-desktop-image"></span>
<ol start="2" style="list-style-type: decimal;"><li>Then restart the Linux system and you will find that the == Test method of desktop will not be displayed</li></ol>image ====
orangepi@orangepi:~$ '''sudo reboot'''# Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)
<ol start="3" style="list-style-type: decimal;"><li><p>The steps to reopen the desktop are as follows:</p><ol style="list-style-type[[File: lowerpi3b-alpha;"><li>First enter the following command on the command line,'''Please remember to add sudo permission'''</li></ol></li></ol>img183.png]]
orangepi@orangepi<ol start="2" style="list-style-type:~$ decimal;"><li>Click '''sudo systemctl start lightdm.serviceMore networks'''in the pop-up drop-down box to see all scanned WIFI hotspots, and then select the WIFI hotspot you want to connect to.</li>
[[File:pi3b-img184.png]]</ol><ol start="23" style="list-style-type: lower-alphadecimal;"><li>After Then enter the password of the command is executedWIFI hotspot, the desktop will be displayedand then click '''Connect''' to start connecting to WIFI</li></ol>
[[File:pi3b-img185.png]]</ol><span idol start="onboard4" style="list-ledstyle-light-test-instructionstype: decimal;"><li>After connecting to WIFI, you can open the browser to check whether you can access the Internet. The entrance of the browser is shown in the figure below</spanli>== Onboard LED Light Test Instructions ==
# There are three LED lights on [[File:pi3b-img186.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>If you can open other web pages after opening the development boardbrowser, one green light, one red light, and one PCIe light. The location it means that the WIFI connection is shown in the figure below:normal</li>
[[File:pi3b-img187-1.png]]<div class/ol><span id="figurehow-to-set-a-static-ip-address"></span>
[[File:pi3b-img175.png|425x115px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\3.5.Onboard-LED-Light-Test-Instructions(1).jpg3.5.Onboard-LED-Light-Test-Instructions(1)]]=== How to set a static IP address ===
</div><ol start{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <li><pbig>'''As long as the development board is powered on, the red LED light will always be on, which is controlled Please do not set a static IP address by modifying the hardware and cannot be turned off by the software'''</p><etc/li><li><p>The green LED light will keep blinking after the kernel is started, which is controlled by software.</p><network/li><li><p>The PCIe indicator will flash when there is data transmission on the PCIe interfaceinterfaces configuration file.'''</p></libig><li><p>The method of setting the green light on and off and flashing is as follows</p></li></ol>|}
'''Note that <span id="use-the following operations should be performed under -nmtui-command-to-set-a-static-ip-address"></span>==== Use the root user.'''nmtui command to set a static IP address ====
<ol style="list-style-type: lower-alpha;"><li># First enter run the setting directory of the green light</li></ol>'''nmtui''' command
root::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~# $ '''cd /sys/class/leds/statusnmtui'''|}
<ol start="2" style="list-style-type: lower-alphadecimal;"><li>The command to set the green light to stop flashing is as followsThen select '''Edit a connection''' and press Enter</li></ol>
root@orangepi[[File:pi3b-img188.png]]</sys/class/leds/work# ol><ol start="3" style="list-style-type: decimal;"><li>Then select the network interface that needs to set a static IP address, for example, to set the static IP address of the '''Ethernet''' interface, select '''echo none &gt; triggerWired connection 1'''.</li>
[[File:pi3b-img189.png]]</ol><ol start="34" style="list-style-type: lower-alphadecimal;"><li>The command to set Then select '''Edit''' with the '''Tab''' key and press the green light to be on is as followsEnter key</li></ol>
root@orangepi[[File:pi3b-img190.png]]</sys/class/leds/work# ol><ol start="5" style="list-style-type: decimal;"><li>Then use the Tab key to move the cursor to the '''echo default-on &lt;Automatic&gt; trigger'''position shown in the figure below to configure IPv4</li>
[[File:pi3b-img191.png]]</ol><ol start="46" style="list-style-type: lower-alphadecimal;"><li>The command to set Then press Enter, select '''Manual''' with the green light up and down arrow keys, and press Enter to flash is as followsconfirm</li></ol>
root@orangepi[[File:pi3b-img192.png]]</sysol><ol start="7" style="list-style-type: decimal;"><li>The display after selection is shown in the figure below</class/leds/work# '''echo heartbeat &gt; trigger'''li>
[[File:pi3b-img193.png]]<span id/ol><ol start="8" style="networklist-connectionstyle-testtype: decimal;"><li>Then move the cursor to the '''&lt;Show&gt;'''</spanli>== Network connection test ==
[[File:pi3b-img194.png]]</ol><span idol start="ethernet9" style="list-portstyle-testtype: decimal;"><li>Then press Enter, the following setting interface will pop up after entering</spanli>=== Ethernet port test ===
# First, insert one end of [[File:pi3b-img195.png]]</ol><ol start="10" style="list-style-type: decimal;"><li>Then you can set the network cable into the Ethernet interface of the development boardIP address (Addresses), gateway (Gateway) and connect DNS server address in the position shown in the figure below (there are many other end of the network cable to the router, and ensure that the network is unblocked# After the system startssetting options in it, it will automatically assign an IP address to the Ethernet card through DHCPplease explore by yourself), '''No other configuration is required'''<span style="color:# The command FF0000">Please set it according to view your specific needs, the IP address value set in the Linux system of the development board figure below is as followsjust an example</span>'''</li>
orangepi@orangepi[[File:~$ pi3b-img196.png]]</ol><ol start="11" style="list-style-type: decimal;"><li>After setting, move the cursor to'''ip addr show eth0&lt;OK&gt;'''in the lower right corner, and press Enter to confirm</li>
2[[File: eth0pi3b-img197.png]]</ol><ol start="12" style="list-style-type: decimal;"><li>Then click'''&lt;BROADCAST,MULTICAST,UP,LOWER_UPBack&gt; mtu 1500 qdisc mq state UP group default qlen 1000''' to return to the previous selection interface</li>
link[[File:pi3b-img198.png]]</ether 4aol><ol start="13" style="list-style-type:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ffdecimal;"><li>Then select '''Activate a connection''', then move the cursor to'''&lt;OK&gt;''', and finally click Enter</li>
inet [[File:pi3b-img199.png]]</ol><ol start="14" style="list-style-type: decimal;"><li>Then select the network interface that needs to be set, such as '''Wired connection 1''', then move the cursor to'''&lt;Deactivate&gt;''', and press Enter to disable '''192.168.Wired connection 1.150'''</24 brd 192.168.1.255 scope global dynamic noprefixroute eth0li>
valid_lft 43150sec preferred_lft 43150sec[[File:pi3b-img200.png]]</ol><ol start="15" style="list-style-type: decimal;"><li>Then please do not move the cursor, and then press the Enter key to re-enable '''Wired connection 1''', so that the static IP address set earlier will take effect</li>
inet6 fe80[[File:pi3b-img201.png]]</ol><ol start="16" style="list-style-type:9a04:3703:faed:23bedecimal;"><li>Then you can exit nmtui through the'''&lt;Back&gt;''' and '''Quit''' buttons</64 scope link noprefixrouteli>
valid_lft forever preferred_lft forever[[File:pi3b-img202.png]] [[File:pi3b-img203.png]]</ol><ol start="17" style="list-style-type: decimal;"><li>Then through '''ip addr show eth0''', you can see that the IP address of the network port has changed to the static IP address set earlier</li>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''When using ifconfig to view the IP address, if the following information is displayed, it is because sudo is not added. The correct command is: sudo ifconfigip addr show eth0'''
orangepi@orangepi3:~$ '''ifconfig'''eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
Command 'ifconfig' is available in the following places:link/ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ff
* :inet '''<span style="color:#FF0000">192.168.1.177</sbinspan>'''/ifconfig24 brd 192.168.1.255 scope global noprefixroute eth0
* /usr/sbin/ifconfig The command could not be located because '/sbin:/usr/sbin' is not included in the PATH environment variable.:valid_lft forever preferred_lft forever
This is most likely caused by the lack of administrative privileges associated with your user account.:inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute
ifconfig: command not found:valid_lft 259149sec preferred_lft 172749sec
'''There are three ways to check the IP address after the development board starts:'''inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute
# '''Connect ::valid_lft forever preferred_lft forever|}</ol><ol start="18" style="list-style-type: decimal;"><li>Then you can test the HDMI display, then log in to connectivity of the system and use the ip addr show eth0 command network to view check whether the IP addressis configured OK, and the '''# ping'''Enter the ip addr show eth0 command in the debugging serial terminal to view can be interrupted through the IP addressshortcut key '''# '''If there is no debugging serial port and no HDMI display, you can also check the IP address of the development board’s network port through the router’s management interface. However, in this method, some people often cannot see the IP address of the development board normally. If you can't see it, the debug method looks like this:Ctrl+C'''</li>
<!-- --><ol {| class="wikitable" style="list-style-typewidth: upper-alpha800px;"><li><p>|-| orangepi@orangepi:~$ '''First check whether the Linux system has started normallyping 192.168. If the green light of the development board is blinking, it is generally started normally1. If only the red light is on, it means that the system has not started normally;'''</p></li><li><p>'''Check whether the network cable is plugged in tightly, or try another network cable;'''</p></li><li><p>'''Try another router (47 -I have encountered many problems with the router, such as the router cannot assign the IP address normally, or the IP address has been assigned normally but cannot be seen in the router);'''</p></li><li><p>'''If there is no router to replace, you can only connect to an HDMI display or use the debugging serial port to view the IP addresseth0'''</p></li></ol>
'''In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settingsPING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0: 56(84) bytes of data.'''
<ol start64 bytes from 192.168.1.47: icmp_seq="4" style1 ttl="list-style-type: decimal;"><li>The command to test the network connectivity is as follows, the '''ping''' command can be interrupted through the shortcut key of '''Ctrl+C'''</li></ol>64 time=0.233 ms
orangepi@orangepi64 bytes from 192.168.1.47:~$ '''ping www.baiduicmp_seq=2 ttl=64 time=0.com -I eth0'''263 ms
PING www.a.shifen.com (14.215.177.38) 64 bytes from 192.168.1.12 eth047: 56(84) bytes of dataicmp_seq=3 ttl=64 time=0.273 ms
64 bytes from 14192.215168.1771.38 (14.215.177.38)47: icmp_seq=1 4 ttl=56 64 time=60.74 269 ms
64 bytes from 14192.215168.1771.38 (14.215.177.38)47: icmp_seq=2 5 ttl=56 64 time=60.80 275 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=56 time=6.26 ms^C
64 bytes from 14--- 192.215168.1771.38 (14.215.177.38): icmp_seq=4 ttl=56 time=7.27 ms47 ping statistics ---
^C5 packets transmitted, 5 received, 0% packet loss, time 4042ms
rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms|}</ol><span id="use-the-nmcli-command-to-set- www.a.shifen.com ping statistics -static-ip-address"></span>
4 packets transmitted, 4 received, 0% packet loss, time 3002ms==== Use the nmcli command to set a static IP address ====
rtt min<ol style="list-style-type: decimal;"><li><p>If you want to set the static IP address of the network port, please insert the network cable into the development board first. '''If you need to set the static IP address of WIFI, please connect the WIFI first, and then start to set the static IP address'''</p></li><li><p>Then use the '''nmcli con show''' command to view the name of the network device, as shown below</p><ol style="list-style-type: lower-alpha;"><li><p>'''orangepi''' is the name of the WIFI network interface (the names are not necessarily the same)</p></li><li><p>'''Wired connection 1''' is the name of the Ethernet interface</p></li>{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''nmcli con show'''<br><span style="margin-right: 180px;">NAME</span><span style="margin-right: 260px;">UUID </span><span style="margin-right: 45px;">TYPE </span><span style="margin-right: 50px;">DEVICE</span><br><span style="margin-right: 125px;">'''orangepi'''</span><span style="margin-right: 70px;">cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a</span><span style="margin-right: 50px;">wifi </span><span style="margin-right: 50px;">wlan0</avgspan><br><span style="margin-right: 50px;">'''Wired connection 1'''</maxspan><span style="margin-right: 50px;">9db058b7-7701-37b8-9411-efc2ae8bfa30</mdev span><span style= 6.260"margin-right: 30px;">ethernet </span><span style="margin-right: 50px;">eth0</span><br>|}</6.770ol></7.275li></0.373 msol>
<span idol start="wifi3" style="list-connectionstyle-testtype: decimal;"><li>Then enter the following command, where</spanli>=== WIFI connection test ===
:a. '''Please do not connect &quot;Wired connection 1&quot;''' means to WIFI by modifying set the static IP address of the /etc/network/interfaces configuration fileEthernet port. There will be problems connecting If you need to set the static IP address of the WIFI, please change it to the corresponding name of the WIFI network in this way.interface (you can get it through the '''nmcli con show'''command)
<span id="wifi-:b. After '''ipv4.addresse''' is the-server-image-connects-static IP address to-wifi-through-commands"></span>==== WIFI The server image connects be set, which can be modified to WIFI through commands ====the value you want to set
:c. '''When the development board is not connected to Ethernet, not connected to HDMI display, but only connected to the serial port, it is recommended to use the commands demonstrated in this section to connect to the WIFI network. Because nmtui can only display characters in some serial port software (such as minicom), and cannot display the graphical interface normally. Of course, if the development board is connected to an Ethernet or HDMI display, you can also use the commands demonstrated in this section to connect to the WIFI networkipv4.gateway'''indicates the address of the gateway
<ol style::{| class="list-style-type: decimal;wikitable"><li><p>First log in to the Linux system, there are the following three ways</p><ol style="list-style-typewidth: lower-alpha800px;"><li><p>If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh</p></li>|-<li><p>If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system</p></li>| <li><p>If the development board is connected to the HDMI display, you can log in to the Linux system through the terminal displayed on the HDMI</p></li></ol></li><li><p>First use the orangepi@orangepi:~$ '''nmcli dev wifi command to scan the surrounding WIFI hotspots</p></li></ol>con mod &quot;Wired connection 1&quot; \'''
orangepi@orangepi:~$ '''nmcli dev wifiipv4.addresses &quot;192.168.1.110&quot; \'''
<div class="figure">'''ipv4.gateway &quot;192.168.1.1&quot; \'''
[[File:pi3b-img176'''ipv4.png|575x250px|选区_011]]dns &quot;8.8.8.8&quot; \'''
'''ipv4.method &quot;manual&quot;'''|}</divol><ol start="34" style="list-style-type: decimal;"><li>Then restart the Linux system</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo reboot'''|}</ol><ol start="5" style="list-style-type: decimal;"><li>Then re-enter the Linux system and use the nmcli '''ip addr show eth0''' command to connect see that the IP address has been set to the scanned WIFI hotspot, where:desired value</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''ip addr show eth0'''
a. '''wifi_name''' needs to be replaced with the name of the WIFI hotspot you want to connect to3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
b. '''wifi_passwd''' needs to be replaced with the password of the WIFI hotspot you want to connect to:link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
orangepi@orangepi:~$ inet '''nmcli dev wifi connect wifi_name password wifi_passwd<span style="color:#FF0000">192.168.1.110</span>'''/32 brd 192.168.1.110 scope global noprefixroute eth0
Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.::valid_lft forever preferred_lft forever
<ol start="4" style="list-style-type: decimal;"><li>You can view the IP address of wifi through the '''ip addr show wlan0''' command</li><inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/ol>64 scope global dynamic noprefixroute
orangepi@orangepi:~$ '''ip addr show wlan0''':valid_lft 259183sec preferred_lft 172783sec
11: wlan0inet6 fe80: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000:3312:861a:a589:d3c/64 scope link noprefixroute
link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ffvalid_lft forever preferred_lft forever|}</ol><span id="ssh-remote-login-development-board"></span>
inet '''192.168.1.11'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0== SSH remote login development board ==
valid_lft 259192sec preferred_lft 259192sec{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Linux systems enable ssh remote login by default and allow the root user to log in to the system. Before logging in with ssh, you first need to ensure that the Ethernet or wifi network is connected, and then use the ip addr command or check the router to obtain the IP address of the development board.'''</big>|}
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd<span id="ssh-remote-login-development-board-under-ubuntu"></64 scope global dynamic noprefixroutespan>=== SSH remote login development board under Ubuntu ===
valid_lft 259192sec preferred_lft 172792sec# Obtain the IP address of the development board# Then you can remotely log in to the Linux system through the ssh command
inet6 fe80::42f1{| class="wikitable" style="width:6019800px;" |-| test@test:a80e~$ '''ssh [mailto:4c31/64 scope link noprefixrouteroot@192.168.1.36 root@192.168.1.]xxx''' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Need to be replaced with the IP address of the development board)
valid_lft forever preferred_lft foreverroot@192.168.1.xx's password: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Enter the password here, the default password is orangepi)|}::{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that when entering the password, <span style="color:#FF0000">the specific content of the entered password will not be displayed on the screen</span>, please do not think that there is any fault, just press Enter after inputting.'''</big>|}::{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''If you are prompted to refuse the connection, as long as you are using the image provided by Orange Pi, <span style="color:#FF0000">please do not suspect that the password orangepi is wrong</span>, but look for other reasons.'''</big>|}
5) Use the '''ping''' command <ol start="3" style="list-style-type: decimal;"><li>After successfully logging in to test the connectivity of the wifi networksystem, and the '''ping''' command can be interrupted through display is as shown in the shortcut key '''Ctrl+C'''figure below</li>
orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''<div class="figure">
PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0[[File: 56(84) bytes of datapi3b-img204.png]]
64 bytes from 182.92.236.130 (182</div>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''If ssh cannot log in to the Linux system normally, please first check whether the IP address of the development board can be pinged.92If the ping is ok, you can log in to the Linux system through the serial port or HDMI display and then enter the following command on the development board and try again.236.130)Is it possible to connect: icmp_seq=1 ttl=52 time=43.5 ms'''
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms
64 bytes from 182.92.236.130 (182.92.236.130)root@orangepi: icmp_seq=3 ttl=52 time=44~# '''reset_ssh.9 mssh'''
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms
64 bytes from 182'''If it still doesn't work, try to reset the system.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time'''</big>|}</ol><span id=48.8 ms"ssh-remote-login-development-board-under-windows"></span>
^C=== SSH remote login development board under Windows ===
--- www.orangepi.org ping statistics ---# First obtain the IP address of the development board# Under Windows, you can use MobaXterm to remotely log in to the development board, first create a new ssh session
5 packets transmitted, 5 received, 0% packet loss, time 4006ms::a. Open '''Session'''
rtt min/avg/max/mdev = 41::b.321/44.864/48.834/2.484 msThen select '''SSH''' in '''Session Setting'''
<span id="::c. Then enter the-server-image-connects-to-wifi-IP address of the development board in-a-graphical-way"></span>==== The server image connects to WIFI in a graphical way ====the '''Remote host'''
1) First log in to ::d. Then enter the user name '''root''' or '''orangepi''' of the Linux system, there are the following three waysin '''Specify username'''
<ol style="list-style-type: lower-alpha;"><li><p>If the development board is connected with a network cable, you can remotely log in to [[\l|the Linux system through ssh]]</p></li><li><p>If the development board is connected to the debugging serial port, you can use the serial port terminal to log in to the Linux system (please use MobaXterm for the serial port software, and the minicom cannot display the graphical interface)</p></li><li><p>If the development board is connected to the HDMI display, you can log in to the Linux system through the HDMI display terminal</p></li></ol>:e. Finally click '''OK'''
<!-- --div class="figure"># # Then enter the nmtui command in the command line to open the wifi connection interface
orangepi@orangepi:~$ '''nmtui''':[[File:pi3b-img205.png]]
</div>
<ol start="3" style="list-style-type: decimal;">
<li>Enter Then you will be prompted to enter a password. The default passwords for root and orangepi users are orangepi</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that when entering the password, <span style="color:#FF0000">the specific content of the nmtui command to open entered password will not be displayed on the interface as shown belowscreen</lispan>, please do not think that there is any fault, just press Enter after inputting.'''</olbig>|} <div class="figure">
[[File:pi3b-img177img206.png|345x215px]]
</div></ol>
<ol start="4" style="list-style-type: decimal;">
<li>Select '''Activate a connect''' and press EnterAfter successfully logging in to the system, the display is as shown in the figure below</li></ol>
[[File:pi3b-img178img207.png|349x216px]]</ol><span id="the-method-of-uploading-files-to-the-linux-system-of-the-development-board"></span>
<ol start="5" style="list-style-type: decimal;"><li>Then you can see all The method of uploading files to the searched WIFI hotspots</li></ol>Linux system of the development board ==
<div classspan id="figurehow-to-upload-files-to-the-development-board-linux-system-in-ubuntu-pc"></span>=== How to upload files to the development board Linux system in Ubuntu PC ===
[[File:pi3b<span id="how-img179.png|426x270px|16]]to-upload-files-using-the-scp-command"></span>==== How to upload files using the scp command ====
</div><ol start="6" style="list-style-type: decimal;"><li>Select # Use the WIFI hotspot you want scp command to connect upload files from the Ubuntu PC to, then use the Tab key to position Linux system of the cursor on '''Activate''' and press Enter</li></ol>development board. The specific commands are as follows
<div class="figure">::a. '''file_path''': need to be replaced with the path of the file to be uploaded
[[File:pi3b-img180:b.png|474x298px|17]] </div><ol start="7" style="list-style-type: decimal;"><li>Then a dialog box for entering a password will pop up, enter the corresponding password in '''Passwordorangepi''' : It is the user name of the Linux system of the development board, and press Enter to start connecting to WIFI</li></ol>it can also be replaced with other ones, such as root
<div class="figure">::c. '''192.168.xx.xx''': It is the IP address of the development board, please modify it according to the actual situation
[[File:pi3b-img181:d.png|480x308px|18]]'''/home/orangepi''': The path in the Linux system of the development board, which can also be modified to other paths
</div><ol start::{| class="8wikitable" style="list-style-typewidth: decimal800px;"><li>After the WIFI connection is successful, a &quot;*&quot; will be displayed in front of the connected WIFI name<|-| test@test:~$ '''scp file_path orangepi@192.168.xx.xx:/home/li><orangepi/ol>'''|}
<div classol start="figure2"style="list-style-type: decimal;"><li>If you want to upload a folder, you need to add the -r parameter</li>
[[File{| class="wikitable" style="width:800px;" |-| test@test:~$ '''scp <span style="color:pi3b#FF0000">-img182r</span> dir_path orangepi@192.168.xx.pngxx:/home/orangepi/'''|}</ol><ol start="3" style="list-style-type: decimal;"><li>There are more usages of scp, please use the following command to view the man manual</li>{| class="wikitable" style="width:800px;" |443x283px-|Ctest@test:\Users\orangepi\Desktop\用户手册插图\Zero3\未标题~$ '''man scp'''|}</ol><span id="how-to-upload-files-9.jpg未标题using-9]]filezilla"></span>
</div><ol start="9" style="list-style-type: decimal;"><li>You can view the IP address of wifi through the '''ip addr show wlan0''' command</li></ol>== How to upload files using filezilla ====
orangepi@orangepi:~$ '''ip addr show wlan0'''# First install filezilla in Ubuntu PC
11: wlan0: &lt{| class="wikitable" style="width:800px;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000" |-| test@test:~$ '''sudo apt install -y filezilla'''|}
link<ol start="2" style="list-style-type: decimal;"><li>Then use the following command to open filezilla</ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ffli>
inet {| class="wikitable" style="width:800px;" |-| test@test:~$ '''192.168.1.11filezilla'''|}</24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0ol><ol start="3" style="list-style-type: decimal;"><li>The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty</li>
valid_lft 259069sec preferred_lft 259069sec<div class="figure">
inet6 240e[[File:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroutepi3b-img208.png]]
valid_lft 259071sec preferred_lft 172671sec</div></ol><ol start="4" style="list-style-type: decimal;"><li>The method of connecting the development board is shown in the figure below</li>
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute<div class="figure">
valid_lft forever preferred_lft forever[[File:pi3b-img209.png]]
</div></ol><ol start="105" style="list-style-type: decimal;"><li>Use the Then choose to '''pingsave the password''' command to test the connectivity of the wifi network, and the 'then click ''ping''' command can be interrupted through the shortcut key '''Ctrl+COK'''</li></ol>
orangepi@orangepi[[File:~$ pi3b-img210.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then choose to always '''trust this host''', and then click ''ping www.orangepi.org -I wlan0'OK'''</li>
PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.<div class="figure">
64 bytes from 182.92.236.130 (182.92.236.130)[[File: icmp_seq=1 ttl=52 time=43pi3b-img211.5 mspng]]
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq</div></ol><ol start=2 ttl"7" style=52 time=41.3 ms"list-style-type: decimal;"><li>After the connection is successful, you can see the directory structure of the development board Linux file system on the right side of the filezilla software</li>
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq<div class=3 ttl=52 time=44.9 ms"figure">
64 bytes from 182.92.236.130 (182.92.236.130)[[File: icmp_seq=4 ttl=52 time=45pi3b-img212.6 mspng]]
64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq</div></ol><ol start=5 ttl"8" style=52 time=48"list-style-type: decimal;"><li>Then select the path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Ubuntu PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the development board.8 ms</li>
^C<div class="figure">
[[File:pi3b--- www.orangepiimg213.org ping statistics ---png]]
5 packets transmitted</div></ol><ol start="9" style="list-style-type: decimal;"><li>After the upload is complete, 5 received, 0% packet loss, time 4006msyou can go to the corresponding path in the Linux system of the development board to view the uploaded file</li>
rtt min<li>The method of uploading a folder is the same as that of uploading a file, so I won't go into details here</avgli></max/mdev ol><span id= 41.321/44.864/48.834"the-method-of-uploading-files-from-windows-pc-to-the-linux-system-of-the-development-board"></2.484 msspan>
<span id="test-method-of-desktop-image"></span>==== Test The method of desktop image =uploading files from Windows PC to the Linux system of the development board ===
# Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)<span id="how-to-upload-files-using-filezilla-1"></span>==== How to upload files using filezilla ====
[[File:pi3b-img183.png|377x166px]]# First download the installation file of the Windows version of the filezilla software, the download link is as follows
<ol start::{| class="2wikitable" style="list-style-typewidth: decimal800px;"><li>Click |-| '''More networkshttps://filezilla-project.org/download.php?type=client''' in the pop-up drop-down box to see all scanned WIFI hotspots, and then select the WIFI hotspot you want to connect to.</li></ol>|}
[[File:pi3b-img184.png|576x353px]]<div class="figure">
<ol start="3" style="list::[[File:pi3b-style-type: decimal;"><li>Then enter the password of the WIFI hotspot, and then click '''Connect''' to start connecting to WIFI</li></ol>img214.png]]
[[File:pi3b-img185.png|320x163px]]</div><div class="figure">
<ol start="4" style="list::[[File:pi3b-style-type: decimal;"><li>After connecting to WIFI, you can open the browser to check whether you can access the Internetimg215. The entrance of the browser is shown in the figure below</li></ol>png]]
[[File</div><ol start="2" style="list-style-type:pi3bdecimal;"><li>The downloaded installation package is as follows, and then double-img186.png|576x308px]]click to install directly</li>
<ol start{| class="5wikitable" style="list-style-typewidth: decimal800px;"><li>If you can open other web pages after opening the browser, it means that the WIFI connection is normal</li></ol>|-| '''FileZilla_Server_1.5.1_win64-setup.exe'''|}
[[File:pi3b-img187.png|576x222px]]During the installation process, please select '''Decline''' on the following installation interface, and then select '''Next&gt;'''
<span iddiv class="how-to-set-a-static-ip-addressfigure"></span>=== How to set a static IP address ===
'''Please do not set a static IP address by modifying the /etc/network/interfaces configuration file[[File:pi3b-img216.'''png]]
<span id/div></ol><ol start="use-the-nmtui-command-to-set-a-static3" style="list-ipstyle-addresstype: decimal;"><li>The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty</spanli>==== Use the nmtui command to set a static IP address ====
# First run the '''nmtui''' command<div class="figure">
orangepi@orangepi[[File:~$ '''nmtui'''pi3b-img217.png]]
</div></ol><ol start="24" style="list-style-type: decimal;"><li>Then select '''Edit a connection''' and press EnterThe method of connecting the development board is shown in the figure below:</li></ol>
[[File:pi3b-img188.png|227x247px]]<div class="figure">
<ol start="3" style="list[[File:pi3b-style-type: decimal;"><li>Then select the network interface that needs to set a static IP address, for example, to set the static IP address of the '''Ethernet''' interface, select '''Wired connection 1'''img209.</li></ol>png]]
[[File</div></ol><ol start="5" style="list-style-type:pi3b-img189.png|310x149px]]decimal;"><li>Then choose to '''save the password''', and then click '''OK'''</li>
<ol startdiv class="4figure" style="list-style-type: decimal;"><li>Then select '''Edit''' with the '''Tab''' key and press the Enter key</li></ol>
[[File:pi3b-img190img218.png|316x144px]]
</div></ol><ol start="56" style="list-style-type: decimal;"><li>Then use the Tab key choose to move the cursor to the always '''trust this host''', and then click '''&lt;Automatic&gt;OK''' position shown in the figure below to configure IPv4</li></ol>
[[File:pi3b-img191.png|575x240px]]<div class="figure">
<ol start="6" style="list[[File:pi3b-style-type: decimal;"><li>Then press Enter, select '''Manual''' with the up and down arrow keys, and press Enter to confirm</li></ol>img219.png]]
[[File</div></ol><ol start="7" style="list-style-type:pi3b-img192.png|576x237px]]decimal;"><li>After the connection is successful, you can see the directory structure of the development board Linux file system on the right side of the filezilla software</li>
<ol startdiv class="7figure" style="list-style-type: decimal;"><li>The display after selection is shown in the figure below</li></ol>
[[File:pi3b-img193img220.png|575x240px]]
</div></ol>
<ol start="8" style="list-style-type: decimal;">
<li>Then move select the cursor path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Ubuntu PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the '''&lt;Show&gt;'''development board.</li></ol>
<div class="figure"> [[File:pi3b-img194img221.png|576x241px]]
</div></ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then press Enter<p>After the upload is complete, you can go to the corresponding path in the Linux system of the development board to view the uploaded file</p></li><li><p>The method of uploading a folder is the following setting interface will pop up after enteringsame as that of uploading a file</p></li></ol>
[[File:pi3b<span id="hdmi-img195.png|575x450px]]test"></span>
<ol start="10" style="list-style-type: decimal;"><li>Then you can set the IP address (Addresses), gateway (Gateway) and DNS server address in the position shown in the figure below (there are many other setting options in it, please explore by yourself),'''Please set it according to your specific needs, the value set in the figure below is just an example'''</li></ol>HDMI test ==
[[File:pi3b<span id="hdmi-img196.png|576x233px]]display-test"></span>=== HDMI display test ===
<ol start="11" style="list-style-type: decimal;"><li>After setting, move the cursor # Use HDMI to'''&lt;OK&gt;''' in the lower right corner, HDMI cable to connect Orange Pi development board and press Enter to confirm</li></ol>HDMI monitor
::[[File:pi3b-img197img10.png|576x116px]]
<ol start="122" style="list-style-type: decimal;"><li>Then click'''&lt;Back&gt;''' to return to After starting the Linux system, if the HDMI monitor has image output, it means that the previous selection HDMI interfaceis in normal use</li></ol>
[[File{| class="wikitable" style="background-color:#ffffdc;width:pi3b800px;" |-img198| <big>'''Note that although many notebook computers have an HDMI interface, the HDMI interface of the notebook generally only has the output function, and does not have the function of HDMI in, that is to say, the HDMI output of other devices cannot be displayed on the notebook screen.png|330x325px]]'''
'''When you want to connect the HDMI of the development board to the HDMI port of the laptop, please make sure that your laptop supports the HDMI in function.'''<ol start/big>|}{| class="13wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig>Then select '''Activate a When the HDMI is not displayed, please check whether the HDMI cable is plugged in tightly. After confirming that there is no problem with the connection''', then move the cursor you can change a different screen and try tosee if it is displayed.'''&lt;OK&gt;''', and finally click Enter</libig>|}</ol>
[[File:pi3b<span id="hdmi-img199.png|331x248px]]to-vga-display-test"></span>
<ol start="14" style="list-style-type: decimal;"><li>Then select the network interface that needs = HDMI to be set, such as '''Wired connection 1''', then move the cursor to'''&lt;Deactivate&gt;''', and press Enter to disable '''Wired connection 1'''</li></ol>VGA display test ===
[[File<ol style="list-style-type: decimal;"><li><p>First, you need to prepare the following accessories</p><ol style="list-style-type:pi3blower-img200.png|576x224px]]alpha;"><li>HDMI to VGA converter</li>
[[File:pi3b-img222.png]]</ol><ol start="152" style="list-style-type: decimallower-alpha;"><li>Then please do not move the cursor, and then press the Enter key to re-enable '''Wired connection 1''', so that the static IP address set earlier will take effectA VGA cable</li></ol>
[[File:pi3b-img201img223.png|576x224px]]</ol><ol start="3" style="list-style-type: lower-alpha;"><li>A monitor or TV that supports VGA interface</li></ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>HDMI to VGA display test as shown below</li>
<ol start="16" style="list[[File:pi3b-style-type: decimal;"><li>Then you can exit nmtui through the'''&lt;Back&gt;''' and '''Quit''' buttons</li></ol>img224.png]]
[[File{| class="wikitable" style="background-color:#ffffdc;width:pi3b800px;" |-img202| <big>'''When using HDMI to VGA display, the development board and the Linux system of the development board do not need to make any settings, only the HDMI interface of the development board can display normally.pngSo if there is a problem with the test, please check whether there is a problem with the HDMI to VGA converter, VGA cable and monitor.'''</big>|300x253px]] [[File:pi3b}</ol><span id="hdmi-resolution-setting-img203.png|227x252px]]method"></span>
<ol start="17" style="list-style-type: decimal;"><li>Then through '''ip addr show eth0''', you can see that the IP address of the network port has changed to the static IP address set earlier</li></ol>= HDMI resolution setting method ===
orangepi@orangepi:~$ # First open '''ip addr show eth0Display''' in '''Settings'''
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000[[File:pi3b-img225.png]]
link<ol start="2" style="list-style-type: decimal;"><li>Then you can see the current resolution of the system</ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ffli>
inet '''192[[File:pi3b-img226.168.1.177'''png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Click the drop-down box of Resolution to see all resolutions currently supported by the monitor</24 brd 192.168.1.255 scope global noprefixroute eth0li>
valid_lft forever preferred_lft forever[[File:pi3b-img227.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>Then select the resolution you want to set, and click Apply</li>
inet6 241e[[File:3b8:3240:c3a0:e269:8305:dc08pi3b-img228.png]]</ol><ol start="5" style="list-style-type:135edecimal;"><li>After the new resolution is set, select '''Keep the configuration'''</64 scope global dynamic noprefixrouteli>
valid_lft 259149sec preferred_lft 172749sec[[File:pi3b-img229.png]]</ol><span id="how-to-use-bluetooth"></span>
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute== How to use Bluetooth ==
valid_lft forever preferred_lft forever<span id="test-method-of-desktop-image-1"></span>=== Test method of desktop image ===
<ol start="18" style="list-style-type: decimal;"><li>Then you can test # Click the connectivity Bluetooth icon in the upper right corner of the network to check whether the IP address is configured OK, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''</li></ol>desktop.
orangepi@orangepi:~$ '''ping 192.168:[[File:pi3b-img230.1.47 -I eth0'''png]]
PING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0<ol start="2" style="list-style-type: 56(84) bytes of data.decimal;"><li>Then select the adapter</li>
64 bytes from 192.168.1[[File:pi3b-img231.47: icmp_seqpng]]</ol><ol start=1 ttl"3" style=64 time=0.233 ms"list-style-type: decimal;"><li>If there is a prompt on the following interface, please select '''Yes'''</li>
64 bytes from 192.168.1[[File:pi3b-img232.47: icmp_seqpng]]</ol><ol start=2 ttl"4" style=64 time=0.263 ms"list-style-type: decimal;"><li>Then set '''Visibility Setting''' as '''Always visible''' in the Bluetooth adapter settings interface, and then close it</li>
64 bytes from 192.168.1[[File:pi3b-img233.47: icmp_seqpng]]</ol><ol start=3 ttl"5" style=64 time=0.273 ms"list-style-type: decimal;"><li>Then open the configuration interface of the Bluetooth device</li>
64 bytes from 192.168.1[[File:pi3b-img234.47: icmp_seqpng]]</ol><ol start=4 ttl"6" style=64 time=0.269 ms"list-style-type: decimal;"><li>Click '''Search''' to start scanning the surrounding Bluetooth device</li>
64 bytes from 192.168.1[[File:pi3b-img235.47: icmp_seqpng]]</ol><ol start=5 ttl"7" style=64 time=0.275 ms"list-style-type: decimal;"><li>Then select the Bluetooth device you want to connect to, and then click the right button of the mouse to pop up the operation interface for this Bluetooth device, select '''Pair''' to start pairing, and the demonstration here is to pair with an Android phone</li>
^C[[File:pi3b-img236.png]]</ol><ol start="8" style="list-style-type: decimal;"><li>When pairing, the pairing confirmation box will pop up in the upper right corner of the desktop. Select '''Confirm''' to confirm. At this time, the mobile phone also needs to be confirmed</li>
[[File:pi3b--- 192.168.1img237.47 ping statistics png]]</ol><ol start="9" style="list-style-type: decimal;"><li>After pairing with the mobile phone, you can choose the paired Bluetooth device, then right-click and select '''Send a File''' to start sending a picture to the phone</li>
5 packets transmitted, 5 received, 0% packet loss, time 4042ms[[File:pi3b-img238.png]]</ol><ol start="10" style="list-style-type: decimal;"><li>The interface of the sending picture is shown below</li>
rtt min[[File:pi3b-img239.png]]</avg/max/mdev ol><span id= 0.233"usb-interface-test"></0.262/0.275/0.015 msspan>
<span id="use-the-nmcli-command-to-set-a-static-ip-address"></span>==== Use the nmcli command to set a static IP address ==USB interface test ==
<ol style{| class="list-style-type: decimal;wikitable"><li><p>If you want to set the static IP address of the network port, please insert the network cable into the development board first. '''If you need to set the static IP address of WIFI, please connect the WIFI first, and then start to set the static IP address'''</p></li><li><p>Then use the '''nmcli con show''' command to view the name of the network device, as shown below</p><ol style="listbackground-style-typecolor:#ffffdc;width: lower-alpha800px;">|-| <li><pbig>'''orangepi''' is The USB interface can be connected to a USB hub to expand the name number of the WIFI network interface (the names are not necessarily the same)</p></li><li><p>''USB interfaces.'Wired connection 1''' is the name of the Ethernet interface</p></li></olbig></li></ol>|}
orangepi@orangepi:~$ '''nmcli con show'''<span id="connect-the-usb-mouse-or-keyboard-test"></span>=== Connect the USB mouse or keyboard test ===
NAME UUID TYPE DEVICE# Insert the USB interface keyboard into the USB interface of the Orange Pi development board# Connect Orange PI development board to HDMI display# If the mouse or keyboard can operate normally, it means that the USB interface is working normally (the mouse can only be used in the desktop version of the system)
'''orangepi''' cfc4f922<span id="connect-ae48the-46f1usb-84e1storage-2f19e9ec5e2a wifi wlan0device-test"></span>
'''Wired connection 1''' 9db058b7-7701-37b8-9411-efc2ae8bfa30 ethernet eth0=== Connect the USB storage device test ===
<ol start="3" style="list-style-type: decimal;"># First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board<li>Then enter # Execute the following command, where</li></ol>if you can see the output of sdX, it means that the U disk is recognized successfully
<blockquote>a. ::{| class="wikitable" style="width:800px;"|-|orangepi@orangepi:~$ '''cat /proc/partitions | grep &quot;Wired connection 1sd*&quot;''' means to set the static IP address of the Ethernet port. If you need to set the static IP address of the WIFI, please change it to the corresponding <br><span style="margin-right: 30px;">major </span><span style="margin-right: 40px;">minor </span><span style="margin-right: 30px;">#blocks</span><span style="margin-right: 50px;">name of the WIFI network interface (you can get it through the </span><br><span style="margin-right: 70px;">8</span><span style="margin-right: 60px;">0</span><span style="margin-right: 50px;">30044160 </span><span style="margin-right: 50px;color:#FF0000">'''nmcli con showsda''' command)</span><br><span style="margin-right: 70px;">8</span><span style="margin-right: 60px;">1</span><span style="margin-right: 50px;">30043119 </span><span style="margin-right: 50px;color:#FF0000">'''sda1'''</span><br>|}
b. After <ol start="3" style="list-style-type: decimal;"><li>Use the mount command to mount the U disk into '''ipv4.addresse/mnt''' is the static IP address to be set, which and then you can be modified to view the file in the value you want to setU disk</li>
c. '''ipv4.gateway''' indicates the address of the gateway{| class="wikitable" style="width:800px;" |-</blockquote>| orangepi@orangepi:~$ '''nmcli con mod &quot;Wired connection 1&quot; \sudo mount /dev/sda1 /mnt/'''
orangepi@orangepi:~$ '''ipv4.addresses &quot;192.168.1.110&quot; \''' '''ipv4.gateway &quot;192.168.1.1&quot; \''' '''ipv4.dns &quot;8.8.8.8&quot; \''' '''ipv4.method &quot;manual&quot;ls /mnt/'''
test.txt
|}
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then restart After the Linux systemmounting, you can view the capacity usage and mount point of the U disk through the '''df -h''' command</li></ol>{| class="wikitable" style="width:800px;" |-|orangepi@orangepi:~$ '''df -h | grep &quot;sd&quot;'''
orangepi@orangepi:~$ '''sudo reboot'''/dev/sda1 &nbsp;&nbsp;&nbsp; 29G &nbsp;&nbsp; 208K &nbsp;&nbsp; 29G &nbsp;&nbsp; 1% /mnt|}</ol><span id="usb-wireless-network-card-test"></span>
<ol start="5" style="list-style-type: decimal;"><li>Then re-enter the Linux system and use the '''ip addr show eth0'''command to see that the IP address has been set to the desired value</li></ol>= USB wireless network card test ===
orangepi@orangepi:~$ The currently '''ip addr show eth0tested'''USB wireless network cards are shown below. Please test it by yourself for other models of USB wireless network cards. If you cannot use it, you need to transplant the corresponding USB wireless network card driver
3{| class="wikitable" style="width: eth0800px;text-align: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gtcenter; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000"|-| No.| Model||-| 1| RTL8723BU
link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ffSupport 2.4G WIFI+BT4.0
inet '''192| [[File:pi3b-img240.168.1.110'''/32 brd 192.168.1.110 scope global noprefixroute eth0png]]|-| 2| RTL8811
valid_lft forever preferred_lft foreverSupport 2.4G +5G WIFI
inet6 240e| [[File:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroutepi3b-img241.png]]|-| 3| RTL8821CU
valid_lft 259183sec preferred_lft 172783secSupport 2.4G +5G WIFI
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixrouteSupport BT 4.2
valid_lft forever preferred_lft forever| <div class="figure">
<span id="ssh[[File:pi3b-remote-login-development-board"></span>== SSH remote login development board; ==img242.png]]
'''Linux systems enable ssh remote login by default and allow the root user to log in to the system. Before logging in with ssh, you first need to ensure that the Ethernet or wifi network is connected, and then use the ip addr command or check the router to obtain the IP address of the development board.'''</div>|}
<span id="sshrtl8723bu-remote-login-development-board-under-ubuntutest"></span>=== SSH remote login development board under Ubuntu = RTL8723BU test ====
# Obtain First insert the IP address RTL8723BU wireless network card module into the USB interface of the development board# Then you can remotely log in to the Linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the ssh lsmod command, you can see that the following kernel modules have been automatically loaded
test::{| class="wikitable" style="width:800px;" |-|<p>orangepi@testorangepi:~$ '''ssh [mailto:root@192.168.1.36 root@192.168.1.]xxxlsmod''' (Need to be replaced with the IP address of the development board)</p><span style="margin-right: 100px;">Module </span><span style="margin-right: 50px;">Size </span><span style="margin-right: 45px;">Used by</span><br><span style="margin-right: 100px;">rfcomm </span><span style="margin-right: 50px;">57344</span><span style="margin-right: 50px;">16</span><br><span style="margin-right: 95px;">rtl8xxxu </span><span style="margin-right: 50px;">106496</span><span style="margin-right: 30px;">0</span><br><span style="margin-right: 90px;">rtk_btusb </span><span style="margin-right: 50px;">61440</span><span style="margin-right: 30px;">0</span><br>|}
root@192.168.1.xx's password<ol start="3" style="list-style-type: (Enter decimal;"><li>Through the password heredmesg command, you can see the default password is orangepi)loading information of the RTL8723BU module</li>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''Note that when entering the password, the specific content of the entered password will not be displayed on the screen, please do not think that there is any fault, just press Enter after inputting.dmesg'''
'''If you are prompted to refuse the connection, as long as you are using the image provided by Orange Pi, please do not suspect that the password orangepi is wrong, but look for other reasons.'''.....
<ol start="3" style="list[ 83.438901] usb 2-style1: new high-type: decimal;"><li>After successfully logging in to the system, the display is as shown in the figure below</li></ol>speed USB device number 2 using ehci-platform
<div class[ 83.588375] usb 2-1: New USB device found, idVendor="figure">0bda, idProduct=b720, bcdDevice= 2.00
[[File:pi3b-img20483.png|405x207px|L467QDF65C(YR79U]TH[TND]588403]usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
</div>'''If ssh cannot log in to the Linux system normally, please first check whether the IP address of the development board can be pinged[ 83. If the ping is ok, you can log in to the Linux system through the serial port or HDMI display and then enter the following command on the development board and try again588422] usb 2-1: Product: 802. Is it possible to connect:'''11n WLAN Adapter
root@orangepi[ 83.588443] usb 2-1:~# '''reset_ssh.sh'''Manufacturer: Realtek
'''If it still doesn't work, try to reset the system[ 83.'''588460] usb 2-1: SerialNumber: 00e04c000001
<span id[ 83.601974] Bluetooth: hci0: RTL: examining hci_ver="ssh-remote-login-development-board-under-windows"></span>=== SSH remote login development board under Windows 06 hci_rev=000b lmp_ver=06 lmp_subver=8723
# First obtain the IP address of the development board[ 83.603894] Bluetooth: hci0: RTL: rom_version status=0 version=1
2) Under Windows, you can use MobaXterm to remotely log in to the development board, first create a new ssh session[ 83.603920] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_fw.bin
a[ 83. Open '''Session'''610108] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_config.bin
b[ 83. Then select '''SSH''' in '''Session Setting'''611274] Bluetooth: hci0: RTL: cfg_sz 68, total sz 22564
c[ 83. Then enter the IP address of the development board in the '''Remote host'''658494] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432
d[ 83. Then enter the user name '''root''' or '''orangepi''' of the Linux system in '''Specify username'''658651] usbcore: registered new interface driver rtk_btusb
e[ 83. Finally click '''OK'''667124] usb 2-1: This Realtek USB WiFi dongle (0x0bda:0xb720) is untested!
<div class="figure">[ 83.667137] usb 2-1: Please report results to Jes.Sorensen@gmail.com
[[File:pi3b-img20583.png|553x280px|14]890140]usb 2-1: Vendor: Realtek
</div><ol start="[ 83.890153] usb 2" style="list-style-type1: Product: decimal;"><li></li><li>Then you will be prompted to enter a password802. The default passwords for root and orangepi users are orangepi</li></ol>11n WLAN Adapter
'''Note that when entering the password, the specific content of the entered password will not be displayed on the screen, please do not think that there is any fault, just press Enter after inputting[ 83.'''890159] usb 2-1: rtl8723bu_parse_efuse: dumping efuse (0x200 bytes):
<div class="figure">......
[[File:pi3b83.890412] usb 2-img206.png|578x150px|C1:\Users\orangepi\Desktop\用户手册插图\pi 3b\just press Enter after inputting..jpgjust press Enter after inputting.]]RTL8723BU rev E (SMIC) 1T1R, TX queues 3, WiFi=1, BT=1, GPS=0, HI PA=0
</div><ol start="4" style="list[ 83.890417] usb 2-style-type1: RTL8723BU MAC: 00:13:ef:f4:58: decimal;"><li>After successfully logging in to the system, the display is as shown in the figure below</li></ol>ae
[[File83.890421] usb 2-1:pi3b-img207rtl8xxxu: Loading firmware rtlwifi/rtl8723bu_nic.png|576x334px]]bin
<span id="the[ 83.895289] usb 2-method-of-uploading-files-to-the-linux-system-of-the-development-board"></span>== The method of uploading files to the Linux system of the development board ==1: Firmware revision 35.0 (signature 0x5301)
<span id="how-to-upload-files-to-the-development-board-linux-system-in-ubuntu-pc"></span>=== How to upload files to the development board Linux system in Ubuntu PC ===[ 84.050893] Bluetooth: hci0: RTL: fw version 0x0e2f9f73
<span id="how-to-upload-files-using-the-scp-command"></span>==== How to upload files using the scp command ====[ 84.266905] Bluetooth: RFCOMM TTY layer initialized
# Use the scp command to upload files from the Ubuntu PC to the Linux system of the development board[ 84. The specific commands are as follows266949] Bluetooth: RFCOMM socket layer initialized
<blockquote>a[ 84. '''file_path'''266999] Bluetooth: need to be replaced with the path of the file to be uploadedRFCOMM ver 1.11
b[ 84. '''orangepi'''884270] usbcore: It is the user name of the Linux system of the development board, and it can also be replaced with other ones, such as rootregistered new interface driver rtl8xxxu
c[ 84. 912046] rtl8xxxu 2-1:1.2 wlx0013eff458ae: renamed from wlan0|}</ol><ol start="4" style="list-style-type: decimal;"><li>Then you can see the RTL8723BU WIFI device node through the '''sudo ifconfig'''192command.168.xx.xxPlease refer to [[Orange Pi 3B#WIFI connection test|'''the WIFI connection test chapter''']] for WIFI connection and testing methods</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi: It is the IP address of the development board, please modify it according to the actual situation~$ '''sudo ifconfig wlx0013eff458ae'''
d. '''/home/orangepi'''wlx0013eff458ae: The path in the Linux system of the development boardflags=4099&lt;UP, which can also be modified to other paths</blockquote>test@test:~$ '''scp file_path orangepi@192.168.xx.xx:/home/orangepi/'''BROADCAST,MULTICAST&gt; mtu 1500
<ol start="2" style="list-style-type: decimal;"><li>If you want to upload a folder, you need to add the -r parameter</li></ol>:ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
test@test:~$ '''scp -r dir_path orangepi@192.168.xx:RX packets 0 bytes 0 (0.xx:/home/orangepi/'''0 B)
<ol start="3" style="list-style-type: decimal;"><li>There are more usages of scp, please use the following command to view the man manual</li></ol>:RX errors 0 dropped 0 overruns 0 frame 0
test@test:~$ '''man scp''':TX packets 0 bytes 0 (0.0 B)
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0|}</ol><span idol start="how-to-upload5" style="list-filesstyle-using-filezillatype: decimal;"><li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</spanli>{| class="wikitable" style=== How to upload files using filezilla ===="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt update &amp;&amp; sudo apt install bluez'''
# First install filezilla in Ubuntu PCorangepi@orangepi:~$ '''hciconfig'''
test@testhci0: Type: Primary Bus:~$ '''sudo apt install -y filezilla<span style="color:#FF0000">USB</span>'''
<ol start="2" style="list-style-type: decimal;">:BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16<li>Then use the following command to open filezilla</li></ol>::DOWN
test@test:~$ '''filezilla''':RX bytes:1252 acl:0 sco:0 events:125 errors:0
::TX bytes:23307 acl:0 sco:0 commands:125 errors:0|}</ol><ol start="36" style="list-style-type: decimal;"><li>The interface after filezilla is opened is as follows, and the display under You can also see the remote site Bluetooth icon on the right is emptydesktop. At this time, Bluetooth has not been opened, so a red '''<span style="color:#FF0000">x</lispan>''' will be displayed</olli>
[[File:pi3b-img243.png]]<div class/ol><ol start="7" style="figurelist-style-type: decimal;"><li>Click '''Turn Bluetooth On''' to turn on Bluetooth</li>
[[File:pi3b-img208img244.png|576x453px|截图 2022-12-03 19]]</ol><ol start="8" style="list-04style-40]]type: decimal;"><li>The display after turning on Bluetooth is as follows</li>
[[File:pi3b-img245.png]]</divol><ol start="49" style="list-style-type: decimal;"><li>The Please refer to the [[Orange Pi 3B#How to use Bluetooth|'''Bluetooth use method''']] for Bluetooth test method of connecting the development board is shown in the figure below, so I won't go into details here.</li></ol>
<div classspan id="figurertl8811-test"></span>
[[File:pi3b-img209.png|575x128px|图片565]]==== RTL8811 test ====
</div># First insert the RTL8811 wireless network card module into the USB interface of the development board.<ol start="5" style="list-style-type: decimal;"><li># Then choose the Linux system will automatically load the kernel modules related to '''save the password'''RTL8811 WIFI, and then click '''OK'''</li></ol>you can see that the following kernel modules have been automatically loaded through the lsmod command
[[File:pi3b:{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''lsmod'''</p><span style="margin-right: 100px;">Module </span><span style="margin-right: 50px;">Size </span><span style="margin-img210.pngright: 45px;">Used by</span><br><span style="margin-right: 100px;">8821cu </span><span style="margin-right: 50px;">1839104 </span><span style="margin-right: 50px;">0</span><br>|249x181px]]}
<ol start="63" style="list-style-type: decimal;"><li>Then choose to always '''trust this host'''Through the dmesg command, and then click you can see the loading information of the RTL8811 module</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''OKdmesg'''</li></ol>
<div class="figure">[ 118.618194] usb 2-1: new high-speed USB device number 2 using ehci-platform
[[File118.767152] usb 2-1:pi3b-img211New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.png|278x150px|IMG_256]]00
</div><ol start[ 118.767181] usb 2-1: New USB device strings: Mfr="7" style1, Product="list-style-type: decimal;"><li>After the connection is successful2, you can see the directory structure of the development board Linux file system on the right side of the filezilla software</li></ol>SerialNumber=3
<div class="figure">[ 118.767199] usb 2-1: Product: 802.11ac NIC
[[File:pi3b-img212118.png|533x330px|IMG_256]767219]usb 2-1: Manufacturer: Realtek
</div><ol start="8" style="list[ 118.767235] usb 2-style-type1: SerialNumber: decimal;"><li>Then select the path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Ubuntu PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the development board bingo.</li></ol>123456
<div class="figure">[ 119.500530] usbcore: registered new interface driver rtl8821cu
[[File119.525498] rtl8821cu 2-1:1.0 wlx1cbfced9d260:pi3brenamed from wlan0|}</ol><ol start="4" style="list-img213style-type: decimal;"><li>Then you can see the WiFi device node through the '''sudo ifconfig''' command.pngPlease refer to the [[Orange Pi 3B#WIFI connection test|485x380px|IMG_256'''WiFi connection test chapter''']]for WIFI connection and testing methods. I won't go into details her</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo ifconfig wlx1cbfced9d260'''
</div>9) After the upload is completewlx1cbfced9d260: flags=4099&lt;UP, you can go to the corresponding path in the Linux system of the development board to view the uploaded fileBROADCAST,MULTICAST&gt; mtu 1500
10::ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet) The method of uploading a folder is the same as that of uploading a file, so I won’t go into details here
<span id="the-method-of-uploading-files-from-windows-pc-to-the-linux-system-of-the-development-board"></span>=== The method of uploading files from Windows PC to the Linux system of the development board ===::RX packets 0 bytes 0 (0.0 B)
<span id="how-to-upload-files-using-filezilla-1"></span>==== How to upload files using filezilla ====::RX errors 0 dropped 0 overruns 0 frame 0
# First download the installation file of the Windows version of the filezilla software, the download link is as follows::TX packets 0 bytes 0 (0.0 B)
https::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0|}<//filezillaol><span id="rtl8821cu-project.orgtest"></download.php?type=clientspan>
<div class="figure">=== RTL8821CU test ====
[[File:pi3b-img214.png|472x171px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-15.jpg未标题-15]]# First insert the rtl8821cu wireless network card module into the USB interface of the development board# Then use the '''lsusb''' command to see the device information of the rtl8821cu usb wifi module, please make sure that the USB module is not in Driver CDROM Mode
</div><div ::{| class="figurewikitable" style="width:800px;">|-| orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;'''
[[FileBus 002 Device 003:pi3bID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC|}::{| class="wikitable" style="background-img215.pngcolor:#ffffdc;width:800px;" |-|393x283pxorangepi@orangepi:~$ '''lsusb |图片5552]]grep &quot;Realtek&quot;'''
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter ('''</div><ol start="2" span style="list-style-typecolor: decimal;blue"><li>The downloaded installation package is as follows, and then double-click to install directly</li>Driver CDROM Mode</olspan>''')
'''FileZilla_Server_1.5.1_win64-setup.exe'''
During <big>'''If the installation processUSB WIFI module seen by the lsusb command is in Driver CDROM Mode, please select '''Decline''' on unplug the USB WIFI module again. If not, please manually execute the following installation interface, and then select '''Next&gt;command to switch to the next mode:'''</big>
<div class="figure">
[[Fileorangepi@orangepi:pi3b~$ '''sudo usb_modeswitch -img216.png|319x251pxKW -v 0bda -p 1a2b'''|IMG_256]]}
</div>
<ol start="3" style="list-style-type: decimal;">
<li>The interface after filezilla is opened is as followsLinux system will automatically load the rtl8821cu bluetooth and wifi-related kernel modules, and through the display under the remote site on lsmod command, you can see that the following kernel modules have been automatically loaded</li>{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''lsmod'''</p><span style="margin-right: 100px;">Module </span><span style="margin-right: 50px;">Size </span><span style="margin-right: 45px;">Used by</span><br><span style="margin-right: 100px;">8821cu </span><span style="margin-right: 50px;">1839104 </span><span style="margin-right: 50px;">0</span><br><span style="margin-right: 90px;">rtk_btusb </span><span style="margin-right: 50px;">61440</span><span style="margin-right is empty: 30px;">0</span><br>|}</ol><ol start="4" style="list-style-type: decimal;"><li>Through the dmesg command, you can see the loading information of the rtl8821cu module</olli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''dmesg'''
<div class="figure">......
[[File57.083693] usb 2-1:pi3bnew high-img217.png|451x357px|IMG_256]]speed USB device number 2 using ehci-platform
</div><ol start[ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct="4" style1a2b, bcdDevice="list-style-type: decimal;"><li>The method of connecting the development board is shown in the figure below:</li></ol>2.00
<div class[ 57.231916] usb 2-1: New USB device strings: Mfr="figure">1, Product=2, SerialNumber=0
[[File:pi3b-img20957.png|575x128px|图片565]231937]usb 2-1: Product: DISK
</div><ol start="5" style="list[ 57.231956] usb 2-style-type1: Manufacturer: decimal;"><li>Then choose to '''save the password''', and then click '''OK'''</li></ol>Realtek
<div class="figure">[ 57.242594] usb-storage 2-1:1.0: USB Mass Storage device detected
[[File57.245674] scsi host0:pi3busb-storage 2-img2181:1.png|207x146px|IMG_256]]0
</div><ol start="6" style="list[ 58.069172] usb 2-style-type1: decimal;"><li>Then choose to always '''trust this host'''USB disconnect, and then click '''OK'''</li></ol>device number 2
<div class="figure">[ 58.440025] usb 2-1: new high-speed USB device number 3 using ehci-platform
[[File58.587819] usb 2-1:pi3b-img219New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.png|221x109px|IMG_256]]00
</div><ol start[ 58.587827] usb 2-1: New USB device strings: Mfr="7" style1, Product="list-style-type: decimal;"><li>After the connection is successful2, you can see the directory structure of the development board Linux file system on the right side of the filezilla software</li></ol>SerialNumber=3
<div class="figure">[ 58.587833] usb 2-1: Product: 802.11ac NIC
[[File:pi3b-img22058.png|446x329px|图片3]587838]usb 2-1: Manufacturer: Realtek
</div><ol start="8" style="list[ 58.587844] usb 2-style-type1: SerialNumber: decimal;"><li>Then select the path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Windows PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the development board bingo</li></ol>123456
<div class="figure">[ 58.610463] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432
[[File:pi3b-img22158.png|501x369px|IMG_256]610656]usbcore: registered new interface driver rtk_btusb
</div><ol start[ 58.634631] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev="9" style000c lmp_ver="list-style-type: decimal;"><li><p>After the upload is complete, you can go to the corresponding path in the Linux system of the development board to view the uploaded file</p></li><li><p>The method of uploading a folder is the same as that of uploading a file</p></li></ol>08 lmp_subver=8821
<span id="hdmi-test"></span>== HDMI test [ 58.636729] Bluetooth: hci0: RTL: rom_version status=0 version=1
<span id="hdmi-display-test"><[ 58.636740] Bluetooth: hci0: RTL: loading rtl_bt/span>=== HDMI display test ===rtl8821c_fw.bin
# Use HDMI to HDMI cable to connect Orange Pi development board and HDMI monitor[ 58.664190] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[[File:pi3b-img1058.png|199x129px]664746]Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
<ol start="2" style="list-style-type[ 59.122471] Bluetooth: decimal;"><li>After starting the Linux system, if the HDMI monitor has image output, it means that the HDMI interface is in normal use</li></ol>hci0: RTL: fw version 0x829a7644
'''Note that although many notebook computers have an HDMI [ 59.265513] usbcore: registered new interface, the HDMI interface of the notebook generally only has the output function, and does not have the function of HDMI in, that is to say, the HDMI output of other devices cannot be displayed on the notebook screen.'''driver rtl8821cu
'''When you want to connect the HDMI of the development board to the HDMI port of the laptop, please make sure that your laptop supports the HDMI in function[ 59.'''280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0|}</ol>
<ol start="5" style="list-style-type: decimal;"><li>Then you can see the RTL8821CU WiFi device node through the '''When the HDMI is not displayed, please check whether the HDMI cable is plugged in tightlysudo ifconfig''' command. After confirming that there is no problem with Please refer to the [[Orange Pi 3B#WIFI connection test|'''WiFi connection test chapter''']] for WIFI connection, you can change a different screen and try to see if it is displayedtesting methods.</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo ifconfig wlx90de80521825'''
<span id="hdmi-to-vga-display-test"></span>=== HDMI to VGA display test ==wlx90de80521825: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
<ol style="list-style-type: decimal;"><li><p>First, you need to prepare the following accessories</p><ol style="list-style-type: lower-alpha;"><li>HDMI to VGA converter</li></ol></li></ol>ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
[[File:pi3b-img222:RX packets 0 bytes 0 (0.png|155x104px]]0 B)
<ol start="2" style="list-style-type: lower-alpha;"><li>A VGA cable</li></ol>:RX errors 0 dropped 0 overruns 0 frame 0
[[File:pi3b-img223:TX packets 0 bytes 0 (0.png|148x133px]]0 B)
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0|}</ol><ol start="36" style="list-style-type: lower-alphadecimal;"><li>A monitor or TV that supports VGA interfaceThen you can see the USB Bluetooth device through the '''hciconfig''' command</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt-get update &amp;&amp; sudo apt-get install -y bluez'''
<!-- --><ol start="2" style="list-style-typeorangepi@orangepi: decimal;"><li>HDMI to VGA display test as shown below</li></ol>~$ '''hciconfig'''
[[Filehci0:pi3b-img224.png|576x339px]]Type: Primary Bus: '''<span style="color:#FF0000">USB</span>'''
'''When using HDMI to VGA display, the development board and the Linux system of the development board do not need to make any settings, only the HDMI interface of the development board can display normally. So if there is a problem with the test, please check whether there is a problem with the HDMI to VGA converter, VGA cable and monitor.'''::BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
<span id="hdmi-resolution-setting-method"></span>=== HDMI resolution setting method ===::DOWN
# First open '''Display''' in '''Settings'''::RX bytes:1252 acl:0 sco:0 events:125 errors:0
[[File:pi3b:TX bytes:23307 acl:0 sco:0 commands:125 errors:0|}</ol><ol start="7" style="list-img225style-type: decimal;"><li>Bluetooth icons can also be seen on the desktop.png|576x370px]]At this time, Bluetooth has not been turned on, so a red '''<span style="color:#FF0000">x</span>''' will be displayed</li>
[[File:pi3b-img243.png]]</ol><ol start="28" style="list-style-type: decimal;"><li>Then you can see the current resolution of the systemClick '''Turn Bluetooth On''' to turn on Bluetooth</li></ol>
[[File:pi3b-img226img244.png|382x254px]]</ol><ol start="9" style="list-style-type: decimal;"><li>The display after turning on Bluetooth is as follows</li>
[[File:pi3b-img245.png]]</ol><ol start="310" style="list-style-type: decimal;"><li>Click Please refer to the drop-down box of Resolution [[Orange Pi 3B#How to see all resolutions currently supported by use Bluetooth|'''Bluetooth use chapter''']] for the monitorBluetooth test method. I won't go into details here</li></ol>
[[File:pi3b<span id="usb-img227.png|415x274px]]camera-test"></span>
<ol start="4" style="list-style-type: decimal;"><li>Then select the resolution you want to set, and click Apply</li></ol>= USB Camera Test ===
[[File:pi3b-img228.png|415x277px]]# First, you need to prepare a USB camera that supports UVC protocol as shown in the figure below or similar, and then insert the USB camera into the USB port of the Orange Pi development board
<ol start="5" style="list::[[File:pi3b-style-type: decimal;"><li>After the new resolution is set, select '''Keep the configuration'''</li></ol>img13.png]]
[[File<ol start="2" style="list-style-type: decimal;"><li>You can see that the USB camera's device node information is/dev/video0 through the v4l2-ctl command</li>{| class="wikitable" style="width:pi3b800px;" |-img229.png|447x243px]]orangepi@orangepi:~$ '''v4l2-ctl --list-devices'''
Q8 HD Webcam: Q8 HD Webcam ('''<span idstyle="how-to-use-bluetoothcolor:#FF0000">usb</span>== How to use Bluetooth =='''-fc880000.usb-1):
:'''<span idstyle="test-method-of-desktop-image-1color:blue">/dev/video0</span>=== Test method of desktop image ==='''
# Click the Bluetooth icon in the upper right corner of the desktop.:/dev/video1
[[File:pi3b/dev/media0|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-img230| <big>'''Note that the l in v4l2 is a lowercase letter l, not the number 1.png|330x128px]]'''
<ol start="2" style="list-style-type: decimal;">
<li>Then select the adapter</li></ol>
[[File'''In addition, the serial number of the video is not necessarily video0, please refer to what you actually see.'''</big>|}</ol><ol start="3" style="list-style-type:pi3b-img231decimal;"><li>In the desktop system, Cheese can be used to directly open the USB camera.png|375x165px]]The method of opening Cheese is shown in the figure below:</li>
<ol start="3" style="list[[File:pi3b-style-type: decimal;"><li>If there is a prompt below, select '''Yes'''</li></ol>img246.png]]
[[FileThe interface after Cheese turns on the USB camera is shown in the figure below:pi3b-img232.png|248x85px]]
[[File:pi3b-img247.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then set <p>How to test the USB camera using fswebcam</p><ol style="list-style-type: lower-alpha;"><li>Install fswebcam</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''Visibility Settingsudo''' as '''Always visibleapt update''' in the Bluetooth adapter settings interface, and then close it</li></ol>
[[Fileorangepi@orangepi:pi3b~$ '''sudo apt-img233.pngget install -y fswebcam'''|243x229px]]}</ol><ol start="52" style=" list-style-type: lower-alpha;"><li><p>After installing fswebcam, you can use the following command to take pictures</p><ol style="list-style-type: decimalnone;"><li>Then open <p>a) -d The option is used to specify the device node of the USB camera</p></li><li><p>b) --no-banner Used to remove the watermark of photos</p></li><li><p>c) -r The option is used to specify the configuration interface resolution of the Bluetooth devicephoto</p></li><li><p>d) -S The option is used to set the number of previous frames to skip</olp></li><li><p>e) ./image.jpg The name and path for setting the generated photos</p></li>[[File{| class="wikitable" style="width:pi3b800px;" |-img234.png|438x179px]]orangepi@orangepi:~$ '''sudo''' '''fswebcam -d /dev/video0 \'''
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''|}</ol></li></ol><ol start="63" style="list-style-type: decimallower-alpha;"><li>Click In the desktop version of the Linux system, you can directly view the captured pictures through the HDMI display</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''scp image.jpg'''Search[mailto:test@192.168.1.55:/home/test test@192.168.1.55:/home/test] ''' (Modify the IP address and path according to the actual situation)'''|}</ol><ol start scanning ="4" style="list-style-type: lower-alpha;"><li>In the surrounding Bluetooth devicedesktop version of the Linux system, you can directly view the captured pictures through the HDMI display</li></ol></li></ol><span id="audio-test"></span>
[[File:pi3b-img235.png|322x217px]]== Audio Test ==
<ol startspan id="7" style="listtest-audio-methods-stylein-type: decimal;"><li>Then select the Bluetooth device you want to connect. If you right -click the mouse, you will pop up the operating interface of this Bluetooth device. Select '''Pair''' to start pairing. Here, it is demonstrated with the Android phone</lidesktop-system"></olspan>=== Test audio methods in the desktop system ===
[[File:pi3b-img236.png|338x263px]]# First open the file manager
<ol start="8" style="list-style::[[File:pi3b-type: decimal;"><li>When pairing, the pairing confirmation box will pop up in the upper right corner of the desktop. Select '''Confirm''' to confirmimg248. At this time, the mobile phone also needs to be confirmed</li></ol>png]]
[[File<ol start="2" style="list-style-type:pi3b-img237.png|417x152px]]decimal;"><li>Then find the following file (if there is no audio file in the system, you can upload a audio file to the system by yourself)</li>
<ol startdiv class="9figure" style="list-style-type: decimal;"><li>After pairing with the mobile phone, you can choose the paired Bluetooth device, then right -click and select '''Send a File''' to start sending a picture to the phone</li></ol>
[[File:pi3b-img238img249.png|439x259px]]
</div></ol><ol start="103" style="list-style-type: decimal;"><li>The interface of Then select the sending picture is shown belowaudio.wav file, right click and select open with vlc to start playing</li></ol>
[[File:pi3b-img239img250.png|437x253px]]</ol><ol start="4" style="list-style-type: decimal;"><li><p>Methods to switch different audio equipment such as HDMI playback and headset playback</p><ol style="list-style-type: lower-alpha;"><li>First open the volume control interface</li>
[[File:pi3b-img251.png]]<span id/ol><ol start="2" style="usblist-style-interfacetype: lower-testalpha;"><li>When playing audio, the audio equipment options that play software can be used will be displayed in '''Playback'''. As shown in the figure below, which audio equipment you need to play here can be set.</spanli>== USB interface test ==
'''The USB interface can connect USB Hub [[File:pi3b-img252.png]]</ol></li></ol><span id="how-to expand the number of USB interfaces.'''-play-audio-with-commands"></span>
<span id="connect-the-usb-mouse-or-keyboard-test"></span>=== Connect the USB mouse or keyboard test How to play audio with commands ===
# Insert the keyboard of the USB <span id="headphone-interface into the USB interface of Orange PI development board# Connect Orange PI development board to HDMI display-play-audio-test"></span># If the mouse or keyboard can normal operating systems, the USB ==== Headphone interface is used normally (the mouse can only be used in the system of the desktop version)play audio test ====
<span id="connect-# First insert the-usb-storage-device-test"></span>=== Connect headset into the USB storage device test ===headphone jack of the development board
# First insert the U disk or USB mobile hard disk into the USB interface of Orange PI development board# Execute the following command::[[File:pi3b-img253. If you can see the output of sdX, the U disk recognition is successfulpng]]
orangepi@orangepi<ol start="2" style="list-style-type:~$ decimal;"><li>Then you can check the sound card device supported by the Linux system through the '''aplay -l''' command. From the output below, it can be seen that '''cat /proc/partitions | grep &quot;sd*&quot;card 0'''is the sound card device with RK809, which is the sound card device of the headset</li>
major minor #blocks name{| class="wikitable" style="width:800px;" |-8 0 30044160 | orangepi@orangepi:~$ '''sdaaplay -l'''
8 1 30043119 '''sda1'''<p>**** List of PLAYBACK Hardware Devices ****</p>
<ol start="3" style="list-style-type: decimal;"><li>Use the mount command to mount the U disk into '''/mntcard 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]''', and then you can view the file in the U disk</li></ol>
orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mntSubdevices: 0/1'''
orangepi@orangepi:~$ '''ls /mnt/Subdevice #0: subdevice #0'''
testcard 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.txti2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-0]
<ol start="4" style="list-style-type: decimal;"><li>After the mounting, you can view the capacity of the U disk through the '''df -h''' command and the mounting point</li><Subdevices: 0/ol>1
orangepi@orangepi:~$ '''df -h | grep &quot;sd&quot;'''Subdevice #0: subdevice #0
:Subdevice #0: subdevice #0|}</devol><ol start="3" style="list-style-type: decimal;"><li>Then use the '''aplay''' command to play the audio file that comes with the system. If the headset can hear the sound, it means that the hardware can be used normally</sda1 29G 208K 29G 1% /mntli>
<span id="usb-wireless-network-card-test"></span>=== USB wireless network card test === The currently '''tested''' USB wireless network cards are shown below. Please test it by yourself for other models of USB wireless network cards. If you cannot use it, you need to transplant the corresponding USB wireless network card driver {| class="wikitable" style="width:800px;"
|-
| No.| Model||orangepi@orangepi:~$ '''aplay -| 1| RTL8723BUD hw:0,0 /usr/share/sounds/alsa/audio.wav'''
Support 2Playing WAVE 'audio.4G WIFI+BT4.0wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo|}</ol><span id="hdmi-audio-play-test"></span>
| [[File:pi3b-img240.png]]|-| 2| RTL8811==== HDMI Audio Play Test ====
Support 2# First use the HDMI to HDMI cable to connect the Orange PI development board to the TV (other HDMI displays need to ensure that the audio can be played)# Then check the sound card serial number of HDMI.4G +5G WIFIFrom the output below, you can know that the HDMI sound card is '''card 1'''
::{| [[Fileclass="wikitable" style="width:pi3b-img241.png]]800px;"
|-
| 3| RTL8821CUorangepi@orangepi:~$ '''aplay -l'''
Support 2.4G +5G WIFI<p>**** List of PLAYBACK Hardware Devices ****</p>
Support BT 4.2card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]
| <div class="figure">:Subdevices: 0/1
[[File:pi3b-img242.png|tb_imag e_share_1670833201 123]]Subdevice #0: subdevice #0
</div>|}'''card 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-0]'''
<span id="rtl8723bu-test"><:'''Subdevices: 0/span>==== RTL8723BU test ====1'''
:'''Subdevice # First insert the RTL8723BU wireless network card module into the USB interface of the development board0: subdevice # Then the Linux system will automatically load the RTL8723BU Bluetooth and WiFi -related kernel modules. You can see that the kernel module below is automatically loaded through the lsmod command0'''
orangepi@orangepi:~$ '''lsmodSubdevice #0: subdevice #0''' Module Size Used by rfcomm 57344 16 rtl8xxxu 106496 0 rtk_btusb 61440 0|}
<ol start="3" style="list-style-type: decimal;">
<li>You Then use the '''aplay''' command to play the audio file that comes with the system. If the HDMI display or television can see hear the loading information of sound indicates that the RTL8723BU module through the dmesg commandhardware can be used normally</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''aplay -D hw:<span style="color:#FF0000">1</span>,0 /usr/share/sounds/alsa/audio.wav'''|}</ol><span id="use-the-command-to-test-the-recording-method"></span>
orangepi@orangepi:~$ '''dmesg'''=== Use the command to test the recording method ===
# Orange Pi 3B development board does not have MICs, and can only record audio through headphones with MIC function......After inserting the headset with the MIC function into the development board, the command below will record a piece of audio through the headset
[ 83.438901] usb 2::{| class="wikitable" style="width:800px;" |-1| orangepi@orangepi: new high-speed USB device number 2 using ehci~$ '''amixer -platformc 0 cset name='Capture MIC Path' 'Main Mic''''
[ 83.588375] usb 2orangepi@orangepi:~$ '''arecord -1D hw: New USB device found0, idVendor=0bda, idProduct=b720, bcdDevice= 20 -d 5 -f cd -t wav /tmp/test.00wav'''|}
[ 83.588403] usb 2<span id="temperature-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3sensor"></span>
[ 83.588422] usb 2-1: Product: 802.11n WLAN Adapter== Temperature Sensor ==
[ 83.588443] usb 2-1# The command to view the system temperature sensor is: Manufacturer: Realtek
[ 83.588460] usb 2::{| class="wikitable" style="width:800px;" |-1: SerialNumber| orangepi@orangepi: 00e04c000001~$ '''sensors'''
[ 83.601974] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723soc_thermal-virtual-0
[ 83.603894] BluetoothAdapter: hci0: RTL: rom_version status=0 version=1Virtual device
[ 83temp1: +41.603920] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_fw9°C (crit = +115.bin0°C)
[ 83.610108] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_config.bin
[ 83.611274] Bluetooth: hci0: RTL: cfg_sz 68, total sz 22564gpu_thermal-virtual-0
[ 83.658494] rtk_btusbAdapter: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432Virtual device
[ 83temp1: +43.658651] usbcore: registered new interface driver rtk_btusb8°C|}
[ 83.667124] usb <ol start="2" style="list-1style-type: decimal;"><li><p>The command to view the current temperature of the nvme ssd solid state drive is:</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi: This Realtek USB WiFi dongle (0x0bda~$ '''sudo smartctl -a /dev/nvme0 | grep &quot;Temperature:0xb720) is untested!&quot;'''</p><p>Temperature: '''<span style="color:#FF0000">40 Celsius</span>'''</p>|}</li></ol>
[ 83.667137] usb 2<span id="pin-1: Please report results to Jes.Sorensen@gmail.cominterface-pin-explanation"></span>
[ 83.890140] usb 2-1: Vendor: Realtek== 40 Pin interface pin explanation ==
[ 83.890153] usb 2-1: Product: 802.11n WLAN Adapter# Orange Pi 3B Development board 40 Pin interface pins, please refer to the figure below
[ 83.890159] usb 2-1: rtl8723bu_parse_efuse: dumping efuse (0x200 bytes):<div class="figure">
::[[File:pi3b-img254......png]]
[ 83.890412] usb </div><ol start="2" style="list-style-1type: RTL8723BU rev E (SMIC) 1T1R, TX queues 3, WiFidecimal;"><li><p>The function of the Orange Pi 3B development board 40 PIN interface pins is shown in the table below.</p><ol style=1, BT=1, GPS=0, HI PA=0"list-style-type: lower-alpha;"><li>Below is a complete pins of 40pin</li>
[ 83[File:pi3b-img255-1.890417png] usb ]</ol><ol start="2" style="list-1style-type: RTL8723BU MAC: 00:13:ef:f4:58:aelower-alpha;"><li>The following form is a picture on the left half of the full table above, which can be seen clearly</li>
[ 83[File:pi3b-img256-1.890421png] usb 2]</ol><ol start="3" style="list-1style-type: rtl8xxxu: Loading firmware rtlwifilower-alpha;"><li>The following form is a picture on the right half of the top table above, which can be seen clearly</rtl8723bu_nic.binli>
[ 83[File:pi3b-img257-1.895289png]] usb 2</ol></li></ol><ol start="3" style="list-style-1type: decimal;"><li>There are a total of '''<span style="color:#FF0000">28</span>''' GPIO ports in the 40pin interface. The voltage of all GPIO ports is '''<span style="color: Firmware revision 35#FF0000">3.0 (signature 0x5301)3v</span>'''</li></ol>
[ 84.050893] Bluetooth: hci0: RTL: fw version 0x0e2f9f73<span id="how-to-install-wiringop"></span>
[ 84.266905] Bluetooth: RFCOMM TTY layer initialized== How to install wiringOP ==
[ 84.266949] Bluetooth{| class="wikitable" style="background-color:#ffffdc;width: RFCOMM socket layer initialized800px;" |-[ 84| <big>'''Note that wiringOP has been pre -installed in the Linux image released by Orange Pi.266999] Bluetooth: RFCOMM ver 1Unless wiringOP's code is updated, it is not necessary to re -download and install. Just use it directly.11'''
[ 84.884270] usbcore: registered new interface driver rtl8xxxu
[ 84.912046] rtl8xxxu 2'''The storage path of the compiled wiringOP's Deb is wrapped in Orangepi-1Build:1.2 wlx0013eff458ae: renamed from wlan0'''
'''<ol start="4" span style="list-style-typecolor: decimal;blue">orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb<li/span>Then you can see the RTL8723BU WIFI device node through the '''sudo ifconfig''' command. Please refer to the WIFI connection test a [[\l|'''section for WIFI connection''']] and testing methods</li></ol>
orangepi@orangepi:~$ '''sudo ifconfig wlx0013eff458ae'''
wlx0013eff458ae: flags=4099&lt;UP'''After entering the system,BROADCASTyou can run the gpio readall command. If you can see the output below,MULTICAST&gt; mtu 1500it means that wiringOP is pre -installed and can be used normally.'''</big>
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)<div class="figure">
RX packets 0 bytes 0 (0[[File:pi3b-img258-1.0 B)png]]
RX errors 0 dropped 0 overruns 0 frame 0</div><big>'''wiringOP is currently mainly adapted to the functions of setting GPIO port input and output, setting GPIO port output high and low levels, and setting up and down pull-down resistors. Functions such as hardware PWM are not available.'''</big>|}
TX packets 0 bytes 0 (0.0 B)# Download the code of wiringOP
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt update'''
<ol start="5" style="list-style-typeorangepi@orangepi: decimal;"><li>Then you can see the USB Bluetooth device through the ~$ '''hciconfigsudo apt install -y git''' command</li></ol>
orangepi@orangepi:~$ '''sudo apt update &amp;&amp; sudo apt install bluezgit clone https://github.com/orangepi-xunlong/wiringOP.git -b next'''|}
orangepi@orangepi:~$ :{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that Orange Pi 3B needs to download the code of the wiringOP next branch, please don'hciconfigt miss the parameter of -b next.'''
hci0: Type: Primary Bus: '''USB'''
BD Address'''If there is a problem with the download code from GitHub, you can use the wiringOP source code that comes with the Linux image directly, and the storage location is: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16/usr/src/wiringOP'''</big>|}
DOWN<ol start="2" style="list-style-type: decimal;"><li>Compile and install wiringOP</li>
RX bytes{| class="wikitable" style="width:1252 acl800px;" |-| orangepi@orangepi:0 sco:0 events:125 errors:0~$ '''cd wiringOP'''
TX bytesorangepi@orangepi:23307 acl:0 sco:0 commands:125 errors:0~/wiringOP$ '''sudo ./build clean'''
orangepi@orangepi:~/wiringOP$ '''sudo ./build'''|}</ol><ol start="63" style="list-style-type: decimal;"><li>You can also see Test the Bluetooth icon on output of the desktop. At this time, Bluetooth has not been opened, so a red '''x''' will be displayedGPIO Readall command as follows</li></ol>
[[File:pi3b-img243.png|576x157px]]<div class="figure">
<ol start="7" style="list[[File:pi3b-styleimg258-type: decimal;"><li>Click '''Turn Bluetooth On''' to open Bluetooth</li></ol>1.png]]
[[File:pi3b</div></ol><span id="pin-img244.png|576x262px]]interface-gpio-i2c-uart-spi-and-pwm-test"></span>
<ol start="8" style="list-style-type: decimal;"><li>The display after opening Bluetooth is shown below</li></ol>40Pin interface GPIO, I2C, UART, SPI, and PWM test ==
[[File{| class="wikitable" style="background-color:#ffffdc;width:pi3b800px;" |-img245| <big>'''Note that if you need to set overlays to open multiple configurations at the same time, please use a space to write in one line like the following space.png|576x164px]]'''</big>
<ol start="9" style="list-style-typeorangepi@orangepi: decimal;"><li>Please refer to the [[\l|~$ '''Bluetooth use methodsudo vim /boot/orangepiEnv.txt''']] for Bluetooth test method, so I won't go into details here.</li></ol>
'''<span idstyle="rtl8811-testcolor:#FF0000">overlays=spi3-m0-cs0-spidev i2c2-m1 i2c3-m0 uart7-m2 uart9-m2 pwm11-m1</span>'''==== RTL8811 test ====|}
# First insert the RTL8811 wireless network card module into the USB interface of the development board.<span id="pin-gpio-port-test"></span># Then the Linux system will automatically load the RTL8811 WIFI -related kernel modules. You can see that the kernel module below is automatically loaded through the lsmod command=== 40pin GPIO port test ===
orangepi@orangepi{| class="wikitable" style="background-color:~$ #ffffdc;width:800px;" |-| <big>'''lsmodThe Linux system released by Orange Pi has a pre -installed blink_all_gpio program. This program will set up all 28 GPIO ports in 40pin to switch high and low levels.'''
Module Size Used by
8821cu 1839104 '''After running the blink_all_gpio program, when using a multimeter to measure the level of the GPIO port, you will find that the GPIO pin will be switched between 0and 3.3v. Use this program to test whether the GPIO port can work normally'''
<ol start="3" style="list-style-type: decimal;">
<li>You can see the loading information of the RTL8811 module through the dmesg command</li></ol>
orangepi@orangepi:~$ '''dmesgThe method of running blink_all_gpio program is shown below: '''</big>
[ 118.618194] usb 2-1orangepi@orangepi3b: new high-speed USB device number 2 using ehci-platform~$ '''sudo blink_all_gpio''' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Remember to add Sudo permissions
[ 118.767152sudo] usb 2-1password for orangepi: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #You need to enter password here'''|}
[ 118# There are a total of '''28''' GPIO ports in the 40pins of the development board that can be used.767181] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3The following uses pin 7—the corresponding GPIO is GPIO4_C3——the corresponding wPi serial number is 2—as an example to demonstrate how to set the high and low levels of the GPIO port
::[[ 118.767199] usb 2File:pi3b-img259-1: Product: 802.11ac NICpng]]
[ 118.767219] usb <ol start="2" style="list-1: Manufacturerstyle-type: Realtekdecimal;"><li>First set the GPIO port as the output mode, the third parameter needs to enter the serial number of the wPi corresponding to the pins</li>
[ 118.767235] usb {| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">2</span> out'''|}</ol><ol start="3" style="list-1style-type: SerialNumber: 123456decimal;"><li>Then set the GPIO port to output the low level. After setting, you can use the value of the voltage of the pins with a multimeter. If it is 0v, it means that the low level flat is successful</li>
[ 119.500530] usbcore{| class="wikitable" style="width: registered new interface driver rtl8821cu800px;" |-| root@orangepi:~/wiringOP# '''gpio write 2 <span style="color:#FF0000">0</span>'''|}
[ 119.525498] rtl8821cu 2-1:1Using GPIO Readall, you can see the value of the No. 7 pin (V) to 0 wlx1cbfced9d260: renamed from wlan0
[[File:pi3b-img260.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then set the GPIO port to output a high level. After setting, you can see use a multimeter to measure the WiFi device node through voltage value of the '''sudo ifconfig''' commandpin. Please refer to If it is 3.3v, it means that the [[\l|'''WiFi connection test a section''']] for WIFI connection and testing methodshigh level is set successfully. I won't go into details her</li></ol>
orangepi{| class="wikitable" style="width:800px;" |-| root@orangepi:~$ /wiringOP# '''sudo ifconfig wlx1cbfced9d260gpio write 2 <span style="color:#FF0000">1</span>'''|}
wlx1cbfced9d260: flags=4099&lt;UPUsing GPIO Readall,BROADCAST,MULTICAST&gt; mtu 1500you can see the value of No. 7 pin (v) into 1
ether 1c[[File:bfpi3b-img261-1.png]]</ol><ol start="5" style="list-style-type:ce:d9:d2:60 txqueuelen 1000 (Ethernet)decimal;"><li>The setting method of other pins is similar, just modify the serial number of wPi to the corresponding serial number of the pin</li></ol>
RX packets 0 bytes 0 (0.0 B)<span id="pin-gpio-port--down-and-downward-pull--down-resistance-setting-method"></span>
RX errors 0 dropped 0 overruns 0 frame 0=== 40pin GPIO port pull-down resistance setting method ===
TX packets 0 bytes 0 (0{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the 4 GPIO pins below Orange Pi 3B are invalid because there are 3.0 B)3V on the outside, so setting drop-down is invalid. Other pins can be set normally '''</big>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[[File:pi3b-img262-1.png|center]]|}
<span id="rtl8821cu# Below the No. 11 pin—corresponding to GPIO 3_C6-test"></span>==== RTL8821CU test ====corresponding wPi serial number 5—to demonstrate how to set up and down pull-down resistance of the GPIO port
# First insert the rtl8821cu wireless network card module into the USB interface of the development board# Then use the '''lsusb''' command to see the device information of the rtl8821cu usb wifi module. Make sure the USB module is not in the Driver CDROM Mode orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;''' Bus 002 Device 003: ID 0bda[[File:c820 Realtek Semiconductor Corp. 802.11ac NIC orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;''' Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter ('''Driver CDROM Mode''') '''If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, re pi3b-img263-insert the USB WiFi module1. If not, please manually execute the following command to switch the mode: ''' orangepi@orangepi:~$ '''sudo usb_modeswitch -KW -v 0bda -p 1a2b'''png]]
<ol start="2" style="list-style-type: decimal;">
<li>First of all, you need to set the GPIO port as the input mode. The third parameter needs to enter the serial number of the wPi corresponding to the pins</li>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5</span> in'''
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>The Linux system will automatically load After the RTL8821CU Bluetooth and WIFI -related kernel modules. You can see that the kernel module below setting is automatically loaded through set to input mode, execute the lsmod following commandto set the GPIO port as the pull-down mode</li></ol>{| class="wikitable" style="width:800px;" |-| orangepiroot@orangepi:~$ /wiringOP# '''lsmodgpio mode <span style="color:#FF0000">5</span> up'''|}Module Size Used by 8821cu 1839104 0 rtk_btusb 61440 0</ol>
<ol start="4" style="list-style-type: decimal;">
<li>You can see Then enter the loading information following command to read the level of the rtl8821cu module through GPIO port. If the level is 1, it means that the dmesg commanddrawing mode is successful</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio read <span style="color:#FF0000">5</olspan>'''
'''<span style="color:#FF0000">1</span>'''|}</ol><ol start="5" style="list-style-type: decimal;"><li>Then execute the following command to set the GPIO port as the drop-down mode</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5</span> down'''|}</ol><ol start="6" style="list-style-type: decimal;"><li>Then enter the following command to read the level of the GPIO port. If the level is 0, it means that the drop-down mode is set successfully</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~$ /wiringOP# '''dmesggpio read <span style="color:#FF0000">5</span>'''
......'''<span style="color:#FF0000">0</span>'''|}</ol><span id="pin-spi-test"></span>
[ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform=== 40pin SPI Test ===
[ 57.231888] usb 2-1: New USB device found# From the schematic diagram of the 40PIN interface, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00the SPI available for Orange Pi 3B is spi3
::[[ 57File:pi3b-img264-1.231916png]] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<ol start="2" style="list-style-type: decimal;"><li><p>In the linux system, the SPI in the 40 pin is closed by default, and it needs to be opened manually before it can be used. The detailed steps are as follows:</p><ol style="list-style-type: lower-alpha;"><li><p>First run '''orangepi-config''', normal users remember to add sudo permission</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li><li><p>Then select '''System'''</p><p>[[ 57File:pi3b-1.231937png] usb ]</p></li><li><p>Then select '''Hardware'''</p><p>[[File:pi3b-2.png]]</p></li><li><p>Then use the arrow keys on the keyboard to navigate to the position shown in the figure below, and then use the '''space''' to select the SPI configuration you want to open</p><p>[[File:pi3b-13.png]]</p></li><li><p>Then select '''<Save>''' to save</p><p>[[File:pi3b-4.png]]</p></li><li><p>Then select '''<Back>'''</p><p>[[File: Productpi3b-5.png]]</p></li><li><p>Then select '''<Reboot>''' to restart the system to make the configuration take effect</p><p>[[File: DISKpi3b-6.png]]</p></li></ol></li></ol>
[ 57.231956] usb 2<ol start="3" style="list-style-1type: Manufacturer: Realtekdecimal;"><li>After restarting, enter the system to check whether there is a spidev3.0 device node in the Linux system. If it exists, it means that SPI3 has been set up and can be used directly</li>
[ 57.242594] usb-storage 2{| class="wikitable" style="width:800px;" |-1| orangepi@orangepi:1~$ '''ls /dev/spidev3.0: USB Mass Storage device detected'''
[ 57/dev/spidev3.245674] scsi host0: usb0|}</ol><ol start="4" style="list-storage 2style-1type:1.0decimal;"><li>Do not short-circuit the mosi and miso pins of SPI3, the output result of running spidev_test is as follows, you can see that the data of TX and RX are inconsistent</li>
[ 58.069172] usb 2{| class="wikitable" style="width:800px;" |-1| orangepi@orangepi: USB disconnect, device number 2~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
[ 58.440025] usb 2-1spi mode: new high-speed USB device number 3 using ehci-platform0x0
[ 58.587819] usb 2-1bits per word: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.008
[ 58.587827] usb 2-1max speed: New USB device strings: Mfr=1, Product=2, SerialNumber=3500000 Hz (500 KHz)
[ 58TX | FF FF FF FF FF FF '''<span style="color:#FF0000">40 00 00 00 00 95</span>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒...587833] usb 2-1: Product: 802.11ac NIC..............▒.
[ 58RX | FF FF FF FF FF FF '''<span style="color:#FF0000">FF FF FF FF FF FF</span>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ............................….587838] usb 2|}</ol><ol start="5" style="list-style-1type: Manufacturer: Realtekdecimal;"><li>Then short-circuit the two pins of mosi (pin 19 in the 40pin interface) and miso (pin 21 in the 40pin interface) of SPI3, and then run the output of spidev_test as follows, you can see the sending and receiving same data</li>
[ 58[File:pi3b-img265.587844png]] usb 2{| class="wikitable" style="width:800px;" |-1| orangepi@orangepi: SerialNumber: 123456~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
[ 58.610463] rtk_btusbspi mode: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-1424320x0
[ 58.610656] usbcorebits per word: registered new interface driver rtk_btusb8
[ 58.634631] Bluetoothmax speed: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821500000 Hz (500 KHz)
[ 58TX | FF FF FF FF FF FF '''<span style="color:#FF0000">40 00 00 00 00 95</span>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒..................▒.636729] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 58.636740] Bluetooth: hci0: RTLRX | FF FF FF FF FF FF '''<span style="color: loading rtl_bt#FF0000">40 00 00 00 00 95</rtl8821c_fwspan>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒.............bin.....▒.|}</ol><span id="pin-i2c-test"></span>
[ 58.664190] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin=== 40pin I2C Test ===
[ 58.664746] Bluetooth: hci0: RTL: cfg_sz 10# From the table below, the I2C available for Orange Pi 3B is I2C2, I2C3, and I2C4 a total sz 31990of three groups of I2C bus.
::[[ 59File:pi3b-img266-1.122471png]] Bluetooth: hci0: RTL: fw version 0x829a7644
[ 59::{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''It can be seen from the above table that i2c4_m0 and spi3_m0 are pins.265513] usbcore: registered new interface driver rtl8821cuThe two cannot be opened at the same time. i2c3_m0 and uart3_m0 are also reused. The two cannot be opened at the same time'''</big>|}
<ol start="2" style="list-style-type: decimal;"><li><p>In the linux system, the I2C bus in the 40 pin is closed by default, and it needs to be opened manually to use it. The detailed steps are as follows:</p><ol style="list-style-type: lower-alpha;"><li><p>First run '''orangepi-config''', normal users remember to add '''sudo''' permission</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li><li><p>Then select '''System'''</p><p>[[File:pi3b-1.png]]</p></li><li><p>Then select '''Hardware'''</p><p>[[ 59File:pi3b-2.280119png]] rtl8821cu </p></li><li><p>Then use the arrow keys on the keyboard to navigate to the position shown in the figure below, and then use the '''space''' to select the I2C configuration you want to open</p><p>[[File:pi3b-3-2.png]]</p></li><li><p>Then select '''<Save>''' to save</p><p>[[File:pi3b-14.png]]</p></li><li><p>Then select '''<Back>'''</p><p>[[File:1pi3b-5.2 wlx90de80521825png]]</p></li><li><p>Then select '''<Reboot>''' to restart the system to make the configuration take effect</p><p>[[File: renamed from wlan0pi3b-6.png]]</p></li></ol></li></ol>
<ol start="53" style="list-style-type: decimal;"><li>Then you can see After starting the RTL8821CU WiFi Linux system, first confirm that the i2c device node through the '''sudo ifconfig''' command. Please refer to the [[\lexists under/dev</li>{| class="wikitable" style="width:800px;" |-|orangepi@orangepi:~# '''WiFi connection testls /dev/i2c-*''']] a section for WIFI connection and testing methods.</li></ol>
orangepi@orangepi:~$ /dev/i2c-0 &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/i2c-2''' &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/i2c-3''' &nbsp;&nbsp;&nbsp;&nbsp; '''sudo ifconfig wlx90de80521825/dev/i2c-4'''&nbsp;&nbsp;&nbsp;&nbsp; /dev/i2c-6|}</ol><ol start="4" style="list-style-type: decimal;"><li>Then connect a i2c device on the i2c pin of the 40Pin connector</li>
wlx90de80521825{| class="wikitable" style="width: flags=4099&lt800px;UP,BROADCAST,MULTICAST&gttext-align: center; mtu 1500"|-||i2c2-m1ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)|i2c3-m0|i2c4-m0|-| Sda Pin|Corresponding to No. 3 pin|Corresponding to No. 27 pin|Corresponding to No. 19 pin|-| Sck Pin|Corresponding to No. 5 pin|Corresponding to No. 28 pinRX packets 0 bytes 0 (0|Corresponding to No.0 B)23 pin|-| RX errors 0 dropped 0 overruns 0 frame 0Vcc Pin|Corresponding to No. 1 pin|Corresponding to No. 1 pinTX packets 0 bytes 0 (0|Corresponding to No.0 B)1 pin|-| TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Gnd Pin|Corresponding to No. 6 pin|Corresponding to No. 6 pin|Corresponding to No. 6 pin|}</ol><ol start="65" style="list-style-type: decimal;"><li>Then you can see the USB Bluetooth device through use the '''hciconfigi2cdetect -y''' commandif the address of the connected I2C device can be detected, it means that the I2C can be used normally</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt-get update &amp;&amp; sudo apt-get install i2cdetect -y bluez'''2 #i2c2 command
orangepi@orangepi:~$ '''hciconfig'''sudo i2cdetect -y 3 #i2c3 command
hci0orangepi@orangepi: Type: Primary Bus: '''USB'''~$ sudo i2cdetect -y 4 #i2c4 command|}
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16<div class="figure">
DOWN[[File:pi3b-img267.png]]
RX bytes:1252 acl:0 sco:0 events:125 errors:0</div></ol><span id="pin-uart-test"></span>
TX bytes:23307 acl:0 sco:0 commands:125 errors:0=== 40pin UART test ===
<ol start="7" style="list-style-type: decimal;"><li>Bluetooth icons # As can also be seen on from the desktop. At this timetable below, the uart available for Orange Pi 3B is uart3, Bluetooth has not been openeduart7, so a red '''x''' will be displayed</li></ol>and uart9. There are three sets of uart bus
::[[File:pi3b-img243img268-1.png|576x157px]]
<ol start::{| class="8wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig>Click '''Turn Bluetooth OnAs can be seen from the above table, i2c3_m0 and uart3_m0 are reused by pins, and the two cannot be opened at the same time''' to open Bluetooth</li></olbig>|}
<ol start="2" style="list-style-type: decimal;"><li><p>In the linux system, the UART in the 40 pins is closed by default, and it needs to be opened manually before it can be used. The detailed steps are as follows:</p><ol style="list-style-type: lower-alpha;"><li><p>First run '''orangepi-config''', normal users remember to add sudo permission</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li><li><p>Then select '''System'''</p><p>[[File:pi3b-1.png]]</p></li><li><p>Then select '''Hardware'''</p><p>[[File:pi3b-2.png]]</p></li><li><p>Then use the arrow keys on the keyboard to navigate to the position shown in the figure below, and then use the '''space''' to select the UART configuration you want to open</p><p>[[File:pi3b-3-3.png]]</p></li><li><p>Then select '''<Save>''' to save</p><p>[[File:pi3b-img2444.png]]</p></li><li><p>Then select '''<Back>'''</p><p>[[File:pi3b-5.png]]</p></li><li><p>Then select '''<Reboot>''' to restart the system to make the configuration take effect</p><p>[[File:pi3b-6.png|576x262px]]</p></li></ol></li></ol>
<ol start="93" style="list-style-type: decimal;"><li>The display after opening Bluetooth After entering the Linux system, first confirm whether there is shown belowa device node corresponding to uart under/dev</li></ol>
[[File{| class="wikitable" style="width:pi3b800px;" |-img245.png|576x164px]]orangepi@orangepi:~# '''ls /dev/ttyS*'''
/dev/ttyS1 &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/ttyS3 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS7 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS9'''|}</ol><ol start="104" style="list-style-type: decimal;"><li>Please refer to Then start testing the [[\l|'''Bluetooth uart interface, first use chapter''']] for the Bluetooth test method. I won't go into details herrx and tx of the uart interface to be tested by DuPont</li></ol> {| class="wikitable" style="width:800px;text-align: center;"|-||uart3|uart7|uart9|-| Tx pin|Corresponding to the 28 pin|Corresponding to the 16 pin|Corresponding to the 29 pin|-| Rx Pin|Corresponding to the 27 pin|Corresponding to the 15 pin|Corresponding to the 22 pin|}
[[File:pi3b-img269-1.png]]<span id/ol><ol start="usb5" style="list-camerastyle-testtype: decimal;"><li><p>Use the '''gpio serial''' command to test the loop function of the serial port as shown below. If you can see the following printing, it means that the serial communication is normal</spanp><ol style=== USB Camera "list-style-type: lower-alpha;"><li>Test UART3</li>{| class="wikitable" style=="width:800px;" |-| orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS3'''
[sudo] password for orangepi: # First, you need to prepare a USB camera that supports Enter the UVC protocol in the figure below, and then insert the USB camera into the USB interface of the Orange PI development boardpassword here.
[[File:pi3b-img13.png|259x150px]]
<ol start="2" style="listOut: 0: -style-type: decimal&gt;"><li>You can see that the USB camera's device node information is/dev/video0 through the v4l2-ctl command</li></ol>0
orangepi@orangepiOut: 1:~$ '''v4l2-ctl --list-devices'''&gt; 1
Q8 HD WebcamOut: 2: Q8 HD Webcam ('''usb'''-fc880000.usb-1):&gt; 2
'''/dev/video0'''Out: 3: -&gt; 3
/dev/video1Out: 4: -&gt; 4
Out: 5: -&gt; 5^C|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Test UART7</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo gpio serial /dev/media0ttyS7'''
'''Note that l in v4l2 is a lowercase letter l, not numbers 1[sudo] password for orangepi: #Enter the password here.'''
'''In addition, Video's serial number is not necessarily Video0, please refer to what you see.'''
<ol start="3" style="listOut: 0: -style-type: decimal&gt;"><li>In the desktop system, you can use Cheese to directly turn on the USB camera. The cheese opening method is shown in the figure below: </li></ol>0
[[FileOut: 1:pi3b-img246.png|474x302px]]&gt; 1
The interface after cheese opens the USB camera is shown in the figure belowOut: 2: -&gt; 2
[[FileOut: 3:pi3b-img247.png|473x277px]]&gt; 3
<ol start="Out: 4" style="list-style-type: decimal;"><li><p>How to test the USB camera using fswebcam</p><ol style="list-style-type: lower-alpha&gt;"><li>Install fswebcam</li></ol></li></ol>4
Out: 5: -&gt; 5^C|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Test UART9</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo''' '''apt updategpio serial /dev/ttyS9'''
orangepi@[sudo] password for orangepi:~$ '''sudo apt-get install -y fswebcam'''#Enter the password here.
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>After installing fswebcam, you can use the following command to take pictures</p>
<ol style="list-style-type: lower-alpha;">
<li><p>-d The option is used to specify the device node of the USB camera</p></li>
<li><p>--no-banner Used to remove the watermark of photos</p></li>
<li><p>-r The option is used to specify the resolution of the photo</p></li>
<li><p>-S The option is set to the number of frames before skipping</p></li>
<li><p>./image.jpg The name and path for setting the generated photos</p></li></ol>
</li></ol>
orangepi@orangepiOut: 0:~$ '''sudo''' '''fswebcam -d /dev/video0 \'''&gt; 0
'''Out: 1: --no-banner -r 1280x720 -S 5 ./image.jpg'''&gt; 1
<ol start="3" style="list-style-typeOut: 2: lower-alpha&gt;"><li>In the service version of the Linux system, you can use the scp command to pass the picture to the Ubuntu PC to watch after taking the photo</li></ol>2
orangepi@orangepiOut:~$ '''scp image.jpg''' [mailto3:test@192.168.1.55:/home/test test@192.168.1.55:/home/test] '''(Modify the IP address and path according to the actual situation)'''-&gt; 3
<ol start="Out: 4" style="list-style-type: lower-alpha&gt;"><li>In the desktop version of the Linux system, you can directly view the shot pictures through the HDMI display</li></ol>4
Out: 5: -&gt; 5^C|}</ol></li></ol><span id="audiopwm-test-method"></span>== Audio Test ==
<span id="test-audio-methods-in-the-desktop-system"></span>=== Test audio methods in the desktop system PWM test method ===
# First open From the file managertable below, the pwm11 available for Orange Pi 3B
::[[File:pi3b-img248img270-1.png|357x176px]]
<ol start="2" style="list-style-type: decimal;">
<li>Then find the following file (if there is no audio file in <p>In the linux system, you can upload a audio file to the system PWM in the 40 pin is turned off by yourself)</li></ol> <div class="figure"> [[File:pi3b-img249.png|236x186px|图片10]] </div><ol start="3" style="list-style-type: decimal;"><li>Then select the audio.wav filedefault, right -click and select VLC it needs to open be turned on manually before it to start playing</li></ol> [[File:pi3b-img250can be used.png|288x234px]] <ol start="4" style="list-style-typeThe detailed steps are as follows: decimal;"><li><p>Methods to switch different audio equipment such as HDMI playback and headset playback</p>
<ol style="list-style-type: lower-alpha;">
<li><p>First run '''orangepi-config''', normal users remember to add sudo permission</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li><li><p>Then select '''System'''</p><p>[[File:pi3b-1.png]]</p></li><li><p>Then select '''Hardware'''</p><p>[[File:pi3b-2.png]]</p></li><li><p>Then use the arrow keys on the keyboard to navigate to the position shown in the figure below, and then use the '''space''' to select the PWM configuration you want to open </p><p>[[File:pi3b-3-4.png]]</p></li><li><p>Then select '''<Save>''' to save</p><p>[[File:pi3b-4.png]]</p></li><li><p>Then select '''<Back>'''</p><p>[[File:pi3b-5.png]]</p></li><li><p>Then select '''<Reboot>''' to restart the system to make the volume control interfaceconfiguration take effect</p><p>[[File:pi3b-6.png]]</p></li></ol></li></ol>
[[File<ol start="3" style="list-style-type: decimal;"><li>After opening a pwm, there will be an extra pwmchipX in '''/sys/class/pwm/''' (X is a specific number), for example, after opening pwm11, check the pwmchipX under '''/sys/class/pwm/''' one becomes two</li>{| class="wikitable" style="width:pi3b800px;" |-img251.png|308x169px]]orangepi@orangepi:~$ '''ls /sys/class/pwm/'''
pwmchip0 pwmchip1|}</ol><ol start="24" style="list-style-type: lower-alphadecimal;"><li>When playing audio<p>Which pwmchip above corresponds to pwm11, let's check the output of the audio equipment options that play software can be used will be displayed in '''Playbackls /sys/class/pwm/ -l'''. As command first, as shown in below:</p></li><li><p>Then it can be known from the figure table belowthat the base address of the pwm11 register is fe6f0030, and then look at the output of the '''ls /sys/class/pwm/ -l''' command, which audio equipment you need can see that pwmchip1 is linked to play here can be setfe6f0030.pwm, so pwm11 corresponds to pwmchip as pwmchip1</lip></olli>
[[File:pi3b-img252.png|576x282px]]<div class="figure">
<span id="how[[File:pi3b-to-play-audio-with-commands"></span>=== How to play audio with commands ===img271.png]]
<span id/div></ol><ol start="headphone-interface-play6" style="list-audiostyle-testtype: decimal;"><li>Then use the following command to make pwm11 output a 50Hz square wave (please switch to the root user first, and then execute the following command)</spanli>{| class="wikitable" style=== Headphone interface play audio test ===="width:800px;" |-| root@orangepi:~# '''echo 0 &gt; /sys/class/pwm/pwmchip1/export'''
root@orangepi:~# First insert the headset into the headphone jack of the development board'''echo 20000000 &gt; /sys/class/pwm/pwmchip1/pwm0/period'''
[[Fileroot@orangepi:pi3b-img253.png|395x112px]]~# '''echo 1000000 &gt; /sys/class/pwm/pwmchip1/pwm0/duty_cycle'''
<ol start="2" style="list-style-typeroot@orangepi: decimal;"><li>Then you can check the sound card device supported by the Linux system through the ~# '''aplay -lecho 1 &gt; /sys/class/pwm/pwmchip1/pwm0/enable''' command. From the output below, it can be seen that '''card 0''' is the sound card device with RK809, which is the sound card device of the headset</li></ol>|}
orangepi@orangepi[[File:~$ '''aplay pi3b-l'''img272.png]]
**** List <li>The test method of PLAYBACK Hardware Devices ****pwm11 demonstrated above is similar to other pwm test methods.</li></ol><span id="how-to-install-and-use-wiringop-python"></span>
'''card 0: rockchiprk809 [rockchip== How to install and use wiringOP-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]'''Python ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Subdevices: 0/1wiringOP-Python is the Python language version of wiringOP, which is used to operate the hardware resources of the development board, such as GPIO, I2C, SPI and UART, in the Python program.'''
'''Subdevice #0: subdevice #0'''
card 1: rockchiphdmi [rockchip'''In addition,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000please note that all the following commands are operated under the root user.i2s-i2s-hifi i2s-hifi-0]'''</big>|}
Subdevices: 0<span id="wiringop-python-installation-method"></1span>=== wiringOP-Python installation method ===
Subdevice #0: subdevice #0First install the dependency package
Subdevice #0: subdevice :{| class="wikitable" style="width:800px;" |-| root@orangepi:~#0'''sudo apt-get update'''
<ol start="3" style="list-style-typeroot@orangepi: decimal;"><li>Then use the ~# '''aplaysudo apt-get -y install git swig python3-dev python3-setuptools''' command to play the audio file that comes with the system. If the headset can hear the sound, it means that the hardware can be used normally</li></ol>|}
orangepi@orangepi<ol start="2" style="list-style-type:~$ decimal;"><li>Then use the following command to download the source code of wiringOP-Python</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''aplay Note that the following git clone-D hw:0-recursivee command will automatically download the source code of wiringOP,0 /usr/share/sounds/alsa/audiobecause wiringOP-Python depends on wiringOP. Please make sure that the download process does not report an error due to network problems.wav'''
Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
<span id="hdmi'''If there is a problem with the download code from GitHub, you can use the wiringOP-audio-playPython source code that comes with the Linux image directly, and the storage location is:/usr/src/wiringOP-test">Python'''</spanbig>|}{| class="wikitable" style=== HDMI Audio Play Test ===="width:800px;" |-| root@orangepi:~# '''git clone --recursive https://github.com/orangepi-xunlong/wiringOP-Python -b next'''
root@orangepi:~# First use the HDMI to HDMI cable to connect the Orange PI development board to the TV (other HDMI displays need to ensure that the audio can be played)# Then check the sound card serial number of HDMI. From the output below, you can know that the HDMI sound card is '''card 1cd wiringOP-Python'''
root@orangepi:~/wiringOP-Python# '''git submodule update --init --remote'''|}</ol><ol start="3" style="list-style-type: decimal;"><li>Then use the following command to compile wiringOP-Python and install it into the Linux system of the development board</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~$ # '''aplay cd wiringOP-lPython'''
**** List of PLAYBACK Hardware Devices ****root@orangepi:~/wiringOP-Python# '''python3 generate-bindings.py &gt; bindings.i'''
card 0root@orangepi: rockchiprk809 [rockchip~/wiringOP-rk809], device 0: dailinkPython# '''sudo python3 setup.py install'''|}</ol><ol start="4" style="list-multicodecs rk817style-hifi-0 [dailink-multicodecs rk817-hifitype: decimal;"><li>Then enter the following command. If there is a help information output, it means that Wiringop-0]Python is successfully installed. Press the '''q''' key to exit the interface of the help information</li>
Subdevices{| class="wikitable" style="width: 0800px;" |-| root@orangepi:~/1wiringOP-Python# '''python3 -c &quot;import wiringpi; help(wiringpi)&quot;'''
Subdevice #0Help on module wiringpi: subdevice #0
'''card 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-0]'''
'''Subdevices: 0/1'''NAME
'''Subdevice #0: subdevice #0'''wiringpi
'''Subdevice #0: subdevice #0'''
<ol start="3" style="list-style-type: decimal;"><li>Then use the '''aplay''' command to play the audio file that comes with the system. If the HDMI display or television can hear the sound indicates that the hardware can be used normally</li></ol>DESCRIPTION
orangepi@orangepi:~$ '''aplay -D hw# This file was automatically generated by SWIG (http:1,0 /usr/share/sounds/alsa/audiowww.swig.org).wav'''
<span id="use-the-command-to-test-the-recording-method"></span>=== Use the command to test the recording method ===: # Version 4.0.2
: # Orange Pi 3B development board does not have MICs, and can only record audio through headphones with MIC function. After inserting the headset with the MIC function into the development board, the command below will record a piece of audio through the headset
orangepi@orangepi:~$ '''amixer # Do not make changes to this file unless you know what you are doing-c 0 cset name='Capture MIC Path' 'Main Mic''''-modify
orangepi: # the SWIG interface file instead.|}</ol><ol start="5" style="list-style-type: decimal;"><li><p>Test whether the wiringOP-Python is installed successfully under the Python command line is shown below:</p><ol style="list-style-type: lower-alpha;"><li>First use the Python3 command to enter the command line mode of Python3</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~$ # '''arecord -D hw:0,0 -d 5 -f cd -t wav /tmp/test.wavpython3'''|}<span id/ol><ol start="2" style="temperaturelist-sensorstyle-type: lower-alpha;"><li>Then import the Python module of WiringPi</spanli>{| class="wikitable" style= Temperature Sensor "width:800px;" |-| &gt;&gt;&gt; '''import wiringpi;'''|}</ol><ol start="3" style="list-style-type: lower-alpha;"> # The <li>Enter the following command to view the help information of wiringOP-Python, and press the system temperature sensor is'''q''' key to exit the interface of the help information</li>{| class="wikitable" style="width: 800px;" |-| orangepi@orangepi:~$ &gt;&gt;&gt; '''sensorshelp(wiringpi)''' soc_thermal-virtual-0
AdapterHelp on module wiringpi: Virtual device
temp1: +41.9°C (crit = +115.0°C)
gpu_thermal-virtual-0NAME
Adapter: Virtual devicewiringpi
temp1: +43.8°C
<ol start="2" style="list-style-type: decimal;"><li><p>The command of the current temperature of the NVMe SSD solid -state hard disk is: </p><p>orangepi@orangepi:~$ '''sudo smartctl -a /dev/nvme0 | grep &quot;Temperature:&quot;'''</p><p>Temperature: '''40 Celsius'''</p></li></ol>DESCRIPTION
<span id="pin-interface-pin-explanation"><: # This file was automatically generated by SWIG (http:/span>== 40 Pin interface pin explanation ==/www.swig.org).
: # Orange Pi 3B Development board 40 Pin interface pins, please refer to the figure belowVersion 4.0.2
<div class="figure">: #
[[File:pi3b# Do not make changes to this file unless you know what you are doing-img254.png|400x124px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\Orange-Pi-3B-Development-board-40-Pin(1).jpgOrange-Pi-3B-Development-board-40-Pin(1)]]modify
</div><ol start="2" style="list-style-type: decimal;"><li><p>The function of # the Orange Pi 3B development board 40 PIN SWIG interface pins is shown in the table belowfile instead.</p><ol style="list-style-type: lower-alpha;"><li>Below is a complete pins of 40pin</li></ol></li></ol>
[[File:pi3b-img255.png|575x160px]]
<ol start="2" style="list-style-type: lower-alpha;"><li>The following form is a picture on the left half of the full table above, which can be seen clearly</li></ol>CLASSES
[[File:pi3b-img256builtins.png|478x267px]]object
<ol start="3" style="list-style-type: lower-alpha;"><li>The following form is a picture on the right half of the top table above, which can be seen clearly</li></ol>:GPIO
[[File:pi3b-img257.png|479x266px]]:I2C
<ol start="3" style="list-style-type: decimal;"><li>There are a total of '''28''' GPIO ports in the 40pin interface. The voltage of all GPIO ports is '''3.3v'''</li></ol>:Serial
<span id="how-to-install-wiringop"></span>== How to install Wiringop ==::nes
'''Note that Wiringop has been pre -installed in the Linux image released by Orange Pi. Unless Wiringop's code is updated, it is not necessary to re -download and install. Just use it directly.'''
'''The storage path of the compiled Wiringop's Deb is wrapped in Orangepi-Build: '''class GPIO(builtins.object)
'''orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb''':| GPIO(pinmode=0)
'''After entering the system, you can run the gpio readall command. If you can see the output below, it means that wiringOP is pre -installed and can be used normally.''':|
<div class="figure">
[[File:pi3b&gt;&gt;&gt;|}</ol></li></ol><span id="pin-gpio-port-test-img258.png|575x355px|66AC(IBG%N8L@Y7(1BZPS`N]]1"></span>
</div>'''wiringOP is currently adapted to set the === 40pin GPIO port input output, set the GPIO port output high and low level, and set the function of pulling and down resistance. It is impossible to use functions like hardware PWM.'''test ===
{| class="wikitable" style="background-color:# Download ffffdc;width:800px;" |-| <big>'''wiringOP-Python is the code of Wiringopsame as wiringOP, you can also determine which GPIO pin to operate by specifying the wPi number, because there is no command to check the wPi number in wiringOP-Python, so you can only check the board wPi number and physical Correspondence between pins.'''</big>
orangepi@orangepi:~$ '''sudo apt update'''<div class="figure">
orangepi@orangepi[[File:~$ '''sudo apt install pi3b-y git'''img258.png|center]]
orangepi@orangepi:~$ '''git clone https:<//githubdiv>|}# Below the No.com/orangepi 7 pin — corresponding to GPIO4_a4 -xunlong/wiringOP.git corresponding WPI serial number 2 -b next''' '''Note that Orange Pi 3B needs to download demonstrate how to set the code height of the wiringOP next branch, please don't miss the parameter of -b next.'''GPIO port
'''If there is a problem with the download code from GitHub, you can use the wiringOP source code that comes with the Linux image directly, and the storage location is:/usr/src/wiringOP''':[[File:pi3b-img259.png]]
<ol start="2" style="list-style-type: decimal;">
<li>Compile and install wiringOP<p>The steps of the command test are shown below directly: </p><ol style="list-style-type: lower-alpha;"><li>First set the GPIO port to the output mode. The first parameter of the '''pinMode''' function is the serial number of the wpi corresponding to the pin, and the second parameter is the GPIO mode</olli>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
orangepi@orangepi:~$ '''cd wiringOPfrom wiringpi import GPIO; wiringpi.wiringPiSetup() ; \'''
orangepi'''wiringpi.pinMode(<span style="color:#FF0000">2, GPIO.OUTPUT</span>) ; &quot;'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then set the GPIO port output low level. After setting, you can use the voltage of the voltage of the universal meter to measure the pins. If it is 0V, it means that the low -power flat is successful</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP$ -Python# '''sudo ./build cleanpython3 -c &quot;import wiringpi; \'''
orangepi@orangepi:~/wiringOP$ '''sudo from wiringpi import GPIO; wiringpi./buildwiringPiSetup() ;\'''
'''wiringpi.digitalWrite(<span style="color:#FF0000">2, GPIO.LOW</span>)&quot;'''|}</ol><ol start="3" style="list-style-type: decimallower-alpha;"><li>Test Then set the GPIO port output high level. After setting, you can use the value of the voltage of the GPIO Readall command as followspins with a multimeter. If it is 3.3V, it means that the high -power flat is successful.</li><{| class="wikitable" style="width:800px;" |-| root@orangepi:~/ol>wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
<div class="figure">'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\'''
[[File'''wiringpi.digitalWrite(<span style="color:#FF0000">2, GPIO.HIGH</span>)&quot;'''|}</ol></li></ol><ol start="3" style="list-style-type: decimal;"><li><p>The steps of testing in the command line of Python3 are shown below: </p><ol style="list-style-type:pi3blower-img258.pngalpha;"><li>First use the Python3 command to enter the command line mode of Python3</li>{| class="wikitable" style="width:800px;" |575x355px-|66AC(IBG%N8Lroot@Y7(1BZPS`N]]orangepi:~# '''python3'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then import the Python module of WiringPi</li>{| class="wikitable" style="width:800px;" |-| &gt;&gt;&gt; '''import wiringpi'''
&gt;&gt;&gt; '''from wiringpi import GPIO'''|}</divol><span idol start="pin-interface-gpio-i2c3" style="list-uartstyle-spitype: lower-and-pwm-testalpha;"></spanli>== 40Pin interface Then set the GPIO, I2C, UART, SPIport as the output mode. The first parameter of the '''pinMode''' function is the serial number of the wpi corresponding to the pin, and PWM test the second parameter is the GPIO mode.</li>{| class="wikitable" style="width:800px;" |-| &gt;&gt;&gt; '''wiringpi.wiringPiSetup()'''
'''Note that if you need to set overlays to open multiple configurations at the same time, please use a space to write in one line like the following space.'''0
orangepi&gt;&gt;&gt; '''wiringpi.pinMode(<span style="color:#FF0000">2, GPIO.OUTPUT</span>)'''|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then set the GPIO port output low level. After setting, you can use the value of the voltage of the pins with a multimeter. If it is 0V, it means that the low -power flat is set.</li>{| class="wikitable" style="width:800px;" |-| &gt;&gt;&gt; '''wiringpi.digitalWrite(2, <span style="color:#FF0000">GPIO.LOW</span>)'''|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>Then set the GPIO port output high level. After setting, you can use the value of the voltage of the pins with a multimeter. If it is 3.3V, it means that the high -power flat is successful</li>{| class="wikitable" style="width:800px;" |-| &gt;&gt;&gt; '''wiringpi.digitalWrite(2, <span style="color:#FF0000">GPIO.HIGH</span>)'''|}</ol></li></ol><ol start="4" style="list-style-type: decimal;"><li>Wiringop-Python Sets GPIO high and low levels in the Python code. For reference to the '''blink.py''' test program in Examples, the voltage of the '''blink.py''' test program will set up the voltage of all GPIO ports in the development board 40 PIN</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~$ /wiringOP-Python# '''sudo vim /boot/orangepiEnv.txtcd examples'''
root@orangepi:~/wiringOP-Python/examples# '''overlays=spi3-m0-cs0-spidev i2c2-m1 i2c3-m0 uart7-m2 uart9-m2 pwm11-m1ls blink.py'''
<span id="pin-gpio-port-test"></span>=== 40pin GPIO port test ==='''blink.py'''
root@orangepi:~/wiringOP-Python/examples'''The Linux system released by Orange Pi has a pre -installed blink_all_gpio program. This program will set up all 28 GPIO ports in 40pin to switch high and low levels# python3 blink.py'''|}</ol><span id="pin-spi-test-1"></span>
'''After running the blink_all_gpio program, when using a multimeter to measure the level of the GPIO port, you will find that the GPIO pin will be switched between 0 and 3.3v. Use this program to === 40pin SPI test whether the GPIO port can work normally'''===
'''The method # From the schematic diagram of running blink_all_gpio program the 40pin interface, the SPI available for Orange Pi 3B is shown below: '''spi3
orangepi@orangepi3b:~$ '''sudo blink_all_gpio''' #Remember to add Sudo permissions:[[File:pi3b-img264.png]]
[sudo] password for orangepi::{| class="wikitable" style="background-color: #You need ffffdc;width:800px;" |-| <big>'''In the Linux system, the spi3 in 40pin is closed by default, and it needs to be opened manually to enter a password hereuse.'''
# A total of 28 GPIO ports can be used in the development board 40pin. Below is No. 7 pins -corresponding GPIO as GPIO4_A4 -corresponding WPI serial number 2 -as an example how to set the height of the GPIO port
[[File:pi3b-img259'''Add the configuration of the red font part below to the /boot/orangepiEnv.png|576x120px]]txt, and then restart the Linux system to open the spi4.'''</big>
<ol start="2" style="list-style-type: decimal;">
<li>First set the GPIO port as the output mode, the third parameter needs to enter the serial number of the wPi corresponding to the pins</li></ol>
rootorangepi@orangepi:~/wiringOP# $ '''gpio mode 2 outsudo vim /boot/orangepiEnv.txt'''
'''<ol startspan style="3color:#FF0000" style>overlays="listspi3-stylem0-type: decimal;"><li>Then set the GPIO port to output the low level. After setting, you can use the value of the voltage of the pins with a multimeter. If it is 0v, it means that the low cs0-electric flat is successfulspidev</li></olspan>'''|}
root<ol start="2" style="list-style-type: decimal;"><li>First check whether there is a '''spidev3.0''' device node in the Linux system. If it exists, it means that the SPI3 has been set and can be used directly</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/wiringOP# $ '''gpio write 2 ls /dev/spidev3.0'''
Using GPIO Readall/dev/spidev3.0|}</ol><ol start="3" style="list-style-type: decimal;"><li><p>You can then use the spi back function under the '''spidev_test.py''' program in Examples. The '''spidev_test.py''' program needs to specify the following two parameters: </p><ol style="list-style-type: lower-alpha;"><li><p>'''--channel''': Specify the channel number of SPI</p></li><li><p>'''--port''': Specify the port number of SPI</p></li></ol></li><li><p>Do not pick up the two pins of the SPI3 MOSI and MISO in short, you and run the output result of the spidev_test.py as shown below. You can see that the value data of the No. 7 pin (v) to 0TX and RX are inconsistent</p></li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~/wiringOP-Python# '''cd examples'''
[[Fileroot@orangepi:pi3b~/wiringOP-img260Python/examples# '''python3 spidev_test.png|576x120px]]py \'''
<ol start="4" style="list'''-style-type: decimal;"><li>Then set the GPIO port output high level. After setting, you can use the voltage of the voltage of the permanent meter to measure the voltage. If it is channel 3.3V, it means that the high-electricity level is successful</li></ol>-port 0'''
root@orangepispi mode:~/wiringOP# '''gpio write 2 1'''0x0
Using GPIO Readall, you can see the value of No. 7 pin max speed: 500000 Hz (v500 KHz) into 1 Opening device /dev/spidev3.0
[[FileTX | FF FF FF FF FF FF '''<span style="color:pi3b-img261#FF0000">40 00 00 00 00 95</span>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |......@.......png|576x118px]]
RX | FF FF FF FF FF FF '''<span style="color:#FF0000">FF FF FF FF FF FF</span>''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |.............….|
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>The setting method of other Then use the TXD (No. 19 pins is similarin the 40Pin interface) and RXD (No. Just modify 21 pins in the serial number 40pin interface) of the wPi sequence number as DuPont line short connection SPI3. Like sending and receiving data, it means that the corresponding serial number corresponding to the pinSPI3 loop test is normal</li><{| class="wikitable" style="width:800px;" |-| root@orangepi:~/ol>wiringOP-Python# '''cd examples'''
<span id="pin-gpio-port--down-and-downward-pull--downroot@orangepi:~/wiringOP-resistance-setting-method"><Python/span>=== 40Pin GPIO Port -down and downward pull -down resistance setting method ===examples# '''python3 spidev_test.py \'''
'''Note that the 4 GPIO pins below Orange Pi 3B are invalid because there are --channel 3.3V on the outside, so setting drop -down is invalid. Other pins can be set normally-port 0'''
[[Filespi mode:pi3b-img262.png|575x353px]]0x0
# Below the No. 11 pin—corresponding to GPIO 3_C6-corresponding WPI serial number 5—to demonstrate how to set up and down pull-down resistance of the GPIO portmax speed: 500000 Hz (500 KHz)
[[File:pi3b-img263Opening device /dev/spidev3.png|576x147px]]0
TX | FF FF FF FF FF FF '''<ol start="2" span style="list-style-typecolor: decimal;#FF0000">40 00 00 00 00 95<li/span>First of all, you need to set the GPIO port as the input mode''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |...... The third parameter needs to enter the serial number of the wpi corresponding to the pins</li></ol>@.......…|
root@orangepi:~/wiringOP# RX | FF FF FF FF FF FF '''gpio mode 5 in<span style="color:#FF0000">40 00 00 00 00 95</span>'''FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |......@.......…||}</ol><span id="pin-i2c-test-1"></span>
<ol start="3" style="list-style-type: decimal;"><li>After the setting is set to input mode, execute the following command to set the GPIO port as the pull -down mode</li></ol>= 40pin I2C test ===
root@orangepi<ol start="1" style="list-style-type:~decimal;"><li>As can be seen from the table below, the I2C available for Orange Pi 3B is I2C2, I2C3, and I2C4 a total of three groups of I2C bus</wiringOP# '''gpio mode 5 up'''li>
<ol start="4" style="list[[File:pi3b-style-type: decimal;"><li>Then enter the following command to read the level of the GPIO portimg266. If the level is 1, it means that the drawing mode is successful</li></ol>png]]
root@orangepi:~/wiringOP# '''gpio read 5''' '''1''' <ol start{| class="5wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;"><li>Then execute the following command to set the GPIO port as the drop|-down mode</li>| </olbigroot@orangepi:~/wiringOP# '''gpio mode 5 downIt can be seen from the above table that I2C4_M0 and SPI3_M0 are pins. The two cannot be opened at the same time. I2C3_M0 and UART3_M0 are also reused. The two cannot be opened at the same time'''</big>|}<ol start{| class="6wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig>Then enter '''In the following command to read the level of the GPIO port. If Linux system, the level I2C in 40Pin is 0closed by default, and it means that the drop -down mode is set successfully</li></ol>needs to be opened manually to use.'''
root@orangepi:~/wiringOP# '''gpio read 5'''
'''0Add the configuration of the red font part below to the/boot/orangepiEnv.txt, and then restart the Linux system to open the I2C2, i2C3, and I2C4 at the same time. If you only need to open one, then fill in one.'''</big>
<span id="pin-spi-test"></span>
=== 40pin SPI Test ===
 
# From the schematic diagram of the 40PIN interface, the SPI available for Orange Pi 3B is spi3
 
[[File:pi3b-img264.png|577x193px]]
 
'''In the Linux system, the SPI3 in 40pin is closed by default, and it needs to be opened manually to use.'''
 
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the spi3.'''
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
'''<span style="color:#FF0000">overlays=spi3i2c2-m1 i2c3-m0i2c4-cs0-spidevm0</span>'''|}</ol>
<ol start="2" style="list-style-type: decimal;">
<li>First check whether there is a '''spidev3.0''' device node in After starting the Linux system. If it exists, it means that first confirm the SPI3 has been setI2C device node under/dev. You can use it directly</li></ol>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ # '''ls /dev/spidev3.0i2c-*''' /dev/spidev3.0
/dev/i2c-0 &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/i2c-2''' &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/i2c-3''' &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/i2c-4''' &nbsp;&nbsp;&nbsp;&nbsp; /dev/i2c-6
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Do not shorten Then connect a I2C device on the two pins I2C pin of the SPI3 MOSI and MISO, and run the output result 40PIN connector. Here is an example of the spidev_test as shown belowDS1307 RTC module. You can see that the data of TX and RX is inconsistent</li></ol>
orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0''' spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX {| FF FF FF FF FF FF '''40 00 00 00 00 95''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒..................▒. RX | FF FF FF FF FF FF '''FF FF FF FF FF FF''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ............................…. <ol startclass="4" style="list-style-type: decimal;"><li>Then the two pins of the SPI3 MOSI (No. 19 pins in the 40pin interface) and MISO (No. 21 in the 40PIN interface) run the output of SPIDEV_TEST as follows.You can see that sending and receiving data is the same.</li></ol> [[File:pi3b-img265.png|577x83px]] orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0''' spi mode: 0x0 bits per word: 8 max speed: 500000 Hz (500 KHz) TX | FF FF FF FF FF FF '''40 00 00 00 00 95''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒..................▒. RX | FF FF FF FF FF FF '''40 00 00 00 00 95''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@.…▒..................▒. <span id="pin-i2c-test"></span>=== 40pin I2C Test === # From the table below, the I2C available for Orange Pi 3B is I2C2, I2C3, and I2C4 a total of three groups of I2C bus. [[File:pi3b-img266.png|576x160px]] '''It can be seen from the above table that i2c4_m0 and spi3_m0 are pins. The two cannot be opened at the same time. i2c3_m0 and uart3_m0 are also reused. The two cannot be opened at the same time''' '''In the Linux system, the i2c in 40Pin is closed by default, and it needs to be opened manually to use.''' '''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the i2c2, i2c3, and i2c4 at the same time. If you only need to open one, then fill in one.''' orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt''' '''overlays=i2c2-m1 i2c3-m0 i2c4-m0''' <ol start="2wikitable" style="list-style-typewidth: decimal800px;"><li>After starting the Linux system, first confirm that the i2c device node exists under/dev</li></ol> orangepi@orangepi:~# '''ls /dev/i2ctext-*''' /dev/i2c-0 '''/dev/i2c-2''' '''/dev/i2c-3''' '''/dev/i2c-4''' /dev/i2c-6 <ol start="3" style="list-style-typealign: decimalcenter;"><li>Then connect a i2c device on the i2c pin of the 40Pin connector</li></ol> {| class="wikitable"
|-
|
|}
[[File:pi3b-img273.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then use the '''i2cdetect -y''' command if If the address of the connected I2C device can be detected, it means that the I2C can be used normally</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command
|}
<div class="figure">
[[File:pi3b-img267img274.png|476x179px|UN}~]Q}T_70O%Z%RNO8R@YE]]
</div></ol><span idol start="pin5" style="list-uartstyle-testtype: decimal;"><li>You can then run the time of the ds '''ds1307.py''' test program in '''examples''' to read the RTC time</spanli>{| class="wikitable" style== 40pin UART test ==="width:800px;" |-| root@orangepi:~/wiringOP-Python# '''cd examples''' root@orangepi:~/wiringOP-Python/examples# '''python3 ds1307.py --device \''' '''&quot;/dev/i2c-4&quot;''' Thu 2023-01-05 14:57:55 Thu 2023-01-05 14:57:56 Thu 2023-01-05 14:57:57
^C exit|}</ol><span id="pins-uart-test."></span> === 40pin's UART test === # As can be seen from the table below, the uart UART available for Orange Pi 3B is uart3, uart7UART3, UART7 and uart9UART9. There are three sets of uart UART bus
::[[File:pi3b-img268.png|575x160px]]
::{| class="wikitable" style="width:800px;background-color:#ffffdc;" |-| <big>'''As can be seen from the above table, i2c3_m0 I2C3_M0 and uart3_m0 UART3_M0 are reused by pins, and the two cannot be opened at the same time'''</big>|}
::{| class="wikitable" style="width:800px;background-color:#ffffdc;" |-| <big>'''In the Linux system, the uart UART in 40pin is closed by default, and it needs to be opened manually to use.'''
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the uart3UART3, uart7UART7, and uart9 UART9 at the same time. If you only need to open one, you can fill in one..'''</big>
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
'''<span style="color:#FF0000">overlays=uart3-m0 uart7-m2 uart9-m2</span>'''|}
<ol start="2" style="list-style-type: decimal;">
<li>After entering the Linux system, first confirm whether there is a device node corresponding to uart UART under/dev</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~# '''ls /dev/ttyS*'''
/dev/ttyS1 &nbsp;&nbsp;&nbsp;&nbsp; '''/dev'''/'''ttyS3 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS7 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS9'''|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then start testing the uart UART interface, and first use the rx RX and tx TX of the uart UART interface to be tested by DuPont</li></ol>
{| class="wikitable" style="width:800px;text-align: center;"
|-
|
|uart9
|-
| Tx pinPin
|Corresponding to the 28 pin
|Corresponding to the 16 pin
|Corresponding to the 7 pin
|}
 [[File:pi3b-img269.png|545x134px]]</ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Use the '''gpio serialserialTest.py''' command program in Examples to test the loop function of the serial port as shown below. If you can see the following printingbelow, it means that the serial communication is normal</p>
<ol style="list-style-type: lower-alpha;">
<li>Test UART3</li></ol><{| class="wikitable" style="width:800px;" |-| root@orangepi:~/li><wiringOP-Python/ol>examples# '''python3 serialTest.py --device \'''
orangepi@orangepi:~$ '''sudo gpio serial &quot;/dev/ttyS3&quot;'''
[sudo] password for orangepi: #Enter the password here.
Out: 0: -&gt; 0
Out: 3: -&gt; 3
Out: 4: -&gt; 4 Out: 5: -&gt; 5^C
exit
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Test UART7</li><{| class="wikitable" style="width:800px;" |-| root@orangepi:~/ol>wiringOP-Python/examples# '''python3 serialTest.py --device \'''
orangepi@orangepi:~$ '''sudo gpio serial &quot;/dev/ttyS7&quot;'''
[sudo] password for orangepi: #Enter the password here.
Out: 0: -&gt; 0
Out: 3: -&gt; 3
Out: 4: -&gt; 4 Out: 5: -&gt; 5^C
exit
|}
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Test UART9</li><{| class="wikitable" style="width:800px;" |-| root@orangepi:~/ol>wiringOP-Python/examples# '''python3 serialTest.py --device \'''
orangepi@orangepi:~$ '''sudo gpio serial &quot;/dev/ttyS9&quot;'''
[sudo] password for orangepi: #Enter the password here.
Out: 0: -&gt; 0
Out: 3: -&gt; 3
Out: 4: -&gt; 4^C
Out: 5: exit|}</ol></li></ol><span id="hardware-&gt; 5^Cwatch-the-door-dog-test"></span>
<span id="pwm-test-method"></span>=== PWM Hardware watch the door dog test method ===
# From The WatchDog_test program is pre -installed in the table belowLinux system released by Orange PI, the pwm11 available for Orange Pi 3Bwhich can be tested directly.
[[FileThe method of running the WatchDog_test program is shown below:pi3b-img270.png|575x160px]]
'''In <ol style="list-style-type: lower-alpha;"><li><p>The second parameter 10 indicates the counting time of the door. If there is no dog feeding in this time, the Linux system, will restart.</p></li><li><p>We can feed the dog by pressing any keys on the keyboard (except ESC). After the pwm in 40pin dog is closed by defaultfed, and it needs the program will print a line of Keep Alive to be opened manually to use..'''indicate that the dog is successful</p></li>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the pwm11.sudo watchdog_test 10'''
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''open success
'''overlays=pwm11options is 33152,identity is sunxi-m1'''wdt
<ol start="2" style="list-style-typeput_usr return,if 0,success: decimal;"><li>After opening a pwm, a pwmchipX (X is a specific number) will be available in'''/sys/class/pwm/'''</li></ol>0
orangepi@orangepiThe old reset time is:~$ '''ls /sys/class/pwm/'''16
pwmchip0 pwmchip1return ENOTTY,if -1,success:0
<ol start="3" style="list-style-type: decimal;"><li><p>Which pwmchip corresponds to pwm11 above? Let's first check out the output of '''ls /sys/class/pwm/ return ENOTTY,if -l''' command1, as shown belowsuccess: </p></li><li><p>The base address of the pwm11 register is Fe6F0030. Then see the output of '''ls /sys/class/pwm/ -l''' command, you can see that the fe6f0030.pwm is connected to the pwmchip1, so the PWM11 corresponding pwmchip is pwmchip1</p></li></ol>0
<div class="figure">put_user return,if 0,success:0
[[Fileput_usr return,if 0,success:pi3b-img271.png|576x46px|RCUS$_~VYM{4ZS]_L}DNZQR]]0
</div><ol start="5" style="list-style-type: decimal;"><li>Then use the following command to allow pwm11 to output a 50Hz square wave (please switch to the root user first, and then execute the following command)</li></ol>keep alive
root@orangepi:~# '''echo 0 &gt; /sys/class/pwm/pwmchip1/export'''keep alive
root@orangepi:~# '''echo 20000000 &gt; keep alive|}</sysol><span id="check-the-serial-number-of-the-rk3566-chip"></class/pwm/pwmchip1/pwm0/period'''span>
root@orangepi:~# '''echo 1000000 &gt; /sys/class/pwm/pwmchip1/pwm0/duty_cycle'''== Check the serial number of the RK3566 chip ==
root@orangepi:~# '''echo 1 &gt; /sys/class/pwm/pwmchip1/pwm0/enable'''The commands of the RK3566 chip serial number are shown below. The serial number of each chip is different, so you can use the serial number to distinguish multiple development boards.
[[File{| class="wikitable" style="width:pi3b800px;" |-img272| orangepi@orangepi:~$ '''cat_serial.png|575x346px]]sh'''
<span id="how-to-install-and-use-wiringop-python"></span>Serial : '''8fa18eaf489041f0'''== How to install and use Wiringop-Python ==|}
'''Wiringop<span id="the-method-Python is the library of -downloading-and-installing-the Python language -balenaetcher-version -of Wiringop. It is used to operate the development board's GPIO, I2C, SPI and UART hardware resources such as the development board in the Python program.'''-arm64"></span>
'''Please note that all == The method of downloading and installing the following command below is operated under the root user.'''balenaEtcher version of arm64 ==
<span idol style="wiringoplist-pythonstyle-installationtype: decimal;"><li><p>The download address of Balenaetcher ARM64 version is: </p><ol style="list-style-type: lower-methodalpha;"><li>The download address of the Deb installation package is shown below, and it needs to be installed to use</spanli>{| class="wikitable" style="width:800px;" |-| '''https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balena-etcher-electron_1.7.9+5945ab1f_arm64.deb'''|}</ol><ol start="2" style= Wiringop"list-style-type: lower-Python installation method =alpha;"><li>The download address of the Appimage version that does not need to be installed is shown below: </li>{| class="wikitable" style="width:800px;" |-| '''https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balenaEtcher-1.7.9+5945ab1f-arm64.AppImage'''|}
# First install the dependency package<div class="figure">
root@orangepi[[File:~# '''sudo aptpi3b-get update''' root@orangepi:~# '''sudo apt-get -y install git swig python3-dev python3-setuptools'''img275.png]]
</div></ol>
</li></ol>
<ol start="2" style="list-style-type: decimal;">
<li>Then <p>How to install and use the following command to download the source code deb version of wiringOPBalenaetcher: </p><ol style="list-Pythonstyle-type: lower-alpha;"></li>deb version of Balenaetcher installation commands as shown below: </olli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt install -y \'''
'''Note that the following git clone--recursivee command will automatically download the source code of Wiringop, because Wiringopfix-broken ./balena-etcher-Python depends on Wiringopelectron_1.7. Please make sure that the download process does not report an error due to network problems9+5945ab1f_arm64.deb'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After the deb version of Balenaetcher is installed, it can be opened in the Application</li>
'''If there is a problem with the download code from GitHub, you can use the Wiringop-Python source code that comes with the Linux image directly, and the storage location is:/usr/src/wiringOP-Python'''<div class="figure">
root@orangepi[[File:~# '''git clone pi3b--recursive https://githubimg89.com/orangepi-xunlong/wiringOP-Python -b next'''png]]
root@orangepi</div></ol><ol start="3" style="list-style-type:~# '''cd wiringOPlower-Python'''alpha;"><li>The interface after Balenaetcher is opened is shown below: </li>
root@orangepi<div class="figure"> [[File:~/wiringOPpi3b-Python# '''git submodule update --init --remote'''img276.png]]
</div></ol>
</li></ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then <p>How to use the following command AppImage version of balenaEtcher: </p><ol style="list-style-type: lower-alpha;"><li>First add permissions to compile wiringOPBalenaetcher</li>{| class="wikitable" style="width:800px;" |-Python and install it into the Linux system of the development board| orangepi@orangepi:~/Desktop$ '''chmod +x balenaEtcher-1.7.9+5945ab1f-arm64.AppImage'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then select the AppImage version balenaEtcher right -click the mouse, and then click Execute to open balenaEtcher</olli>
root@orangepi[[File:~# '''cd wiringOPpi3b-Python'''img277.png]]</ol></li></ol><span id="the-installation-method-of-the-bt-panel-linux-panel"></span>
root@orangepi:~/wiringOP== The installation method of the Bt-Python# '''python3 generate-bindings.py &gt; bindings.i'''Panel Linux panel ==
root@orangepi{| class="wikitable" style="background-color:#ffffdc;width:~/wiringOP800px;" |-Python# | <big>'''sudo python3 setupBt-Panel Linux panel is a server management software that improves operation and maintenance efficiency. It supports more than 100 server management functions such as one -click LAMP/LNMP/cluster/monitoring/website/FTP/database/Java (excerpted from the [https://www.bt.cn/new/index.py installhtml official website of the Bt-Panel])'''</big>|}
<ol start="4" style="list-style-type: decimal;"><li>Then enter # First of all, the following command. If there is a help information output, it means that Wiringop-Python is successfully installed. Press size of the '''q/tmp''' key space is needed. After setting, you need to exit '''<span style="color:#FF0000">restart the interface Linux system of the help informationdevelopment board</li></olspan>''', and the command is shown below:
root::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/wiringOP-Python# $ '''python3 sudo sed -c i 's/nosuid/&quot;import wiringpi; help(wiringpi)&quotamp;,size=2G/' /etc/fstab'''
Help on module wiringpiorangepi@orangepi:~$ '''sudo reboot'''|}
NAME<ol start="2" style="list-style-type: decimal;"><li>After restarting, you can see that the size of the'''/tmp''' space has become 2G.</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''df -h | grep &quot;/tmp&quot;'''
wiringpitmpfs &nbsp;&nbsp;&nbsp;&nbsp; 2.0G &nbsp;&nbsp;&nbsp;&nbsp; 12K &nbsp;&nbsp;&nbsp;&nbsp; '''<span style="color:#FF0000">2.0G</span>''' &nbsp;&nbsp;&nbsp;&nbsp; 1% /tmp|}</ol><ol start="3" style="list-style-type: decimal;"><li>Then enter the following command in the Linux system to start the installation of the Bt-Panel</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo install_bt_panel.sh'''|}</ol><ol start="4" style="list-style-type: decimal;"><li>Then the pagoda installation program reminds whether to install the '''Bt-Panel''' to the'''/www''' folder, and enter '''<span style="color:#FF0000">y</span>''' at this time</li>{| class="wikitable" style="width:800px;" |-| +----------------------------------------------------------------------
DESCRIPTION<p>| Bt-WebPanel FOR CentOS/Ubuntu/Debian</p>
# This file was automatically generated by SWIG (http://www.swig.org).+----------------------------------------------------------------------
# Version 4<p>| Copyright © 2015-2099 BT-SOFT(http://www.0bt.2cn) All rights reserved.</p>
#+----------------------------------------------------------------------
# Do not make changes to this file unless you know what you are doing--modify<p>| The WebPanel URL will be http://SERVER_IP:8888 when installed.</p>
# the SWIG interface file instead.+----------------------------------------------------------------------
 
Do you want to install Bt-Panel to the /www directory now?(y/n): '''<span style="color:#FF0000">y</span>'''
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>Test whether Then you have to wait patiently. When you see the Wiringop-Python is installed successfully under printing information below the Python command line is shown below: </p><ol style="list-style-type: lower-alpha;"><li>First use terminal output, it means that the Python3 command pagoda has been installed. The entire installation process takes about 34 minutes. There may be some differences according to enter the command line mode of Python3difference in network speed</li></ol></li></ol>
root@orangepi[[File:~# pi3b-img278.png|800px]]</ol><ol start="6" style="list-style-type: decimal;"><li><p>At this time, enter the '''panel address''' displayed above in the browser to open the login interface of the pagoda Linux panel, and then enter the '''username'''python3and '''password''' displayed in the corresponding position to log in to the Bt-Panel<br />[[File:pi3b-img279.png|1200px]]</p></li><li><p>After successfully logging in to the pagoda, the following welcome interface will pop up. First, please take the intermediate user notice to read to the bottom, and then you can choose &quot;I have agreed and read&quot; User Agreement &quot;, and then click&quot; Enter the panel &quot; You can enter the Bt-Panel</p></li>
[[File:pi3b-img280.png|1200px]]</ol><ol start="28" style="list-style-type: lower-alphadecimal;"><li>Then import After entering the Python module Bt-Panel, you will first prompt that you need to bind the account of WiringPithe Bt-Panel official website. If you do n't have an account, you can go to the pagoda's official website ('''https://www.bt.cn''') to register one.</li></ol>
&gt[[File:pi3b-img281.png|1200px]]</ol><ol start="9" style="list-style-type: decimal;&gt;&gt; '''import wiringpi;'''"><li>The final display interface is shown in the figure below. You can intuitively see some status information of the development board Linux system, such as load state, CPU usage, memory usage and storage space usage</li>
[[File:pi3b-img282.png|1200px]]</ol><ol start="310" style="list-style-type: lower-alphadecimal;"><li>Enter More functions of the following command Bt-Panel can refer to view the help following information of Wiringop-Python, and press the '''q''' key to exit the interface of the help informationexplore by yourself</li></ol>
&gt;&gt;&gt{| class="wikitable" style="width:800px; " |-| Manual: [http://docs.bt.cn '''help(wiringpi)http://docs.bt.cn''']
Help on module wiringpiForum address:[https://www.bt.cn/bbs '''https://www.bt.cn/bbs''']
NAMEGitHub Link: '''https://github.com/aaPanel/BaoTa'''|}</ol><span id="set-the-chinese-environment-and-install-chinese-input-method"></span>
wiringpi== Set the Chinese environment and install Chinese input method ==
DESCRIPTION{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that before installing the Chinese input method, please make sure that the Linux system used in the development board is the desktop version system.'''</big>|}
# This file was automatically generated by SWIG (http:<span id="debian-system-installation-method"><//www.swig.org).span>=== Debian system installation method ===
# Version 4.0.2<ol style="list-style-type: decimal;"><li><p>First set the default '''locale''' as Chinese</p><ol style="list-style-type: lower-alpha;"><li>Enter the command below to start configured '''locale'''</li>
#{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then select '''zh_CN.UTF-8 UTF-8''' in the pop-up interface (to move up and down through the upper and lower direction buttons on the keyboard, select it through the space key, and finally move the cursor to '''&lt;OK&gt;''' through the TAB key, then press the ENTER key )</li>
# Do not make changes to this file unless you know what you are doing[[File:pi3b-img283.png|1200px]]</ol><ol start="3" style="list-modifystyle-type: lower-alpha;"><li>Then set the default '''locale''' as '''zh_CN.UTF-8'''</li>
# [[File:pi3b-img284.png|1200px]]</ol><ol start="4" style="list-style-type: lower-alpha;"><li>After exiting the SWIG interface file instead, the '''locale''' settings will be started.The output displayed by the command line is shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''
CLASSESGenerating locales (this might take a while)...
builtins:en_US.objectUTF-8... done
GPIO:zh_CN.UTF-8... done
I2CGeneration complete.|}</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>Then open '''Input Method'''</li>
Serial[[File:pi3b-img285.png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Then select '''OK'''</li>
nes[[File:pi3b-img286.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>Then select '''Yes'''</li>
class GPIO(builtins[[File:pi3b-img287.object)png]]</ol><ol start="5" style="list-style-type: decimal;"><li>Then select '''fcitx'''</li>
| GPIO(pinmode[[File:pi3b-img288.png]]</ol><ol start=0)"6" style="list-style-type: decimal;"><li>Then select '''OK'''</li>
|[[File:pi3b-img289.png]]</ol><ol start="7" style="list-style-type: decimal;"><li><p>'''<span style="color:#FF0000">Then restart the Linux system to make the configuration effective</span>'''</p></li><li><p>Then open '''Fcitx configuration'''</p></li>
&gt;&gt;&gt[[File:pi3b-img290.png]]</ol><ol start="9" style="list-style-type: decimal;"><li>Then click the + of the position shown in the figure below</li>
[[File:pi3b-img291.png]]</ol><span idol start="pin10" style="list-gpiostyle-port-test-1type: decimal;"></spanli>=== 40pin GPIO port test === Then search '''Google Pinyin'''Wiringop-Python is the same as Wiringop. You can also determine which GPIO pink can be determined by specifying the WPI number. Because there is no command to check the WPI number in Wiringop-Python, you can only check the board WPI number and physical physical physics through the GPIO command in Wiringop. The corresponding relationship of the pin.click '''OK'''</li>
<div class="figure">
[[File:pi3b-img258img292.png|575x355px|66AC(IBG%N8L@Y7(1BZPS`N]]
</div></ol># Below the No. 7 pin — corresponding to GPIO4_a4 <ol start="11" style="list-corresponding WPI serial number 2 style-type: decimal;"><li>Then put '''Google Pinyin''' to demonstrate how to set the height of the GPIO portfront</li>
[[File:pi3b-img259img293.png|576x120px]]
<ol start="2" style="list[[File:pi3b-style-type: decimal;">img294.png]]<li><p>The steps of the command test are shown below directly: </pol><ol start="12" style="list-style-type: lower-alphadecimal;"><li>First set the GPIO port to the output mode. The first parameter of Then open the '''pinModeGeany''' function is the serial number of the wpi corresponding editor to test the pin, and the second parameter is the GPIO mode</li></ol>Chinese input method</li></ol>
root@orangepi[[File:~pi3b-img295.png]]</wiringOPol><ol start="13" style="list-Python# '''python3 style-c &quottype: decimal;import wiringpi; \'''"><li>The Chinese input method test is shown below</li>
[[File:pi3b-img296.png]]</ol><ol start="14" style="list-style-type: decimal;"><li><p>You can switch the Chinese and English input method through the '''Ctrl+Space''from wiringpi import GPIO; wiringpi' shortcut</p></li><li><p>If the entire system is required as Chinese, the variables in '''/etc/default/locale''' can be set to '''zh_CN.wiringPiSetup() UTF-8'''</p></li>{| class="wikitable" style="width:800px; \" |-| orangepi@orangepi:~$ '''sudo vim /etc/default/locale'''
'''wiringpi.pinMode(2, GPIO.OUTPUT) ; &quot;'''<p># File generated by update-locale</p>
LC_MESSAGES='''<ol start="2" span style="list-style-typecolor: lower-alpha;#FF0000"><li>Then set the GPIO port output low levelzh_CN. After setting, you can use the voltage of the voltage of the universal meter to measure the pins. If it is 0V, it means that the low UTF-power flat is successful</li>8</olspan>'''
root@orangepi:~/wiringOP-Python# LANG='''python3 <span style="color:#FF0000">zh_CN.UTF-c &quot;import wiringpi; \8</span>'''
LANGUAGE='''from wiringpi import GPIO; wiringpi<span style="color:#FF0000">zh_CN.wiringPiSetup() UTF-8</span>'''|}</ol><ol start="16" style="list-style-type: decimal;\"><li>Then '''<span style="color:#FF0000">restart the system</span>'''to see the system displayed as Chinese</li>
'''wiringpi[[File:pi3b-img297.digitalWrite(2, GPIOpng]]</ol><span id="the-installation-method-of-ubuntu-20.LOW)&quot;'''04-system"></span>
<ol start="3" style="list-style-type: lower-alpha;"><li>Then set the GPIO port output high level. After setting, you can use the value of the voltage = The installation method of the pins with a multimeterUbuntu 20. If it is 3.3V, it means that the high -power flat is successful.</li></ol>04 system ===
root@orangepi:~/wiringOP-Python# First open '''python3 -c &quot;import wiringpi; \Language Support'''
'''from wiringpi import GPIO; wiringpi::[[File:pi3b-img298.wiringPiSetup() ;\'''png]]
<ol start="2" style="list-style-type: decimal;"><li>Then find '''wiringpi.digitalWriteChinese (2, GPIO.HIGHChina)&quot;'''option</li>
[[File:pi3b-img299.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li><p>Then use the left mouse button to select '''Chinese (China)''' and hold it down, and then drag it up to the beginning. The steps of testing in the command line of Python3 are display is shown below: </p><ol style="list-style-type: lower-alpha;"><li>First use the Python3 command to enter the command line mode of Python3</li></ol></li></ol>
root@orangepi[[File:~# '''python3'''pi3b-img300.png]]
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that this step is not easy to drag, please try more patiently.'''</big>|}</ol><ol start="24" style="list-style-type: lower-alphadecimal;"><li>Then import select the Python module of WiringPi'''Apply System-Wide''' to apply the Chinese settings to the entire system</li></ol>
&gt;&gt;&gt[[File:pi3b-img301.png]]</ol><ol start="5" style="list-style-type: decimal; "><li>Then set the '''Keyboard input method system''' to '''import wiringpifcitx'''</li>
&gt;&gt;&gt[[File:pi3b-img302.png]]</ol><ol start="6" style="list-style-type: decimal; "><li><p>'''<span style="color:#FF0000">Then restart the Linux system to make the configuration effective</span>'''</p></li><li><p>After re -entering the system, please do '''from wiringpi import GPIOnot ask me again'''at the interface below, and then determine whether the standard folder should be updated as Chinese based on your preference.</p></li>
[[File:pi3b-img303.png]]</ol><ol start="38" style="list-style-type: lower-alphadecimal;"><li>Then set you can see that the GPIO port desktop is displayed as the output mode. The first parameter of the '''pinMode''' function is the serial number of the wpi corresponding to the pin, and the second parameter is the GPIO mode.Chinese</li></ol>
&gt;&gt;&gt[[File:pi3b-img304.png]]</ol><ol start="9" style="list-style-type: decimal; "><li>Then we can open the '''wiringpi.wiringPiSetup()Geany'''to test Chinese input method , and the way to open is shown in the figure below</li>
0[[File:pi3b-img305.png]]</ol><ol start="10" style="list-style-type: decimal;"><li>After opening '''Geany''', the default is an English input method. We can switch into Chinese input method through the '''Ctrl+Space''' shortcut keys, and then we can enter Chinese</li>
&gt;&gt;&gt; '''wiringpi[[File:pi3b-img306.pinMode(2, GPIOpng]]</ol><span id="the-installation-method-of-ubuntu-22.OUTPUT)'''04-system"></span>
<ol start="4" style="list-style-type: lower-alpha;"><li>Then set the GPIO port output low level. After setting, you can use the value of the voltage = The installation method of the pins with a multimeterubuntu 22. If it is 0V, it means that the low -power flat is set.</li></ol>04 system ===
&gt;&gt;&gt; # First open '''wiringpi.digitalWrite(2, GPIO.LOW)Language Support'''
<ol start="5" style="list-style-type: lower:[[File:pi3b-alpha;"><li>Then set the GPIO port output high levelimg298. After setting, you can use the value of the voltage of the pins with a multimeter. If it is 3.3V, it means that the high -power flat is successful</li></ol>png]]
&gt;&gt;&gt<ol start="2" style="list-style-type: decimal; "><li>Then find '''wiringpi.digitalWriteChinese (2, GPIO.HIGHChina)'''option</li>
[[File:pi3b-img307.png]]</ol><ol start="43" style="list-style-type: decimal;"><li>Wiringop-Python Sets GPIO high and low levels in Then use the Python code. For reference left mouse button to the select '''blink.pyChinese (China)''' test program in Examplesand hold it down, and then drag it up to the voltage of the '''blinkbeginning.py''' test program will set up the voltage of all GPIO ports The display after dragging is shown in the development board 40 PINfigure below: </li></ol>
root@orangepi[[File:~/wiringOPpi3b-Python# '''cd examples'''img308.png]]
root@orangepi{| class="wikitable" style="background-color:~#ffffdc;width:800px;" |-| <big>'''Note that this step is not easy to drag, please try more patiently.'''</wiringOPbig>|}</ol><ol start="4" style="list-Python/examples# style-type: decimal;"><li>Then select the '''ls blink.pyApply System-Wide'''to apply the Chinese settings to the entire system</li>
[[File:pi3b-img309.png]]</ol><ol start="5" style="list-style-type: decimal;"><li><p>'''<span style="color:#FF0000">Then restart the Linux system to make the configuration effective</span>'''</p></li><li><p>After re -entering the system, please '''blink.pydo not ask me again'''at the interface below, and then determine whether the standard folder should be updated as Chinese based on your preference</p></li>
root@orangepi[[File:~pi3b-img303.png]]</wiringOPol><ol start="7" style="list-Pythonstyle-type: decimal;"><li>Then you can see that the desktop is displayed as Chinese</examples'''# python3 blink.py'''li>
[[File:pi3b-img304.png]]</ol><span idol start="pin-spi8" style="list-teststyle-1type: decimal;"><li>Then open the Fcitx5 configuration program</spanli>=== 40pin SPI test ===
# From the schematic diagram of the 40pin interface, the SPI available for Orange Pi 3B is spi3[[File:pi3b-img310.png]]</ol><ol start="9" style="list-style-type: decimal;"><li>Then choose to use Pinyin input method</li>
[[File:pi3b-img264.png|577x193px]]<div class="figure">
'''In the Linux system, the spi3 in 40pin is closed by default, and it needs to be opened manually to use[[File:pi3b-img311.'''png]]
'''Add </div></ol><ol start="10" style="list-style-type: decimal;"><li>The interface after the configuration of the red font part selection is shown below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the spi4.'''click OK</li>
orangepi@orangepi[[File:~$ pi3b-img312.png]]</ol><ol start="11" style="list-style-type: decimal;"><li>Then we can open the '''sudo vim /boot/orangepiEnv.txtGeany'''to test Chinese input method, and the way to open is shown in the figure below</li>
[[File:pi3b-img305.png]]</ol><ol start="12" style="list-style-type: decimal;"><li>After opening '''Geany''overlays=spi3-m0-cs0-spidev', it is still an English input method by default. We can switch into Chinese input methods through the '''Ctrl+Space'''shortcut keys, and then we can enter Chinese</li>
[[File:pi3b-img313.png]]</ol start><span id="2" style="listhow-to-remotely-stylelog-type: decimal;"><li>First check whether there is a '''spidev3.0''' device node in -to-the Linux -linux-system. If it exists, it means that the SPI3 has been set and can be used directly</li-desktop-method"></olspan>
orangepi@orangepi:~$ '''ls /dev/spidev3.0'''== How to remotely log in to the Linux system desktop method ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Ubuntu Gnome Wayland image does not support Nomachine and VNCs introduced here to remotely log in to the desktop.'''</dev/spidev3.0big>|}
<ol startspan id="3" style="list-style-type: decimal;"><li><p>You can then use the spi back function under the '''spidev_test.py''' program in Examples. The '''spidev_test.py''' program needs to specify the following two parameters: </p><ol style="list-stylenomachine-type: lowerremote-alpha;login"><li><p>'''--channel''': Specify the channel number of SPI</p></lispan><li><p>'''--port''': Specify the port number of SPI</p></li></ol></li><li><p>Do not pick up the two pins of the SPI3 MOSI and MISO in short, and run the output result of the spidev_test.py as shown below. You can see that the data of TX and RX are inconsistent</p></li></ol>=== Use nomachine remote login ===
root@orangepi{| class="wikitable" style="background-color:~/wiringOP#ffffdc;width:800px;" |-Python# | <big>'''cd examplesMake sure the Ubuntu or Debian system installed on the development board is a <span style="color:#FF0000">desktop version</span>. In addition, nomachine also provides detailed documents. It is strongly recommended to read this document to be familiar with the use of nomachine. The document links are shown below: '''
root@orangepi'''https:~/wiringOP/knowledgebase.nomachine.com/DT10R00166'''</big>|}{| class="wikitable" style="background-Pythoncolor:#ffffdc;width:800px;" |-| <big>'''Nomachine supports Windows, Mac, Linux, iOS, and Android platforms, so we can remotely log in to control Orange PI development boards through Nomachine on multiple devices. The following demonstrates the Linux system desktop of the Orange PI development board through Nomachine in Windows. For installation methods for other platforms, please refer to the official documentation of Nomachine.'''</examplesbig>|}{| class="wikitable" style="background-color:# ffffdc;width:800px;" |-| <big>'''python3 spidev_testBefore operation, please ensure that the Windwos computer and the development board are in the same local area network, and can log in to the Ubuntu or Debian system that can log in to the development board normally.py \'''</big>|}
<ol style="list-style-type: decimal;"><li><p>First download the nomachine software Linux '''<span style="color:#FF0000">ARM64</span>''' DEB version of the installation package, and then install it in the Linux system of the development board</p><ol style="list-style-channel 3 type: lower-alpha;"><li>Since RK3566 is a SOC of the ARMV8 architecture, the system we use is Ubuntu or Debian, so you need to download '''NoMachine for ARM ARMv8 DEB''' installation package here. The download link is shown below: </li>{| class="wikitable" style="background-port 0color:#ffffdc;width:800px;" |-| <big>'''Note that this download link may change, please recognize the DEB package of the ARMV8/ARM64 version.'''</big>|}{| class="wikitable" style="width:800px;" |-| spi mode[https://www.nomachine.com/download/download&id=112&s=ARM '''https: 0x0//downloads.nomachine.com/download/?id=118&amp;distro=ARM''']|}
max speed[[File: 500000 Hz (500 KHz)pi3b-img314.png]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>In addition, you can also download the installation package to '''NoMachine''' in the '''official tools'''.</li>
Opening device /dev/spidev3[[File:pi3b-img315.0png]]
TX | FF FF FF FF FF FF First enter the '''40 00 00 00 00 95remote login software-Nomachine''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |......@.......…|folder
RX | FF FF FF FF FF FF '''FF FF FF FF FF FF''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF |[[File:pi3b-img316.............….|png]]
<ol start="5" style="list-style-type: decimal;"><li>Then use download the TXD (No. 19 pins in the 40Pin interface) and RXD (No. 21 pins in the 40pin interface) ARM64 version of the DuPont line short connection SPI3. Like sending and receiving data, it means that the SPI3 loop test is normal</li></ol>DEB installation package
root[[File:pi3b-img317.png]]</ol><ol start="3" style="list-style-type: lower-alpha;"><li><p>Then upload the downloaded '''nomachine_x.x.x_x_arm64.deb''' to the Linux system of the development board.</p></li><li><p>Then use the following command to install '''NoMachine''' in the Linux system of the development board</p></li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo dpkg -i nomachine_x.x.x_x_arm64_arm64.deb'''|}</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>Then download the nomachine software Windows version of the installation package, the download address is shown below</wiringOPli>{| class="wikitable" style="background-Pythoncolor:# ffffdc;width:800px;" |-| <big>'''Note that this download link may change.'''</big>|}{| class="wikitable" style="width:800px;" |-| '''cd exampleshttps://downloads.nomachine.com/download/?id=9'''|}
root@orangepi[[File:~pi3b-img318.png]]</wiringOPol><ol start="3" style="list-style-Pythontype: decimal;"><li><p>Then install nomachine in Windows. '''Please restart the computer after installation'''</examples# p></li><li><p>Then open '''python3 spidev_test.py \NoMachine'''in Window</p></li>
'''[[File:pi3b-img319.png]]</ol><ol start="5" style="list-channel 3 style--port 0'''type: decimal;"><li>After Nomachine starts, it will automatically scan other devices installed in the local area network. After entering the main interface of Nomachine, you can see that the development board is already in the connected device list, and then click the location shown in the red box below in the figure below. Start log in to the Linux system desktop of the development board</li>
spi mode[[File: 0x0pi3b-img320.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then click '''OK'''</li>
max speed[[File: 500000 Hz (500 KHz)pi3b-img321.png]]</ol><ol start="7" style="list-style-type: decimal;"><li>Then enter the username and password of the Linux system in the corresponding position in the figure below, and then click '''OK''' to start logging in</li>
Opening device /dev/spidev3.0<div class="figure">
TX | FF FF FF FF FF FF '''40 00 00 00 00 95''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |[[File:pi3b-img322......@.......…|png]]
RX | FF FF FF FF FF FF '''40 00 00 00 00 95''' FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |</div></ol><ol start="8" style="list-style-type: decimal;"><li><p>Then click OK in the next interface</p></li><li><p>Finally, you can see the desktop of the development board Linux system</p><p>[[File:pi3b-img323......@.......…|png]]</p></li></ol>
<span id="pinuse-i2cvnc-testremote-1login"></span>=== 40pin I2C test ===
<ol start="5" style="list-style-type: decimal;"><li>As can be seen from the table below, the I2C available for Orange Pi 3B is I2C2, I2C3, and I2C4 a total of three groups of I2C bus</li></ol>= Use VNC remote login ===
[[File{| class="wikitable" style="background-color:#ffffdc;width:pi3b800px;" |-img266| <big>'''Before operation, please ensure that the Windwos computer and the development board are in the same local area network, and you can log in to the Ubuntu or Debian system of the development board normally.png|576x160px]]'''
'''It can be seen from the above table that I2C4_M0 and SPI3_M0 are pins<span style="color:#FF0000">Ubuntu 20. The two cannot be opened at the same time04 tests many problems with VNC, please do not use this method. I2C3_M0 and UART3_M0 are also reused. The two cannot be opened at the same time</span>'''</big>|}
# First run the '''set_vnc.sh''In the Linux system, the I2C in 40Pin is closed by default' script settings, and it needs '''<span style="color:#FF0000">remember to be opened manually to use.add Sudo permissions</span>'''
::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''Add the configuration of the red font part below to the/boot/orangepiEnv.txt, and then restart the Linux system to open the I2C2, i2C3, and I2C4 at the same time. If you only need to open one, then fill in onesudo set_vnc.sh'''
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnvYou will require a password to access your desktops.txt'''
'''overlays=i2c2-m1 i2c3-m0 i2c4-m0'''
Password: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''<ol start="6" span style="list-style-typecolor: decimal;#FF0000"><li>After starting #Set the Linux systemVNC password here, first confirm the I2C device node under/dev.</li>8 -bit characters</olspan>'''
orangepi@orangepiVerify:~# &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''ls <span style="color:#FF0000">#Set the VNC password here, 8 -bit characters</dev/i2c-*span>'''
/dev/i2c-0 '''/dev/i2cWould you like to enter a view-2''' '''/devonly password (y/i2c-3''' n)? '''<span style="color:#FF0000">n</dev/i2c-4span>''' /dev/i2c-6
<ol start="7" style="list-style-typexauth: decimal;"><li>Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example of the DS1307 RTC module.<file /li><root/ol>.Xauthority does not exist
{| class="wikitable"
|-
|
|i2c2-m1
|i2c3-m0
|i2c4-m0
|-
| Sda Pin
|Corresponding to No. 3 pin
|Corresponding to No. 27 pin
|Corresponding to No. 19 pin
|-
| Sck Pin
|Corresponding to No. 5 pin
|Corresponding to No. 28 pin
|Corresponding to No. 23 pin
|-
| Vcc Pin
|Corresponding to No. 1 pin
|Corresponding to No. 1 pin
|Corresponding to No. 1 pin
|-
| Gnd Pin
|Corresponding to No. 6 pin
|Corresponding to No. 6 pin
|Corresponding to No. 6 pin
|}
[[FileNew 'X' desktop is orangepi3b:pi3b-img273.png|180x153px]]1
<ol start="8" style="list-style-type: decimal;">
<li>Then use the '''i2cdetect -y''' command If the address of the connected I2C device can be detected, it means that the I2C can be used normally</li></ol>
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 commandCreating default startup script /root/.vnc/xstartup
orangepi@orangepi:~$ sudo i2cdetect -y 3 #i2c3 commandStarting applications specified in /root/.vnc/xstartup
orangepi@orangepiLog file is /root/.vnc/orangepi3b:~$ sudo i2cdetect -y 4 #i2c4 command1.log
<div class="figure">
[[File:pi3b-img274.png|464x174px|V@(61L~0})Q`8VLBCAYEP[2]]Killing Xtightvnc process ID 3047
</div>
<ol start="9" style="list-style-type: decimal;">
<li>You can then run the time of the ds '''ds1307.py''' test program in '''examples''' to read the RTC time</li></ol>
root@orangepi:~/wiringOP-Python# '''cd examples'New 'X'desktop is orangepi3b:1 
Starting applications specified in /root@orangepi:~/wiringOP-Python.vnc/examples# '''python3 ds1307.py --device \'''xstartup
'''&quot;Log file is /devroot/i2c-4&quot;'''.vnc/orangepi3b:1.log|}
Thu 2023<ol start="2" style="list-01style-05 14type:57decimal;"><li><p>The steps of using MobaxTerm software to connect the development board Linux system desktop are shown below:55</p><ol style="list-style-type: lower-alpha;"><li>First click Session, then select VNC, then fill in the IP address and port of the development board, and finally click OK to confirm</li>
Thu 2023-01-05 14:57:56<div class="figure">
Thu 2023-01[[File:pi3b-05 14:57:57img324.png]]
^C</div></ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then enter the password of the previously set VNC</li>
exit[[File:pi3b-img325.png]]</ol><ol start="3" style="list-style-type: lower-alpha;"><li><p>The interface after the login is shown as shown in the figure below, and then the desktop of the Linux system can be remotely operated</p><p>[[File:pi3b-img326.png]]</p></li></ol></li></ol>
<span id="pinssome-uartprogramming-test.language-tests-supported-by-linux-system"></span>=== 40pin's UART test ===
# As can be seen from the table below, the UART available for Orange Pi 3B is UART3, UART7 and UART9. There are three sets of UART bus== Some programming language tests supported by Linux system ==
[[File:pi3b<span id="debian-img268.png|575x160px]]bullseye-system"></span>=== Debian Bullseye system ===
'''As <ol style="list-style-type: decimal;"><li><p>Debian Bullseye is equipped with a gcc compilation tool chain by default, which can be seen from directly compile the C language program in the above table, I2C3_M0 and UART3_M0 are reused by pins, and Linux system of the two cannot be opened at development board</p><ol style="list-style-type: lower-alpha;"><li>The version of the same timegcc is shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''gcc --version'''
'''In the Linux system, the UART in 40pin is closed by default, and it needs to be opened manually to usegcc (Debian 10.'''2.1-6) 10.2.1 20210110
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the UART3, UART7Copyright (C) 2020 Free Software Foundation, and UART9 at the same timeInc. If you only need to open one, you can fill in one'''
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnvThis is free software; see the source for copying conditions.txt'''There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Write C language of '''Hello_world.c'''overlaysprogram</li>{| class="wikitable" style=uart3"width:800px;" |-m0 uart7-m2 uart9-m2| orangepi@orangepi:~$ '''vim hello_world.c'''
<ol start="2" style="list-style-type: decimal;">
<li>After entering the Linux system, first confirm whether there is a device node corresponding to UART under/dev</li></ol>
orangepi@orangepi:~<p># '''ls include &lt;stdio.h&gt;</dev/ttyS*'''p>
/dev/ttyS1 '''/dev'''/'''ttyS3 /dev/ttyS7 /dev/ttyS9'''int main(void)
<ol start="3" style="list-style-type: decimal;"><li>Then start testing the UART interface, and first use the RX and TX of the UART interface to be tested by DuPont</li></ol>{
{| class="wikitable"|-||uart3|uart7|uart9|-| Tx Pin|Corresponding to the 28 pin|Corresponding to the 16 pin|Corresponding to the 29 pin|-| Rx Pin|Corresponding to the 27 pin|Corresponding to the 15 pin|Corresponding to the 7 pin|}:printf(&quot;Hello World!\n&quot;);
<ol start="4" style="list-style-type: decimal;">
<li><p>Use the '''serialTest.py''' program in Examples to test the loop function of the serial port. If you can see the printing below, it means that the serial communication is normal</p>
<ol style="list-style-type: lower-alpha;">
<li>Test UART3</li></ol>
</li></ol>
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''return 0;
}|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Then compile and run '''hello_world.c'''&quot;</dev/ttyS3&quotli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
Outorangepi@orangepi: 0: -&gt; 0~$ '''./hello_world'''
OutHello World!|}</ol></li></ol><ol start="2" style="list-style-type: 1decimal;"><li><p>Debian BullSeye Default with Python3</p><ol style="list-style-type: lower-&gtalpha; 1"><li>The specific version of Python is shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''python3'''
Out'''Python 3.9.2''' (default, Feb 28 2021, 17: 203: -&gt; 244)
Out: 3: -&gt; 3[GCC 10.2.1 20210110] on linux
Out: 4:^C exitType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt;
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Test UART7'''hello_world.py''' program in Python language</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.py'''
rootprint('Hello World!')|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>The results of running '''hello_world.py''' are shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~/wiringOP-Python/examples# $ '''python3 serialTesthello_world.py --device \'''
Hello World!|}</ol></li></ol><ol start="3" style="list-style-type: decimal;"><li><p>Debian Bullseye's compilation tool and operating environment that is not installed in Java by default</p><ol style="list-style-type: lower-alpha;"><li>You can use the following command to install OpenJDK. The latest version in Debian Bullseye is openjdk-17</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''&quot|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After installation, you can check the version of Java</devli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''java --version'''|}</ttyS7&quotol><ol start="3" style="list-style-type: lower-alpha;"><li>Edit the '''hello_world.java''' of the Jave version</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.java'''
Out: 0: -&gt; 0public class hello_world
Out: 1: -&gt; 1{
Out: 2: -&gt; 2public static void main(String[] args)
Out: 3: -&gt; 3{
Out: 4:^CSystem.out.println(&quot;Hello World!&quot;);
exit:}
}|}</ol><ol start="34" style="list-style-type: lower-alpha;"><li>Test UART9Then compile and run '''hello_world.java'''</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''javac hello_world.java'''
rootorangepi@orangepi:~/wiringOP-Python/examples# $ '''python3 serialTest.py --device \java hello_world'''
'''&quot;Hello World!|}</ol></devli></ttyS9&quot;'''ol> Out: 0: <span id="ubuntu-focal-&gt; 0system"></span>
Out: 1: -&gt; 1=== Ubuntu Focal system ===
Out<ol style="list-style-type: 2decimal;"><li><p>Ubuntu Focal has the GCC compilation tool chain by default, which can compile the C language program directly in the Linux system of the development board.</p><ol style="list-style-type: lower-&gtalpha; 2"><li>The version of the gcc is shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''gcc --version'''
Out: 3: gcc (Ubuntu 9.4.0-&gt; 31ubuntu1~20.04.1) 9.4.0
Out: 4:^Copyright (C) 2019 Free Software Foundation, Inc.
exitThis is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.|}<span id/ol><ol start="hardware-watch-the2" style="list-doorstyle-dogtype: lower-testalpha;"><li>'''hello_world.c''' program to write C language</spanli== Hardware watch the door dog test {| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.c'''
The WatchDog_test program is pre -installed in the Linux system released by Orange PI, which can be tested directly<p>#include &lt;stdio.h&gt;</p>
The method of running the WatchDog_test program is shown below:
<ol style="list-style-type: lower-alpha;"><li><p>The second parameter 10 indicates the counting time of the door. If there is no dog feeding in this time, the system will restart.</p></li><li><p>We can feed the dog by pressing any keys on the keyboard int main(except ESCvoid). After the dog is fed, the program will print a line of Keep Alive to indicate that the dog is successful</p></li></ol>
orangepi@orangepi:~$ '''sudo watchdog_test 10'''{
open success:printf(&quot;Hello World!\n&quot;);
options is 33152,identity is sunxi-wdt
put_usr :return,if 0,success:0;
The old reset time is}|}</ol><ol start="3" style="list-style-type: 16lower-alpha;"><li>Then compile and run '''hello_world.c'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
return ENOTTY,if -1,successorangepi@orangepi:0~$ '''./hello_world'''
return ENOTTY,if Hello World!|}</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li><p>Ubuntu Focal defaults to install Python3</p><ol style="list-style-type: lower-1,successalpha;"><li>Python3 specific version is shown below</li>{| class="wikitable" style="width:0800px;" |-| put_user return,if 0,successorangepi@orangepi:0~$ '''python3'''
put_usr returnPython 3.8.10 (default,if 0Nov 14 2022,success12:059:47)
keep alive[GCC 9.4.0] on linux
keep aliveType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
keep alive&gt;&gt;&gt;|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>'''hello_world.py''' program in Python language</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.py'''
print('Hello World!')|}</ol><span idol start="check-the-serial3" style="list-numberstyle-oftype: lower-the-rk3566-chipalpha;"><li>The results of running '''hello_world.py''' are shown below</spanli>{| class="wikitable" style= Check the serial number of the RK3566 chip =="width:800px;" |-| orangepi@orangepi:~$ '''python3 hello_world.py'''
The commands Hello World!|}</ol></li></ol><ol start="3" style="list-style-type: decimal;"><li><p>Ubuntu Focal's compilation tool and operating environment without the installation of Java default</p><ol style="list-style-type: lower-alpha;"><li>You can use the RK3566 chip serial number are shown below. The serial number of each chip is differentfollowing command to install '''openjdk-17'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After installation, so you can use check the serial number to distinguish multiple development boards.version of Java</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''java --version'''
orangepi@orangepi:~$ '''cat_serialopenjdk 17.sh'''0.2 2022-01-18
Serial : '''8fa18eaf489041f0'''OpenJDK Runtime Environment (build 17.0.2+8-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing)|}<span id/ol><ol start="3" style="thelist-methodstyle-of-downloading-and-installingtype: lower-alpha;"><li>Edit the-balenaetcher-'''hello_world.java''' of Jave version-of-arm64"></spanli>{| class="wikitable" style= The method of downloading and installing the balenaEtcher version of arm64 =="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.java'''
<ol style="list-style-type: decimal;"><li><p>The download address of Balenaetcher ARM64 version is: </p><ol style="list-style-type: lower-alpha;"><li>The download address of the Deb installation package is shown below, and it needs to be installed to use</li></ol></li></ol>public class hello_world
https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balena-etcher-electron_1.7.9+5945ab1f_arm64.deb{
<ol start="2" style="list-style-type: lower-alpha;"><li>The download address of the Appimage version that does not need to be installed is shown below: </li></ol>public static void main(String[] args)
https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balenaEtcher-1.7.9+5945ab1f-arm64.AppImage{
<div class="figure">::System.out.println(&quot;Hello World!&quot;);
[[File:pi3b-img275.png|527x211px|IMG_256]]}
}|}</divol><ol start="24" style="list-style-type: decimallower-alpha;"><li><p>How to install Then compile and use the deb version of Balenaetcher: run '''hello_world.java'''</pli><ol {| class="wikitable" style="list-style-typewidth: lower-alpha800px;"><li>deb version of Balenaetcher installation commands as shown below|-| orangepi@orangepi: </li></ol></li></ol>~$ '''javac hello_world.java'''
orangepi@orangepi:~$ '''sudo apt install -y \java hello_world'''
'''-Hello World!|}</ol></li></ol><span id="ubuntu-fixjammy-broken .system"></balena-etcher-electron_1.7.9+5945ab1f_arm64.deb'''span>
<ol start="2" style="list-style-type: lower-alpha;"><li>After the deb version of Balenaetcher is installed, it can be opened in the Application</li></ol>= Ubuntu jammy system ===
<div ol style="list-style-type: decimal;"><li><p>Ubuntu Jammy is installed with the GCC compilation tool chain by default, which can directly compile the C language program in the Linux system of the development board</p><ol style="list-style-type: lower-alpha;"><li>The version of the gcc is shown below</li>{| class="figurewikitable" style="width:800px;">|-| orangepi@orangepi:~$ '''gcc --version'''
[[File:pi3bgcc (Ubuntu 11.2.0-img8919ubuntu1) '''11.2.png|507x249px|IMG_256]]0'''
</div><ol start="3" style="list-style-type: lower-alpha;"><li>The interface after Balenaetcher is opened is shown below: </li></ol>Copyright (C) 2021 Free Software Foundation, Inc.
<div class="figure"> [[File:pi3b-img276.png|429x263px|IMG_256]] </div><ol start="3" style="list-style-type: decimalThis is free software;"><li><p>How to use see the AppImage version of balenaEtcher: </p><ol style="list-style-type: lower-alpha;"><li>First add permissions to Balenaetcher</li></ol></li></ol> orangepi@orangepi:~/Desktop$ '''chmod +x balenaEtcher-1.7.9+5945ab1f-arm64source for copying conditions.AppImage'''There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select Write the AppImage version balenaEtcher right -click the mouse, and then click Execute to open balenaEtcher'''hello_world.c''' program of c language</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.c'''
[[File:pi3b-img277<p>#include &lt;stdio.png|145x118px]]h&gt;</p>
<span id="the-installation-method-of-the-bt-panel-linux-panel"></span>
== The installation method of the Bt-Panel Linux panel ==
'''Bt-Panel Linux panel is a server management software that improves operation and maintenance efficiency. It supports more than 100 server management functions such as one -click LAMP/LNMP/cluster/monitoring/website/FTP/database/Java int main(excerpted from the [https://www.bt.cn/new/index.html official website of the Bt-Panel]void)'''
# First of all, the size of the'''/tmp''' space is needed. After setting, you need to '''restart the Linux system of the development board''', and the command is shown below: {
orangepi@orangepi:~$ '''sudo sed -i 's/nosuid/printf(&ampquot;Hello World!\n&quot;);,size=2G/' /etc/fstab'''
orangepi@orangepi:~$ '''sudo reboot'''
<ol start="2" style="list-style-type: decimalreturn 0;"><li>After restarting, you can see that the size of the'''/tmp''' space has become 2G.</li></ol>
}|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Then compile and run '''hello_world.c'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''df gcc -h | grep &quot;/tmp&quot;o hello_world hello_world.c'''
tmpfs 2.0G 12K orangepi@orangepi:~$ '''2.0G/hello_world''' 1% /tmp
Hello World!|}</ol start="3" style="list-style-type: decimal;"><li>Then enter the following command in the Linux system to start the installation of the Bt-Panel</li></ol>
<ol start="2" style="list-style-type: decimal;"><li><p>Ubuntu jammy is installed with Python3 by default</p><ol style="list-style-type: lower-alpha;"><li>Python3 specific version is shown below</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo install_bt_panel.shpython3'''
<ol start="4" style="list-style-type: decimal;"><li>Then the pagoda installation program reminds whether to install the Python '''Bt-Panel3.10.4''' to the'''/www''' folder(main, Apr 2 2022, and enter y at this time</li></ol>09:04:19) [GCC 11.2.0] on linux
+----------------------------------------------------------------------Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt;| Bt}</ol><ol start="2" style="list-style-type: lower-WebPanel FOR CentOSalpha;"><li>Edit '''hello_world.py''' program in Python language</Ubuntu/Debianli>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.py'''
+-------------------------------------------------------------------print('Hello World!')|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>The results of running '''hello_world.py''' are shown below</li>{| class="wikitable" style="width:800px;" | Copyright © 2015-2099 BT-SOFT(http| orangepi@orangepi://www~$ '''python3 hello_world.bt.cn) All rights reserved. +----------------------------------------------------------------------py'''
Hello World!| The WebPanel URL will be http}</ol></li></ol><ol start="3" style="list-style-type:decimal;"><li><p>Ubuntu jammy defaults to compile tools and operating environments that are not installed in Java</p><ol style="list-style-type: lower-alpha;"><li>You can use the following command to install openjdk-18</SERVER_IPli>{| class="wikitable" style="width:8888 when installed.800px;" |-| orangepi@orangepi:~$ '''sudo apt install -y openjdk-18-jdk'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>After installation, you can check the version of Java</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''java --version'''
+-------------------------------------------------------------------openjdk 18-ea 2022-03-22
Do you want to install BtOpenJDK Runtime Environment (build 18-ea+36-Ubuntu-Panel to the /www directory now?(y/n1): '''y'''
OpenJDK 64-Bit Server VM (build 18-ea+36-Ubuntu-1, mixed mode, sharing)|}</ol><ol start="53" style="list-style-type: decimallower-alpha;"><li>Then you have to wait patiently. When you see the printing information below Edit the terminal output, it means that the pagoda has been installed'''hello_world. The entire installation process takes about 34 minutes. There may be some differences according to java''' of the difference in network speedJave version</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello_world.java'''
[[File:pi3b-img278.png|576x233px]]public class hello_world
<ol start="6" style="list-style-type: decimal;"><li><p>At this time, enter the '''panel address''' displayed above in the browser to open the login interface of the pagoda Linux panel, and then enter the '''username''' and '''password''' displayed in the corresponding position to log in to the Bt-Panel<br />[[File:pi3b-img279.png|575x281px]]</p></li><li><p>After successfully logging in to the pagoda, the following welcome interface will pop up. First, please take the intermediate user notice to read to the bottom, and then you can choose &quot;I have agreed and read&quot; User Agreement &quot;, and then click&quot; Enter the panel &quot; You can enter the Bt-Panel</p></li></ol>{
:public static void main(String[[File:pi3b-img280.png|575x317px]]args)
<ol start="8" style="list-style-type: decimal;"><li>After entering the Bt-Panel, you will first prompt that you need to bind the account of the Bt-Panel official website. If you do n’t have an account, you can go to the pagoda's official website ('''https://www.bt.cn''') to register one.</li></ol>{
[[File:pi3b-img281:System.out.png|576x300px]]println(&quot;Hello World!&quot;);
<ol start="9" style="list-style-type: decimal;"><li>The final display interface is shown in the figure below. You can intuitively see some status information of the development board Linux system, such as load state, CPU usage, memory usage and storage space usage</li></ol>}
[[File}|}</ol><ol start="4" style="list-style-type:pi3blower-img282alpha;"><li>Then compile and run '''hello_world.pngjava'''</li>{|575x306px]]class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''javac hello_world.java'''
<ol start="10" style="list-style-typeorangepi@orangepi: decimal;"><li>More functions of the Bt-Panel can refer to the following information to explore by yourself</li></ol>~$ '''java hello_world'''
Manual: [http:Hello World!|}</ol></docs.bt.cn '''http:li></ol><span id="qt-installation-method"></docs.bt.cn''']span>
Forum address: [https://www.bt.cn/bbs '''https://www.bt.cn/bbs''']== QT installation method ==
GitHub Link: '''https://github.com/aaPanel/BaoTa'''# Use the following script to install QT5 and QT Creator
<span id::{| class="setwikitable" style="width:800px;" |-the-chinese-environment-and-install-chinese-input-method"></span>== Set the Chinese environment and install Chinese input method ==| orangepi@orangepi:~$ '''install_qt.sh'''|}
<ol start="2" style="list-style-type: decimal;"><li><p>The QT version number will be automatically printed after installation</p><ol style="list-style-type: lower-alpha;"><li>Ubuntu20.04 comes with QT version '''5.12.8'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ ''Note that before installing the Chinese input method, please make sure that the Linux system used in the development board is the desktop version system'install_qt.sh'''
<span id="debian-system-installation-method"></span>=== Debian system installation method ===......
<ol style="list-style-type: decimal;"><li><p>First set the default '''locale''' as Chinese</p><ol style="list-style-type: lower-alpha;"><li>Enter the command below to start configured '''locale'''</li></ol></li></ol>QMake version 3.1
Using Qt version '''<span style="color:#FF0000">5.12.8</span>''' in /usr/lib/aarch64-linux-gnu|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Ubuntu22.04 comes with QT version '''5.15.3'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo dpkg-reconfigure localesinstall_qt.sh'''
<ol start="2" style="list-style-type: lower-alpha;"><li>Then select '''zh_CN.UTF-8 UTF-8''' in the pop-up interface (to move up and down through the upper and lower direction buttons on the keyboard, select it through the space key, and finally move the cursor to '''&lt;OK&gt;''' through the TAB key, then press the ENTER key )</li></ol>.....
[[File:pi3b-img283QMake version 3.png|575x296px]]1
Using Qt version '''<span style="color:#FF0000">5.15.3</span>''' in /usr/lib/aarch64-linux-gnu
|}
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then set the default Debian11 comes with QT version '''locale5.15.2''' as </li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''zh_CNinstall_qt.UTF-8sh'''</li></ol>
[[File:pi3b-img284.png|575x160px]].....
QMake version 3.1
 
Using Qt version '''<span style="color:#FF0000">5.15.2</span>''' in /usr/lib/aarch64-linux-gnu
|}
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>After exiting the interface, the Debian12 comes with QT version '''locale5.15.8''' settings will be started. The output displayed by the command line is shown below</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''install_qt.sh'''
orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''......
Generating locales (this might take a while)..QMake version 3.1
en_USUsing Qt version '''<span style="color:#FF0000">5.UTF15.8</span>''' in /usr/lib/aarch64-8... donelinux-gnu|}</ol></li></ol><ol start="3" style="list-style-type: decimal;"><li>Then you can see the QT Creator launch icon in '''Applications'''</li>
zh_CN.UTF[[File:pi3b-8..img327. donepng]]
Generation completeQT Creator can also be opened using the following command{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''qtcreator'''|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''During the startup of QT and QT applications, if the following error is displayed, ignore it.This error has no impact on application running.'''
<ol start="2" style="list-style-type: decimal;">
<li>Then open '''Input Method'''</li></ol>
[[File'''libGL error:pi3b-img285.png|575x361px]]failed to create dri screen'''
<ol start="3" style="list-style-type: decimal;"><li>Then select '''OKlibGL error: failed to load driver: rockchip'''</li></ol>
[[File'''libGL error:pi3b-img286.png|295x212px]]failed to create dri screen'''
'''libGL error: failed to load driver: rockchip'''</big>
|}
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Yes'''The interface after QT Creator is opened is as follows</li></ol>
[[File:pi3b-img287img328.png|303x192px]]</ol><ol start="5" style="list-style-type: decimal;"><li><p>The QT Creator version is shown below</p><ol style="list-style-type: lower-alpha;"><li>The default version of QT Creator in '''Ubuntu20.04''' is as follows</li>
[[File:pi3b-img329.png]]</ol><ol start="52" style="list-style-type: decimallower-alpha;"><li>Then select The default version of QT Creator in '''fcitxUbuntu22.04'''is as follows</li> [[File:pi3b-img330.png]]</ol><ol start="3" style="list-style-type: lower-alpha;"><li>The default version of QT Creator in '''Debian11''' is as follows</li>
[[File:pi3b-img288img331.png|307x220px]]</ol><ol start="4" style="list-style-type: lower-alpha;"><li>The default version of QT Creator in '''Debian12''' is as follows</li>
[[File:pi3b-img332.png]]
</ol>
</li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then select set QT</p><ol style="list-style-type: lower-alpha;"><li>First open '''Help'''-&gt;'''OKAbout Plugins...'''</li> [[File:pi3b-img333.png]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then remove the check box for '''ClangCodeModel'''</li>
[[File:pi3b-img289img334.png|305x216px]]</ol><ol start="3" style="list-style-type: lower-alpha;"><li><p>'''<span style="color:#FF0000">Restart QT Creator after the Settings are complete</span>'''</p></li><li><p>Then make sure that QT Creator uses the GCC compiler, if the default is Clang, change it to GCC</p></li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Debian12 Please skip this step.'''</big>|}
[[File:pi3b-img335.png]]
 
[[File:pi3b-img336.png]]
</ol>
</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>'''Then restart the Linux system to make the configuration effective'''</p></li><li><p>Then You can then open '''Fcitx configuration'''</p>a sample code</li></ol>
[[File:pi3b-img290img337.png|575x376px]]</ol><ol start="8" style="list-style-type: decimal;"><li>Clicking on the example code will automatically open the corresponding instruction document, you can carefully read the instructions</li>
[[File:pi3b-img338.png]]
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then click the + of the position shown in the figure below'''Configure Project'''</li></ol> [[File:pi3b-img291.png|280x187px]]
[[File:pi3b-img339.png]]
</ol>
<ol start="10" style="list-style-type: decimal;">
<li>Then search '''Google Pinyin''' click the green triangle in the lower left corner to compile and click '''OK'''run the sample code</li></ol>
<div class="figure"> [[File:pi3b-img292img340.png|291x196px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-10.jpg未标题-10]] </divol>
<ol start="11" style="list-style-type: decimal;">
<li>Then put '''Google Pinyin''' to After waiting for a period of time, the frontinterface shown in the following figure will pop up, which indicates that QT can compile and run normally</li></ol> [[File:pi3b-img293.png|299x202px]] [[File:pi3b-img294.png|300x202px]]
[[File:pi3b-img341.png]]
</ol>
<ol start="12" style="list-style-type: decimal;">
<li>Then open the Reference documents</li>{| class="wikitable" style="width:800px;" |-| '''Geanyhttps://wiki.qt.io/Install_Qt_5_on_Ubuntu''' editor to test the Chinese input method</li></ol>
[[File'''https:pi3b-img295//download.png|349x212px]]qt.io/archive/qtcreator'''
'''https://download.qt.io/archive/qt'''|}</ol start="13" style><span id="listros-styleinstallation-type: decimal;method"><li>The Chinese input method test is shown below</li></olspan>
[[File:pi3b-img296.png|575x325px]]== ROS Installation Method ==
<ol startspan id="14" style="listhow-to-install-ros-1-noetic-on-styleubuntu-type: decimal;20.04"><li><p>You can switch the Chinese and English input method through the '''Ctrl+Space''' shortcut</p></lispan><li><p>If the entire system is required as Chinese, the variables in '''/etc/default/locale''' can be set === How to '''zh_CNinstall ROS 1 Noetic on Ubuntu 20.UTF-8'''</p></li></ol>04 ===
orangepi@orangepi:~$ # The current active version of ROS 1 is as follows, the recommended version is '''sudo vim /etc/default/localeNoetic Ninjemys'''
# ::[[File generated by update:pi3b-localeimg342.png|800px]]
LC_MESSAGES='''zh_CN::[[File:pi3b-img343.UTF-8'''png|800px]]
LANG::{| class="wikitable" style="width:800px;" |-| [http://docs.ros.org/ '''zh_CNhttp://docs.UTF-8ros.org''']
LANGUAGE='''zh_CNhttps://wiki.UTF-8ros.org/Distributions'''|}
<ol start="162" style="list-style-type: decimal;"><li>Then The official installation document link of ROS 1 '''restart Noetic Ninjemys''' is as follows:</li>{| class="wikitable" style="width:800px;" |-| [http://wiki.ros.org/noetic/Installation/Ubuntu '''http://wiki.ros.org/noetic/Installation/Ubuntu''']|}</ol><ol start="3" style="list-style-type: decimal;"><li>In the official installation document of ROS '''Noetic Ninjemys''', Ubuntu recommends using Ubuntu20.04, so please make sure that the systemused by the development board is ''' to see the <span style="color:#FF0000">Ubuntu20.04 desktop system displayed as Chinese</lispan>'''</olli>{| class="wikitable" style="width:800px;" |-| http://wiki.ros.org/noetic/Installation|}
[[File:pi3b-img297img344.png|576x356px]]</ol><ol start="4" style="list-style-type: decimal;"><li>Then use the script below to install ros1</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi3b:~$ '''install_ros.sh ros1'''|}</ol><ol start="5" style="list-style-type: decimal;"><li>Before using the ROS tool, you first need to initialize rosdep, and then you can quickly install some system dependencies and some core components in ROS when compiling the source code</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that running the following command needs to ensure that the development board can access github normally, otherwise an error will be reported due to network problems.'''
<span id="the-installation-method-of-ubuntu-20.04-system"></span>
=== The installation method of Ubuntu 20.04 system ===
# First open '''Language SupportThe install_ros.sh script will try to modify /etc/hosts and automatically run the following commands. However, this method cannot guarantee normal access to github every time. If the following error is displayed after installing ros1 in install_ros.sh, please find other ways to allow the Linux system of the development board to access github normally, and then manually run the following Order.'''
[[File:pi3b-img298.png|575x351px]]
<ol start="2" style="list-style-type: decimal;"><li>Then find '''Chinese (China)https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml''' option</li></ol>
[[File'''Hit https:pi3b-img299//raw.png|318x311px]]githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml'''
<ol start="3" style="list-style-type: decimal;"><li>Then use the left mouse button to select '''Chinese (China)ERROR: error loading sources list:''' and hold it down, and then drag it up to the beginning. The display is shown below: </li></ol>
[[File:pi3b'''The read operation timed out'''</big>|}{| class="wikitable" style="width:800px;" |-img300| orangepi@orangepi:~$ '''source /opt/ros/noetic/setup.png|324x320px]]bash'''
orangepi@orangepi:~$ '''Note that this step is not easy to drag, please try more patiently.sudo rosdep init'''
<ol start="4" style="Wrote /etc/ros/rosdep/sources.list.d/20-style-type: decimal;"><li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li></ol>default.list
[[FileRecommended:pi3b-img301.png|321x316px]]please run
<ol start="5" style="list-style-type: decimal;">
<li>Then set the '''Keyboard input method system''' to '''fcitx'''</li></ol>
[[File:pi3b-img302.png|327x320px]]:rosdep update
<ol start="6" style="list-style-typeorangepi@orangepi: decimal;"><li><p>~$ '''hen restart the Linux system to make the configuration effectiverosdep update'''</p></li><li><p>After re -entering the system, please do '''not ask me again''' at the interface below, and then determine whether the standard folder should be updated as Chinese based on your preference.</p></li></ol>
[[File:pi3b-img303reading in sources list data from /etc/ros/rosdep/sources.png|303x247px]]list.d
<ol start="8" style="list-style-typeHit https: decimal;"><li>Then you can see that the desktop is displayed as Chinese</li></ol>raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
[[FileHit https:pi3b-img304//raw.png|575x383px]]githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
<ol start="9" style="list-style-typeHit https: decimal;"><li>Then we can open the '''Geany''' to test Chinese input method , and the way to open is shown in the figure below</li></ol>raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
[[FileHit https:pi3b-img305//raw.png|576x292px]]githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
<ol start="10" style="list-style-typeHit https: decimal;"><li>After opening '''Geany''', the default is an English input method//raw.githubusercontent. We can switch into Chinese input method through the '''Ctrl+Space''' shortcut keys, and then we can enter Chinese<com/li><ros/ol>rosdistro/master/releases/fuerte.yaml
[[FileQuery rosdistro index https:pi3b//raw.githubusercontent.com/ros/rosdistro/master/index-img306v4.png|575x308px]]yaml
<span id="the-installation-methodSkip end-of-ubuntu-22.04-system"></span>=== The installation method of ubuntu 22.04 system ===life distro &quot;ardent&quot;
# First open '''Language Support'''Skip end-of-life distro &quot;bouncy&quot;
[[File:pi3bSkip end-img298.png|575x351px]]of-life distro &quot;crystal&quot;
<ol start="2" style="listSkip end-styleof-type: decimallife distro &quot;dashing&quot;"><li>Then find '''Chinese (China)''' option</li></ol>
[[File:pi3bSkip end-img307.png|335x326px]]of-life distro &quot;eloquent&quot;
<ol start="3" style="list-style-type: decimalAdd distro &quot;foxy&quot;"><li>Then use the left mouse button to select '''Chinese (China)''' and hold it down, and then drag it up to the beginning. The display after dragging is shown in the figure below: </li></ol>
[[File:pi3b-img308.png|337x331px]]Add distro &quot;galactic&quot;
'''Note that this step is not easy to drag, please try more patiently.'''Skip end-of-life distro &quot;groovy&quot;
<ol start="4" style="list-style-type: decimalAdd distro &quot;humble&quot;"><li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li></ol>
[[File:pi3bSkip end-img309.png|336x330px]]of-life distro &quot;hydro&quot;
<ol start="5" style="listSkip end-styleof-type: decimallife distro &quot;indigo&quot;"><li><p>'''Then restart the Linux system to make the configuration effective'''</p></li><li><p>After re -entering the system, please '''do not ask me again''' at the interface below, and then determine whether the standard folder should be updated as Chinese based on your preference</p></li></ol>
[[File:pi3bSkip end-img303.png|303x247px]]of-life distro &quot;jade&quot;
<ol start="7" style="listSkip end-styleof-type: decimallife distro &quot;kinetic&quot;"><li>Then you can see that the desktop is displayed as Chinese</li></ol>
[[File:pi3bSkip end-img304.png|575x383px]]of-life distro &quot;lunar&quot;
<ol start="8" style="list-style-type: decimalAdd distro &quot;melodic&quot;"><li>Then open the Fcitx5 configuration program</li></ol>
[[File:pi3b-img310.png|575x349px]]Add distro &quot;noetic&quot;
<ol start="9" style="list-style-type: decimalAdd distro &quot;rolling&quot;"><li>Then choose to use Pinyin input method</li></ol>
<div class="figure"> [[File:pi3b-img311updated cache in /home/orangepi/.png|338x267px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-11ros/rosdep/sources.jpg未标题-11]]cache|}</divol><ol start="106" style="list-style-type: decimal;"><li>The interface after <p>Then open a command line terminal window on the selection is shown belowdesktop, and then click OKuse the test_ros.sh script to start a small turtle routine to test whether ROS can be used normally</p></li>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''test_ros.sh'''</p>|}<li><p>After running the '''test_ros.sh''' script, a little turtle as shown in the figure below will pop up</p></olli>
[[File:pi3b-img312.png|366x290px]]<div class="figure">
<ol start="11" style="list[[File:pi3b-style-type: decimal;"><li>Then we can open the '''Geany''' to test Chinese input method, and the way to open is shown in the figure below</li></ol>img345.png]]
[[File</div></ol><ol start="8" style="list-style-type:pi3b-img305.png|576x292px]]decimal;"><li>Then please keep the terminal window just opened at the top</li>
<ol startdiv class="12figure" style="list-style-type: decimal;"><li>After opening '''Geany''', it is still an English input method by default. We can switch into Chinese input methods through the '''Ctrl+Space''' shortcut keys, and then we can enter Chinese</li></ol>
[[File:pi3b-img313img346.png|576x408px]]
<span id/div></ol><ol start="9" style="howlist-tostyle-remotely-log-in-to-the-linux-system-desktop-methodtype: decimal;"></spanli>== How At this time, press the direction keys on the keyboard to remotely log in control the little turtle to the Linux system desktop method ==move up, down, left, and right</li>
'''Ubuntu Gnome Wayland image does not support Nomachine and VNCs introduced here to remotely log in [[File:pi3b-img347.png]]</ol><span id="how-to the desktop-install-ros-2-galactic-on-ubuntu-20.'''04"></span>
<span id="use-nomachine-remote-login"></span>=== Use nomachine remote login How to install ROS 2 Galactic on Ubuntu 20.04 ===
# The current active version of ROS 2 is as follows, the recommended version is '''Make sure the Ubuntu or Debian system installed on the development board is a desktop version. In addition, nomachine also provides detailed documents. It is strongly recommended to read this document to be familiar with the use of nomachine. The document links are shown below: Galactic Geochelone'''
'''https://knowledgebase.nomachine:[[File:pi3b-img348.com/DT10R00166'''png]]
'''Nomachine supports Windows, Mac, Linux, iOS, and Android platforms, so we can remotely log in to control Orange PI development boards through Nomachine on multiple devices::[[File:pi3b-img349. The following demonstrates the Linux system desktop of the Orange PI development board through Nomachine in Windows. For installation methods for other platforms, please refer to the official documentation of Nomachine.'''png]]
::{| class="wikitable" style="width:800px;" |-| [http://docs.ros.org/ '''Before operation, please ensure that the Windwos computer and the development board are in the same local area network, and can log in to the Ubuntu or Debian system that can log in to the development board normallyhttp://docs.ros.org''']
<ol style="list-style-type: decimal;"><li><p>First download the nomachine software Linux '''ARM64''' DEB version of the installation package, and then install it in the Linux system of the development board<http://docs.ros.org/en/galactic/p><ol style="list-style-type: lower-alpha;"><li>Since RK3566 is a SOC of the ARMV8 architecture, the system we use is Ubuntu or Debian, so you need to download '''NoMachine for ARM ARMv8 DEBReleases.html''' installation package here. The download link is shown below: </li></ol></li></ol>|}
<ol start="2" style="list-style-type: decimal;"><li>The link to the official ROS 2 '''Galactic Geochelone''' installation documentation is as follows:</li>{| class="wikitable" style="width:800px;" |-| '''Note that this download link may change, please recognize the DEB package of the ARMV8docs.ros.org/en/galactic/ARM64 versionInstallation.html'''
[https'''http://wwwdocs.nomachineros.comorg/en/galactic/Installation/downloadUbuntu-Install-Debians.html'''|}</download&idol><ol start=112&s"3" style=ARM "list-style-type: decimal;"><li><p>It is recommended to use Ubuntu20.04 in the official installation document of ROS 2 '''httpsGalactic Geochelone''', so please ensure that the system used by the development board is '''<span style="color:#FF0000">Ubuntu20.04 desktop version</span>'''. There are several ways to install ROS 2. The following shows how to install ROS 2 '''Galactic Geochelone''' using '''Debian packages'''</p></downloadsli><li><p>Use the '''install_ros.nomachine.comsh''' script to install ros2</downloadp></?idli>{| class=118&amp"wikitable" style="width:800px;distro" |-| orangepi@orangepi:~$ '''install_ros.sh ros2'''|}</ol><ol start=ARM"5" style="list-style-type: decimal;"><li>The '''install_ros.sh''' script will automatically run the '''ros2 -h''' command after installing ros2. If you can see the following print, it means that the ros2 installation is complete</li>{| class="wikitable" style="width:800px;" |-| usage: ros2 [-h]Call `ros2 &lt;command&gt; -h` for more detailed usage. ...
[[File:pi3b-img314.png|575x227px]]
<ol start="ros2 is an extensible command-line tool for ROS 2" style="list-style-type: lower-alpha;"><li>In addition, you can also download the installation package to '''NoMachine''' in the '''official tools'''.</li></ol>
[[File:pi3b-img315.png|66x102px]]
<blockquote>First enter the '''remote login software-Nomachine''' folder</blockquote>[[Fileoptional arguments:pi3b-img316.png|271x43px]]
<blockquote>Then download the ARM64 version of the DEB installation package</blockquote>[[File:pi3b-img317.png|180x109px]]h, --help show this help message and exit
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>Then upload the downloaded '''nomachine_x.x.x_x_arm64.deb''' to the Linux system of the development board.</p></li>
<li><p>Then use the following command to install '''NoMachine''' in the Linux system of the development board</p></li></ol>
orangepi@orangepiCommands:~$ '''sudo dpkg -i nomachine_x.x.x_x_arm64_arm64.deb'''
<ol start="2" style="list:action Various action related sub-style-type: decimal;"><li>Then download the nomachine software Windows version of the installation package, the download address is shown below</li></ol>commands
'''Note that this download link may change.''':bag Various rosbag related sub-commands
'''https://downloads.nomachine.com/download/?id=9'''component Various component related sub-commands
[[File:pi3bdaemon Various daemon related sub-img318.png|575x163px]]commands
<ol start="3" style="list-style-type: decimal;"><li><p>Then install nomachine in Windows. '''Please restart the computer after installation'''</p></li><li><p>Then open '''NoMachine''' in Window</p></li></ol>doctor Check ROS setup and other potential issues
[[File:pi3b-img319.png|76x66px]]interface Show information about ROS interfaces
<ol start="5" style="list-style-type: decimal;"><li>After Nomachine starts, it will automatically scan other devices installed in the local area network. After entering the main interface of Nomachine, you can see that the development board is already in the connected device list, and then click the location shown in the red box below in the figure below. Start log in to the Linux system desktop of the development board</li></ol>launch Run a launch file
[[File:pi3blifecycle Various lifecycle related sub-img320.png|321x92px]]commands
<ol start="6" style="list:multicast Various multicast related sub-style-type: decimal;"><li>Then click '''OK'''</li></ol>commands
[[File:pi3bnode Various node related sub-img321.png|402x275px]]commands
<ol start="7" style="list:param Various param related sub-style-type: decimal;"><li>Then enter the username and password of the Linux system in the corresponding position in the figure below, and then click '''OK''' to start logging in</li></ol>commands
<div class="figure">:pkg Various package related sub-commands
[[File:pi3b-img322.png|303x204px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-12.jpg未标题-12]]run Run a package specific executable
</div><ol start="8" style="list-style-type: decimal;"><li><p>Then click OK in the next interface</p></li><li><p>Finally, you can see the desktop of the development board Linux system</p><p>[[File:pi3bsecurity Various security related sub-img323.png|411x246px]]</p></li></ol>commands
<span id="use:service Various service related sub-vnc-remote-login"></span>=== Use VNC remote login ===commands
'''Before operation, please ensure that the Windwos computer and the development board are in the same local area network, and you can log in to the Ubuntu or Debian system of the development board normally.''':topic Various topic related sub-commands
'''Ubuntu 20.04 tests many problems with VNC, please do not use this method.''':wtf Use `wtf` as alias to `doctor`
# First run the '''set_vnc.sh''' script settings, and '''remember to add Sudo permissions'''
:Call `ros2 &lt;command&gt; -h` for more detailed usage.|}</ol><ol start="6" style="list-style-type: decimal;"><li>Then you can use the '''test_ros.sh''' script to test whether ROS 2 is installed successfully. If you can see the following print, it means that ROS 2 can run normally</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepiorangepi3b:~$ '''sudo set_vnctest_ros.sh'''
You will require a password to access your desktops[INFO] [1671174101.200091527] [talker]: Publishing: 'Hello World: 1'
Password[INFO] [1671174101.235661048] [listener]: '''#Set the VNC password here, 8 -bit characters'''I heard: [Hello World: 1]
Verify[INFO] [1671174102.199572327] [talker]: Publishing: '''#Set the VNC password here, 8 -bit characters''Hello World: 2'
Would you like to enter a view-only password (y/n)? '''n'''[INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]
xauth[INFO] [1671174103.199580322] [talker]: Publishing: 'Hello World: file /root/.Xauthority does not exist3'
New [INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]|}</ol><ol start="7" style="list-style-type: decimal;"><li>Run the following command to open rviz2</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''source /opt/ros/galactic/setup.bash''X' desktop is orangepi3b:1
Creating default startup script /root/.vnc/xstartuporangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''|}
Starting applications specified in /root/.vnc/xstartup<div class="figure">
Log file is /root/.vnc/orangepi3b[[File:1pi3b-img350.logpng]]
Killing Xtightvnc process ID 3047</div></ol><ol start="8" style="list-style-type: decimal;"><li>For the usage of ROS, please refer to the documentation of ROS 2</li>{| class="wikitable" style="width:800px;" |-| '''http://docs.ros.org/en/galactic/Tutorials.html'''|}</ol><span id="how-to-install-ros-2-humble-on-ubuntu-22.04"></span>
New 'X' desktop is orangepi3b:1=== How to install ROS 2 Humble on Ubuntu 22.04 ===
Starting applications specified in /root/# Use the '''install_ros.vnc/xstartupsh''' script to install ros2
Log file is /root/.vnc/orangepi3b:1:{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''install_ros.logsh ros2'''|}
<ol start="2" style="list-style-type: decimal;">
<li><p>The steps of using MobaxTerm software to connect '''install_ros.sh''' script will automatically run the development board Linux system desktop are shown below: </p><ol style="list'''ros2 -style-type: lower-alpha;"><li>First click Sessionh''' command after installing ros2. If you can see the following print, then select VNC, then fill in it means that the IP address and port of the development board, and finally click OK to confirmros2 installation is complete</li></ol></li></ol>
<div {| class="figurewikitable">style="width:800px;" |-| usage: ros2 [-h] Call `ros2 &lt;command&gt; -h` for more detailed usage. ...
[[File:pi3b-img324.png|490x349px|图片1208]]
</div><ol start="ros2 is an extensible command-line tool for ROS 2" style="list-style-type: lower-alpha;"><li>Then enter the password of the previously set VNC</li></ol>.
[[File:pi3b-img325.png|274x131px]]
<ol start="3" style="list-style-typeoptional arguments: lower-alpha;"><li><p>The interface after the login is shown as shown in the figure below, and then the desktop of the Linux system can be remotely operated</p><p>[[File:pi3b-img326.png|405x293px]]</p></li></ol>
<span id="some:-programmingh, -language-tests-supported-by-linux-system"></span>== Some programming language tests supported by Linux system ==help show this help message and exit
<span id="debian-bullseye-system"></span>
=== Debian Bullseye system ===
<ol style="list-style-typeCommands: decimal;"><li><p>Debian Bullseye is equipped with a gcc compilation tool chain by default, which can directly compile the C language program in the Linux system of the development board</p><ol style="list-style-type: lower-alpha;"><li>The version of the gcc is shown below</li></ol></li></ol>
orangepi@orangepi:~$ '''gcc action Various action related sub--version'''commands
gcc (Debian 10.2.1:bag Various rosbag related sub-6) 10.2.1 20210110commands
Copyright (C) 2020 Free Software Foundation, Inc.:component Various component related sub-commands
This is free software; see the source for copying conditions. There is NO:daemon Various daemon related sub-commands
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.:doctor Check ROS setup and other potential issues
<ol start="2" style="list-style-type: lower-alpha;"><li>Write C language of '''Hello_world.c''' program</li></ol>interface Show information about ROS interfaces
orangepi@orangepi:~$ '''vim hello_world.c'''launch Run a launch file
#include &lt;stdio.h&gt;:lifecycle Various lifecycle related sub-commands
int main(void):multicast Various multicast related sub-commands
{:node Various node related sub-commands
printf(&quot;Hello World!\n&quot;);:param Various param related sub-commands
return 0;:pkg Various package related sub-commands
}:run Run a package specific executable
<ol start="3" style="list-style-type: lowersecurity Various security related sub-alpha;"><li>Then compile and run '''hello_world.c'''</li></ol>commands
orangepi@orangepi:~$ '''gcc service Various service related sub-o hello_world hello_world.c'''commands
orangepi@orangepi:~$ '''./hello_world'''topic Various topic related sub-commands
Hello World!:wtf Use `wtf` as alias to `doctor`
<ol start="2" style="list-style-type: decimal;">
<li><p>Debian BullSeye Default with Python3</p>
<ol style="list-style-type: lower-alpha;">
<li>The specific version of Python is shown below</li></ol>
</li></ol>
orangepi@orangepi:~$ Call `ros2 &lt;command&gt; -h` for more detailed usage.|}</ol><ol start="3" style="list-style-type: decimal;"><li>Then you can use the '''python3test_ros.sh'''script to test whether ROS 2 is installed successfully. If you can see the following print, it means that ROS 2 can run normally</li>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi3b:~$ '''Python 3test_ros.9.2sh''' (default, Feb 28 2021, 17:03:44)
[GCC 10.2INFO] [1671174101.200091527] [talker]: Publishing: 'Hello World: 1 20210110] on linux'
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information[INFO] [1671174101.235661048] [listener]: I heard: [Hello World: 1]
&gt;&gt;&gt;[INFO] [1671174102.199572327] [talker]: Publishing: 'Hello World: 2'
<ol start="[INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2" style="list-style-type: lower-alpha;"><li>'''hello_world.py''' program in Python language</li></ol>]
orangepi@orangepi[INFO] [1671174103.199580322] [talker]: Publishing:~$ '''vim hello_world.py''Hello World: 3'
print('[INFO] [1671174103.204019965] [listener]: I heard: [Hello World!: 3]|}</ol><ol start="4" style="list-style-type: decimal;"><li>Run the following command to open rviz2</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''source /opt/ros/humble/setup.bash''')
<ol start="3" style="list-style-typeorangepi@orangepi: lower-alpha;"><li>The results of running ~$ '''hello_world.pyros2 run rviz2 rviz2''' are shown below</li></ol>|}
orangepi@orangepi:~$ '''python3 hello_world.py'''<div class="figure">
Hello World![[File:pi3b-img351.png]]
</div></ol><ol start="35" style="list-style-type: decimal;"><li><p>Debian Bullseye's compilation tool and operating environment that is not installed in Java by defaultReference documents</pli><ol {| class="wikitable" style="list-style-typewidth: lower-alpha800px;"><li>You can use the following command to install OpenJDK. The latest version in Debian Bullseye is openjdk|-17<| '''http://li><docs.ros.org/ol><en/li><humble/ol>index.html'''
orangepi@orangepi[http:~$ //docs.ros.org/en/galactic/Tutorials.html '''sudo apt install http://docs.ros.org/en/humble/Installation/Ubuntu-y openjdkInstall-17-jdkDebians.html''']|}</ol><span id="how-to-install-kernel-header-files"></span>
<ol start="2" style="list-style-type: lower-alpha;"><li>After installation, you can check the version of Java</li></ol>How to install kernel header files ==
orangepi@orangepi:~$ # The Linux image released by OPi comes with the deb package of the kernel header file by default, and the storage location is '''java --version/opt/'''
<ol start::{| class="3wikitable" style="list-style-typewidth: lower-alpha800px;"><li>Edit the |-| orangepi@orangepi:~$ '''hello_world.javals /opt/linux-headers*''' of the Jave version</li></ol>
orangepi@orangepi:~$ '''vim hello_world/opt/linux-headers-legacy-rockchip-rk356x_x.java'''x.x_arm64.deb|}
public <ol start="2" style="list-style-type: decimal;"><li>Use the following command to install the deb package of the kernel header file</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The name of the kernel header file deb package needs to be replaced with the actual name, please do not copy it.'''</big>|}{| class hello_world="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo dpkg -i /opt/linux-headers-legacy-rockchip-rk356x_1.x.x_arm64.deb'''|}</ol><ol start="3" style="list-style-type: decimal;"><li>After installation, you can see the folder where the kernel header files are located under '''/usr/src'''</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''ls /usr/src'''
public static void main(String[] args)linux-headers-5.10.160-rockchip-rk356x|}</ol><ol start="4" style="list-style-type: decimal;"><li><p>Then you can write a hello kernel module to test the kernel header file</p><ol style="list-style-type: lower-alpha;"><li>First write the code of the hello kernel module, as follows:</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim hello.c'''
{<p>#include &lt;linux/init.h&gt;</p>
System.out.println(<p>#include &quotlt;Hello World!linux/module.h&quot;)gt;</p>
}
}static int hello_init(void)
<ol start="4" style="list-style-type: lower-alpha;"><li>Then compile and run '''hello_world.java'''</li></ol>{
orangepi@orangepi:~$ '''javac hello_world.java'''printk(&quot;Hello Orange Pi -- init\n&quot;);
orangepi@orangepi:~$ '''java hello_world'''
Hello World!:return 0;
<span id="ubuntu-focal-system"></span>=== Ubuntu Focal system ===}
<ol style="list-style-type: decimal;"><li><p>Ubuntu Focal has the GCC compilation tool chain by default, which can compile the C language program directly in the Linux system of the development board.</p><ol style="list-style-type: lower-alpha;"><li>The version of the gcc is shown below</li></ol></li></ol>static void hello_exit(void)
orangepi@orangepi:~$ '''gcc --version'''{
gcc :printk(Ubuntu 9.4.0&quot;Hello Orange Pi -1ubuntu1~20.04.1- exit\n&quot;) 9.4.0;
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software:return; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.}
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''hello_world.c''' program to write C language</li></ol>
orangepi@orangepi:~$ '''vim hello_world.c'''module_init(hello_init);
#include &lt;stdio.h&gtmodule_exit(hello_exit);
int main(void)
MODULE_LICENSE(&quot;GPL&quot;);|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then write the Makefile for compiling the hello kernel module, as follows:</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''vim Makefile'''
printfifneq (&quot;Hello World!\n&quot;$(KERNELRELEASE),);
return 0;obj-m:=hello.o
}else
<ol startKDIR :="3" style="list/lib/modules/$(shell uname -style-type: lower-alpha;"><li>Then compile and run '''hello_world.c'''</li><r)/ol>build
orangepi@orangepiPWD :~=$ '''gcc -o hello_world hello_world.c'''(shell pwd)
orangepi@orangepiall:~$ '''./hello_world'''
Hello World!:make -C $(KDIR) M=$(PWD) modules
<ol start="2" style="list-style-typeclean: decimal;"><li><p>Ubuntu Focal defaults to install Python3</p><ol style="list-style-type: lower-alpha;"><li>Python3 specific version is shown below</li></ol></li></ol>
orangepi@orangepi:~$ '''python3'''rm -f *.ko *.o *.mod.o *.mod *.symvers *.cmd *.mod.c *.order
Python endif|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Then use the make command to compile the hello kernel module.8.10 (default, Nov 14 2022, 12The output of the compilation process is as follows:</li>{| class="wikitable" style="background-color:59#ffffdc;width:47)800px;" |-| <big>'''If there is a problem with compiling the code you copied here, please go to the official tool to download the source code and upload it to the Linux system of the development board for testing.'''</big>
[GCC 9[File:pi3b-img352.4.0png|center]] on linux|}{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''make'''
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more informationmake -C /lib/modules/5.10.160-rockchip-35xx/build M=/home/orangepi modules
&gt;&gt;&gt;make[1]: Entering directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'
<ol start="2" style="list-style-type: lower-alpha;"><li>'''hello_world.py''' program in Python language<CC [M] /home/li><orangepi/ol>hello.o
:MODPOST /home/orangepi@orangepi:~$ '''vim hello_world/Module.py'''symvers
print('Hello World!'):CC [M] /home/orangepi/hello.mod.o
<ol start="3" style="list-style-type: lower-alpha;"><li>The results of running '''hello_world.py''' are shown below<LD [M] /home/li><orangepi/ol>hello.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>After compiling, the '''hello.ko''' kernel module will be generated</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''python3 hello_worldls *.pyko'''
Hello World!hello.ko|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>Use the '''insmod''' command to insert the '''hello.ko''' kernel module into the kernel</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo insmod hello.ko'''|}</ol><ol start="6" style="list-style-type: lower-alpha;"><li>Then use the '''demsg''' command to view the output of the '''hello.ko''' kernel module. If you can see the output below, it means that the '''hello.ko''' kernel module is loaded correctly.</li>
<ol start{| class="3wikitable" style="list-style-typewidth: decimal800px;"><li><p>Ubuntu Focal's compilation tool and operating environment without the installation of Java default</p>|-| <ol style="list-style-typeorangepi@orangepi: lower-alpha;"><li>You can use the following command to install ~$ '''openjdk-17dmesg | grep &quot;Hello&quot;'''</li></ol></li></ol>
[ 2871.893988] '''Hello Orange Pi -- init'''|}</ol><ol start="7" style="list-style-type: lower-alpha;"><li>Use the '''rmmod''' command to uninstall the '''hello.ko''' kernel module</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdkrmmod hello'''
<ol start="2" style="list-style-typeorangepi@orangepi: lower-alpha~$ '''dmesg | grep &quot;"><li>After installation, you can check the version of Java</li></ol>Hello&quot;'''
orangepi@orangepi:~$ '''java [ 2871.893988] Hello Orange Pi --version'''init
openjdk 17[ 3173.0.2 2022800892] '''Hello Orange Pi -- exit'''|}</ol></li></ol><span id="use-of-the-raspberry-pis-5-01inch-18screen"></span>
OpenJDK Runtime Environment (build 17.0.2+8== Use of the Raspberry PI's 5-Ubuntu-120.04)inch screen ==
OpenJDK 64<span id="assembly-Bit Server VM (build 17.0.2+8method-Ubuntuof-120.04, mixed mode, sharing)raspberry-pi-5-inch-screen"></span>=== Assembly method of Raspberry PI 5-inch screen ===
<ol startstyle="3list-style-type: decimal;" ><li><p>First prepare the required accessories</p><ol style="list-style-type: lower-alpha;"><li>Edit the '''hello_world.java''' of Jave versionRaspberry PI 5-inch MIPI LCD display + touch screen</li></ol>
orangepi@orangepi[[File:~$ '''vim hello_worldpi3b-img353.java'''png]]</ol><ol start="2" style="list-style-type: lower-alpha;"><li>15pin MIPI cable</li>
public class hello_world[[File:pi3b-img354.png]]</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>Then connect the 15pin MIPI cable to the Raspberry PI 5-inch screen in the way shown below (note the orientation of the insulation surface)</li>
{[[File:pi3b-img355.png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Finally connect to the LCD interface of the Orange Pi 3B development board</li>
public static void main(String[[File:pi3b-img356.png]] args)</ol><span id="open-the-raspberry-pi-5-inch-screen-configuration-method"></span>
{=== Open the Raspberry PI 5-inch screen configuration method ===
System<ol style="list-style-type: decimal;"><li><p>The Linux image does not open the 5-inch screen of the Raspberry PI by default.outIf you need to use the 5-inch screen of the Raspberry PI, you need to open it manually.println(&quot</p></li><li><p>The steps to open the mipi lcd configuration are as follows:</p><ol style="list-style-type: lower-alpha;Hello World!&quot"><li>First run '''orangepi-config''', ordinary users remember to add '''sudo''' permission</li>{| class="wikitable" style="width:800px;)" |-| orangepi@orangepi:~$ '''sudo orangepi-config'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then select '''System'''</li>
}[[File:pi3b-img357.png]]</ol>}<ol start="3" style="list-style-type: lower-alpha;"><li>Then select '''Hardware'''</li>
[[File:pi3b-img358.png]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then compile use the arrow keys on the keyboard to locate the Rasp-7inch-touchscreen, and run '''hello_world.java'''then use the space button to check</li></ol>
orangepi@orangepi[[File:~$ pi3b-img359.png]]</ol><ol start="5" style="list-style-type: lower-alpha;"><li>Then select '''javac hello_world.java&lt;Save&gt;'''to save</li>
orangepi@orangepi[[File:~$ pi3b-img360.png]]</ol><ol start="6" style="list-style-type: lower-alpha;"><li>Then select '''java hello_world&lt;Back&gt;'''</li>
Hello World![[File:pi3b-img361.png]]</ol><ol start="7" style="list-style-type: lower-alpha;"><li>Then select '''&lt;Reboot&gt;''' to restart the system for the configuration to take effect</li>
<span id="ubuntu[[File:pi3b-jammy-system"></span>=== Ubuntu jammy system ===img362.png]]
<ol {| class="wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig><p>Ubuntu Jammy is installed with the GCC compilation tool chain by default, which can directly compile the C language program in '''The above settings will eventually add the Linux system configuration of the development board</p><ol span style="list-style-typecolor: lower-alpha;#FF0000"><li>The version of the gcc is shown belowoverlays=raspi-7inch-touchscreen</lispan><to /ol><boot/li></ol>orangepiEnv.txt. After setting, you can check it first. If this configuration does not exist, then there is a problem with the settings.'''
orangepi@orangepi:~$ '''gcc If you find it troublesome to use orangepi-config, you can also use the vim editor to open /boot/orangepiEnv.txt, and then add the configuration of <span style="color:#FF0000">overlays=raspi-7inch-versiontouchscreen</span> is also possible.'''</big>
gcc (Ubuntu 11.2.0-19ubuntu1) '''11.2.0'''
Copyright (C) 2021 Free Software Foundation, Incorangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep "raspi"'''
This is free software'''<span style="color:#FF0000">overlays=raspi-7inch-touchscreen #Sample configuration</span>'''|}</ol></li></ol><ol start="3" style="list-style-type: decimal; "><li>After startup, you can see the source for copying conditions. There is NOlcd screen display as follows:</li>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE[[File:pi3b-img363.png]]</ol><span id="the-method-of-server-version-image-rotation-display-direction"></span>
<ol start="2" style="list-style-type: lower-alpha;"><li>Write the '''hello_world.c''' program = The method of c language</li></ol> orangepi@orangepi:~$ '''vim hello_world.c'''server version image rotation display direction ===
#include &lt<ol start="1" style="list-style-type: decimal;stdio"><li><p>Add '''extraargs=fbcon=rotate:the direction to rotate''' in '''/boot/orangepiEnv.h&gt;txt''' This line configuration can set the direction displayed by the server version of the Linux system, where the number after '''fbcon=rotate:''' can be set as:</p></li>
int main<ol style="list-style-type: lower-alpha;"><li><p>0: normal screen (voiddefault is landscape)</p></li><li><p>1: Turn clockwise 90 degrees</p></li><li><p>2: Flip 180 degrees</p></li><li><p>3: Turn clockwise 270 degrees</p></li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
{overlays=lcd1
printf(&quot'''<span style="color:#FF0000">extraargs=cma=64M fbcon=rotate:3</span>'''|}{| class="wikitable" style="background-color:#ffffdc;Hello World!\n&quotwidth:800px;" |-| <big>'''Note that if there is the line extraargs=cma=64M in /boot/orangepiEnv.txt by default, the configuration fbcon=rotate:3 can be added after extraargs=cma=64M (separated by spaces).'''</big>|}</ol></li></ol><ol start="2" style="list-style-type: decimal;"><li>Then '''<span style="color:#FF0000">restart</span>''' the Linux system and you can see that the direction displayed on the LCD screen has been rotated</li></ol>
return 0;<span id="method-of-rotating-display-and-touch-direction-of-desktop-version-image"></span>
}=== Method of rotating display and touch direction of desktop version image ===
<ol start="3" style="list-style-type: lower-alpha;"><li>Then compile and run # First open '''hello_world.cDisplay'''</li></ol>Settings in Linux
orangepi@orangepi:~$ '''gcc :[[File:pi3b-o hello_world hello_world.c''' orangepi@orangepi:~$ '''img364./hello_world''' Hello World!png]]
<ol start="2" style="list-style-type: decimal;">
<li><p>Ubuntu jammy is installed with Python3 by defaultThen select the direction you want to rotate in '''Rotation'''</p>
<ol style="list-style-type: lower-alpha;">
<li>Python3 specific version <p>'''None''': no rotation</p></li><li><p>'''Left''': rotate left 90 degrees</p></li><li><p>'''Inverted''': Flip up and down, which is shown belowequivalent to rotating 180 degrees</p></li><li><p>'''Right''': rotate right 90 degrees</p></li> [[File:pi3b-img365.png]]</ol>
</li></ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then click '''Apply'''</li>
orangepi@orangepi[[File:~$ '''python3'''pi3b-img366.png]]</ol><ol start="4" style="list-style-type: decimal;">Python <li>Then select '''3.10.4Keep this configuration''' (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt;</li>
[[File:pi3b-img367.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>At this point, the screen display has been rotated, and then close the '''Display''' program</p></li>
<li><p>The above steps will only select the display direction, and will not rotate the direction of the touch. Use the '''set_lcd_rotate.sh''' script to rotate the direction of the touch. After the script is set, it will automatically restart, and then you can test whether the touch has been used normally.</p>
<ol style="list-style-type: lower-alpha;">
<li>'''None''': no rotation</li>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''set_lcd_rotate.sh none'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Edit '''hello_worldLeft''': rotate left 90 degrees</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''set_lcd_rotate.pysh left''' program in Python language|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>'''Inverted''': Flip up and down, which is equivalent to rotating 180 degrees</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''set_lcd_rotate.sh inverted'''|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>'''Right''': rotate right 90 degrees</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''set_lcd_rotate.sh right'''|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The set_lcd_rotate.sh script mainly does four things:'''
orangepi@orangepi:~$ '''vim hello_world.py'''
print('Hello World!')'1. Rotate the direction displayed by the framebuffer''' '''2. Rotate the direction of the touch'''
<ol start="3" style="list-style-type: lower-alpha;"><li>The results of running '''hello_world3.pyTurn off the boot logo''' are shown below</li></ol>
orangepi@orangepi:~$ '''python3 hello_world4.pyRestart the system'''
Hello World!
<ol start="3" style="list-style-type: decimal'''Rotating the touch direction is achieved by adding the line Option &quot;TransformationMatrix&quot; &quot;x x x x x x x x x&quot;"><li><p>Ubuntu jammy defaults to compile tools and operating environments that are not installed in Java</p><ol style="listusr/share/X11/xorg.conf.d/40-style-type: lower-alphalibinput.conf Where &quot;x x x x x x x x x&quot;"><li>You can use the following command to install openjdk-18is configured differently for different directions.'''</libig>|}</ol>
</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>Touch rotation reference</li>
{| class="wikitable" style="width:800px;"
|-
|
'''https://wiki.ubuntu.com/X/InputCoordinateTransformation'''
|}
</ol>
<span id="instructions-for-using-the-switch-logo"></span>
orangepi@orangepi:~$ '''sudo apt install -y openjdk-18-jdk'''== Instructions for using the switch logo ==
<ol start="2" style="list-style-type: lower-alpha;"><li>After installation# By default, you can check the switch logo will only be displayed in the desktop version of Java<the system# Set the '''bootlogo''' variable to '''false''' in '''/li><boot/ol>orangepiEnv.txt''' to turn off the switch logo
::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''java --versionvim /boot/orangepiEnv.txt'''
openjdk 18-ea 2022-03-22verbosity=1
OpenJDK Runtime Environment (build 18-ea+36-Ubuntu-1)'''<span style="color:#FF0000">bootlogo=false</span>'''|}
OpenJDK 64<ol start="3" style="list-Bit Server VM (build 18style-ea+36-Ubuntu-1, mixed mode, sharing)type: decimal;"><li>Set the '''bootlogo''' variable to '''true''' in '''/boot/orangepiEnv.txt''' to enable the switch logo</li>
<ol start{| class="3wikitable" style="list-style-typewidth: lower-alpha800px;"><li>Edit the |-| orangepi@orangepi:~$ '''hello_worldvim /boot/orangepiEnv.javatxt''' of the Jave version</li></ol>
orangepi@orangepi:~$ '''vim hello_world.java'''verbosity=1
public '''<span style="color:#FF0000">bootlogo=true</span>'''|}</ol><ol start="4" style="list-style-type: decimal;"><li>The location of the boot logo image in the Linux system is</li>{| class hello_world="wikitable" style="width:800px;" |-| '''/usr/share/plymouth/themes/orangepi/watermark.png'''|}</ol><ol start="5" style="list-style-type: decimal;"><li>After replacing the boot logo picture, you need to run the following command to take effect</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo update-initramfs -u'''|}</ol><span id="how-to-use-the-zfs-file-system"></span>
{== How to use the ZFS file system ==
public static void main(String[] args){| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The latest version of Ubuntu20.04, Ubuntu22.04, Debian11 and Debian12 <span style="color:#FF0000">desktop version systems</span> have pre-installed zfs, you can use it directly.'''
{'''The pre-installed zfs version in Ubuntu20.04 and Ubuntu22.04 desktop systems is 2.1.6.'''
System'''The pre-installed zfs version in Debian11 and Debian12 desktop systems is 2.out1.println(&quot;Hello World!&quot;);11.'''
}'''After the system starts, please first confirm whether the zfs kernel module has been loaded. If you can see zfs-related content using the lsmod command, it means that the system has pre-installed zfs.'''</big>
}orangepi@orangepi:~$ '''lsmod | grep &quot;zfs&quot;'''
<ol start="4" style="list-style-type: lower-alphazfs &nbsp;"><li>Then compile and run '''hello_world.java'''</li></ol>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2801664 &nbsp;&nbsp;&nbsp; 0
orangepi@orangepi:~$ '''javac hello_world.java'''zunicode &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 327680 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
orangepi@orangepi:~$ '''java hello_world'''zzstd &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 471040 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
Hello World!zlua &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 139264 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
<span id="qt-installation-method"></span>== QT installation method ==zcommon &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69632 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
# Use the following script to install QT5 and QT Creatorznvpair &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 61440 &nbsp;&nbsp;&nbsp; 2 &nbsp; zfs,zcommon
orangepi@orangepi:~$ '''install_qt.sh'''zavl &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16384 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
<ol start="2" style="list-style-type: decimalicp &nbsp;"><li><p>The QT version number will be automatically printed after installation</p><ol style="list-style-type: lower-alpha&nbsp;"><li>Ubuntu20.04 comes with QT version '''5.12.8'''</li></ol></li></ol>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 221184 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
orangepi@orangepi:~$ '''install_qt.sh'''spl &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 77824 &nbsp;&nbsp;&nbsp; 6 &nbsp; zfs,icp,zzstd,znvpair,zcommon,zavl|}
......<span id="how-to-install-zfs"></span>=== How to install ZFS ===
QMake {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Before installing zfs, please make sure that the Linux image used is the latest version 3.1In addition, if zfs is already installed in the system, it needs to be installed again.'''</big>|} Before installing zfs, you need to install the kernel header file first. For the method of installing the kernel header file, please refer to the instructions in the [[Orange Pi 3B#How to install kernel header files|'''section on the method of installing the kernel header file''']].
Using Qt In Ubuntu20.04, Ubuntu22.04 and Debian11 systems, zfs cannot be installed directly through apt, because the default apt source zfs version '''5is lower than 2.1.6, and there is a problem of incompatibility with rk Linux5.1210 kernel.8''' This problem is fixed in /usr/lib/aarch64-linux-gnuzfs version 2.1.6 and later.
To solve this problem, we provide a zfs deb package that can be installed normally, which can be downloaded from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''official tool'''] of the development board. Open the '''<ol startspan class="2" style="list-style-type: lower-alpha;mark">official tool<li/span>Ubuntu22.04 comes with QT version '''5.15.3, and enter the '''</lispan class="mark">zfs-related deb package folders used by Ubuntu and Debian systems</olspan>'''. You can see three types of deb packages: Ubuntu20.04, Ubuntu22.04 and Debian11. Please download the required version.
orangepi@orangepi[[File:~$ '''install_qtpi3b-img368.sh'''png]]
After downloading the zfs deb packages of the corresponding version, please upload them to the Linux system of the development board.For the upload method, please refer to '''[[Orange Pi 3B#The method of uploading files to the Linux system of the development board|the description in the section of the method of uploading files to the Linux system of the development board]].....'''
QMake version 3After the upload is complete, use the '''cd''' command in the command line of the development board Linux system to enter the directory of the deb package, and then use the following command to install the deb package of zfs.1
Using Qt version {| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''5sudo apt install .15/*.3deb''' in /usr/lib/aarch64-linux-gnu|}
<ol start="3" style="listAfter the installation is complete, use the following command to see the zfs-style-typerelated kernel modules: lower-alpha;"><li>Debian11 comes with QT version '''5.15.2'''</li></ol>
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''install_qtls /lib/modules/5.10.sh160-rockchip-rk356x/updates/dkms/'''
'''icp.ko spl.ko zavl.ko zcommon.ko zfs.ko zlua.ko znvpair.ko zunicode.ko zzstd.ko'''|}
QMake version 3.1Then restart the Linux system to see that the zfs kernel module will be automatically loaded:
Using Qt version {| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''5.15.2lsmod | grep "zfs"''' in /usr/lib/aarch64-linux-gnu
<ol start="4" style="list-style-type: lower-alphazfs &nbsp;"><li>Debian12 comes with QT version '''5.15.8'''</li></ol>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2801664 &nbsp;&nbsp;&nbsp; 0
orangepi@orangepi:~$ '''install_qt.sh'''zunicode &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 327680 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
......zzstd &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 471040 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
QMake version 3.zlua &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 139264 &nbsp;&nbsp;&nbsp; 1&nbsp; zfs
Using Qt version '''5.15.8''' in /usr/lib/aarch64-linux-gnuzcommon &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69632 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
<ol start="3" style="list-style-type: decimalznvpair &nbsp;"><li>Then you can see the QT Creator launch icon in '''Applications'''</li></ol>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 61440 &nbsp;&nbsp;&nbsp; 2 &nbsp; zfs,zcommon
[[File:pi3b-img327.png|576x270px]]zavl &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16384 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
QT Creator can also be opened using the following commandicp &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 221184 &nbsp;&nbsp;&nbsp; 1 &nbsp; zfs
orangepi@orangepi:~$ '''qtcreator'''spl &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 77824 &nbsp;&nbsp;&nbsp; 6 &nbsp; zfs,icp,zzstd,znvpair,zcommon,zavl|}
'''During In Debian12, the startup default version of QT and QT applicationszfs is 2.1.11, if so we can install zfs directly through the following error is displayedcommand. Again, ignore it. This error please make sure that the system has no impact on application runninginstalled the deb package of the kernel header file before installation.'''
{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''libGL error: failed to create dri screensudo apt install -y zfsutils-linux zfs-dkms'''|}
'''libGL error: failed to load driver: rockchip'''<span id="methods-of-creating-zfs-pools"></span>
'''libGL error: failed to create dri screen'''=== Methods of creating ZFS pools ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''libGL error: failed ZFS is based on storage pools, we can add multiple physical storage devices to load driver: rockchipthe pool, and then allocate storage space from this pool.'''
<ol start="4" style="list-style-type: decimal;"><li>'''The interface after QT Creator following content is opened is as followsdemonstrated based on the development board connected to an NVMe SSD and a USB flash drive.'''</li></olbig>|}
[[File# First, we can use the '''lsblk''' command to view all storage devices on the development board. The current development board is connected to an NVMe SSD and a U disk. The output is as follows:pi3b-img328.png|418x222px]]
<ol start="5" style="list-style-type: decimal;"><li><p>The QT Creator version is shown below</p><ol style="list-style-type: lower[[File:pi3b-alpha;"><li>The default version of QT Creator in '''Ubuntu20img369.04''' is as follows</li></ol></li></ol>png]]
[[File<ol start="2" style="list-style-type: decimal;"><li>Then enter the following command to create a ZFS pool, including two storage devices, NVMe SSD and U disk</li>{| class="wikitable" style="width:pi3b800px;" |-img329.png|419x224px]]orangepi@orangepi:~$ '''sudo zpool create -f pool1 /dev/nvme0n1 /dev/sda'''|}</ol><ol start="3" style="list-style-type: decimal;"><li>Then use the '''zpool list''' command to see that the system has created a ZFS pool named '''pool1''', and the size of the ZFS pool pool1 is the size of the NVME SSD plus the size of the U disk</li>
[[File:pi3b-img370.png]]</ol><ol start="24" style="list-style-type: lower-alphadecimal;"><li>The default version of QT Creator in Then execute '''df -h'Ubuntu22.04'' to see that '''pool1''' is as followsmounted to the '''/pool1''' directory</li>{| class="wikitable" style="width:800px;" |-|orangepi@orangepi:~$ '''df -h''' </olbr>
[[File:pi3b-img330.png|443x237px]]Filesystem &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size &nbsp;&nbsp;&nbsp; Used Avail Use% Mounted on
<ol start="3" style="list-style-type: lower-alphatmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.6G &nbsp;&nbsp;&nbsp;"><li>The default version of QT Creator in '''Debian11''' is as follows<18M 1.6G 2% /li>run </olbr>
[[File:pi3b-img331/dev/mmcblk0p2 &nbsp;&nbsp;&nbsp; 29G &nbsp;&nbsp;&nbsp; 6.png|444x238px]]0G 22G 22% / <br>
<ol start="4" style="list-style-type: lower-alphatmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7.7G &nbsp;&nbsp;&nbsp;"><li>The default version of QT Creator in '''Debian12''' is as follows< 46M 7.7G 1% /dev/li>shm </olbr>
[[File:pi3b-img332tmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.png|449x277px]]0M &nbsp;&nbsp;&nbsp; 4.0K 5.0M 1% /run/lock <br>
<ol start="6" style="list-style-type: decimaltmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"><li><p>Then set QT</p><ol style="list-style-type: lower-alpha&nbsp;"><li>First open '''Help'''-&gtnbsp;'''About Plugins 7.7G &nbsp;&nbsp;&nbsp; 944K 7..'''</li></ol><7G 1% /li>tmp </olbr>
[[File:pi3b-img333.png|573x164px]]/dev/mmcblk0p1 &nbsp;&nbsp;&nbsp; 1022M &nbsp;&nbsp;&nbsp; 115M 908M 12% /boot <br>
<ol start="2" style="list-style-type: lower-alpha/dev/zram1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 188M &nbsp;&nbsp;&nbsp;"><li>Then remove the check box for '''ClangCodeModel'''<4.5M 169M 3% /var/li>log </olbr>
[[File:pi3b-img334tmpfs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.png|408x254px]]6G &nbsp;&nbsp;&nbsp; 80K 1.6G 1% /run/user/1000 <br>
'''pool1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 489G &nbsp;&nbsp;&nbsp; 9.3M 489G 1% <span style="color:#FF0000">/pool1</span>''' <br>|}</ol><ol start="35" style="list-style-type: lower-alphadecimal;"><li>Use the following command to see that the file system type of pool1 is zfs<p/li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''Restart QT Creator after the Settings are completemount | grep pool1'''</p></li><li><p>Then make sure that QT Creator uses the GCC compiler, if the default is Clang, change it to GCC</p></li></ol>
pool1 on /pool1 type '''Debian12 Please skip this step<span style="color:#FF0000">zfs</span>''' (rw,xattr,noacl)|}</ol><ol start="6" style="list-style-type: decimal;"><li>Then we can test copying a file to the ZFS pool</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo cp -v /usr/local/test.mp4 /pool1/'''
[[File:pi3b'/usr/local/test.mp4' -img335&gt; '/pool1/test.pngmp4'|576x315px]]}</ol><span id="test-the-data-deduplication-function-of-zfs"></span>
[[File:pi3b-img336.png|575x307px]]=== Test the data deduplication function of ZFS ===
<ol start# The data deduplication function of ZFS is disabled by default, we need to execute the following command to enable it::{| class="7wikitable" style="list-style-typewidth: decimal800px;"><li>You can then open a sample code</li></ol>|-| orangepi@orangepi:~$ '''sudo zfs set dedup=on pool1'''|}
[[File<ol start="2" style="list-style-type: decimal;"><li>Then do a simple test, first enter pool1, and then execute the following command to generate a random file with a size of 1G</li>{| class="wikitable" style="width:pi3b800px;" |-img337.png|575x312px]]orangepi@orangepi:~$ '''cd /pool1/'''
<ol start="8" styleroot@orangepi:/pool1$ '''sudo dd if="list-style-type: decimal;"><li>Clicking on the example code will automatically open the corresponding instruction document, you can carefully read the instructions</li><dev/ol>urandom of=test.1g bs=1M count=1024'''
[[File:pi3b-img338.png|576x218px]]1024+0 records in
<ol start="9" style="list-style-type: decimal;"><li>Then click '''Configure Project'''</li></ol>1024+0 records out
[[File1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.04367 s, 213 MB/s|}</ol><ol start="3" style="list-style-type: decimal;"><li>Then use the following command to copy 1000 random files of size 1G</li>{| class="wikitable" style="width:pi3b800px;" |-img339| root@orangepi:/pool1$ '''for ((i=0; i&lt;1000; i++)); do sudo cp test.1g $i.test.png1g; done'''|}</ol><ol start="4" style="list-style-type: decimal;"><li>Then use '''du -lh''' to see that there are currently 1002G of data in the pool, but in fact the size of the ZFS pool is only '''504GB''' (the total capacity of SSD+U disk), which cannot hold such a large amount of data</li>{| class="wikitable" style="width:800px;" |-|575x304px]]root@orangepi:/pool1$ '''du -lh'''
1002G|}</ol><ol start="105" style="list-style-type: decimal;"><li>Then click use the green triangle in the lower left corner '''zpool list''' command to compile and run see that only 1.01G is actually occupied, because these 1001 files are all duplicates, indicating that the sample codedata deduplication function is effective.</li></ol>
[[File:pi3b-img340img371.png|575x312px]]</ol><span id="test-the-data-compression-function-of-zfs"></span>
<ol start="11" style="list-style-type: decimal;"><li>After waiting for a period = Test the data compression function of time, the interface shown in the following figure will pop up, which indicates that QT can compile and run normally</li></ol>ZFS ===
[[File:pi3b-img341.png|576x308px]]# Because the stored data is different, the disk space saved by compression will also be different, so we choose to compress relatively large plain text files for compression testing, and execute the following commands to pack the '''/var/log/''' and '''/etc/''' directories into a tarball
<ol start::{| class="12wikitable" style="list-style-typewidth: decimal800px;"><li>Reference documents<|-| orangepi@orangepi:~$ '''cd /li><pool1/ol>'''
httpsroot@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log//wiki.qt.ioetc/Install_Qt_5_on_Ubuntu'''|}
https<ol start="2" style="list-style-type:decimal;"><li>Then the file size that can be seen through the '''ls -lh''' command and the space occupied in the ZFS pool are both '''27M'''<//download.qt.io/archive/qtcreatorli>
https[[File:pi3b-img372.png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Then we enable compression in the ZFS pool pool1</downloadli>{| class="wikitable" style="width:800px;" |-| root@orangepi:/pool1$ '''sudo zfs set compression=lz4 pool1'''|}</ol><ol start="4" style="list-style-type: decimal;"><li>Then execute the following command again to package the '''/var/log/''' and '''/etc/''' directories into a tar package</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log/ /etc/'''|}</ol><ol start="5" style="list-style-type: decimal;"><li>At this time, you can see that the size of the '''text.qttar''' file is still 27M, but it only occupies 9.io/archive47M in the ZFS pool, indicating that the file is compressed</qtli>
[[File:pi3b-img373.png]]</ol><span id="roshow-to-shut-installationdown-methodand-restart-the-development-board"></span>== ROS Installation Method ==
<span id="how-to-install-ros-1-noetic-on-ubuntu-20.04"></span>=== How to install ROS 1 Noetic on Ubuntu 20.04 =shut down and restart the development board ==
# The current active version During the running of ROS 1 the Linux system, if the Type-C power supply is as followsdirectly unplugged, some data may be lost or damaged in the file system, so please use the recommended version is '''Noetic Ninjemyspoweroff'''command to shut down the Linux system of the development board before powering off. Then unplug the power again.
[[File:pi3b:{| class="wikitable" style="width:800px;" |-img342.png| orangepi@orangepi:~$ '''sudo poweroff'''|345x235px]]}
[[File<ol start="2" style="list-style-type:pi3b-img343decimal;"><li>In addition, the development board is equipped with a switch button, and you can also '''short press''' the switch button on the development board to shut down.png|576x210px]]</li>
[http[File://docspi3b-img374.ros.org/ http://docs.ros.orgpng]]
'''https://wiki.ros.org/Distributions''' <ol start{| class="2wikitable" style="listbackground-style-typecolor:#ffffdc;width: decimal800px;">|-| <libig>The official installation document link of ROS 1 '''Noetic NinjemysNote that the Linux desktop version system will pop up a confirmation box as shown in the figure below after pressing the switch button, and the system will shut down only after clicking the Shut Down option.''' is as follows:</li></olbig[http://wiki.ros.org/noetic/Installation/Ubuntu '''http://wiki.ros.org/noetic/Installation/Ubuntu''']
[[File:pi3b-img375.png|center]]
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>In Short press the official installation document of ROS '''Noetic Ninjemys''', Ubuntu recommends using Ubuntu20.04, so please make sure that the system used by switch button on the development board is '''Ubuntu20after shutting down to start up.04 desktop system'''</li></ol> http://wiki.ros.org/noetic/Installation [[File:pi3b-img344.png|312x176px]]
[[File:pi3b-img374.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then use The command to restart the script below to install ros1Linux system is</li>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''sudo''' '''reboot'''|}</ol><span id="linux-sdkorangepi-build-instructions"></span>
orangepi@orangepi3b:~$ = '''install_ros.sh ros1Linux SDK——orangepi-build instructions'''=
<ol startspan id="5" style="listcompilation-stylesystem-type: decimal;requirements"><li/span>Before using the ROS tool, you first need to initialize rosdep, and then you can quickly install some == Compilation system dependencies and some core components in ROS when compiling the source code</li></ol>requirements ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that running We can cross-compile the Linux image of the following command needs to ensure that development board on the x64 computer, or compile the Linux image of the development board on the Ubuntu22.04 system of the development board can access github normally, otherwise an error will be reported due please choose one according to network problemsyour preference.'''
'''The install_ros.sh script will try to modify /etc/hosts and automatically run the following commands. However, this method cannot guarantee normal access to github every time. If the following error is displayed after installing ros1 in install_ros.sh, please find other ways to allow the Linux system of the development board to access github normally, and then manually run the following Order.'''
'''https://rawIf you use orangepi-build to compile the Linux image in the Ubuntu22.githubusercontent04 system of the development board, please do a good job of cooling (especially when the SSD starts).com/ros/rosdistro/master/rosdep/osx-homebrewIf the heat dissipation is not done well, it is prone to the error of file system runaway.yaml'''</big>|}
'''Hit https://raw.githubusercontent<span id="compile-with-the-ubuntu22.com/ros/rosdistro/master/rosdep04-system-of-the-development-board"></basespan>=== Compile with the Ubuntu22.yaml'''04 system of the development board ===
# The Linux SDK, namely '''ERROR: error loading sources list:orangepi-build''', supports running on the '''Ubuntu 22.04''' of the development board (other systems have not been tested), so before downloading orangepi-build, please first ensure that the Ubuntu version installed on the development board is Ubuntu 22.04. The command to check the Ubuntu version installed on the development board is as follows. If the Release field does not display '''22.04''', it means that the current Ubuntu version does not meet the requirements. Please replace the system before performing the following operations.
::{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''The read operation timed outlsb_release -a'''
orangepi@orangepi:~$ '''source /opt/ros/noetic/setupNo LSB modules are available.bash'''
orangepi@orangepiDistributor ID:~$ '''sudo rosdep init'''Ubuntu
Wrote /etc/ros/rosdep/sourcesDescription: Ubuntu 22.list04.d/20-default.list1 LTS
RecommendedRelease: please run'''<span style="color:#FF0000">22.04</span>'''
rosdep updateCodename: jammy|}
orangepi@orangepi<ol start="2" style="list-style-type:~$ decimal;"><li>'''rosdep update<span style="color:#FF0000">Since the source codes such as the kernel and U-boot are stored on GitHub, it is very important to ensure that the development board can download codes from GitHub normally when compiling the image.</span>'''</li></ol>
reading in sources list data from /etc/ros/rosdep<span id="compile-with-x64-ubuntu22.04-computer"></sources.list.dspan>
Hit https://raw=== Compile with x64 Ubuntu22.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml04 computer ===
Hit https://raw# The Linux SDK, '''orangepi-build''', supports running on computers with '''Ubuntu 22.githubusercontent04''' installed, so before downloading orangepi-build, please make sure that the Ubuntu version installed on your computer is Ubuntu 22.com/ros/rosdistro/master/rosdep/base04. The command to check the Ubuntu version installed on the computer is as follows. If the Release field does not display '''22.04''', it means that the current Ubuntu version does not meet the requirements. Please replace the system before performing the following operations.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml:{| class="wikitable" style="width:800px;" |-| test@test:~$ '''lsb_release -a'''
Hit https://rawNo LSB modules are available.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit httpsDistributor ID://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yamlUbuntu
Query rosdistro index httpsDescription://rawUbuntu 22.githubusercontent.com/ros/rosdistro/master/index-v4.yaml04 LTS
Skip end-of-life distro &quot;ardent&quot;Release: '''<span style="color:#FF0000">22.04</span>'''
Skip end-of-life distro &quot;bouncy&quot;Codename: jammy|}
Skip end<ol start="2" style="list-ofstyle-life distro &quot;crystal&quottype: decimal;"><li><p>If the computer is installed with Windows system and there is no computer with Ubuntu 22.04 installed, you can consider using '''VirtualBox''' or '''VMware''' to install an Ubuntu 22.04 virtual machine in the Windows system. But please be careful not to compile orangepi-build on the WSL virtual machine, because orangepi-build has not been tested in the WSL virtual machine, so it cannot be guaranteed that orangepi-build can be used normally in WSL.</p></li><li><p>The download address of the installation image of Ubuntu 22.04 '''<span style="color:#FF0000">amd64</span>''' version is:</p></li>
Skip end{| class="wikitable" style="width:800px;" |-| [https://repo.huaweicloud.com/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso '''https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ofreleases/22.04/ubuntu-life distro &quot;dashing&quot;22.04-desktop-amd64.iso''']
Skip end-of-life distro &quot;eloquent&quot;Or
Add distro &quot'''https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.iso'''|}</ol><ol start="4" style="list-style-type: decimal;foxy&quot"><li><p>After installing Ubuntu 22.04 on the computer or virtual machine, please set the software source of Ubuntu 22.04 to Tsinghua source, otherwise it is easy to make mistakes due to network reasons when installing the software later</p><ol style="list-style-type: lower-alpha;"><li>For the method of replacing Tsinghua source, please refer to the instructions on this web page</li>
Add distro &quot{| class="wikitable" style="width:800px;galactic&quot" |-| '''https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Note that the Ubuntu version needs to be switched to 22.04</li>
Skip end[[File:pi3b-ofimg376.png]]</ol><ol start="3" style="list-style-type: lower-life distro &quot;groovy&quotalpha;"><li>The content of the '''/etc/apt/sources.list''' file that needs to be replaced is</li>
Add distro &quot;humble&quot{| class="wikitable" style="width:800px;" |-| test@test:~$ '''sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak'''
Skip end-of-life distro &quot;hydro&quot;test@test:~$ '''sudo vim /etc/apt/sources.list'''
Skip end-<p># By default, the source image is commented to improve the speed of-life distro &quot;indigo&quot;apt update, you can uncomment it yourself if necessary</p>
Skip end-of-life distro &quot;jade&quot;deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
Skip end<p># deb-of-life distro &quot;kinetic&quot;src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse</p>
Skip enddeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-of-life distro &quot;lunar&quot;updates main restricted universe multiverse
Add distro &quot;melodic&quot;<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse</p>
Add distro &quot;noetic&quot;deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
Add distro &quot;rolling&quot;<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse</p>
updated cache in deb https:/home/orangepi/mirrors.tuna.tsinghua.edu.roscn/rosdepubuntu/sources.cachejammy-security main restricted universe multiverse
<ol start="6" style="list-style-type: decimal;"><li><p>Then open a command line terminal window on the desktop, and then use the test_ros.sh script to start a small turtle routine to test whether ROS can be used normallyorangepi@orangepi# deb-src https:~$ '''test_ros.sh'''</p></li><li><p>After running the '''test_rosmirrors.tuna.tsinghua.edu.sh''' script, a little turtle as shown in the figure below will pop up<cn/p><ubuntu/li>jammy-security main restricted universe multiverse</olp>
<div class="figure">
[[File:pi3b<p># Pre-img345.png|575x275px|图片4]]release software source, not recommended to enable</p>
</divp><ol start="8" style="list-style-type# deb https: decimal;"><li>Then please keep the terminal window just opened at the top</li>/mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</olp>
<div p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</p>|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>After the replacement, you need to update the package information and make sure there is no error</li>{| class="figurewikitable" style="width:800px;" |-| test@test:~$ '''sudo apt update'''|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>'''<span style="color:#FF0000">In addition, since the source codes such as the kernel and U-boot are stored on GitHub, it is very important to ensure that the computer can download codes from GitHub normally when compiling the image.</span>'''</li></ol></li></ol><span id="get-the-source-code-of-linux-sdk"></span>
[[File:pi3b-img346.png|576x275px|图片5]]== Get the source code of Linux sdk ==
</div><ol startspan id="9" style="listdownload-orangepi-build-stylefrom-type: decimal;github"><li>At this time, press the direction keys on the keyboard to control the little turtle to move up, down, left, and right</li></olspan>=== Download orangepi-build from github ===
[[File:pi3b# The Linux sdk actually refers to the code of orangepi-build. orangepi-build is modified based on the armbian build system. Using orangepi-img347build, multiple versions of Linux images can be compiled.png|575x296px]]First download the code of orangepi-build, the command is as follows:
<span id::{| class="howwikitable" style="width:800px;" |-to| test@test:~$ '''sudo apt-install-ros-2-galactic-on-ubuntu-20.04"></span>=== How to install ROS 2 Galactic on Ubuntu 20.04 ===get update'''
# The current active version of ROS 2 is as follows, the recommended version is test@test:~$ '''Galactic Geochelonesudo apt-get install -y git'''
[[Filetest@test:pi3b~$ '''git clone https://github.com/orangepi-img348xunlong/orangepi-build.pnggit -b next'''|}::{| class="wikitable" style="background-color:#ffffdc;width:800px;" |576x271px]]-| <big>'''Note that the Orange Pi 3B development board needs to download the source code of the <span style="color:#FF0000">next</span> branch of orangepi-build. The above git clone command needs to specify the branch of the orangepi-build source code as next.'''</big>
[[File:pi3b-img349.png|575x265px]]<div class="figure">
[http[File://docspi3b-img377.ros.orgpng|center]] </ httpdiv>|}:://docs.ros.org]{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''http://docsDownloading the orangepi-build code through the git clone command does not require entering the user name and password of the github account (the same is true for downloading other codes in this manual), if the Ubuntu PC prompts the user to enter the github account after entering the git clone command The name and password are usually entered incorrectly in the address of the orangepi-build warehouse behind the git clone.rosPlease check the spelling of the command carefully, instead of thinking that we forgot to provide the username and password of the github account.org/en/galactic/Releases.html'''</big>|}
<ol start="2" style="list-style-type: decimal;">
<li>The link to u-boot and Linux kernel versions currently used by the official ROS 2 '''Galactic Geochelone''' installation documentation is development board are as follows:</li></ol>
{| class="wikitable" style="width:800px;text-align: center;"|-|'''branch'''|'''u-boot version'''|'''docs.ros.org/en/galactic/Installation.htmlLinux Kernel version'''|-|'''legacy'''|'''http://docsu-boot 2017.ros09'''|'''Linux5.org/en/galactic/Installation/Ubuntu10'''|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-Install| <big>'''The branch mentioned here is not the same thing as the branch of the orangepi-Debiansbuild source code, please do not confuse it. This branch is mainly used to distinguish different kernel source code versions.html'''
'''Currently, the Linux5.10 bsp kernel provided by RK is defined as the legacy branch. If the mainline kernel is supported in the future, a current branch will be added.'''</big>
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li><p>It is recommended to use Ubuntu20.04 in orangepi-build will contain the official installation document of ROS 2 following files and folders after downloading</p><ol style="list-style-type: lower-alpha;"><li><p>'''Galactic Geochelonebuild.sh''', so please ensure that : Compile the system used by the development board is startup script</p></li><li><p>'''Ubuntu20.04 desktop versionexternal'''. There are several ways : Contains the configuration files needed to install ROS 2compile the image, specific scripts, and the source code of some programs, etc. The following shows how to install ROS 2 </p></li><li><p>'''Galactic Geochelone''' using '''Debian packagesLICENSE''': GPL 2 license file</p></li><li><p>README.md: orangepi-build documentation</p></li><li><p>Use the '''install_ros.shscripts''' : General script to install ros2for compiling Linux images</p></li><{| class="wikitable" style="width:800px;" |-| test@test:~/ol>orangepi-build$ '''ls'''
orangepi@orangepi'''build.sh &nbsp;&nbsp;&nbsp;&nbsp; external &nbsp;&nbsp;&nbsp;&nbsp; LICENSE &nbsp;&nbsp;&nbsp;&nbsp; README.md &nbsp;&nbsp;&nbsp;&nbsp; scripts'''|}{| class="wikitable" style="background-color:#ffffdc;width:~$ 800px;" |-| <big>'''install_rosIf you downloaded the code of orangepi-build from github, after downloading, you may find that orangepi-build does not contain the source code of u-boot and Linux kernel, nor does u-boot and Linux kernel need to use cross-compilation tools Chain, this is normal, because these things are stored in other separate github warehouses or some servers (the addresses will be detailed below). orangepi-build will specify the address of u-boot, Linux kernel and cross-compilation toolchain in the script and configuration file. When running orangepi-build, when it finds that there are no such things locally, it will automatically go to the corresponding place to download them.sh ros2'''</big>|}</ol></li></ol><span id="download-the-cross-compilation-toolchain"></span>
<ol start="5" style="list-style-type: decimal;"><li>The '''install_ros.sh''' script will automatically run = Download the '''ros2 cross-h''' command after installing ros2. If you can see the following print, it means that the ros2 installation is complete</li></ol>compilation toolchain ===
usage{| class="wikitable" style="background-color: ros2 [-h] Call `ros2 &lt#ffffdc;command&gtwidth:800px; " |-h` for more detailed usage| <big>'''The cross-compilation toolchain will only be downloaded when the orangepi-build compilation image is used on an x64 computer. Compiling the Linux image of the development board in the Ubuntu22.04 of the development board will not download the cross-compilation toolchain.At this time, orangepi-build/toolchains will be an empty folder.'''</big>|}
ros2 is an extensible command# When orangepi-line tool build runs for ROS 2the first time, it will automatically download the cross-compilation toolchain and put it in the '''toolchains''' folder. Every time after running the build.sh script of orangepi-build, it will check whether the cross-compilation toolchain in '''toolchains''' exists , if it does not exist, the download will be restarted, if it exists, it will be used directly, and the download will not be repeated.
optional arguments:<div class="figure">
::[[File:pi3b-h, --help show this help message and exitimg378.png]]
Commands</div><ol start="2" style="list-style-type: decimal;"><li>The image URL of the cross-compilation toolchain in China is the open source software image site of Tsinghua University</li>{| class="wikitable" style="width:800px;" |-| '''https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/'''|}</ol><ol start="3" style="list-style-type:decimal;"><li>After '''toolchains''' is downloaded, it will contain multiple versions of cross-compilation toolchains, and the development board will only use two of them</li>action Various action related sub{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-commandsbuild$ '''ls toolchains/'''
bag Various rosbag related subgcc-commandsarm-11.2-2022.02-x86_64-aarch64-none-linux-gnu
component Various component related subgcc-commandsarm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf
daemon Various daemon related subgcc-commandsarm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
doctor Check ROS setup and other potential issuesgcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf
interface Show information about ROS interfacesgcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi
launch Run a launch filegcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf
lifecycle Various lifecycle related subgcc-commandslinaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu
multicast Various multicast related subgcc-commandslinaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi
node Various node related subgcc-commandslinaro-aarch64-none-elf-4.8-2013.11_linux
param Various param related subgcc-commandslinaro-arm-linux-gnueabihf-4.8-2014.04_linux
pkg Various package related subgcc-commandslinaro-arm-none-eabi-4.8-2014.04_linux|}</ol><ol start="4" style="list-style-type: decimal;"><li><p>The cross-compilation toolchain used to compile the Linux kernel source code is</p><ol style="list-style-type: lower-alpha;"><li>Linux5.10</li>{| class="wikitable" style="width:800px;" |-| '''gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu'''|}</ol></li></ol><ol start="5" style="list-style-type: decimal;"><li><p>The cross-compilation tool chain used to compile the u-boot source code is</p><ol style="list-style-type: lower-alpha;"><li>v2017.09</li>{| class="wikitable" style="width:800px;" |-| '''gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu'''|}</ol></li></ol><span id="orangepi-build-complete-directory-structure-description"></span>
run Run a package specific executable=== orangepi-build complete directory structure description ===
security Various security related sub<ol style="list-style-commandstype: decimal;"><li><p>The orangepi-build repository does not contain the source code of the Linux kernel, u-boot, and cross-compilation toolchain after downloading. The source code of the Linux kernel and u-boot is stored in an independent git repository</p>service Various service related sub<ol style="list-commandsstyle-type: lower-alpha;"><li>The git repository where the Linux kernel source code is stored is as follows:</li>topic Various topic related sub{| class="wikitable" style="width:800px;" |-commands| wtf Use `wtf` as alias to `doctor`'''https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx'''|}</ol>Call `ros2 &lt<ol start="2" style="list-style-type: lower-alpha;command&gt"><li>The git warehouse where the b.u-boot source code is stored is as follows:</li>{| class="wikitable" style="width:800px; " |-h` for more detailed usage| '''https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2017.09-rk3588'''|}</ol></li></ol><ol start="62" style="list-style-type: decimal;"><li>Then you <p>When orangepi-build runs for the first time, it will download the cross-compilation toolchain, u-boot and Linux kernel source code. After successfully compiling a Linux image, the files and folders that can use the be seen in orangepi-build are:</p>:<p>a. '''test_rosbuild.sh''' : compile startup script </p>:<p>b. '''external''': Contains the configuration files needed to test whether ROS compile the image, scripts with specific functions, and the source code of some programs. The rootfs compressed package cached during the image compilation process is also stored in external</p>:<p>c. '''kernel''': stores the source code of the Linux kernel, and the folder named orange-pi-5.10-rk35xx stores the kernel source code of the legacy branch of the RK3588/RK3588S/RK3566 series development boards. Please do not manually name the folder name of the kernel source code Modify, if modified, the kernel source code will be re-downloaded when the compilation system is running</p>:<p>d. '''LICENSE''': GPL 2 is installed successfullylicense file</p>:<p>e. '''README'''.md: orangepi-build documentation</p>:<p>f. '''output''': Store compiled deb packages such as u-boot and Linux, compilation logs, and compiled images and other files</p>:<p>g. '''scripts''': general scripts for compiling Linux images</p>:<p>h. '''toolchains''': store cross-compilation toolchain</p>:<p>i. '''u-boot''': stores the source code of u-boot, the folder named v2017. If you can see 09-rk3588 stores the u-boot source code of the legacy branch of the RK3588/RK3588S/RK3566 series development boards, the name of the folder of the following printu-boot source code Please do not modify it manually, if it means that ROS 2 can run normallyis modified, the u-boot source code will be re-downloaded when the compiling system is running</p>:<p>j. '''userpatches''': Store configuration files needed to compile scripts</p></li>:{| class="wikitable" style="width:800px;" |-| <p>test@test:~/orangepi-build$ '''ls'''</p><p>'''build.sh &nbsp;&nbsp;&nbsp; external &nbsp;&nbsp;&nbsp; kernel &nbsp;&nbsp;&nbsp; LICENSE &nbsp;&nbsp;&nbsp; output &nbsp;&nbsp;&nbsp; README.md &nbsp;&nbsp;&nbsp; scripts &nbsp;&nbsp;&nbsp; toolchains &nbsp;&nbsp;&nbsp; u-boot &nbsp;&nbsp;&nbsp; userpatches'''</p>|}</ol><span id="compile-u-boot"></span>
orangepi@orangepi3b:~$ '''test_ros.sh'''== Compile u-boot ==
[INFO] [1671174101# Run the build.200091527] [talker]: Publishing: 'Hello World: 1'sh script, remember to add sudo permission
[INFO] [1671174101.235661048] [listener]: I heard: [Hello World{| class="wikitable" style="width:800px;" |-| test@test: 1]~/orangepi-build$ '''sudo ./build.sh'''|}
[INFO] [1671174102.199572327] [talker]: Publishing<ol start="2" style="list-style-type: decimal;"><li>Select '''U-boot package''Hello World: 2', then enter</li>
[INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]<div class="figure">
[INFO] [1671174103File:pi3b-img379.199580322png] [talker]: Publishing: 'Hello World: 3'
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]</div></ol><ol start="73" style="list-style-type: decimal;"><li>Run Then select the model of the following command to open rviz2development board</li></ol> orangepi@orangepi:~$ '''source /opt/ros/galactic/setup.bash''' orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
<div class="figure">
[[File:pi3b-img350img380.png|576x324px|1]]
</div></ol><ol start="84" style="list-style-type: decimal;"><li>For the usage of ROS<p>Then it will start to compile u-boot, please refer to the documentation of ROS 2and some information prompted during compilation is explained as follows</p><ol style="list-style-type: lower-alpha;"><li>u-boot source code version</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Compiling u-boot [ '''v2017.09''' ]|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>The version of the cross-compilation toolchain</li>http{| class="wikitable" style="width:800px;" |-| [ o.k. ] Compiler version [ '''aarch64-linux-gnu-gcc 7.4.1''' ]|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Path to the generated u-boot deb package</docsli>{| class="wikitable" style="width:800px;" |-| [ o.rosk.org] Target directory [ '''orangepi-build/enoutput/galacticdebs/Tutorials.htmlu-boot''' ]|}</ol><span idol start="how4" style="list-style-totype: lower-installalpha;"><li>The package name of the generated u-rosboot deb package</li>{| class="wikitable" style="width:800px;" |-2| [ o.k. ] File name [ '''linux-humbleu-onboot-ubuntulegacy-22orangepi3b_1.040.0_arm64.deb''' ]|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>Compilation time</spanli>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Runtime [ '''1 min''' ]|}</ol><ol start="6" style= How "list-style-type: lower-alpha;"><li>Repeat the command to compile u-boot, use the following command to install ROS 2 Humble on Ubuntu 22start compiling u-boot directly without selecting through the graphical interface</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Repeat Build Options [ '''sudo ./build.04 sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=u-boot KERNEL_CONFIGURE=no''' ]|}</ol></li></ol><ol start="5" style="list-style-type: decimal;"># Use <li>View the u-boot deb package generated by compilation</li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''install_ros.shls output/debs/u-boot/''' script to install ros2
orangepilinux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb|}</ol><ol start="6" style="list-style-type: decimal;"><li><p>The files contained in the generated u-boot deb package are as follows</p><ol style="list-style-type: lower-alpha;"><li>Use the following command to decompress the deb package</li>{| class="wikitable" style="width:800px;" |-| test@orangepitest:~/orangepi-build$ '''install_ros.sh ros2cd output/debs/u-boot'''
<ol start="2" style="list-styletest@test:~/orangepi_build/output/debs/u-type: decimal;"><li>The boot$ $ '''install_ros.sh''' script will automatically run the '''ros2 dpkg -hx''' command after installing ros2. If you can see the following print, it means that the ros2 installation is complete</li></ol>\
usage: ros2 ['''linux-h] Call `ros2 &lt;command&gt; u-boot-legacy-h` for more detailed usageorangepi3b_1. 0.0_arm64.deb .(Note that there is a &quot;.&quot; at the end of the command)'''
ros2 is an extensible commandtest@test:~/orangepi_build/output/debs/u-line tool for ROS 2.boot$ '''ls'''
optional argumentslinux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb '''usr'''|}</ol><ol start="2" style="list-style-type:lower-alpha;"><li>The decompressed file is as follows</li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build/output/debs/u-boot$ '''tree usr'''
-h, --help show this help message and exitusr
Commands:└── lib
action Various action related sub:├── linux-commandsu-boot-legacy-orangepi3b_1.0.0_arm64
bag Various rosbag related sub-commands:│   ├── idbloader.img
component Various component related sub-commands:│   ├── rkspi_loader.img
daemon Various daemon related sub:│   └── u-commandsboot.itb
doctor Check ROS setup and other potential issues:└── u-boot
interface Show information about ROS interfaces::├── LICENSE
launch Run a launch file::├── orangepi-3b-rk3566_defconfig
lifecycle Various lifecycle related sub-commands::└── platform_install.sh
multicast Various multicast related sub-commands
node Various node related sub3 directories, 6 files|}</ol></li></ol><ol start="7" style="list-commandsstyle-type: decimal;"><li>When the orangepi-bulid compilation system compiles the u-boot source code, it will first synchronize the u-boot source code with the u-boot source code of the github server, so if you want to modify the u-boot source code, you first need to turn off the download and update function of the source code '''(This function needs to be fully compiled once u-boot, otherwise it will prompt that the source code of u-boot cannot be found. If the source code compressed package is downloaded from Google cloud disk, there is no such problem, because the source code of u-boot have been cached)''', otherwise the changes made will be reverted, the method is as follows:</li>
param Various param related subSet the IGNORE_UPDATES variable in userpatches/config-commandsdefault.conf to &quot;yes&quot;
pkg Various package related sub{| class="wikitable" style="width:800px;" |-commands| test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''
run Run a IGNORE_UPDATES=&quot;'''<span style="color:#FF0000">yes</span>'''&quot;|}</ol><ol start="8" style="list-style-type: decimal;"><li><p>When debugging u-boot code, you can use the following method to update u-boot in the Linux image for testing</p><ol style="list-style-type: lower-alpha;"><li>Upload the compiled u-boot deb package specific executableto the Linux system of the development board</li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''cd output/debs/u-boot'''
security Various security related subtest@test:~/orangepi_build/output/debs/u-commandsboot$ '''scp \'''
service Various service related sub'''linux-commandsu-boot-legacy-orangepi3b_1.0.0_arm64.deb root@192.168.1.xxx:/root'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then log in to the development board and uninstall the deb package of u-boot installed</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''apt purge -y linux-u-boot-orangepi3b-legacy'''|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Install the new u-boot deb package just uploaded</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''dpkg -i''' '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb'''|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then run the nand-sata-install script</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''nand-sata-install'''|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>Then select '''5 Install/Update the bootloader on SD/eMM''' to update the u-boot in the TF card or '''7 Install/Update the bootloader on SPI Flash''' to update the u-boot in the SPI Flash</li>
topic Various topic related sub[[File:pi3b-commandsimg381.png]]</ol><ol start="6" style="list-style-type: lower-alpha;"><li>After pressing the Enter key, a Warning will pop up first</li>
wtf Use `wtf` as alias [[File:pi3b-img382.png]]</ol><ol start="7" style="list-style-type: lower-alpha;"><li>Press the Enter key again to `doctor`start updating u-boot, and the following information will be displayed after the update is completed</li>
Call `ros2 &lt;command&gt; [[File:pi3b-h` for more detailed usageimg383.png]]</ol><ol start="38" style="list-style-type: decimallower-alpha;"><li>Then you can use restart the development board to test whether the modification of u-boot takes effect</li></ol></li></ol><!-- --><ol start="9" style="list-style-type: decimal;"><li><p>Other useful information</p><ol style="list-style-type: lower-alpha;"><li>In the u-boot 2017.09 source code, the defconfig configuration file used by the development board is</li>{| class="wikitable" style="width:800px;" |-| [https://github.com/orangepi-xunlong/u-boot-orangepi/blob/v2017.09-rk3588/configs/orangepi_5_defconfig '''test_rosorangepi-build/u-boot/v2017.sh09-rk3588/configs/orangepi-3b-rk3566_defconfig''' script to test whether ROS ]|}</ol><ol start="2 " style="list-style-type: lower-alpha;"><li>In the u-boot 2017.09 source code, the dts file used by the development board is installed successfully</li>{| class="wikitable" style="width:800px;" |-| [https://github.com/orangepi-xunlong/u-boot-orangepi/blob/v2017.09-rk3588/arch/arm/dts/rk3588s-orangepi-5.dts '''orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3566-orangepi-3b. If you can see the following print, it means that ROS 2 can run normallydts''']|}</ol></li></ol><span id="compile-the-linux-kernel"></span>
orangepi@orangepi3b:~$ '''test_ros.sh'''== Compile the Linux kernel ==
[INFO] [1671174101# Run the build.200091527] [talker]: Publishing: 'Hello World: 1'sh script, remember to add sudo permission
[INFO] [1671174101.235661048] [listener]: I heard: [Hello World{| class="wikitable" style="width:800px;" |-| test@test: 1]~/orangepi-build$ '''sudo ./build.sh'''|}
[INFO] [1671174102.199572327] [talker]: Publishing<ol start="2" style="list-style-type: decimal;"><li>Select '''Kernel package''Hello World: 2', then enter</li>
[INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]<div class="figure">
[INFO] [1671174103File:pi3b-img384.199580322png] [talker]: Publishing: 'Hello World: 3'
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World</div></ol><ol start="3" style="list-style-type: 3]decimal;"><li>Then select the model of the development board</li>
<ol startdiv class="4figure" style="list-style-type: decimal;"><li>Run the following command to open rviz2</li></ol>
orangepi@orangepi[[File:~$ '''source /opt/ros/humble/setuppi3b-img380.bash'''png]]
orangepi@orangepi</div></ol><ol start="4" style="list-style-type:~$ '''ros2 run rviz2 rviz2'''decimal;"><li>Then it will prompt whether to display the kernel configuration interface. If you do not need to modify the kernel configuration, select the first one. If you need to modify the kernel configuration, select the second one.</li>
<div class="figure"> [[File:pi3b-img351img385.png|576x324px|1]] </divol>
<ol start="5" style="list-style-type: decimal;">
<li>Reference documentsIf you choose to display the kernel configuration menu (the second option) in step 4), the kernel configuration interface opened by '''make menuconfig''' will pop up. At this time, you can directly modify the kernel configuration, save and exit after modification. Yes, after exiting, the kernel source code will be compiled</li></ol>
'''http[[File://docspi3b-img386.ros.org/en/humble/index.html'''png]]
[http<ol style="list-style-type://docslower-alpha;"><li>If you do not need to modify the configuration options of the kernel, when running the build.ros.orgsh script, pass in '''KERNEL_CONFIGURE=no''' to temporarily block the pop-up kernel configuration interface</enli>{| class="wikitable" style="width:800px;" |-| test@test:~/galactic/Tutorials.html orangepi-build$ '''http://docs.rossudo .org/en/humble/Installation/Ubuntu-Install-Debiansbuild.htmlsh KERNEL_CONFIGURE=no''']|}<span id/ol><ol start="how2" style="list-tostyle-installtype: lower-kernelalpha;"><li><p>You can also set '''KERNEL_CONFIGURE=no''' in the '''orangepi-headerbuild/userpatches/config-files"default.conf''' configuration file, which can permanently disable this function</p></spanli>== How <li><p>If the following error is displayed when compiling the kernel, it is because the terminal interface of the Ubuntu PC is too small to install kernel header files ==display the '''make menuconfig''' interface. Please maximize the terminal of the Ubuntu PC and run the build.sh script again</p></li>
# The Linux image released by OPi comes with the deb package of the kernel header file by default, and the storage location is '''/opt/''' orangepi@orangepi[[File:~$ '''ls /opt/linux-headers*''' /opt/linux-headers-legacy-rockchippi3b-rk356x_x.x.x_arm64img387.debpng]]<ol start="2" style="list-style-type: decimal;"><li>Use the following command to install the deb package of the kernel header file</li></ol> '''The name of the kernel header file deb package needs to be replaced with the actual name, please do not copy it.''' orangepi@orangepi:~$ '''sudo dpkg -i /opt/linux-headers-legacy-rockchip-rk356x_1.x.x_arm64.deb''' <ol start="3" style="list-style-type: decimal;"><li>After installation, you can see the folder where the kernel header files are located under '''/usr/src'''</li></ol> orangepi@orangepi:~$ '''ls /usr/src''' linux-headers-5.10.160-rockchip-rk356x <ol start="46" style="list-style-type: decimal;"><li><p>Then you can write a hello kernel module to test Part of the information prompted when compiling the kernel header filesource code is as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>First write the code The version of the hello Linux kernel module, as follows:source code</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Compiling current kernel [ '''5.10.160''' ]|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>The version of the cross-compilation toolchain used</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Compiler version [ '''aarch64-none-linux-gnu-gcc 11.2.1''' ]|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>The configuration file used by the kernel by default and the path where it is stored</li>orangepi@orangepi{| class="wikitable" style="width:~$ 800px;" |-| [ o.k. ] Using kernel config file [ '''vim helloconfig/kernel/linux-rockchip-rk356x-legacy.cconfig''']|}</ol>#include &lt<ol start="4" style="list-style-type: lower-alpha;linux"><li>The path of the deb package related to the kernel generated by compiling</initli>{| class="wikitable" style="width:800px;" |-| [ o.h&gtk. ] Target directory [ '''orangepi-build/output/debs/''' ]|}</ol><ol start="5" style="list-style-type: lower-alpha;"><li>The package name of the compiled kernel image deb package</li>#include &lt{| class="wikitable" style="width:800px;" |-| [ o.k. ] File name [ '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' ]|}</moduleol><ol start="6" style="list-style-type: lower-alpha;"><li>The time used for compilation</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Runtime [ '''5 min''' ]|}</ol><ol start="7" style="list-style-type: lower-alpha;"><li>Finally, the compilation command to repeatedly compile the kernel selected last time will be displayed.h&gtUse the following command to start compiling the kernel source code directly without selecting through the graphical interface</li>{| class="wikitable" style="width:800px;" |-| static int hello_init(void)[ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=kernel KERNEL_CONFIGURE=no''' ]|}{</ol></li></ol>printk(&quot<ol start="7" style="list-style-type: decimal;Hello Orange Pi "><li><p>View the deb package related to the kernel generated by compilation</p><ol style="list-style- init\n&quot;)type: lower-alpha;"><li><p>'''linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains dtb files used by the kernel</p></li><li><p>'''linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Include kernel header files</p></li>return <li><p>'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains kernel images and kernel modules</p></li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''ls output/debs/linux-*'''
}output/debs/linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb output/debs/linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb
static void hello_exit(void)output/debs/linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb|}</ol></li></ol><ol start="8" style="list-style-type: decimal;"><li><p>The files contained in the generated Linux-image deb package are as follows</p><ol style="list-style-type: lower-alpha;"><li>Use the following command to decompress the deb package</li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''cd output/debs'''
{test@test:~/orangepi_build/output/debs$ '''mkdir test'''
printk(&quot;Hello Orange Pi -- exittest@test:~/orangepi_build/output/debs$ '''cp \n&quot;);'''
return;'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb test/'''
}test@test:~/orangepi_build/output/debs$ '''cd test'''
module_init(hello_init);test@test:~/orangepi_build/output/debs/test$ '''dpkg -x \'''
module_exit(hello_exit);'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb .'''
MODULE_LICENSE(&quot;GPL&quot;);test@test:~/orangepi_build/output/debs/test$ '''ls'''
'''boot etc lib''' linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb '''usr'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then write the Makefile for compiling the hello kernel module, The decompressed file is as follows:</li><{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build/output/debs/ol>test$ '''tree -L 2'''
orangepi@orangepi:~$ '''vim Makefile'''.
ifneq ($(KERNELRELEASE),)├── boot
obj│   ├── config-m:=hello5.o10.160-rockchip-rk356x
else│   ├── System.map-5.10.160-rockchip-rk356x
KDIR :=/lib/modules/$(shell uname │   └── vmlinuz-r)/build5.10.160-rockchip-rk356x
PWD :=$(shell pwd)├── etc
all:│   └── kernel
make -C $(KDIR) M=$(PWD) modules├── lib
clean:│   └── modules
rm ├── linux-f *.ko *.o *.mod.o *.mod *.symvers *.cmd *image-legacy-rockchip-rk356x_1.mod0.c *0_arm64.orderdeb
endif└── usr
<ol start="3" style="list-style-type: lower-alpha;"><li>Then use the make command to compile the hello kernel module. The output of the compilation process is as follows:</li></ol>├── lib
'''If there is a problem :└── share|}</ol></li></ol><ol start="9" style="list-style-type: decimal;"><li>The orangepi-bulid compilation system will first synchronize the Linux kernel source code with the Linux kernel source code of the github server when compiling the Linux kernel source code , so if you copied herewant to modify the Linux kernel source code, please go you first need to turn off the official tool update function of the source code '''(you need to download compile it once This function can only be turned off after the Linux kernel source code and upload , otherwise it to will prompt that the Linux system source code of the development board for testingLinux kernel cannot be found.If the source code compressed package downloaded from Google cloud disk, there is no such problem, because the source code of Linux has been cached)''', otherwise the The changes made will be reverted as follows:</li>
[[File:pi3bSet the IGNORE_UPDATES variable in '''userpatches/config-img352default.png|337x52px]]conf''' to &quot;yes&quot;
orangepi{| class="wikitable" style="width:800px;" |-| test@orangepitest:~/orangepi-build$ '''makevim userpatches/config-default.conf'''
make -C IGNORE_UPDATES=&quot;'''<span style="color:#FF0000">yes</libspan>'''&quot;|}</ol><ol start="10" style="list-style-type: decimal;"><li><p>If the kernel has been modified, the following method can be used to update the kernel and kernel modulesof the development board Linux system</5.10.160p><ol style="list-style-rockchiptype: lower-35xxalpha;"><li>Upload the deb package of the compiled Linux kernel to the Linux system of the development board</build Mli>{| class="wikitable" style="width:800px;" |-| test@test:~/homeorangepi-build$ '''cd output/orangepi modulesdebs'''
make[1]test@test: Entering directory '~/usrorangepi-build/srcoutput/linux-headers-5.10.160-rockchip-rk35xxdebs$ '''scp \'''
CC '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb root@192.168.1.xxx:/root'''|}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>Then log in to the development board and uninstall the deb package of the installed Linux kernel</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''apt purge -y linux-image-legacy-rockchip-rk356x'''|}</ol><ol start="3" style="list-style-type: lower-alpha;"><li>Install the deb package of the new Linux kernel just uploaded</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''dpkg -i linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb'''|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>Then restart the development board, and then check whether the kernel-related modifications have taken effect</li>{| class="wikitable" style="width:800px;" |-| root@orangepi:~# '''reboot'''|}</ol></li></ol><ol start="11" style="list-style-type: decimal;"><li><p>Other useful information</p><ol style="list-style-type: lower-alpha;"><li>The storage location of the kernel configuration file is as follows, please do not go to the kernel source code to find the kernel configuration file used by the development board</li>{| class="wikitable" style="width:800px;" |-| [Mhttps://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-legacy.config '''orangepi-build/external/config/kernel/linux-rockchip-rk356x-legacy.config'''] |}</ol><ol start="2" style="list-style-type: lower-alpha;"><li>The location of the dts file used by the development board is</li>{| class="wikitable" style="width:800px;" |-| [https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-5.10-rk3588/arch/arm64/homeboot/dts/rockchip/rk3588s-orangepi-5.dts '''orangepi-build/kernel/helloorange-pi-5.o10-rk35xx/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts''']|}</ol></li></ol><span id="compile-rootfs"></span>
MODPOST /home/orangepi/Module.symvers== Compile rootfs ==
CC [M] /home/orangepi/hello# Run the build.mod.osh script, remember to add sudo permission
LD [M] /home::{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''sudo ./hellobuild.kosh'''|}
make[1]<ol start="2" style="list-style-type: Leaving directory decimal;"><li>Select '''Rootfs and all deb packages''', then enter</usr/src/linux-headers-5.10.160-rockchip-rk35xx'li>
<ol startdiv class="4figure" style="list-style-type: lower-alpha;"><li>After compiling, the '''hello.ko''' kernel module will be generated</li></ol>
orangepi@orangepi[[File:~$ '''ls *pi3b-img388.ko'''png]]
hello.ko</div></ol><ol start="3" style="list-style-type: decimal;"><li>Then select the model of the development board</li>
<ol startdiv class="5figure" style="list-style-type: lower-alpha;"><li>Use the '''insmod''' command to insert the '''hello.ko''' kernel module into the kernel</li></ol>
orangepi@orangepi[[File:~$ '''sudo insmod hellopi3b-img380.ko'''png]]
</div></ol><ol start="64" style="list-style-type: lower-alphadecimal;"><li>Then use select the '''demsg''' command to view the output type of the '''hello.ko''' kernel module. If you can see the output below, it means that the '''hello.ko''' kernel module is loaded correctly.rootfs</li></ol>
orangepi@orangepi[[File:~$ pi3b-img389.png]]</ol><ol start="5" style="list-style-type: decimal;"><li><p>Then select the type of image</p><ol style="list-style-type: lower-alpha;"><li><p>'''Image with console interface (server)''' Indicates the image of the server version, which is relatively small</p></li><li><p>'''dmesg | grep &quot;Hello&quot;Image with desktop environment'''Indicates a image with a desktop, which is relatively large</p></li>
[ 2871.893988] '''Hello Orange Pi -- init'''<div class="figure">
<ol start="7" style="list-style-type[[File: lowerpi3b-alpha;"><li>Use the '''rmmod''' command to uninstall the '''helloimg390.ko''' kernel module</li></ol>png]]
orangepi@orangepi</div></ol></li></ol><ol start="6" style="list-style-type:~$ decimal;"><li>If you are compiling the image of the server version, you can also choose to compile the Standard version or the Minimal version. The pre-installed software of the Minimal version will be much less than that of the Standard version '''sudo rmmod hello(please do not choose the Minimal version if there is no special requirement, because many things are not pre-installed by default. Some functions may not be available)'''</li>
orangepi@orangepi:~$ '''dmesg | grep &quot;Hello&quot;'''<div class="figure">
[ 2871[File:pi3b-img391.893988png]] Hello Orange Pi -- init
[ 3173.800892] '''Hello Orange Pi </div></ol><ol start="7" style="list-style- exit'''type: decimal;"><li>If you are compiling the image of the desktop version, you also need to select the type of desktop environment. Currently, Ubuntu Jammy mainly maintains XFCE and Gnome desktops, Ubuntu Focal only maintains XFCE desktops, and Debian Bullseye mainly maintains XFCE and KDE desktops</li>
<span iddiv class="use-of-the-raspberry-pis-5-inch-screenfigure"></span>== Use of the Raspberry PI's 5-inch screen == <span id="assembly-method-of-raspberry-pi-5-inch-screen"></span>=== Assembly method of Raspberry PI 5-inch screen ===
<ol style="list-style-type: decimal;"><li><p>First prepare the required accessories</p><ol style="list-style-type[[File: lower-alpha;"><li>Raspberry PI 5pi3b-inch MIPI LCD display + touch screen</li></ol></li></ol>img392.png]]
<blockquote/div>[[File:pi3b-img353img393.png|306x219px]]</blockquote><ol start="2" style="list-style-type: lower-alpha;"><li>15pin MIPI cable</li></ol>
<blockquote>[[File:pi3b-img354You can then select additional packages that need to be installed.png|276x111px]]</blockquote><ol start="2" style="list-style-type: decimal;"><li>Then connect Please press the 15pin MIPI cable Enter key to the Raspberry PI 5-inch screen in the way shown below (note the orientation of the insulation surface)</li></ol>skip directly here.
[[File:pi3b-img355img394.png|294x160px]] </ol start="3" style="list-style-type: decimal;"><li>Finally connect to the LCD interface of the Orange Pi 3B development board</li></ol> [[File:pi3b-img356.png|333x199px]] <span idstart="open-the-raspberry-pi-5-inch-screen-configuration-method8"></span>=== Open the Raspberry PI 5-inch screen configuration method === <ol style="list-style-type: decimal;"><li><p>The Linux image does not open the 5-inch screen of the Raspberry PI by default. If you need Then it will start to use the 5-inch screen compile rootfs, and some of the Raspberry PI, you need to open it manually.</p></li><li><p>The steps to open the mipi lcd configuration information prompted during compilation are as follows:</p>
<ol style="list-style-type: lower-alpha;">
<li>First run '''orangepi-config''', ordinary users remember to add '''sudo''' permissionThe type of rootfs</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ [ o.k. ] local not found [ Creating new rootfs cache for '''sudo orangepi-configjammy''']|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select '''System'''The storage path of the compiled rootfs compressed package</li></ol>{| class="wikitable" style="width:800px;" |-| [[File:pi3b-img357o.k.png|575x272px]Target directory [ '''external/cache/rootfs''' ]|}</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then select The name of the rootfs compressed package generated by compilation</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] File name [ '''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' ]|}</ol><ol start="4" style="list-style-type: lower-alpha;"><li>The time used for compilation</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Runtime [ '''Hardware13 min''']|}</ol></li></ol><ol start="9" style="list-style-type: decimal;"><li><p>View the rootfs compressed package generated by compilation</p><ol style="list-style-type: lower-alpha;"><li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' is the rootfs compressed package, the meaning of each field of the name is</p><ol style="list-style-type: none;"><li><p>a) '''jammy''' indicates the type of Linux distribution of rootfs</p></li><li><p>b) '''xfce''' means rootfs is the type of desktop version, if it is '''cli''', it means the type of server version</p></li><li><p>c) '''arm64''' represents the architecture type of rootfs</p></li><li><p>d) '''f930ff6ebbac1a72108a2e100762b18f''' is the MD5 hash value generated by the package names of all software packages installed by rootfs. As long as the list of software packages installed by rootfs is not modified, this value will not change. The compilation script will use this MD5 hash value to generate Determine whether rootfs needs to be recompiled</p></li></ol></li><li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list''' lists the package names of all packages installed by rootfs</p></li>{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-build$ '''ls external/cache/rootfs/'''
[[File:pi3b'''jammy-img358xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.png|576x266px]]lz4'''
<ol start="4" style="listjammy-stylexfce-type: lower-alpha;"><li>Then use the arrow keys on the keyboard to locate the Rasp-7inch-touchscreen, and then use the space button to check</li></ol>arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.current
[[File:pi3bjammy-xfce-img359arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.pnglist|408x310px]]}</ol></li></ol><ol start="10" style="list-style-type: decimal;"><li>If the required rootfs already exists under '''external/cache/rootfs''', then compiling rootfs again will directly skip the compilation process and will not restart the compilation. When compiling the image, it will also go to '''external/cache/rootfs''' to find out whether it has If there is rootfs available in the cache, use it directly, which can save a lot of download and compilation time.</li></ol>
<ol startspan id="5" style="listcompile-stylelinux-type: lower-alpha;image"><li>Then select '''&lt;Save&gt;''' to save</li></olspan>
[[File:pi3b-img360.png|404x133px]]== Compile Linux image ==
<ol start="6" style="list-style-type: lower-alpha;"><li>Then select '''&lt;Back&gt;'''</li></ol># Run the build.sh script, remember to add sudo permission
[[File:pi3b:{| class="wikitable" style="width:800px;" |-| test@test:~/orangepi-img361build$ '''sudo ./build.pngsh'''|397x151px]]}
<ol start="72" style="list-style-type: lower-alphadecimal;"><li>Then select Select '''&lt;Reboot&gt;Full OS image for flashing''' to restart the system for the configuration to take effect, then enter</li></ol>
[[File:pi3b-img362.png|331x154px]]<div class="figure">
'''The above settings will eventually add the configuration of overlays=raspi-7inch-touchscreen to /boot/orangepiEnv.txt. After setting, you can check it first. If this configuration does not exist, then there is a problem with the settings.''' '''If you find it troublesome to use orangepi-config, you can also use the vim editor to open /boot/orangepiEnv.txt, and then add the configuration of overlays=raspi-7inch[[File:pi3b-touchscreen is also possibleimg395.''' orangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep "raspi"''' '''overlays=raspi-7inch-touchscreen #Sample configuration'''png]]
</div></ol>
<ol start="3" style="list-style-type: decimal;">
<li>After startup, you can see Then select the lcd screen display as follows:model of the development board</li></ol>
[[File:pi3b-img363.png|381x262px]]<div class="figure">
<span id="the[[File:pi3b-method-of-server-version-image-rotation-display-direction"></span>=== The method of server version image rotation display direction ===img380.png]]
# Add '''extraargs</div></ol><ol start=fbcon"4" style=rotate"list-style-type:decimal;"><li>Then select the direction to rotate''' in '''/boottype of rootfs</orangepiEnv.txt''' This line configuration can set the direction displayed by the server version of the Linux system, where the number after '''fbcon=rotate:''' can be set as:li>
[[File:pi3b-img389.png]]</ol><!-- ol start="5" style="list-style-type: decimal;"><li><p>Then select the type of image</p>
<ol style="list-style-type: lower-alpha;">
<li><p>0: normal screen '''Image with console interface (default server)''' Indicates the image of the server version, which is landscape)relatively small</p></li><li><p>1: Turn clockwise 90 degrees</p></li><li><p>2: Flip 180 degrees</p></li><li><p>3: Turn clockwise 270 degrees'''Image with desktop environment''' Indicates a image with a desktop, which is relatively large</p></li></ol>
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''<div class="figure">
overlays=lcd1[[File:pi3b-img390.png]]
</div></ol></li></ol><ol start="6" style="list-style-type: decimal;"><li>If you are compiling the image of the server version, you can also choose to compile the Standard version or the Minimal version. The pre-installed software of the Minimal version will be much less than that of the Standard version '''extraargs=cma=64M fbcon=rotate:3(please do not choose the Minimal version if there is no special requirement, because many things are not pre-installed by default. Some functions may not be available)'''</li>
'''Note that if there is the line extraargs<div class=cma=64M in /boot/orangepiEnv.txt by default, the configuration fbcon=rotate:3 can be added after extraargs=cma=64M (separated by spaces).'''"figure">
<ol start="2" style="list[[File:pi3b-style-type: decimal;"><li>Then '''restart''' the Linux system and you can see that the direction displayed on the LCD screen has been rotated</li></ol>img391.png]]
<span id/div></ol><ol start="7" style="methodlist-ofstyle-rotating-display-and-touch-direction-of-desktop-version-imagetype: decimal;"></spanli>=== Method If you are compiling the image of rotating display and touch direction the desktop version, you also need to select the type of desktop version image ===environment. Currently, Ubuntu Jammy mainly maintains XFCE and Gnome desktops, Ubuntu Focal only maintains XFCE desktops, and Debian Bullseye mainly maintains XFCE and KDE desktops</li>
# First open '''Display''' Settings in Linux<div class="figure">
[[File:pi3b-img364img392.png|298x206px]]
<ol start="2" style="list-style-type: decimal;"><li><p>Then select the direction you want to rotate in '''Rotation'''</pdiv><ol style="list-style-type[[File: lowerpi3b-alpha;"><li><p>'''None''': no rotation</p></li><li><p>'''Left''': rotate left 90 degrees</p></li><li><p>'''Inverted''': Flip up and down, which is equivalent to rotating 180 degrees</p></li><li><p>'''Right''': rotate right 90 degrees</p></li></ol></li></ol>img393.png]]
[[File:pi3b-img365You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.png|286x180px]]
<ol start="3" style="list-style-type: decimal;"><li>Then click '''Apply'''</li></ol> [[File:pi3b-img366img394.png|330x207px]] <ol start="4" style="list-style-type: decimal;"><li>Then select '''Keep this configuration'''</li></ol> [[File:pi3b-img367.png|374x210px]] <ol start="58" style="list-style-type: decimal;"><li><p>At this point, the screen display has been rotated, and then close the '''Display''' program</p></li><li><p>The above steps Then it will only select the display direction, and will not rotate the direction of start to compile the touchLinux image. Use the '''set_lcd_rotate.sh''' script to rotate the direction The general process of the touch. After the script compilation is set, it will automatically restart, and then you can test whether the touch has been used normally.as follows</p>
<ol style="list-style-type: lower-alpha;">
<li>'''None''': no rotation<p>Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process</p></li><li><p>Download the source code of u-boot and Linux kernel (if cached, only update the code)</p></li><li><p>Compile u-boot source code and generate u-boot deb package</p></li><li><p>Compile the Linux source code and generate Linux-related deb packages</p></li><li><p>Make the deb package of Linux firmware</p></li><li><p>Make the deb package of the orangepi-config tool</p></li><li><p>Create a deb package supported by the board</p></li><li><p>If you are compiling the desktop image, you will also create desktop-related deb packages</p></li><li><p>Check whether the rootfs has been cached, if not, recreate the rootfs, if it has been cached, directly decompress and use</p></li><li><p>Install the previously generated deb package into rootfs</p></li><li><p>Make some specific settings for different development boards and different types of images, such as pre-installing additional software packages, modifying system configuration, etc.</p></li><li><p>Then make an image file and format the partition, the default type is ext4</p></li><li><p>Then copy the configured rootfs to the mirrored partition</p></li><li><p>Then update initramfs</p></li><li><p>Finally, write the bin file of u-boot into the image through the dd command</p></li></ol></li><li><p>After compiling the image, the following information will be prompted</p><olstyle="list-style-type: lower-alpha;"><li>The storage path of the compiled image</li>orangepi@orangepi{| class="wikitable" style="width:~$ 800px;" |-| [ o.k. ] Done building [ '''set_lcd_rotateoutput/images/Orangepi3b_1.sh none0.0_debian_bullseye_desktop_xfce_linux5.10.160/Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.img''']|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''Left''': rotate left 90 degreesCompilation time</li></ol>{| class="wikitable" style="width:800px;" |-| orangepi@orangepi:~$ '''set_lcd_rotate[ o.k.sh left] Runtime [ 19 min ]'''|}</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Repeat the command to compile the image, and use the following command to start compiling the image directly without selecting through the graphical interface</li>{| class="wikitable" style="width:800px;" |-| [ o.k. ] Repeat Build Options [ '''Invertedsudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=image RELEASE=bullseye BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=yes''': Flip up and down, which is equivalent to rotating 180 degrees]|}</ol></li></ol><span id="android-11-operating-system-instructions"></span>
orangepi@orangepi:~$ = '''set_lcd_rotate.sh invertedAndroid 11 operating system instructions'''=
<ol startspan id="4" style="list-stylesupported-type: lowerandroid-alpha;versions"><li>'''Right''': rotate right 90 degrees</li></olspan>== Supported Android versions ==
orangepi@orangepi{| class="wikitable" style="width:~$ 800px;text-align: center;"|-|'''Android version'''|'''Kernel version'''|-|'''Android 11'''|'''set_lcd_rotateLinux4.sh right19'''|}
'''The set_lcd_rotate.sh script mainly does four things:'''<span id="android-function-adaptation"></span>
'''1. Rotate the direction displayed by the framebuffer'''== Android Function Adaptation ==
{| class="wikitable" style="width:800px;text-align: center;"|-|'''Functions'''|'2. Rotate the direction of the touch''Android 11'''|-|'''3USB2. Turn off the boot logo0x3'''|'''OK'''|-|'''4USB3. Restart the system0x1'''|'''OK'''|-|'''Rotating the touch direction is achieved by adding the line Option &quot;TransformationMatrix&quot; &quot;x x x x x x x x x&quot; to /usr/share/X11/xorg.conf.d/40-libinput.conf Where &quot;x x x x x x x x x&quot; is configured differently for different directionsM.2 NVMe SSD boot'''|'''OK'''<ol start="7" style="list|-style-type: decimal;"><li>Touch rotation reference</li></ol>|'''WIFI'''|'''OK'''|-https://wiki.ubuntu.com/X/InputCoordinateTransformation|'''Bluetooth'''|'''OK'''<span id="instructions|-for-using-the-switch-logo"></span>== Instructions for using the switch logo ==|'''GPIO(40pin)'''|'''OK'''|-# By default, the switch logo will only be displayed in the desktop version of the system|'''UART(40pin)'''# Set the |'''bootlogoOK''' variable to |-|'''falseSPI(40pin)''' in |'''/boot/orangepiEnv.txtOK''' to turn off the switch logo|-orangepi@orangepi:~$ |'''vim /boot/orangepiEnv.txtI2C(40pin)'''|'''OK'''verbosity=1|-|'''PWM(40pin)'''|'''bootlogo=falseOK''' <ol start="3" style="list-style|-type: decimal;"><li>Set the |'''bootlogoPWM fan interface''' variable to |'''trueOK''' in |-|'''/boot/orangepiEnv.txt3pin Debugging serial port''' to enable the switch logo</li></ol> orangepi@orangepi:~$ |'''vim /boot/orangepiEnv.txtOK'''|-verbosity=1|'''EMMC'''|'''bootlogo=trueOK''' <ol start="4" style="list-style|-type: decimal;"><li>The location of the |'''TF card boot logo image in the Linux system is</li></ol>'''|'''OK'''|-|'''/usr/share/plymouth/themes/orangepi/watermark.pngHDMI video'''|'''OK'''<ol start="5" style="list|-style-type: decimal;"><li>After replacing the boot logo picture, you need to run the following command to take effect</li></ol>|'''HDMI Audio'''|'''OK'''|-orangepi@orangepi:~$ |'''sudo update-initramfs -uLCD'''|'''OK'''<span id="how-to-use-the-zfs-file|-system"></span>== How to use the ZFS file system ==|'''eDP display'''|'''The latest version of Ubuntu20.04, Ubuntu22.04, Debian11 and Debian12 desktop version systems have pre-installed zfs, you can use it directly.OK'''|-|'''The pre-installed zfs version in Ubuntu20.04 and Ubuntu22.04 desktop systems is 2.1.6.Gigabit network port''' |'''The pre-installed zfs version in Debian11 and Debian12 desktop systems is 2.1.11.OK'''|-|'''After the system starts, please first confirm whether the zfs kernel module has been loaded. If you can see zfs-related content using the lsmod command, it means that the system has pre-installed zfs.Network port status indicator''' orangepi@orangepi:~$ |'''lsmod | grep &quot;zfs&quot;OK'''|-zfs 2801664 0|'''Headphone playback'''|'''OK'''zunicode 327680 1 zfs|-|'''Headphone recording'''zzstd 471040 1 zfs|'''OK'''|-zlua 139264 1 zfs|'''LED Light'''|'''OK'''zcommon 69632 1 zfs|-|'''GPU'''znvpair 61440 2 zfs,zcommon|'''OK'''|-zavl 16384 1 zfs|'''NPU'''|'''OK'''icp 221184 1 zfs|-|'''VPU'''spl 77824 6 zfs,icp,zzstd,znvpair,zcommon,zavl|'''OK''' <span id="how|-to-install-zfs"></span>=== How to install ZFS ===|'''RTC'''|'''Before installing zfs, please make sure that the Linux image used is the latest version. In addition, if zfs is already installed in the system, it needs to be installed again.OK'''|}
Before installing zfs, you need to install the kernel header file first. For the <span id="wifi-connection-test-method of installing the kernel header file, please refer to the instructions in the [[\l|'''section on the method of installing the kernel header file''']]."></span>
In Ubuntu20.04, Ubuntu22.04 and Debian11 systems, zfs cannot be installed directly through apt, because the default apt source zfs version is lower than 2.1.6, and there is a problem of incompatibility with rk Linux5.10 kernel. This problem is fixed in zfs version 2.1.6 and later.== WIFI connection test method ==
To solve this problem, we provide a zfs deb package that can be installed normally, which can be downloaded from the [http://www.orangepi.org/html/serviceAndSupport/index.html '''official tool'''] of the development board. Open the '''<span class="mark">official tool</span>''', and # First click enter the '''<span class="mark">zfs-related deb package folders used by Ubuntu and Debian systems</span>Setting'''. You can see three types of deb packages: Ubuntu20.04, Ubuntu22.04 and Debian11. Please download the required version.
::[[File:pi3b-img368img396.png|230x93px]]
After downloading the zfs deb packages of the corresponding version, please upload them to the Linux system of the development board. For the upload method, please refer to <ol start="2" style="list-style-type: decimal;"><li>Then select '''[[\l|the description in the section of the method of uploading files to the Linux system of the development board]].Network &amp; internet'''</li>
After the upload is complete, use the [[File:pi3b-img397.png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Then select '''cdWi-Fi''' command in the command line of the development board Linux system to enter the directory of the deb package, and then use the following command to install the deb package of zfs.</li>
orangepi@orangepi[[File:~$ pi3b-img398.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>Then turn on the '''sudo apt install ./*.debWi-Fi'''switch</li>
[[File:pi3b-img399.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>After the installation turning on '''Wi-Fi''', if everything is completenormal, use the following command to see the zfsyou can scan for nearby Wi-related kernel modules:Fi hotspots</li>
orangepi@orangepi[[File:~$ '''ls pi3b-img400.png]]</lib/modules/5.10.160ol><ol start="6" style="list-style-rockchiptype: decimal;"><li>Then select the Wi-rk356x/updates/dkmsFi you want to connect to, and the password input interface shown in the figure below will pop up</'''li>
'''icp[[File:pi3b-img401.ko spl.ko zavl.ko zcommon.ko zfs.ko zlua.ko znvpair.ko zunicode.ko zzstd.ko'''png]]</ol><ol start="7" style="list-style-type: decimal;"><li>Then use the keyboard to enter the password corresponding to Wi-Fi, and then use the mouse to click the Enter button in the virtual keyboard to start connecting to Wi-Fi</li>
Then restart [[File:pi3b-img402.png]]</ol><ol start="8" style="list-style-type: decimal;"><li>After the Wi-Fi connection is successful, the Linux system to see that display is as shown in the zfs kernel module will be automatically loadedfigure below:</li>
orangepi@orangepi[[File:~$ '''lsmod | grep &quot;zfs&quot;'''pi3b-img403.png]]</ol><span id="how-to-use-wi-fi-hotspot"></span>
zfs 2801664 0== How to use Wi-Fi hotspot ==
zunicode 327680 1 zfs# First, please make sure that the Ethernet port is connected to the network cable and can access the Internet normally# Then select '''Settings'''
zzstd 471040 1 zfs::[[File:pi3b-img396.png]]
zlua 139264 1 zfs<ol start="3" style="list-style-type: decimal;"><li>Then select '''Network &amp; internet'''</li>
zcommon 69632 1 zfs[[File:pi3b-img397.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>Then select '''Hotspot &amp; tethering'''</li>
znvpair 61440 2 zfs,zcommon[[File:pi3b-img404.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>Then select '''Wi-Fi hotspot'''</li>
zavl 16384 1 zfs[[File:pi3b-img405.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then turn on the '''Wi-Fi hotspot''', you can also see the name and password of the generated hotspot in the figure below, remember them, and use them when connecting to the hotspot (<span style="color:blue">if you need to modify the name and password of the hotspot, you need to turn off the Wi-Fi first -Fi hotspot before modification</span>)</li>
icp 221184 1 zfs[[File:pi3b-img406.png]]</ol><ol start="7" style="list-style-type: decimal;"><li>At this time, you can take out your mobile phone. If everything is normal, you can find the WIFI hotspot with the same name ('''here AndroidAP_6953''') displayed under the '''Hotspot name''' in the above picture in the WI-FI list searched by the mobile phone. Then you can click '''AndroidAP_6953''' to connect to the hotspot, and the password can be seen under the '''Hotspot password''' in the above picture</li>
spl 77824 6 zfs[[File:pi3b-img407.png]]</ol><ol start="8" style="list-style-type: decimal;"><li>After the connection is successful,icpit will be displayed as shown in the figure below (the interface of different mobile phones will be different,zzstdthe specific interface is subject to the display of your mobile phone). At this point,znvpairyou can open a webpage on your mobile phone to see if you can access the Internet. If you can open the webpage normally,zcommon,zavlit means that the '''WI-FI Hotspot''' of the development board can be used normally.</li>
In Debian12, the default version of zfs is 2.1.11, so we can install zfs directly through the following command. Again, please make sure that the system has installed the deb package of the kernel header file before installation[[File:pi3b-img408.png]]</ol><span id="bluetooth-test-method"></span>
orangepi@orangepi:~$ '''sudo apt install -y zfsutils-linux zfs-dkms'''== Bluetooth test method ==
<span id="methods-of-creating-zfs-pools"></span>=== Methods of creating ZFS pools ===# First click enter '''Setting'''
'''ZFS is based on storage pools, we can add multiple physical storage devices to the pool, and then allocate storage space from this pool.''' '''The following content is demonstrated based on the development board connected to an NVMe SSD and a USB flash drive.''' # First, we can use the '''lsblk''' command to view all storage devices on the development board. The current development board is connected to an NVMe SSD and a U disk. The output is as follows:[[File:pi3b-img369img396.png|379x227px]]
<ol start="2" style="list-style-type: decimal;">
<li>Then enter the following command to create a ZFS pool, including two storage devices, NVMe SSD and U disk</li></ol> orangepi@orangepi:~$ select '''sudo zpool create -f pool1 /dev/nvme0n1 /dev/sdaConnected devices'''</li>
[[File:pi3b-img409.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then use the click '''zpool listPair new device''' command to see that the system has created a ZFS pool named '''pool1''', turn on Bluetooth and start scanning the size of the ZFS pool pool1 is the size of the NVME SSD plus the size of the U disksurrounding Bluetooth devices</li></ol> [[File:pi3b-img370.png|576x37px]]
[[File:pi3b-img410.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then execute The searched Bluetooth devices will be displayed under '''df -hAvailable devices''' to see that '''pool1''' is mounted to the '''/pool1''' directory</li></ol>
orangepi@orangepi[[File:~$ pi3b-img411.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>Then click the Bluetooth device you want to connect to start pairing. When the following interface pops up, please use the mouse to select the '''df -hPair'''option</li>
Filesystem Size Used Avail Use% Mounted [[File:pi3b-img412.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>The test here is the configuration process of the development board and the Bluetooth of the Android mobile phone. At this time, the following confirmation interface will pop up onthe mobile phone. After clicking the pairing button on the mobile phone, the pairing process will start</li>
tmpfs 1[[File:pi3b-img413.6G 18M 1.6G 2% png]]</ol><ol start="7" style="list-style-type: decimal;"><li>After the pairing is completed, you can see the paired Bluetooth device as shown in the figure below</runli>
[[File:pi3b-img414.png]]</dev/mmcblk0p2 29G 6ol><ol start="8" style="list-style-type: decimal;"><li>At this time, you can use the Bluetooth of your mobile phone to send a picture to the development board. After sending, you can see the following confirmation interface in the Android system of the development board, and then click '''Accept''' to start receiving the picture sent by the mobile phone.0G 22G 22% </li>
tmpfs 7[[File:pi3b-img415.7G 46M 7.7G 1% png]]</devol><ol start="9" style="list-style-type: decimal;"><li>You can open the '''Download''' directory in the file manager to view the pictures received by the Android system Bluetooth of the development board</shmli>
tmpfs 5[[File:pi3b-img416.0M 4.0K png]]</ol><span id="how-to-use-raspberry-pi-5.0M 1% /run-inch-screen"></lockspan>
tmpfs 7.7G 944K 7.7G 1% /tmp== How to use Raspberry Pi 5-inch screen ==
/dev/mmcblk0p1 1022M 115M 908M 12% /boot{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Please make sure that the image used is the following two versions of the image:'''
/dev/zram1 188M 4'''OrangePi3B_RK3566_Android11_lcd_v1.5M 169M 3% /var/logx.x.img'''
tmpfs 1'''OrangePi3B_RK3566_Android11_spi-nvme_lcd_v1.6G 80K 1x.6G 1% /run/userx.img'''</1000big>|}
# The screen needs to be assembled first, please refer to [[Orange Pi 3B#Use of the Raspberry PI's 5-inch screen|''pool1 489G 9.3M 489G 1% /pool1'the assembly method of the Raspberry Pi 5-inch screen''']]# Connect the Type-C power supply to the board and power it on. After the system starts, you can see the screen display as shown in the figure below
<ol start="5" style="list::[[File:pi3b-style-type: decimal;"><li>Use the following command to see that the file system type of pool1 is zfs</li></ol>img417.png]]
orangepi@orangepi:~$ '''mount | grep pool1'''<span id="pin-interface-gpio-uart-spi-and-pwm-test"></span>
pool1 on /pool1 type '''zfs''' (rw== 40pin interface GPIO,xattrUART,noacl)SPI and PWM test ==
<ol startspan id="6" style="listpin-gpio-port-styletest-type: decimal;2"><li/span>Then we can === 40pin GPIO port test copying a file to the ZFS pool</li></ol>===
orangepi@orangepi:~$ '''sudo cp -v /usr/local/test.mp4 /pool1/''' '/usr/local/test.mp4' -&gt; '/pool1/test.mp4' <span id="test-# First click on the-data-deduplication-function-of-zfs"></span>=== Test wiringOP icon to open the data deduplication function of ZFS ===wiringOP APP
# The data deduplication function of ZFS is disabled by default, we need to execute the following command to enable it orangepi@orangepi:~$ '''sudo zfs set dedup=on pool1''':[[File:pi3b-img418.png]]
<ol start="2" style="list-style-type: decimal;">
<li>Then do a simple test, first enter pool1The main interface of wiringOP APP is displayed as shown in the figure below, and then execute click the following command to generate a random file with a size of 1G</li></ol> orangepi@orangepi:~$ '''cd /pool1/GPIO_TEST''' root@orangepi:/pool1$ '''sudo dd if=/dev/urandom of=button to open the GPIO test.1g bs=1M count=1024''' 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.04367 s, 213 MBinterface</sli>
[[File:pi3b-img419.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then use The GPIO test interface is shown in the figure below. The two rows of '''CheckBox''' buttons on the left are in one-to-one correspondence with the 40pin pins. When the '''CheckBox''' button is checked, the following command corresponding GPIO pin will be set to copy 1000 random files of size 1G</li></ol> root@orangepi:/pool1$ '''for ((i=0OUT''' mode, and the pin level will be set to high level; i&ltwhen the checkbox is unchecked, the GPIO pin level will be set to low level;1000When the '''GPIO READALL''' button is pressed, information such as wPi number, GPIO mode, and pin level can be obtained; i++)); do sudo cp test.1g $i.test.1g; donewhen the '''BLINK ALL GPIO'''button is clicked, the program will control the 28 GPIO ports to continuously switch between high and low levels</li>
[[File:pi3b-img420.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then use click the '''du -lhGPIO READALL''' to see that there are currently 1002G of data in the poolbutton, but in fact the size of the ZFS pool output information is only '''504GB''' (as shown in the total capacity of SSD+U disk), which cannot hold such a large amount of datafigure below:</li></ol>
root@orangepi[[File:pi3b-img421.png]]</pool1$ ol><ol start="5" style="list-style-type: decimal;"><li>There are a total of 28 GPIO ports in the 40pins of the development board that can be used. The following uses pin 7—the corresponding GPIO is GPIO4_A4—the corresponding wPi serial number is 2—as an example to demonstrate how to set the high and low levels of the GPIO port. First click the '''du -lhCheckBox'''button corresponding to pin 7. When the button is selected, pin 7 will be set to high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means setting high level success</li>
1002G[[File:pi3b-img422.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then click the '''GPIO READALL''' button, you can see that the current pin 7 mode is '''OUT''', and the pin level is high</li>
[[File:pi3b-img423.png]]</ol><ol start="57" style="list-style-type: decimal;"><li>Then use Click the '''zpool listCheckBox''' command button in the figure below again to cancel the check status. Pin 7 will be set to see that only 1low level. After setting, you can use a multimeter to measure the voltage value of the pin.01G If it is actually occupied, because these 1001 files are all duplicates'''0v''', indicating it means that the data deduplication function low level is effectiveset successfully.</li></ol>
[[File:pi3b-img371img424.png|576x36px]]</ol><ol start="8" style="list-style-type: decimal;"><li>Then click the '''GPIO READALL''' button, you can see that the current pin 7 mode is OUT, and the pin level is low</li>
[[File:pi3b-img425.png]]</ol><span id="testpin-theuart-data-compression-functiontest-of-zfs1"></span>=== Test the data compression function of ZFS ===
# Because the stored data is different, the disk space saved by compression will also be different, so we choose to compress relatively large plain text files for compression testing, and execute the following commands to pack the '''/var/log/''' and '''/etc/''' directories into a tarball=== 40pin UART test ===
orangepi@orangepi:~$ # UART7 and UART9 are enabled by default in Android. The position of the 40pin is shown in the figure below, and the corresponding device nodes are '''cd /pool1dev/ttyS7'''and '''/dev/ttyS9''' respectively
root@orangepi:/pool1$ '''sudo tar :[[File:pi3b-cf textimg269.tar /var/log/ /etc/'''png]]
<ol start="2" style="list-style-type: decimal;">
<li>Then First click on the file size that can be seen through wiringOP icon to open the '''ls -lh''' command and the space occupied in the ZFS pool are both '''27M'''wiringOP APP</li></ol> [[File:pi3b-img372.png|576x90px]]
[[File:pi3b-img418.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then we enable compression The main interface of wiringOP APP is displayed as shown in the ZFS pool pool1</li></ol> root@orangepi:/pool1$ figure below, and then click the '''sudo zfs set compression=lz4 pool1UART_TEST'''button to open the UART test interface</li>
[[File:pi3b-img426.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then execute The serial port test interface of the following command again to package APP is shown in the '''/var/log/''' and '''/etc/''' directories into a tar packagefigure below</li></ol> root@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log/ /etc/'''
[[File:pi3b-img427.png]]
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>At this timeTake the test of '''UART7''' as an example below, select the '''/dev/ttyS7''' node in the selection box, enter the baud rate you can see that want to set in the size of edit box, and then click the '''text.tarOPEN''' file button to open the /dev/ttyS7 node. After the opening is still 27Msuccessful, but it only occupies 9.47M in the ZFS pool'''OPEN''' button becomes unselectable, indicating that and the file is compressed'''CLOSE''' button and '''SEND''' button become selectable</li></ol>
[[File:pi3b-img373img428.png|576x79px]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then use Dupont wire to short the RXD and TXD pins of uart7</li>
[[File:pi3b-img429.png]]</ol><span idol start="7" style="how-to-shut-down-andlist-restartstyle-the-development-boardtype: decimal;"></spanli>== How to shut down Then you can enter a character in the send edit box below, and restart click the development board =='''SEND''' button to start sending</li>
# During the running of the Linux system, if the Type[[File:pi3b-img430.png]]</ol><ol start="8" style="list-style-C power supply type: decimal;"><li>If everything is directly unpluggednormal, some data may the received string will be lost or damaged displayed in the file system, so please use the '''poweroff''' command to shut down the Linux system of the development board before powering off. Then unplug the power again.receiving box</li>
orangepi@orangepi[[File:~$ '''sudo poweroff'''pi3b-img431.png]]</ol><span id="pin-spi-test-2"></span>
<ol start="2" style="list-style-type: decimal;"><li>In addition, the development board is equipped with a switch button, and you can also '''short press''' the switch button on the development board to shut down.</li></ol>= 40pin SPI test ===
[[File:pi3b-img374.png|294x80px]]# According to the schematic diagram of the 40pin interface, the spi available for Orange Pi 3B is spi3
'''Note that the Linux desktop version system will pop up a confirmation box as shown in the figure below after pressing the switch button, and the system will shut down only after clicking the Shut Down option::[[File:pi3b-img264.'''png]]
[[File<ol start="2" style="list-style-type:pi3b-img375decimal;"><li>Here, the SPI interface is tested through the w25q64 module.png|207x193px]]First, the w25q64 device is connected to the SPI3 interface</li>
[[File:pi3b-img432.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Short press Then click the switch button on wiringOP icon to open the development board after shutting down to start up.wiringOP APP</li></ol> [[File:pi3b-img374.png|294x80px]]
[[File:pi3b-img418.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>The command main interface of wiringOP APP is displayed as shown in the figure below, click the SPI_TEST button to restart open the Linux system isSPI test interface</li></ol>
orangepi@orangepi[[File:~$ '''sudo''' pi3b-img433.png]]</ol><ol start="5" style="list-style-type: decimal;"><li>Then click the '''rebootOPEN'''button to initialize the SPI</li>
[[File:pi3b-img434.png]]<span id/ol><ol start="6" style="linuxlist-sdkorangepistyle-build-instructionstype: decimal;"><li>Then fill in the bytes that need to be sent, such as reading the ID information of w25q64, fill in the address 0x9f in data[0], and then click the '''TRANSFER''' button</spanli>
[[File:pi3b-img435.png]]</ol><ol start="7" style= '''Linux SDK——orangepi"list-style-build instructions''' =type: decimal;"><li>Finally, the APP will display the read ID information</li>
[[File:pi3b-img436.png]]<span id/ol><ol start="8" style="compilationlist-systemstyle-requirementstype: decimal;"><li>The MANUFACTURER ID of the w25q64 module is EFh, and the Device ID is 4017h, corresponding to the value read above (h stands for hexadecimal)</spanli>== Compilation system requirements ==
'''We can cross[[File:pi3b-compile the Linux image of the development board on the x64 computer, or compile the Linux image of the development board on the Ubuntu22img437.04 system of the development board, please choose one according to your preference.'''png]]</ol><span id="pin-pwm-test"></span>
'''If you use orangepi-build to compile the Linux image in the Ubuntu22.04 system of the development board, please do a good job of cooling (especially when the SSD starts). If the heat dissipation is not done well, it is prone to the error of file system runaway.'''=== 40pin PWM test ===
<span id="compile-with-# Android enables '''PWM11''' by default, and the-ubuntu22.04-system-of-corresponding pin is located at 40pin as shown in the-development-board"></span>=== Compile with the Ubuntu22.04 system of the development board ===figure below
# The Linux SDK, namely '''orangepi::[[File:pi3b-build''', supports running on the '''Ubuntu 22.04''' of the development board (other systems have not been tested), so before downloading orangepi-build, please first ensure that the Ubuntu version installed on the development board is Ubuntu 22.04. The command to check the Ubuntu version installed on the development board is as follows. If the Release field does not display '''22.04''', it means that the current Ubuntu version does not meet the requirements. Please replace the system before performing the following operationsimg438.png]]
orangepi@orangepi<ol start="2" style="list-style-type:~$ '''lsb_release -a'''decimal;"><li>First click on the wiringOP icon to open the wiringOP APP</li>
No LSB modules are available[[File:pi3b-img418.png]]</ol><ol start="3" style="list-style-type: decimal;"><li>Then click the '''PWM_TEST''' button on the main interface of wiringOP to enter the PWM test interface</li>
Distributor ID[[File: Ubuntupi3b-img439.png]]</ol><ol start="4" style="list-style-type: decimal;"><li>The base address corresponding to PWM11 is '''fe6f0030''', here pwmchip0 shows '''fdd70020.pwm''' on the right, then you need to click the drop-down option to select other pwmchips until '''febf0030.pwm''' is displayed on the right</li>
Description[[File: Ubuntu 22pi3b-img440.04.1 LTSpng]]</ol><ol start="5" style="list-style-type: decimal;"><li>When the drop-down option selects '''pwmchip3''', the corresponding base address of PWM11 is '''fe6f0030''' on the right</li>
Release[[File: pi3b-img441.png]]</ol><ol start="6" style="list-style-type: decimal;"><li>Then confirm the PWM channel, the default is channel 0, and confirm the PWM cycle, the default configuration is '''50000ns''22.04', converted to PWM frequency is '''20KHz''', you can modify it yourself, click the '''EXPORT''' button to export '''PWM11'''</li>
Codename[[File: jammypi3b-img442.png]]</ol><ol start="7" style="list-style-type: decimal;"><li>Then drag the drag bar below to change the PWM duty cycle, and then check Enable to output the PWM waveform</li>
[[File:pi3b-img443.png]]</ol><ol start="28" style="list-style-type: decimal;"><li>'''Since Then use an oscilloscope to measure the source codes such as No. 32 pin in the kernel and U-boot are stored on GitHub, it is very important to ensure that 40pin of the development board , and you can download codes from GitHub normally when compiling see the image.'''following waveform</li></ol>
[[File:pi3b-img444.png]]</ol><span id="compile-withhow-x64to-ubuntu22.04use-computeradb"></span>=== Compile with x64 Ubuntu22.04 computer ===
# The Linux SDK, '''orangepi-build''', supports running on computers with '''Ubuntu 22.04''' installed, so before downloading orangepi-build, please make sure that the Ubuntu version installed on your computer is Ubuntu 22.04. The command == How to check the Ubuntu version installed on the computer is as follows. If the Release field does not display '''22.04''', it means that the current Ubuntu version does not meet the requirements. Please replace the system before performing the following operations.use ADB ==
test@test:~$ '''lsb_release <span id="use-a'''network-connection-adb-debugging"></span>=== Use network connection adb debugging ===
No LSB modules are available{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Using the network adb does not require a data cable to connect the computer and the development board, but to communicate through the network, so first make sure that the wired or wireless network of the development board is connected, and then obtain the IP address of the development board, which will be used later.'''</big>|}
Distributor ID: Ubuntu# Make sure that the '''service.adb.tcp.port''' of the Android system is set to port number 5555
Description: Ubuntu 22:{| class="wikitable" style="width:800px;" |-| console:/ # '''getprop | grep &quot;adb.04 LTStcp&quot;'''
Release[service.adb.tcp.port]: ['''22.045555''']|}
Codename<ol start="2" style="list-style-type: jammydecimal;"><li>If '''service.adb.tcp.port''' is not set, you can use the following command to set the port number of network adb</li>
<ol start{| class="2wikitable" style="list-style-typewidth: decimal800px;"><li><p>If the computer is installed with Windows system and there is no computer with Ubuntu 22.04 installed, you can consider using '''VirtualBox''' or '''VMware|-| console:/ # ''' to install an Ubuntu 22.04 virtual machine in the Windows systemsetprop service. But please be careful not to compile orangepi-build on the WSL virtual machine, because orangepi-build has not been tested in the WSL virtual machine, so it cannot be guaranteed that orangepi-build can be used normally in WSLadb.</p></li><li><p>The download address of the installation image of Ubuntu 22tcp.04 '''amd64port 5555''' version is:</p></li></ol>
[httpsconsole://repo.huaweicloud.com/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso # '''https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.isostop adbd''']
Orconsole:/ # '''start adbd'''|}</ol><ol start="3" style="list-style-type: decimal;"><li>Install adb tool on Ubuntu PC</li>
{| class="wikitable" style="width:800px;" |-| test@test:~$ '''https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.isosudo apt update'''
test@test:~$ '''sudo apt install -y adb'''
|}
</ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>After installing Ubuntu 22.04 Then connect network adb on the computer or virtual machine, please set the software source of Ubuntu 22.04 to Tsinghua source, otherwise it is easy to make mistakes due to network reasons when installing the software laterPC</p><ol style="list-style-type: lower-alpha;"><li>For the method of replacing Tsinghua source, please refer to the instructions on this web page</li></ol></li></ol>
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ <ol start{| class="2wikitable" style="list-style-typewidth: lower-alpha800px;"><li>Note that the Ubuntu version |-| test@test:~$ '''adb connect 192.168.1.xxx''' '''(The IP address needs to be switched changed to 22.04</li></ol>the IP address of the development board)'''
[[File<p>* daemon not running; starting now at tcp:pi3b-img376.png|576x241px]]5037</p>
<ol start="3" style="list-style-type: lower-alpha;"><li>The content of the '''/etc/apt/sources.list''' file that needs to be replaced is</lip>* daemon started successfully</olp>
test@test:~$ '''sudo mv /etc/apt/sourcesconnected to 192.list /etc/apt/sources168.list1.bak'''xxx:5555
test@test:~$ '''sudo vim /etc/apt/sources.list'''
# By default, the source image is commented to improve the speed of apt update, you can uncomment it yourself if necessarytest@test:~$ '''adb devices'''
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverseList of devices attached
# deb-src https://mirrors192.tuna168.tsinghua1.edu.cnxxx:5555 device|}</ubuntuol><ol start="5" style="list-style-type: decimal;"><li>Then you can log in to the android system through the adb shell on the Ubuntu PC</ jammy main restricted universe multiverseli>
deb https{| class="wikitable" style="width://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy800px;" |-updates main restricted universe multiverse| test@test:~$ '''adb shell'''
# deb-src httpsconsole:/#|}</mirrors.tuna.tsinghua.edu.cn/ubuntuol><span id="appendix"></ jammy-updates main restricted universe multiversespan>
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse= '''Appendix''' =
# deb<span id="user-src https://mirrors.tuna.tsinghua.edu.cnmanual-update-history"></ubuntu/ jammy-backports main restricted universe multiversespan>== User Manual Update History ==
deb https{| class="wikitable" style="width://mirrors800px;text-align: center;"|-|'''Version'''|'''Date'''|'''Update Notes'''|-|v0.tuna.tsinghua.edu.cn/ubuntu/ jammy1|2023-07-security main restricted universe multiverse19|initial version|}
# deb<span id="image-src https:update-history"><//mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiversespan>== Image Update History ==
# Pre{| class="wikitable" style="width:800px;"|-release software source, not recommended to enable| style="text-align: center;" | '''Date'''| style="text-align: center;" | '''Update Notes'''|-| style="text-align: center;" | 2023-07-19|Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z
# deb https://mirrorsOrangepi3b_1.tuna0.tsinghua0_ubuntu_jammy_desktop_xfce_linux5.edu10.cn/ubuntu/ jammy-proposed main restricted universe multiverse160.7z
# deb-src https://mirrorsOrangepi3b_1.tuna0.tsinghua0_ubuntu_focal_desktop_xfce_linux5.edu10.cn/ubuntu/ jammy-proposed main restricted universe multiverse160.7z
<ol start="4" style="list-style-type: lower-alpha;"><li>After the replacement, you need to update the package information and make sure there is no error</li></ol>OrangePi3B_RK3566_Android11_v1.0.0.tar.gz
test@test:~$ '''sudo apt update'''OrangePi3B_RK3566_Android11_lcd_v1.0.0.tar.gz
<ol start="5" style="list-style-type: lower-alpha;"><li>'''In addition, since the source codes such as the kernel and U-boot are stored on GitHub, it is very important to ensure that the computer can download codes from GitHub normally when compiling the image.'''</li></ol> <span id="get-the-source-code-of-linux-sdk"></span>== Get the source code of Linux sdk == <span id="download-orangepi-build-from-github"></span>=== Download orangepi-build from github === # The Linux sdk actually refers to the code of orangepi-build. orangepi-build is modified based on the armbian build system. Using orangepi-build, multiple versions of Linux images can be compiled. First download the code of orangepi-build, the command is as follows: test@test:~$ '''sudo apt-get update''' test@test:~$ '''sudo apt-get install -y git''' test@test:~$ '''git clone https://github.com/orangepi-xunlong/orangepi-build.git -b next''' '''Note that the Orange Pi 3B development board needs to download the source code of the next branch of orangepi-build. The above git clone command needs to specify the branch of the orangepi-build source code as next.''' <div class="figure"> [[File:pi3b-img377.png|576x298px|图片6]] </div>'''Downloading the orangepi-build code through the git clone command does not require entering the user name and password of the github account (the same is true for downloading other codes in this manual), if the Ubuntu PC prompts the user to enter the github account after entering the git clone command The name and password are usually entered incorrectly in the address of the orangepi-build warehouse behind the git clone. Please check the spelling of the command carefully, instead of thinking that we forgot to provide the username and password of the github account.''' <ol start="2" style="list-style-type: decimal;"><li>The u-boot and Linux kernel versions currently used by the development board are as follows</li></ol> {| class="wikitable"|-|'''branch'''|'''u-boot version'''|'''Linux Kernel version'''|-|'''legacy'''|'''u-boot 2017.09'''|'''Linux5.10'''|} '''The branch mentioned here is not the same thing as the branch of the orangepi-build source code, please do not confuse it. This branch is mainly used to distinguish different kernel source code versions.''' '''Currently, the Linux5.10 bsp kernel provided by RK is defined as the legacy branch. If the mainline kernel is supported in the future, a current branch will be added.''' <ol start="3" style="list-style-type: decimal;"><li><p>orangepi-build will contain the following files and folders after downloading</p><ol style="list-style-type: lower-alpha;"><li><p>'''build.sh''': Compile the startup script</p></li><li><p>'''external''': Contains the configuration files needed to compile the image, specific scripts, and the source code of some programs, etc.</p></li><li><p>'''LICENSE''': GPL 2 license file</p></li><li><p>README.md: orangepi-build documentation</p></li><li><p>'''scripts''': General script for compiling Linux images</p></li></ol></li></ol> test@test:~/orangepi-build$ '''ls''' '''build.sh external LICENSE''' README.md '''scripts''' '''If you downloaded the code of orangepi-build from github, after downloading, you may find that orangepi-build does not contain the source code of u-boot and Linux kernel, nor does u-boot and Linux kernel need to use cross-compilation tools Chain, this is normal, because these things are stored in other separate github warehouses or some servers (the addresses will be detailed below). orangepi-build will specify the address of u-boot, Linux kernel and cross-compilation toolchain in the script and configuration file. When running orangepi-build, when it finds that there are no such things locally, it will automatically go to the corresponding place to download them.''' <span id="download-the-cross-compilation-toolchain"></span>=== Download the cross-compilation toolchain === '''The cross-compilation toolchain will only be downloaded when the orangepi-build compilation image is used on an x64 computer. Compiling the Linux image of the development board in the Ubuntu22.04 of the development board will not download the cross-compilation toolchain. At this time, orangepi-build/toolchains will be an empty folder.''' # When orangepi-build runs for the first time, it will automatically download the cross-compilation toolchain and put it in the '''toolchains''' folder. Every time after running the build.sh script of orangepi-build, it will check whether the cross-compilation toolchain in '''toolchains''' exists , if it does not exist, the download will be restarted, if it exists, it will be used directly, and the download will not be repeated. <div class="figure"> [[File:pi3b-img378.png|575x278px|选区_396]] </div><ol start="2" style="list-style-type: decimal;"><li>The image URL of the cross-compilation toolchain in China is the open source software image site of Tsinghua University</li></ol> https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/ <ol start="3" style="list-style-type: decimal;"><li>After '''toolchains''' is downloaded, it will contain multiple versions of cross-compilation toolchains, and the development board will only use two of them</li></ol> test@test:~/orangepi-build$ '''ls toolchains/''' gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf gcc-arm-9.2OrangePi3B_RK3566_Android11_spi-2019.12-x86_64-aarch64-none-linux-gnu gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi gcc-linaro-5.5nvme_v1.0-2017.10-x86_64_arm-linux-gnueabihf gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi gcc-linaro-aarch64-none-elf-4.8-2013.11_linux gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux gcc-linaro-arm-none-eabi-4.8-2014.04_linux <ol start="4" style="list-style-type: decimal;"><li><p>The cross-compilation toolchain used to compile the Linux kernel source code is</p><ol style="list-style-type: lower-alpha;"><li>Linux5.10</li></ol></li></ol> '''gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu''' <ol start="5" style="list-style-type: decimal;"><li><p>The cross-compilation tool chain used to compile the u-boot source code is</p><ol style="list-style-type: lower-alpha;"><li>v2017.09</li></ol></li></ol> '''gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu''' <span id="orangepi-build-complete-directory-structure-description"></span>=== orangepi-build complete directory structure description === <ol style="list-style-type: decimal;"><li><p>The orangepi-build repository does not contain the source code of the Linux kernel, u-boot, and cross-compilation toolchain after downloading. The source code of the Linux kernel and u-boot is stored in an independent git repository</p><ol style="list-style-type: lower-alpha;"><li>The git repository where the Linux kernel source code is stored is as follows:</li></ol></li></ol> '''https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx''' <ol start="2" style="list-style-type: lower-alpha;"><li>The git warehouse where the b.u-boot source code is stored is as follows:</li></ol> '''https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2017.09-rk3588''' <ol start="2" style="list-style-type: decimal;"><li><p>When orangepi-build runs for the first time, it will download the cross-compilation toolchain, u-boot and Linux kernel source code. After successfully compiling a Linux image, the files and folders that can be seen in orangepi-build are:</p><p>a. '''build.sh''': compile startup script</p><p>b. '''external''': Contains the configuration files needed to compile the image, scripts with specific functions, and the source code of some programs. The rootfs compressed package cached during the image compilation process is also stored in external</p><p>c. '''kernel''': stores the source code of the Linux kernel, and the folder named orange-pi-5.10-rk35xx stores the kernel source code of the legacy branch of the RK3588/RK3588S/RK3566 series development boards. Please do not manually name the folder name of the kernel source code Modify, if modified, the kernel source code will be re-downloaded when the compilation system is running</p><p>d. '''LICENSE''': GPL 2 license file</p><p>e. '''README'''.md: orangepi-build documentation</p><p>f. '''output''': Store compiled deb packages such as u-boot and Linux, compilation logs, and compiled images and other files</p><p>g. '''scripts''': general scripts for compiling Linux images</p><p>h. '''toolchains''': store cross-compilation toolchain</p><p>i. '''u-boot''': stores the source code of u-boot, the folder named v2017.09-rk3588 stores the u-boot source code of the legacy branch of the RK3588/RK3588S/RK3566 series development boards, the name of the folder of the u-boot source code Please do not modify it manually, if it is modified, the u-boot source code will be re-downloaded when the compiling system is running</p><p>j. '''userpatches''': Store configuration files needed to compile scripts</p></li></ol> test@test:~/orangepi-build$ '''ls''' '''build.sh external kernel LICENSE output''' README.md '''scripts toolchains u-boot userpatches''' <span id="compile-u-boot"></span>== Compile u-boot == # Run the build.sh script, remember to add sudo permission test@test:~/orangepi-build$ '''sudo ./build.sh''' <ol start="2" style="list-style-type: decimal;"><li>Select '''U-boot package''',then enter</li></ol> <div class="figure"> [[File:pi3b-img379.png|576x132px|选区_238]] </div><ol start="3" style="list-style-type: decimal;"><li>Then select the model of the development board</li></ol> <div class="figure"> [[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]] </div><ol start="4" style="list-style-type: decimal;"><li><p>Then it will start to compile u-boot, and some information prompted during compilation is explained as follows</p><ol style="list-style-type: lower-alpha;"><li>u-boot source code version</li></ol></li></ol> [ o.k. ] Compiling u-boot [ '''v2017.09''' ] <ol start="2" style="list-style-type: lower-alpha;"><li>The version of the cross-compilation toolchain</li></ol> [ o.k. ] Compiler version [ '''aarch64-linux-gnu-gcc 7.4.1''' ] <ol start="3" style="list-style-type: lower-alpha;"><li>Path to the generated u-boot deb package</li></ol> [ o.k. ] Target directory [ '''orangepi-build/output/debs/u-boot''' ] <ol start="4" style="list-style-type: lower-alpha;"><li>The package name of the generated u-boot deb package</li></ol> [ o.k. ] File name [ '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb''' ] <ol start="5" style="list-style-type: lower-alpha;"><li>Compilation time</li></ol> [ o.k. ] Runtime [ '''1 min''' ] <ol start="6" style="list-style-type: lower-alpha;"><li>Repeat the command to compile u-boot, use the following command to start compiling u-boot directly without selecting through the graphical interface</li></ol> [ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=u-boot KERNEL_CONFIGURE=no''' ] <ol start="5" style="list-style-type: decimal;"><li>View the u-boot deb package generated by compilation</li></ol> test@test:~/orangepi-build$ '''ls output/debs/u-boot/''' linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb <ol start="6" style="list-style-type: decimal;"><li><p>The files contained in the generated u-boot deb package are as follows</p><ol style="list-style-type: lower-alpha;"><li>Use the following command to decompress the deb package</li></ol></li></ol> test@test:~/orangepi-build$ '''cd output/debs/u-boot''' test@test:~/orangepi_build/output/debs/u-boot$ $ '''dpkg -x''' \ '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb . (Note that there is a &quot;.&quot; at the end of the command)''' test@test:~/orangepi_build/output/debs/u-boot$ '''ls''' linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb '''usr''' <ol start="2" style="list-style-type: lower-alpha;"><li>The decompressed file is as follows</li></ol> test@test:~/orangepi-build/output/debs/u-boot$ '''tree usr''' usr └── lib ├── linux-u-boot-legacy-orangepi3b_1.0.0_arm64 │   ├── idbloader.img │   ├── rkspi_loader.img │   └── u-boot.itb └── u-boot ├── LICENSE ├── orangepi-3b-rk3566_defconfig └── platform_install.sh 3 directories, 6 files <ol start="7" style="list-style-type: decimal;"><li>When the orangepi-bulid compilation system compiles the u-boot source code, it will first synchronize the u-boot source code with the u-boot source code of the github server, so if you want to modify the u-boot source code, you first need to turn off the download and update function of the source code '''(This function needs to be fully compiled once u-boot, otherwise it will prompt that the source code of u-boot cannot be found. If the source code compressed package is downloaded from Google cloud disk, there is no such problem, because the source code of u-boot have been cached)''', otherwise the changes made will be reverted, the method is as follows:</li></ol> <blockquote>Set the IGNORE_UPDATES variable in userpatches/config-default.conf to &quot;yes&quot;</blockquote>test@test:~/orangepi-build$ '''vim userpatches/config-default.conf''' IGNORE_UPDATES=&quot;'''yes'''&quot; <ol start="8" style="list-style-type: decimal;"><li><p>When debugging u-boot code, you can use the following method to update u-boot in the Linux image for testing</p><ol style="list-style-type: lower-alpha;"><li>Upload the compiled u-boot deb package to the Linux system of the development board</li></ol></li></ol> test@test:~/orangepi-build$ '''cd output/debs/u-boot''' test@test:~/orangepi_build/output/debs/u-boot$ '''scp \''' '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb''' [mailto:root@192.168.1.xxx:/root root@192.168.1.xxx:/root] <ol start="2" style="list-style-type: lower-alpha;"><li>Then log in to the development board and uninstall the deb package of u-boot installed</li></ol> root@orangepi:~# '''apt purge -y linux-u-boot-orangepi3b-legacy''' <ol start="3" style="list-style-type: lower-alpha;"><li>Install the new u-boot deb package just uploaded</li></ol> root@orangepi:~# '''dpkg -i''' '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb''' <ol start="4" style="list-style-type: lower-alpha;"><li>Then run the nand-sata-install script</li></ol> root@orangepi:~# '''nand-sata-install''' <ol start="5" style="list-style-type: lower-alpha;"><li>Then select '''5 Install/Update the bootloader on SD/eMM''' to update the u-boot in the TF card or '''7 Install/Update the bootloader on SPI Flash''' to update the u-boot in the SPI Flash</li></ol> [[File:pi3b-img381.png|312x152px]] <ol start="6" style="list-style-type: lower-alpha;"><li>After pressing the Enter key, a Warning will pop up first</li></ol> [[File:pi3b-img382.png|309x168px]] <ol start="7" style="list-style-type: lower-alpha;"><li>Press the Enter key again to start updating u-boot, and the following information will be displayed after the update is completed</li></ol> [[File:pi3b-img383.png|244x137px]] <ol start="8" style="list-style-type: lower-alpha;"><li>Then you can restart the development board to test whether the modification of u-boot takes effect</li></ol> <!-- --><ol start="9" style="list-style-type: decimal;"><li><p>Other useful information</p><ol style="list-style-type: lower-alpha;"><li>In the u-boot 2017.09 source code, the defconfig configuration file used by the development board is</li></ol></li></ol> [https://github.com/orangepi-xunlong/u-boot-orangepi/blob/v2017.09-rk3588/configs/orangepi_5_defconfig '''orangepi-build/u-boot/v2017.09-rk3588/configs/orangepi-3b-rk3566_defconfig'''] <ol start="2" style="list-style-type: lower-alpha;"><li>In the u-boot 2017.09 source code, the dts file used by the development board is</li></ol> [https://github.com/orangepi-xunlong/u-boot-orangepi/blob/v2017.09-rk3588/arch/arm/dts/rk3588s-orangepi-5.dts orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3566-orangepi-3b.dts] <span id="compile-the-linux-kernel"></span>== Compile the Linux kernel == # Run the build.sh script, remember to add sudo permission test@test:~/orangepi-build$ '''sudo ./build.sh''' <ol start="2" style="list-style-type: decimal;"><li>Select '''Kernel package''',then enter</li></ol> <div class="figure"> [[File:pi3b-img384.png|575x116px|选区_240]] </div><ol start="3" style="list-style-type: decimal;"><li>Then select the model of the development board</li></ol> <div class="figure"> [[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]] </div><ol start="4" style="list-style-type: decimal;"><li>Then it will prompt whether to display the kernel configuration interface. If you do not need to modify the kernel configuration, select the first one. If you need to modify the kernel configuration, select the second one.</li></ol> [[File:pi3b-img385.png|576x87px]] <ol start="5" style="list-style-type: decimal;"><li>If you choose to display the kernel configuration menu (the second option) in step 4), the kernel configuration interface opened by '''make menuconfig''' will pop up. At this time, you can directly modify the kernel configuration, save and exit after modification. Yes, after exiting, the kernel source code will be compiled</li></ol> [[File:pi3b-img386.png|462x322px]] <ol style="list-style-type: lower-alpha;"><li>If you do not need to modify the configuration options of the kernel, when running the build.sh script, pass in '''KERNEL_CONFIGURE=no''' to temporarily block the pop-up kernel configuration interface</li></ol> test@test:~/orangepi-build$ '''sudo ./build.sh KERNEL_CONFIGURE=no''' <ol start="2" style="list-style-type: lower-alpha;"><li><p>You can also set '''KERNEL_CONFIGURE=no''' in the '''orangepi-build/userpatches/config-default.conf''' configuration file, which can permanently disable this function</p></li><li><p>If the following error is displayed when compiling the kernel, it is because the terminal interface of the Ubuntu PC is too small to display the '''make menuconfig''' interface. Please maximize the terminal of the Ubuntu PC and run the build.sh script again</p></li></ol> [[File:pi3b-img387.png|574x234px]] <ol start="6" style="list-style-type: decimal;"><li><p>Part of the information prompted when compiling the kernel source code is as follows</p><ol style="list-style-type: lower-alpha;"><li>The version of the Linux kernel source code</li></ol></li></ol> [ o.k. ] Compiling current kernel [ '''5.10.160''' ] <ol start="2" style="list-style-type: lower-alpha;"><li>The version of the cross-compilation toolchain used</li></ol> [ o.k. ] Compiler version [ '''aarch64-none-linux-gnu-gcc 11.2.1''' ] <ol start="3" style="list-style-type: lower-alpha;"><li>The configuration file used by the kernel by default and the path where it is stored</li></ol> [ o.k. ] Using kernel config file [ '''config/kernel/linux-rockchip-rk356x-legacy.config''' ] <ol start="4" style="list-style-type: lower-alpha;"><li>The path of the deb package related to the kernel generated by compiling</li></ol> [ o.k. ] Target directory [ '''orangepi-build/output/debs/''' ] <ol start="5" style="list-style-type: lower-alpha;"><li>The package name of the compiled kernel image deb package</li></ol> [ o.k. ] File name [ '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' ] <ol start="6" style="list-style-type: lower-alpha;"><li>The time used for compilation</li></ol> [ o.k. ] Runtime [ '''5 min''' ] <ol start="7" style="list-style-type: lower-alpha;"><li>Finally, the compilation command to repeatedly compile the kernel selected last time will be displayed. Use the following command to start compiling the kernel source code directly without selecting through the graphical interface</li></ol> [ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=kernel KERNEL_CONFIGURE=no''' ] <ol start="7" style="list-style-type: decimal;"><li><p>View the deb package related to the kernel generated by compilation</p><ol style="list-style-type: lower-alpha;"><li><p>'''linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains dtb files used by the kernel</p></li><li><p>'''linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Include kernel header files</p></li><li><p>'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains kernel images and kernel modules</p></li></ol></li></ol> test@test:~/orangepi-build$ '''ls output/debs/linux-*''' output/debs/linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb output/debs/linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb output/debs/linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb <ol start="8" style="list-style-type: decimal;"><li><p>The files contained in the generated Linux-image deb package are as follows</p><ol style="list-style-type: lower-alpha;"><li>Use the following command to decompress the deb package</li></ol></li></ol> test@test:~/orangepi-build$ '''cd output/debs''' test@test:~/orangepi_build/output/debs$ '''mkdir test''' test@test:~/orangepi_build/output/debs$ '''cp \''' '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb test/''' test@test:~/orangepi_build/output/debs$ '''cd test''' test@test:~/orangepi_build/output/debs/test$ '''dpkg -x \''' '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb .''' test@test:~/orangepi_build/output/debs/test$ '''ls''' '''boot etc lib''' linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb '''usr''' <ol start="2" style="list-style-type: lower-alpha;"><li>The decompressed file is as follows</li></ol> test@test:~/orangepi-build/output/debs/test$ '''tree -L 2''' . ├── boot │   ├── config-5.10.160-rockchip-rk356x │   ├── System.map-5.10.160-rockchip-rk356x │   └── vmlinuz-5.10.160-rockchip-rk356x ├── etc │   └── kernel ├── lib │   └── modules ├── linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb └── usr ├── lib └── share <ol start="9" style="list-style-type: decimal;"><li>The orangepi-bulid compilation system will first synchronize the Linux kernel source code with the Linux kernel source code of the github server when compiling the Linux kernel source code, so if you want to modify the Linux kernel source code, you first need to turn off the update function of the source code '''(you need to compile it once This function can only be turned off after the Linux kernel source code, otherwise it will prompt that the source code of the Linux kernel cannot be found. If the source code compressed package downloaded from Google cloud disk, there is no such problem, because the source code of Linux has been cached)''', otherwise the The changes made will be reverted as follows:</li></ol> <blockquote>Set the IGNORE_UPDATES variable in '''userpatches/config-default.conf''' to &quot;yes&quot;</blockquote>test@test:~/orangepi-build$ '''vim userpatches/config-default.conf''' IGNORE_UPDATES=&quot;'''yes'''&quot; <ol start="10" style="list-style-type: decimal;"><li><p>If the kernel has been modified, the following method can be used to update the kernel and kernel modules of the development board Linux system</p><ol style="list-style-type: lower-alpha;"><li>Upload the deb package of the compiled Linux kernel to the Linux system of the development board</li></ol></li></ol> test@test:~/orangepi-build$ '''cd output/debs''' test@test:~/orangepi-build/output/debs$ '''scp \''' '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb root@192.168.1.xxx:/root''' <ol start="2" style="list-style-type: lower-alpha;"><li>Then log in to the development board and uninstall the deb package of the installed Linux kernel</li></ol> root@orangepi:~# '''apt purge -y linux-image-legacy-rockchip-rk356x''' <ol start="3" style="list-style-type: lower-alpha;"><li>Install the deb package of the new Linux kernel just uploaded</li></ol> root@orangepi:~# '''dpkg -i linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' <ol start="4" style="list-style-type: lower-alpha;"><li>Then restart the development board, and then check whether the kernel-related modifications have taken effect</li></ol> root@orangepi:~# '''reboot''' <ol start="11" style="list-style-type: decimal;"><li><p>Other useful information</p><ol style="list-style-type: lower-alpha;"><li>The storage location of the kernel configuration file is as follows, please do not go to the kernel source code to find the kernel configuration file used by the development board</li></ol></li></ol> [https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-legacy.config orangepi-build/external/config/kernel/linux-rockchip-rk356x-legacy.config] <ol start="2" style="list-style-type: lower-alpha;"><li>The location of the dts file used by the development board is</li></ol> [https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-5.10-rk3588/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts orangepi-build/kernel/orange-pi-5.10-rk35xx/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts] <span id="compile-rootfs"></span>== Compile rootfs == # Run the build.sh script, remember to add sudo permission test@test:~/orangepi-build$ '''sudo ./build.sh''' <ol start="2" style="list-style-type: decimal;"><li>Select '''Rootfs and all deb packages''',then enter</li></ol> <div class="figure"> [[File:pi3b-img388.png|576x119px|选区_241]] </div><ol start="3" style="list-style-type: decimal;"><li>Then select the model of the development board</li></ol> <div class="figure"> [[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]] </div><ol start="4" style="list-style-type: decimal;"><li>Then select the type of rootfs</li></ol> [[File:pi3b-img389.png|575x86px]] <ol start="5" style="list-style-type: decimal;"><li><p>Then select the type of image</p><ol style="list-style-type: lower-alpha;"><li><p>'''Image with console interface (server)''' Indicates the image of the server version, which is relatively small</p></li><li><p>'''Image with desktop environment''' Indicates a image with a desktop, which is relatively large</p></li></ol></li></ol> <div class="figure"> [[File:pi3b-img390.png|576x75px|选区_245]] </div><ol start="6" style="list-style-type: decimal;"><li>If you are compiling the image of the server version, you can also choose to compile the Standard version or the Minimal version. The pre-installed software of the Minimal version will be much less than that of the Standard version '''(please do not choose the Minimal version if there is no special requirement, because many things are not pre-installed by default. Some functions may not be available)'''</li></ol> <div class="figure"> [[File:pi3b-img391.png|576x78px|选区_397]] </div><ol start="7" style="list-style-type: decimal;"><li>If you are compiling the image of the desktop version, you also need to select the type of desktop environment. Currently, Ubuntu Jammy mainly maintains XFCE and Gnome desktops, Ubuntu Focal only maintains XFCE desktops, and Debian Bullseye mainly maintains XFCE and KDE desktops</li></ol> <div class="figure"> [[File:pi3b-img392.png|575x99px|Selection_001]] </div>[[File:pi3b-img393.png|576x74px]] You can then select additional packages that need to be installed. Please press the Enter key to skip directly here. [[File:pi3b-img394.png|575x264px]] <ol start="8" style="list-style-type: decimal;"><li><p>Then it will start to compile rootfs, and some of the information prompted during compilation are as follows</p><ol style="list-style-type: lower-alpha;"><li>The type of rootfs</li></ol></li></ol> [ o.k. ] local not found [ Creating new rootfs cache for '''jammy'''] <ol start="2" style="list-style-type: lower-alpha;"><li>The storage path of the compiled rootfs compressed package</li></ol> [ o.k. ] Target directory [ '''external/cache/rootfs''' ] <ol start="3" style="list-style-type: lower-alpha;"><li>The name of the rootfs compressed package generated by compilation</li></ol> [ o.k. ] File name [ '''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' ] <ol start="4" style="list-style-type: lower-alpha;"><li>The time used for compilation</li></ol> [ o.k. ] Runtime [ '''13 min''' ] <ol start="9" style="list-style-type: decimal;"><li><p>View the rootfs compressed package generated by compilation</p><ol style="list-style-type: lower-alpha;"><li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' is the rootfs compressed package, the meaning of each field of the name is</p><ol style="list-style-type: lower-alpha;"><li><p>'''jammy''' indicates the type of Linux distribution of rootfs</p></li><li><p>'''xfce''' means rootfs is the type of desktop version, if it is '''cli''', it means the type of server version</p></li><li><p>'''arm64''' represents the architecture type of rootfs</p></li><li><p>'''f930ff6ebbac1a72108a2e100762b18f''' is the MD5 hash value generated by the package names of all software packages installed by rootfs. As long as the list of software packages installed by rootfs is not modified, this value will not change. The compilation script will use this MD5 hash value to generate Determine whether rootfs needs to be recompiled</p></li></ol></li><li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list''' lists the package names of all packages installed by rootfs</p></li></ol></li></ol> test@test:~/orangepi-build$ '''ls external/cache/rootfs/''' '''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.current jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list <ol start="10" style="list-style-type: decimal;"><li>If the required rootfs already exists under '''external/cache/rootfs''', then compiling rootfs again will directly skip the compilation process and will not restart the compilation. When compiling the image, it will also go to '''external/cache/rootfs''' to find out whether it has If there is rootfs available in the cache, use it directly, which can save a lot of download and compilation time.</li></ol> <span id="compile-linux-image"></span>== Compile Linux image == # Run the build.sh script, remember to add sudo permission test@test:~/orangepi-build$ '''sudo ./build.sh''' <ol start="2" style="list-style-type: decimal;"><li>Select '''Full OS image for flashing''',then enter</li></ol> <div class="figure"> [[File:pi3b-img395.png|576x128px|选区_242]] </div><ol start="3" style="list-style-type: decimal;"><li>Then select the model of the development board</li></ol> <div class="figure"> [[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]] </div><ol start="4" style="list-style-type: decimal;"><li>Then select the type of rootfs</li></ol> [[File:pi3b-img389.png|575x86px]] <ol start="5" style="list-style-type: decimal;"><li><p>Then select the type of image</p><ol style="list-style-type: lower-alpha;"><li><p>'''Image with console interface (server)''' Indicates the image of the server version, which is relatively small</p></li><li><p>'''Image with desktop environment''' Indicates a image with a desktop, which is relatively large</p></li></ol></li></ol> <div class="figure"> [[File:pi3b-img390.png|576x75px|选区_245]] </div><ol start="6" style="list-style-type: decimal;"><li>If you are compiling the image of the server version, you can also choose to compile the Standard version or the Minimal version. The pre-installed software of the Minimal version will be much less than that of the Standard version '''(please do not choose the Minimal version if there is no special requirement, because many things are not pre-installed by default. Some functions may not be available)'''</li></ol> <div class="figure"> [[File:pi3b-img391.png|569x77px|选区_397]] </div><ol start="7" style="list-style-type: decimal;"><li>If you are compiling the image of the desktop version, you also need to select the type of desktop environment. Currently, Ubuntu Jammy mainly maintains XFCE and Gnome desktops, Ubuntu Focal only maintains XFCE desktops, and Debian Bullseye mainly maintains XFCE and KDE desktops</li></ol> <div class="figure"> [[File:pi3b-img392.png|575x99px|Selection_001]] </div>[[File:pi3b-img393.png|576x74px]] You can then select additional packages that need to be installed. Please press the Enter key to skip directly here. [[File:pi3b-img394.png|575x264px]] <ol start="8" style="list-style-type: decimal;"><li><p>Then it will start to compile the Linux image. The general process of compilation is as follows</p><p>a. Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process</p><p>b. Download the source code of u-boot and Linux kernel (if cached, only update the code)</p><p>c. Compile u-boot source code and generate u-boot deb package</p><p>d. Compile the Linux source code and generate Linux-related deb packages</p><p>e. Make the deb package of Linux firmware</p><p>f. Make the deb package of the orangepi-config tool</p><p>g. Create a deb package supported by the board</p><p>h. If you are compiling the desktop image, you will also create desktop-related deb packages</p><p>i. Check whether the rootfs has been cached, if not, recreate the rootfs, if it has been cached, directly decompress and use</p><p>j. Install the previously generated deb package into rootfs</p><p>k. Make some specific settings for different development boards and different types of images, such as pre-installing additional software packages, modifying system configuration, etc.</p><p>l. Then make an image file and format the partition, the default type is ext4</p><p>m. Then copy the configured rootfs to the mirrored partition</p><p>n. Then update initramfs</p><p>o. Finally, write the bin file of u-boot into the image through the dd command</p></li><li><p>After compiling the image, the following information will be prompted</p><ol style="list-style-type: lower-alpha;"><li>The storage path of the compiled image</li></ol></li></ol> [ o.k. ] Done building [ '''output/images/Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160/Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.img''' ] <ol start="2" style="list-style-type: lower-alpha;"><li>Compilation time</li></ol> '''[ o.k. ] Runtime [ 19 min ]''' <ol style="list-style-type: lower-alpha;"><li>Repeat the command to compile the image, and use the following command to start compiling the image directly without selecting through the graphical interface</li></ol> [ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=image RELEASE=bullseye BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=yes''' ] <span id="android-11-operating-system-instructions"></span> = '''Android 11 operating system instructions''' = <span id="supported-android-versions"></span>== Supported Android versions == {| class="wikitable"|-|'''Android version'''|'''Kernel version'''|-|'''Android 11'''|'''Linux4.19'''|} <span id="android-function-adaptation"></span>== Android Function Adaptation == {| class="wikitable"|-|'''Functions'''|'''Android 11'''|-|'''USB2.0x3'''|'''OK'''|-|'''USB3.0x1'''|'''OK'''|-|'''M.2 NVMe SSD boot'''|'''OK'''|-|'''WIFI'''|'''OK'''|-|'''Bluetooth'''|'''OK'''|-|'''GPIO(40pin)'''|'''OK'''|-|'''UART(40pin)'''|'''OK'''|-|'''SPI(40pin)'''|'''OK'''|-|'''I2C(40pin)'''|'''OK'''|-|'''PWM(40pin)'''|'''OK'''|-|'''PWM fan interface'''|'''OK'''|-|'''3pin Debugging serial port'''|'''OK'''|-|'''EMMC'''|'''OK'''|-|'''TF card boot'''|'''OK'''|-|'''HDMI video'''|'''OK'''|-|'''HDMI Audio'''|'''OK'''|-|'''LCD'''|'''OK'''|-|'''eDP display'''|'''OK'''|-|'''Gigabit network port'''|'''OK'''|-|'''Network port status indicator'''|'''OK'''|-|'''Headphone playback'''|'''OK'''|-|'''Headphone recording'''|'''OK'''|-|'''LED Light'''|'''OK'''|-|'''GPU'''|'''OK'''|-|'''NPU'''|'''OK'''|-|'''VPU'''|'''OK'''|-|'''RTC'''|'''OK'''|} <span id="wifi-connection-test-method"></span>== WIFI connection test method == # First click enter '''Setting''' [[File:pi3b-img396.png|549x228px]] <ol start="2" style="list-style-type: decimal;"><li>Then select '''Network &amp; internet'''</li></ol> [[File:pi3b-img397.png|565x120px]] <ol start="3" style="list-style-type: decimal;"><li>Then select '''Wi-Fi'''</li></ol> [[File:pi3b-img398.png|561x99px]] <ol start="4" style="list-style-type: decimal;"><li>Then turn on the '''Wi-Fi''' switch</li></ol> [[File:pi3b-img399.png|560x167px]] <ol start="5" style="list-style-type: decimal;"><li>After turning on '''Wi-Fi''', if everything is normal, you can scan for nearby Wi-Fi hotspots</li></ol> [[File:pi3b-img400.png|561x166px]] <ol start="6" style="list-style-type: decimal;"><li>Then select the Wi-Fi you want to connect to, and the password input interface shown in the figure below will pop up</li></ol> [[File:pi3b-img401.png|553x237px]] <ol start="7" style="list-style-type: decimal;"><li>Then use the keyboard to enter the password corresponding to Wi-Fi, and then use the mouse to click the Enter button in the virtual keyboard to start connecting to Wi-Fi</li></ol> [[File:pi3b-img402.png|553x232px]] <ol start="8" style="list-style-type: decimal;"><li>After the Wi-Fi connection is successful, the display is as shown in the figure below:</li></ol> [[File:pi3b-img403.png|558x102px]] <span id="how-to-use-wi-fi-hotspot"></span>== How to use Wi-Fi hotspot == # First, please make sure that the Ethernet port is connected to the network cable and can access the Internet normally# Then select '''Settings''' [[File:pi3b-img396.png|549x228px]] <ol start="3" style="list-style-type: decimal;"><li>Then select '''Network &amp; internet'''</li></ol> [[File:pi3b-img397.png|565x120px]] <ol start="4" style="list-style-type: decimal;"><li>Then select '''Hotspot &amp; tethering'''</li></ol> [[File:pi3b-img404.png|549x173px]] <ol start="5" style="list-style-type: decimal;"><li>Then select '''Wi-Fi hotspot'''</li></ol> [[File:pi3b-img405.png|548x104px]] <ol start="6" style="list-style-type: decimal;"><li>Then turn on the '''Wi-Fi hotspot''', you can also see the name and password of the generated hotspot in the figure below, remember them, and use them when connecting to the hotspot (if you need to modify the name and password of the hotspot, you need to turn off the Wi-Fi first -Fi hotspot before modification)</li></ol> [[File:pi3b-img406.png|551x158px]] <ol start="7" style="list-style-type: decimal;"><li>At this time, you can take out your mobile phone. If everything is normal, you can find the WIFI hotspot with the same name ('''here AndroidAP_6953''') displayed under the '''Hotspot name''' in the above picture in the WI-FI list searched by the mobile phone. Then you can click '''AndroidAP_6953''' to connect to the hotspot, and the password can be seen under the '''Hotspot password''' in the above picture</li></ol> [[File:pi3b-img407.png|313x238px]] <ol start="8" style="list-style-type: decimal;"><li>After the connection is successful, it will be displayed as shown in the figure below (the interface of different mobile phones will be different, the specific interface is subject to the display of your mobile phone). At this point, you can open a webpage on your mobile phone to see if you can access the Internet. If you can open the webpage normally, it means that the '''WI-FI Hotspot''' of the development board can be used normally.</li></ol> [[File:pi3b-img408.png|327x165px]] <span id="bluetooth-test-method"></span>== Bluetooth test method == # First click enter '''Setting''' [[File:pi3b-img396.png|549x228px]] <ol start="2" style="list-style-type: decimal;"><li>Then select '''Connected devices'''</li></ol> [[File:pi3b-img409.png|547x115px]] <ol start="3" style="list-style-type: decimal;"><li>Then click '''Pair new device''' to turn on Bluetooth and start scanning the surrounding Bluetooth devices</li></ol> [[File:pi3b-img410.png|547x126px]] <ol start="4" style="list-style-type: decimal;"><li>The searched Bluetooth devices will be displayed under '''Available devices'''</li></ol> [[File:pi3b-img411.png|559x279px]] <ol start="5" style="list-style-type: decimal;"><li>Then click the Bluetooth device you want to connect to start pairing. When the following interface pops up, please use the mouse to select the '''Pair''' option</li></ol> [[File:pi3b-img412.png|522x212px]] <ol start="6" style="list-style-type: decimal;"><li>The test here is the configuration process of the development board and the Bluetooth of the Android mobile phone. At this time, the following confirmation interface will pop up on the mobile phone. After clicking the pairing button on the mobile phone, the pairing process will start</li></ol> [[File:pi3b-img413.png|236x273px]] <ol start="7" style="list-style-type: decimal;"><li>After the pairing is completed, you can see the paired Bluetooth device as shown in the figure below</li></ol> [[File:pi3b-img414.png|545x178px]] <ol start="8" style="list-style-type: decimal;"><li>At this time, you can use the Bluetooth of your mobile phone to send a picture to the development board. After sending, you can see the following confirmation interface in the Android system of the development board, and then click '''Accept''' to start receiving the picture sent by the mobile phone.</li></ol> [[File:pi3b-img415.png|559x238px]] <ol start="9" style="list-style-type: decimal;"><li>You can open the '''Download''' directory in the file manager to view the pictures received by the Android system Bluetooth of the development board</li></ol> [[File:pi3b-img416.png|573x97px]] <span id="how-to-use-raspberry-pi-5-inch-screen"></span>== How to use Raspberry Pi 5-inch screen == '''Please make sure that the image used is the following two versions of the image:''' '''OrangePi3B_RK3566_Android11_lcd_v1.x.x.img''' '''OrangePi3B_RK3566_Android11_spi-nvme_lcd_v1.x.x.img''' # The screen needs to be assembled first, please refer to [[\l|'''the assembly method of the Raspberry Pi 5-inch screen''']]# Connect the Type-C power supply to the board and power it on. After the system starts, you can see the screen display as shown in the figure below [[File:pi3b-img417.png|516x332px]] <span id="pin-interface-gpio-uart-spi-and-pwm-test"></span>== 40pin interface GPIO, UART, SPI and PWM test == <span id="pin-gpio-port-test-2"></span>=== 40pin GPIO port test === # First click on the wiringOP icon to open the wiringOP APP [[File:pi3b-img418.png|576x210px]] <ol start="2" style="list-style-type: decimal;"><li>The main interface of wiringOP APP is displayed as shown in the figure below, and then click the '''GPIO_TEST''' button to open the GPIO test interface</li></ol> [[File:pi3b-img419.png|575x148px]] <ol start="3" style="list-style-type: decimal;"><li>The GPIO test interface is shown in the figure below. The two rows of '''CheckBox''' buttons on the left are in one-to-one correspondence with the 40pin pins. When the '''CheckBox''' button is checked, the corresponding GPIO pin will be set to '''OUT''' mode, and the pin level will be set to high level; when the checkbox is unchecked, the GPIO pin level will be set to low level; When the '''GPIO READALL''' button is pressed, information such as wPi number, GPIO mode, and pin level can be obtained; when the '''BLINK ALL GPIO''' button is clicked, the program will control the 28 GPIO ports to continuously switch between high and low levels</li></ol> [[File:pi3b-img420.png|576x303px]] <ol start="4" style="list-style-type: decimal;"><li>Then click the '''GPIO READALL''' button, the output information is as shown in the figure below:</li></ol> [[File:pi3b-img421.png|575x323px]] <ol start="5" style="list-style-type: decimal;"><li>There are a total of 28 GPIO ports in the 40pins of the development board that can be used. The following uses pin 7—the corresponding GPIO is GPIO4_A4—the corresponding wPi serial number is 2—as an example to demonstrate how to set the high and low levels of the GPIO port. First click the '''CheckBox''' button corresponding to pin 7. When the button is selected, pin 7 will be set to high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means setting high level success</li></ol> [[File:pi3b-img422.png|241x326px]] <ol start="6" style="list-style-type: decimal;"><li>Then click the '''GPIO READALL''' button, you can see that the current pin 7 mode is '''OUT''', and the pin level is high</li></ol> [[File:pi3b-img423.png|574x301px]] <ol start="7" style="list-style-type: decimal;"><li>Click the '''CheckBox''' button in the figure below again to cancel the check status. Pin 7 will be set to low level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is '''0v''', it means that the low level is set successfully.</li></ol> [[File:pi3b-img424.png|250x345px]] <ol start="8" style="list-style-type: decimal;"><li>Then click the '''GPIO READALL''' button, you can see that the current pin 7 mode is OUT, and the pin level is low</li></ol> [[File:pi3b-img425.png|576x300px]] <span id="pin-uart-test-1"></span>=== 40pin UART test === # UART7 and UART9 are enabled by default in Android. The position of the 40pin is shown in the figure below, and the corresponding device nodes are '''/dev/ttyS7''' and '''/dev/ttyS9''' respectively [[File:pi3b-img269.png|376x92px]] <ol start="2" style="list-style-type: decimal;"><li>First click on the wiringOP icon to open the wiringOP APP</li></ol> [[File:pi3b-img418.png|576x210px]] <ol start="3" style="list-style-type: decimal;"><li>The main interface of wiringOP APP is displayed as shown in the figure below, and then click the '''UART_TEST''' button to open the UART test interface</li></ol> [[File:pi3b-img426.png|575x156px]] <ol start="4" style="list-style-type: decimal;"><li>The serial port test interface of the APP is shown in the figure below</li></ol> [[File:pi3b-img427.png|576x324px]] <ol start="5" style="list-style-type: decimal;"><li>Take the test of '''UART7''' as an example below, select the '''/dev/ttyS7''' node in the selection box, enter the baud rate you want to set in the edit box, and then click the '''OPEN''' button to open the /dev/ttyS7 node. After the opening is successful, the '''OPEN''' button becomes unselectable, and the '''CLOSE''' button and '''SEND''' button become selectable</li></ol> [[File:pi3b-img428.png|574x166px]] <ol start="6" style="list-style-type: decimal;"><li>Then use Dupont wire to short the RXD and TXD pins of uart7</li></ol> [[File:pi3b-img429.png|418x103px]] <ol start="7" style="list-style-type: decimal;"><li>Then you can enter a character in the send edit box below, and click the '''SEND''' button to start sending</li></ol> [[File:pi3b-img430.png|575x161px]] <ol start="8" style="list-style-type: decimal;"><li>If everything is normal, the received string will be displayed in the receiving box</li></ol> [[File:pi3b-img431.png|574x164px]] <span id="pin-spi-test-2"></span>=== 40pin SPI test === # According to the schematic diagram of the 40pin interface, the spi available for Orange Pi 3B is spi3 [[File:pi3b-img264.png|577x193px]] <ol start="2" style="list-style-type: decimal;"><li>Here, the SPI interface is tested through the w25q64 module. First, the w25q64 device is connected to the SPI3 interface</li></ol> [[File:pi3b-img432.png|373x215px]] <ol start="3" style="list-style-type: decimal;"><li>Then click the wiringOP icon to open the wiringOP APP</li></ol> [[File:pi3b-img418.png|576x210px]] <ol start="4" style="list-style-type: decimal;"><li>The main interface of wiringOP APP is displayed as shown in the figure below, click the SPI_TEST button to open the SPI test interface</li></ol> [[File:pi3b-img433.png|574x149px]] <ol start="5" style="list-style-type: decimal;"><li>Then click the '''OPEN''' button to initialize the SPI</li></ol> [[File:pi3b-img434.png|576x241px]] <ol start="6" style="list-style-type: decimal;"><li>Then fill in the bytes that need to be sent, such as reading the ID information of w25q64, fill in the address 0x9f in data[0], and then click the '''TRANSFER''' button</li></ol> [[File:pi3b-img435.png|572x216px]] <ol start="7" style="list-style-type: decimal;"><li>Finally, the APP will display the read ID information</li></ol> [[File:pi3b-img436.png|575x296px]] <ol start="8" style="list-style-type: decimal;"><li>The MANUFACTURER ID of the w25q64 module is EFh, and the Device ID is 4017h, corresponding to the value read above (h stands for hexadecimal)</li></ol> [[File:pi3b-img437.png|374x126px]] <span id="pin-pwm-test"></span>=== 40pin PWM test === # Android enables '''PWM11''' by default, and the corresponding pin is located at 40pin as shown in the figure below [[File:pi3b-img438.png|334x107px]] <ol start="2" style="list-style-type: decimal;"><li>First click on the wiringOP icon to open the wiringOP APP</li></ol> [[File:pi3b-img418.png|576x210px]] <ol start="3" style="list-style-type: decimal;"><li>Then click the '''PWM_TEST''' button on the main interface of wiringOP to enter the PWM test interface</li></ol> [[File:pi3b-img439.png|575x150px]] <ol start="4" style="list-style-type: decimal;"><li>The base address corresponding to PWM11 is '''fe6f0030''', here pwmchip0 shows '''fdd70020.pwm''' on the right, then you need to click the drop-down option to select other pwmchips until '''febf0030.pwm''' is displayed on the right</li></ol> [[File:pi3b-img440.png|576x178px]] <ol start="5" style="list-style-type: decimal;"><li>When the drop-down option selects '''pwmchip3''', the corresponding base address of PWM11 is '''fe6f0030''' on the right</li></ol> [[File:pi3b-img441.png|574x161px]] <ol start="6" style="list-style-type: decimal;"><li>Then confirm the PWM channel, the default is channel 0, and confirm the PWM cycle, the default configuration is '''50000ns''', converted to PWM frequency is '''20KHz''', you can modify it yourself, click the '''EXPORT''' button to export '''PWM11'''</li></ol> [[File:pi3b-img442.png|575x160px]] <ol start="7" style="list-style-type: decimal;"><li>Then drag the drag bar below to change the PWM duty cycle, and then check Enable to output the PWM waveform</li></ol> [[File:pi3b-img443.png|575x167px]] <ol start="8" style="list-style-type: decimal;"><li>Then use an oscilloscope to measure the No. 32 pin in the 40pin of the development board, and you can see the following waveform</li></ol> [[File:pi3b-img444.png|460x276px]] <span id="how-to-use-adb"></span>== How to use ADB == <span id="use-network-connection-adb-debugging"></span>=== Use network connection adb debugging === '''Using the network adb does not require a data cable to connect the computer and the development board, but to communicate through the network, so first make sure that the wired or wireless network of the development board is connected, and then obtain the IP address of the development board, which will be used later.''' # Make sure that the '''service.adb.tcp.port''' of the Android system is set to port number 5555 console:/ # '''getprop | grep &quot;adb.tcp&quot;''' [service.adb.tcp.port]: ['''5555'''] <ol start="2" style="list-style-type: decimal;"><li>If '''service.adb.tcp.port''' is not set, you can use the following command to set the port number of network adb</li></ol> console:/ # '''setprop service.adb.tcp.port 5555''' console:/ # '''stop adbd''' console:/ # '''start adbd''' <ol start="3" style="list-style-type: decimal;"><li>Install adb tool on Ubuntu PC</li></ol> test@test:~$ '''sudo apt update''' test@test:~$ '''sudo apt install -y adb''' <ol start="4" style="list-style-type: decimal;"><li>Then connect network adb on Ubuntu PC</li></ol> test@test:~$ '''adb connect 192.168.1.xxx''' '''(The IP address needs to be changed to the IP address of the development board)''' * daemon not running; starting now at tcp:5037 * daemon started successfully connected to 192.168.1.xxx:5555 test@test:~$ '''adb devices''' List of devices attached 192.168.1.xxx:5555 device <ol start="5" style="list-style-type: decimal;"><li>Then you can log in to the android system through the adb shell on the Ubuntu PC</li></ol> test@test:~$ '''adb shell''' console:/ # <span id="appendix"></span> = '''Appendix''' = <span id="user-manual-update-history"></span>== User Manual Update History ==gz
{| class="wikitable"|-|'''Version'''|'''Date'''|'''Update Notes'''|-|v0.1|2023-07-19|initial version|} <span id="image-update-history"></span>== Image Update History == {| class="wikitable"|-| '''Date'''| '''Update Notes'''|-| 2023-07-19| Orangepi3 b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z Orange pi3b_1.0.0_ubuntu_jammy_desktop_xfce_linux5.10.160.7z Orange pi3b_1.0.0_ubuntu_focal_desktop_xfce_linux5.10.160.7z OrangePi3B_RK3566_Android11_v1.0.0.tar.gz OrangePi3B_RK3566_Android11_lcd_v1.0.0.tar.gz OrangePi3B_RK3566_Android11_spiOrangePi3B_RK3566_Android11_lcd_spi-nvme_v1.0.0.tar.gz
O rangePi3B_RK3566_Android11_lcd_spi-nvme_v1.0.0.tar.gz
<p>* initial version</p>
|}