Difference between revisions of "Orange Pi 3B"

From Wiki-Orange Pi
Jump to: navigation, search
(Method of burning Linux image to TF card based on Ubuntu PC)
(Interface details of Orange Pi 3B)
 
(276 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
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 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 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on open source Hongmeng and other operating systems.
+
Orange Pi 3B supports Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on OpenHarmony and other operating systems.
  
 
<span id="purpose-of-orange-pi-3b"></span>
 
<span id="purpose-of-orange-pi-3b"></span>
 +
 
== Purpose of Orange Pi 3B ==
 
== Purpose of Orange Pi 3B ==
  
Line 57: Line 58:
 
• Integrated RKNN NPU AI accelerator, 0.8Tops@INT8 performance
 
• Integrated RKNN NPU AI accelerator, 0.8Tops@INT8 performance
  
• Supports one-click conversion of C affe/TensorFlow/TFLite/ONNX/PyTorch/Keras/Darknet architecture models
+
• Supports one-click conversion of Caffe/TensorFlow/TFLite/ONNX/PyTorch/Keras/Darknet architecture models
  
 
|-
 
|-
Line 79: Line 80:
 
| storage
 
| storage
 
|  
 
|  
• Support eMMC module: 16GB/32GB/64GB/128GB
+
• Support eMMC module: 16GB/32GB/64GB/128GB/256GB
  
 
• SPI Flash: 16MB/32MB
 
• SPI Flash: 16MB/32MB
Line 90: Line 91:
 
| Wi-Fi+Bluetooth
 
| Wi-Fi+Bluetooth
 
|  
 
|  
Wi-Fi 5+BT 5.0,BLE(20U5622)
+
Wi-Fi 5+BT 5.0, BLE(20U5622)
 
|-
 
|-
 
| ethernet transceiver
 
| ethernet transceiver
Line 146: Line 147:
 
| Supported OS
 
| Supported OS
 
|  
 
|  
Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, open source Hongmeng 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on open source Hongmeng and other operating systems.
+
Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on OpenHarmony and other operating systems.
 
|-
 
|-
 
|colspan=2|
 
|colspan=2|
Line 168: Line 169:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img3.png]]
+
[[File:pi3b-img3.png|800px]]
  
 
</div>
 
</div>
Line 175: Line 176:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img4.png]]
+
[[File:pi3b-img4.png|800px]]
  
 
</div>
 
</div>
Line 182: Line 183:
 
== Interface details of Orange Pi 3B ==
 
== Interface details of Orange Pi 3B ==
  
[[File:pi3b-img5.png]]
+
[[File:pi3b-img5-1.png|800px]]
  
[[File:pi3b-img6.png]]
+
[[File:pi3b-img6.png|800px]]
  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
{| class="wikitable" style="background-color:#ffffdc;width:800px;"  
 
|-
 
|-
 
|  
 
|  
<big>'''The diameter of the four positioning holes is 3.0mm, and the diameter of the M.2 PICE device fixing hole is 3.5mm.'''</big>
+
<big>'''The diameter of the four positioning holes is 2.7mm, and the diameter of the M.2 PICE device fixing hole is 2.9mm.'''</big>
 
|}
 
|}
  
Line 225: Line 226:
 
</ol>
 
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<li>Power adapter, Orange Pi 3B is recommended to use 5V/3A Type-C power supply for power supply</li>
  
[[File:pi3b-img11.png]]
+
[[File:pi3b-img11-1.png]]
 
</ol>
 
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
Line 266: Line 267:
 
<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>
 
<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]] [[File:pi3b-img18.png]]
+
[[File:pi3b-img17.png|400px]] [[File:pi3b-img18.png|400px]]
 
</ol>
 
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" style="list-style-type: decimal;">
Line 296: Line 297:
 
<div class="figure">
 
<div class="figure">
  
::[[File:pi3b-img19.png]]
+
::[[File:pi3b-img19.png|800px]]
  
 
</div>
 
</div>
Line 334: Line 335:
 
|-
 
|-
 
|  
 
|  
https://www.balena.io/etcher/
+
'''https://www.balena.io/etcher/'''
 
|}
 
|}
  
Line 373: Line 374:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img25.png|501x281px|03]]
+
[[File:pi3b-img25.png]]
  
 
</div></ol>
 
</div></ol>
Line 380: Line 381:
 
<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>
 
<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]]
+
[[File:pi3b-img26.png]]
 
</ol>
 
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
 
<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]]
+
[[File:pi3b-img27.png]]
 
</ol>
 
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
<li>After the successful burning is completed, the display interface of balenaEtcher is shown in the figure below. If the 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. up</li>
+
<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.</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img28.png|523x324px|04]]
+
[[File:pi3b-img28.png]]
  
 
</div></ol>
 
</div></ol>
Line 403: Line 404:
 
<div class="figure">
 
<div class="figure">
  
::[[File:pi3b-img16.png|146x143px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
::[[File:pi3b-img16.png]]
  
 
</div>
 
</div>
Line 414: Line 415:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img29.png|283x90px|6d1c77df7eeb7e491e5f79e8d85cbdc]]
+
[[File:pi3b-img29.png]]
  
 
</div></ol>
 
</div></ol>
Line 422: Line 423:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img30.png|290x130px|34acacded202b29eee42fd20f5b4c92]]
+
[[File:pi3b-img30.png]]
  
 
</div>
 
</div>
Line 436: Line 437:
 
<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>
 
<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|464x136px]]
+
[[File:pi3b-img31.png]]
 
</ol>
 
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
Line 443: Line 444:
 
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
 
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
  
[[File:pi3b-img32.png|245x129px]]
+
[[File:pi3b-img32.png]]
 
</ol>
 
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
 
<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|254x132px]]
+
[[File:pi3b-img33.png]]
 
</ol>
 
</ol>
 
</li></ol>
 
</li></ol>
Line 454: Line 455:
 
<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>
 
<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>
  
[[File:pi3b-img34.png|448x132px]]
+
[[File:pi3b-img34.png]]
 
</ol>
 
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<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|402x189px]]
+
[[File:pi3b-img35.png]]
 
</ol>
 
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
Line 468: Line 469:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|271x115px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
 
</div></ol>
 
</div></ol>
Line 475: Line 476:
 
<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>
 
<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|289x100px]]
+
[[File:pi3b-img37.png]]
 
</ol>
 
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
 
<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|305x94px]]
+
[[File:pi3b-img38.png]]
 
</ol>
 
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
 
<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|454x213px]]
+
[[File:pi3b-img39.png]]
 
</ol>
 
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
Line 493: Line 494:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img40.png|455x216px|图片1]]
+
[[File:pi3b-img40.png]]
  
 
</div></ol>
 
</div></ol>
Line 499: Line 500:
 
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li>
 
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li>
  
[[File:pi3b-img41.png|453x213px]]
+
[[File:pi3b-img41.png]]
 
</ol>
 
</ol>
 
<ol style="list-style-type: lower-roman;">
 
<ol style="list-style-type: lower-roman;">
 
<li>Then select the '''import configuration''' option</li>
 
<li>Then select the '''import configuration''' option</li>
  
[[File:pi3b-img42.png|458x215px]]
+
[[File:pi3b-img42.png]]
 
</ol>
 
</ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<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>
 
<li>Then select the '''rk3588_Linux_tfcard.cfg''' configuration file in the '''MiniLoader''' folder downloaded earlier, and click '''Open'''</li>
  
[[File:pi3b-img43.png|457x215px]]
+
[[File:pi3b-img43.png]]
 
</ol>
 
</ol>
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<li>Then click '''OK'''</li>
 
<li>Then click '''OK'''</li>
  
[[File:pi3b-img44.png|483x227px]]
+
[[File:pi3b-img44.png]]
 
</ol>
 
</ol>
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<li>Then click the position shown in the figure below</li>
 
<li>Then click the position shown in the figure below</li>
  
[[File:pi3b-img45.png|486x228px]]
+
[[File:pi3b-img45.png]]
 
</ol>
 
</ol>
 
<ol start="13" style="list-style-type: lower-alpha;">
 
<ol start="13" style="list-style-type: lower-alpha;">
Line 526: Line 527:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img46.png|494x232px|[78~~Z7UFB@US@8P$QL%OM6]]
+
[[File:pi3b-img46.png]]
  
 
</div></ol>
 
</div></ol>
Line 532: Line 533:
 
<li>Then click the position shown in the figure below</li>
 
<li>Then click the position shown in the figure below</li>
  
[[File:pi3b-img47.png|493x232px]]
+
[[File:pi3b-img47.png]]
 
</ol>
 
</ol>
 
<ol start="15" style="list-style-type: lower-alpha;">
 
<ol start="15" style="list-style-type: lower-alpha;">
Line 543: Line 544:
 
|}
 
|}
  
[[File:pi3b-img48.png|499x234px]]
+
[[File:pi3b-img48.png]]
 
</ol>
 
</ol>
 
<ol start="16" style="list-style-type: lower-alpha;">
 
<ol start="16" style="list-style-type: lower-alpha;">
 
<li>Then please check the '''mandatory write by address''' option</li>
 
<li>Then please check the '''mandatory write by address''' option</li>
  
[[File:pi3b-img49.png|497x234px]]
+
[[File:pi3b-img49.png]]
 
</ol>
 
</ol>
 
<ol start="17" style="list-style-type: lower-alpha;">
 
<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>
 
<li>Click the execute button again to start burning the Linux image to the tf card of the development board</li>
  
[[File:pi3b-img50.png|497x233px]]
+
[[File:pi3b-img50.png]]
 
</ol>
 
</ol>
 
<ol start="18" style="list-style-type: lower-alpha;">
 
<ol start="18" style="list-style-type: lower-alpha;">
Line 560: Line 561:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img51.png|492x231px|%O4~FPPAT$0RH{3S~CGJ@@Q(1)]]
+
[[File:pi3b-img51.png]]
  
 
</div></ol>
 
</div></ol>
Line 579: Line 580:
 
|-
 
|-
 
|  
 
|  
https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip
+
'''https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip'''
 
|}
 
|}
 
</ol>
 
</ol>
Line 588: Line 589:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img52.png|209x228px|选区_199]]
+
[[File:pi3b-img52.png]]
  
 
</div></ol>
 
</div></ol>
Line 594: Line 595:
 
<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>
 
<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>
  
[[File:pi3b-img53.png|304x147px]]
+
[[File:pi3b-img53.png]]
 
</ol>
 
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
 
<li>After formatting the TF card, the information shown in the figure below will pop up, click OK</li>
  
[[File:pi3b-img54.png|186x149px]]
+
[[File:pi3b-img54.png]]
 
</ol>
 
</ol>
 
</li></ol>
 
</li></ol>
Line 610: Line 611:
 
|-
 
|-
 
|  
 
|  
http://sourceforge.net/projects/win32diskimager/files/Archive/
+
'''http://sourceforge.net/projects/win32diskimager/files/Archive/'''
 
|}
 
|}
 
</ol>
 
</ol>
Line 622: Line 623:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img55.png|297x206px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\a8fda8737c5b0b3b38fbb75ef68acfc.pnga8fda8737c5b0b3b38fbb75ef68acfc]]
+
[[File:pi3b-img55.png]]
  
 
</div></ol>
 
</div></ol>
Line 652: Line 653:
 
<li>After entering the balenaEtcher download page, click the green download button to jump to the place where the software is downloaded</li>
 
<li>After entering the balenaEtcher download page, click the green download button to jump to the place where the software is downloaded</li>
  
[[File:pi3b-img20.png|434x208px]]
+
[[File:pi3b-img20.png]]
 
</ol>
 
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
 
<li>Then choose to download the Linux version of the software</li>
 
<li>Then choose to download the Linux version of the software</li>
  
[[File:pi3b-img56.png|430x163px]]
+
[[File:pi3b-img56.png]]
 
</ol>
 
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
Line 692: Line 693:
 
<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>
 
<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>
  
[[File:pi3b-img57.png|423x251px]]
+
[[File:pi3b-img57.png]]
 
</ol>
 
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
Line 703: Line 704:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img25.png|501x281px|03]]
+
[[File:pi3b-img25.png]]
  
 
</div></ol>
 
</div></ol>
Line 710: Line 711:
 
<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>
 
<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-img58.png|429x184px]]
+
[[File:pi3b-img58.png]]
 
</ol>
 
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<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>
 
<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-img59.png|436x190px]]
+
[[File:pi3b-img59.png]]
 
</ol>
 
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" style="list-style-type: decimal;">
<li>After successful burning, the display interface of balenaEtcher is 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>
+
<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.</li>
  
[[File:pi3b-img60.png|435x257px]]
+
[[File:pi3b-img60.png]]
 
</ol>
 
</ol>
 
<span id="how-to-burn-linux-image-to-emmc"></span>
 
<span id="how-to-burn-linux-image-to-emmc"></span>
Line 729: Line 730:
 
=== Using RKDevTool to burn the Linux image into eMMC ===
 
=== Using RKDevTool to burn the Linux image into eMMC ===
  
'''Note that all the following operations are performed on a Windows computer.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html Orange Pi data download page].'''
+
|
 +
<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/hardWare/computerAndMicrocontrollers/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:
 
# 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|115x84px]] [[File:pi3b-img62.png|120x87px]]
+
::[[File:pi3b-img61.png|400px]] [[File:pi3b-img62.png|400px]]
  
[[File:pi3b-img63.png|277x129px]]
+
::[[File:pi3b-img63.png|800px]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>You also need to prepare a good quality USB2.0 male-to-male data cable</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
[[File:pi3b-img16.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
 
<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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>On the data download page of Orange Pi, first select the official tool, and then enter the following folder</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img29.png|360x115px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\6d1c77df7eeb7e491e5f79e8d85cbdc.png6d1c77df7eeb7e491e5f79e8d85cbdc]]
+
[[File:pi3b-img29.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
+
<li>Then download all the files below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img30.png|320x144px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\34acacded202b29eee42fd20f5b4c92.png34acacded202b29eee42fd20f5b4c92]]
+
[[File:pi3b-img30.png]]
  
 
</div>
 
</div>
'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''
+
{| 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;">
 
<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/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</p></li>
 
<li><p>Then 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</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>
+
<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|496x146px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|284x149px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<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|296x154px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img34.png|484x143px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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|442x208px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
 
<li><p>Then start burning the Linux image into eMMC</p>
 
<li><p>Then start burning the Linux image into eMMC</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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|457x215px]]
 
  
 +
[[File:pi3b-img39.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then place the mouse cursor in the area below</li></ol>
+
<li>Then place the mouse cursor in the area below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img64.png|458x215px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-4.jpg未标题-4]]
+
[[File:pi3b-img64.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li>
 
 
[[File:pi3b-img41.png|460x216px]]
 
  
 +
[[File:pi3b-img41.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then select the '''import configuration''' option</li></ol>
+
<li>Then select the '''import configuration''' option</li>
 
 
[[File:pi3b-img42.png|458x215px]]
 
  
 +
[[File:pi3b-img42.png]]
 +
</ol>
 
<ol style="list-style-type: lower-roman;">
 
<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>
+
<li>Then select the '''rk3588_Linux_emmc.cfg''' configuration file in the '''MiniLoader''' folder downloaded earlier, and click '''Open'''</li>
 
 
[[File:pi3b-img65.png|466x219px]]
 
  
 +
[[File:pi3b-img65.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
<li>Then click '''OK'''</li></ol>
+
<li>Then click '''OK'''</li>
 
 
[[File:pi3b-img66.png|468x220px]]
 
  
 +
[[File:pi3b-img66.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<ol start="11" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol>
+
<li>Then click the position shown in the figure below</li>
 
 
[[File:pi3b-img67.png|462x217px]]
 
  
 +
[[File:pi3b-img67.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and then click to '''open'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
+
[[File:pi3b-img68.png]]
  
</div>
+
</div></ol>
 
<ol start="13" style="list-style-type: lower-alpha;">
 
<ol start="13" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol>
+
<li>Then click the position shown in the figure below</li>
 
 
[[File:pi3b-img69.png|459x216px]]
 
  
 +
[[File:pi3b-img69.png]]
 +
</ol>
 
<ol start="14" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then select the path of the Linux image you want to burn, and then click '''Open'''</li>
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
[[File:pi3b-img48.png|499x234px]]
+
|
 +
<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]]
 +
</ol>
 
<ol start="15" style="list-style-type: lower-alpha;">
 
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then please check the option to '''force writing by address'''</li></ol>
+
<li>Then please check the option to '''force writing by address'''</li>
 
 
[[File:pi3b-img70.png|501x235px]]
 
  
 +
[[File:pi3b-img70.png]]
 +
</ol>
 
<ol start="16" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Click the execute button again to start burning the Linux image to the eMMC of the development board</li>
 
 
[[File:pi3b-img71.png|502x236px]]
 
  
 +
[[File:pi3b-img71.png]]
 +
</ol>
 
<ol start="17" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The log displayed after burning the Linux image is shown in the figure below</li>
 
 
[[File:pi3b-img72.png|500x235px]]
 
  
 +
[[File:pi3b-img72.png]]
 +
</ol>
 
<ol start="18" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<li>After burning the Linux image into the eMMC, the Linux system will start automatically.</li>
 
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
'''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]].'''
+
|-
 +
|
 +
<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>
  
<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 ===
 
=== Use the dd command to burn the Linux image into eMMC ===
  
'''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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html Orange Pi data download page].'''
+
{| 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/hardWare/computerAndMicrocontrollers/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:
 
# 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|115x84px]] [[File:pi3b-img62.png|120x87px]]
+
::[[File:pi3b-img61.png|400px]] [[File:pi3b-img62.png|400px]]
  
[[File:pi3b-img63.png|286x133px]]
+
::[[File:pi3b-img63.png|800px]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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 [[\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>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 [[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''']].</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 [[\l|'''the method of uploading files to the development board Linux system''']].</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 [[Orange 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>
+
<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>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
 
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
  
Line 918: Line 945:
  
 
Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img
 
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?'''
  
'''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 use the debugging serial port|how to use the 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]].'''
 
# '''Use ssh to remotely log in to the Linux system, please refer to the instructions in the section of [[\l|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.'''
 
  
 +
'''2. Use ssh to remotely log in to the Linux system, please refer to the instructions in the section of [[Orange Pi 3B#SSH remote login development board|SSH remote login to the development board]].'''
 +
 +
'''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;">
 
<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>
+
<li>Next, we first use the following command to confirm the device node of eMMC</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''ls /dev/mmcblk*boot0 | cut -c1-12'''
 
orangepi@orangepi:~/Desktop$ '''ls /dev/mmcblk*boot0 | cut -c1-12'''
  
'''/dev/mmcblk0'''
+
'''<span style="color:#FF0000">/dev/mmcblk0</span>'''
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
  
orangepi@orangepi:~/Desktop$ '''sudo dd bs=1M if=/dev/zero of=/dev/mmcblk0 count=1000 status=progress'''
+
{| 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'''
 
orangepi@orangepi:~/Desktop$ '''sudo sync'''
 
+
|}
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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>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><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>
</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/mmcblk0 status=progress'''
+
|
 +
'''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'''
 
'''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;">
 
<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></ol>
+
<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;"
'''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]].'''
+
|-
 +
|
 +
<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>
 +
<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 ==
 
== How to write Linux image to SPIFlash+NVMe SSD ==
  
'''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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html Orange Pi data download page].'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''Note that all the following operations are performed on a Windows computer.'''
+
|
 +
<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/hardWare/computerAndMicrocontrollers/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>
 
<span id="using-rkdevtool-to-burn"></span>
Line 973: Line 1,032:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol>
+
<li>The M.2 2230 SSD is as follows</li>
</li></ol>
 
 
 
[[File:pi3b-img73.png|157x112px]]
 
  
 +
[[File:pi3b-img73.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol>
+
<li>The M.2 2242 SSD is as follows</li>
 
 
[[File:pi3b-img74.png|174x96px]]
 
  
 +
[[File:pi3b-img74.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li>
 
 
[[File:pi3b-img75.png|283x63px]]
 
  
 +
[[File:pi3b-img75.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img76.png|266x211px]]
 
  
 +
[[File:pi3b-img76.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<li>Then you need to prepare a good quality USB2.0 male-to-male data cable</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
[[File:pi3b-img16.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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>On the data download page of Orange Pi, first select the '''official tool''', and then enter the following folder</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img29.png|362x115px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\6d1c77df7eeb7e491e5f79e8d85cbdc.png6d1c77df7eeb7e491e5f79e8d85cbdc]]
+
[[File:pi3b-img29.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
+
<li>Then download all the files below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img30.png|264x118px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\34acacded202b29eee42fd20f5b4c92.png34acacded202b29eee42fd20f5b4c92]]
+
[[File:pi3b-img30.png]]
  
 
</div>
 
</div>
'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''
+
{| 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;">
 
<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/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</p></li>
 
<li><p>Then 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</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>
+
<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|446x131px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|253x133px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<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|269x140px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then decompress '''RKDevTool_Release_v3.15.zi'''p, this software does not need to be installed, just find '''RKDevTool''' in the decompressed folder and open it</li></ol>
+
<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>
 
 
[[File:pi3b-img34.png|402x119px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
+
<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-img35.png|402x189px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
 
<li><p>Then start burning the Linux image to the SSD</p>
 
<li><p>Then start burning the Linux image to the SSD</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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|457x215px]]
 
  
 +
[[File:pi3b-img39.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then place the mouse cursor in the area below</li></ol>
+
<li>Then place the mouse cursor in the area below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img64.png|458x215px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-4.jpg未标题-4]]
+
[[File:pi3b-img64.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then click the right mouse button and the selection interface shown in the figure below will pop up</li>
 
 
[[File:pi3b-img41.png|453x213px]]
 
  
 +
[[File:pi3b-img41.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then select the '''import configuration''' option</li></ol>
+
<li>Then select the '''import configuration''' option</li>
  
[[File:pi3b-img42.png|458x215px]]
+
[[File:pi3b-img42.png]]
 
+
</ol>
<ol style="list-style-type: lower-roman;">
+
<ol start="9" style="list-style-type: lower-alpha;">
<li>i. Then enter the '''MiniLoader''' folder downloaded earlier, then select the '''rk3588_Linux_pcie.cfg''' configuration file, and click '''Open'''</li></ol>
+
<li>Then enter the '''MiniLoader''' folder downloaded earlier, then select the '''rk3588_Linux_pcie.cfg''' configuration file, and click '''Open'''</li>
 
 
[[File:pi3b-img77.png|462x217px]]
 
  
 +
[[File:pi3b-img77.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
<li>Then click '''OK'''</li></ol>
+
<li>Then click '''OK'''</li>
 
 
[[File:pi3b-img78.png|468x220px]]
 
  
 +
[[File:pi3b-img78.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<ol start="11" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol>
+
<li>Then click the position shown in the figure below</li>
 
 
[[File:pi3b-img79.png|475x223px]]
 
  
 +
[[File:pi3b-img79.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and then click to '''open'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
+
[[File:pi3b-img68.png]]
  
</div>
+
</div></ol>
 
<ol start="13" style="list-style-type: lower-alpha;">
 
<ol start="13" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol>
+
<li>Then click the position shown in the figure below</li>
 
 
[[File:pi3b-img80.png|486x228px]]
 
  
 +
[[File:pi3b-img80.png]]
 +
</ol>
 
<ol start="14" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then enter the MiniLoader folder downloaded earlier, select '''rk3566_rkspi_loader.img''', and click '''Open'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img81.png|488x228px|GGU}ZN)TL%P[INB(M%MNJV7]]
+
[[File:pi3b-img81.png]]
  
</div>
+
</div></ol>
 
<ol start="15" style="list-style-type: lower-alpha;">
 
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then click the position shown in the figure below</li></ol>
+
<li>Then click the position shown in the figure below</li>
 
 
[[File:pi3b-img82.png|493x231px]]
 
  
 +
[[File:pi3b-img82.png]]
 +
</ol>
 
<ol start="16" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then select the path of the Linux image you want to burn, and then click '''Open'''</li>
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
[[File:pi3b-img48.png|499x234px]]
+
|
 +
<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]]
 +
</ol>
 
<ol start="17" style="list-style-type: lower-alpha;">
 
<ol start="17" style="list-style-type: lower-alpha;">
<li>Then please check '''the mandatory write by address''' option</li></ol>
+
<li>Then please check the option to force writing by address</li>
 
 
[[File:pi3b-img83.png|498x234px]]
 
  
 +
[[File:pi3b-img83.png]]
 +
</ol>
 
<ol start="18" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Click the Execute button again to start burning the Linux image to the SSD</li>
 
 
[[File:pi3b-img84.png|500x235px]]
 
  
 +
[[File:pi3b-img84.png]]
 +
</ol>
 
<ol start="19" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The log displayed after burning the Linux image is shown in the figure below</li>
  
[[File:pi3b-img85.png|504x240px]]
+
[[File:pi3b-img85.png]]
 
 
'''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;">
 
<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>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 ===
 
=== The method of using the dd command to burn ===
  
Line 1,170: Line 1,242:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol>
+
<li>The M.2 2230 SSD is as follows</li>
</li></ol>
 
 
 
[[File:pi3b-img73.png|158x114px]]
 
  
 +
[[File:pi3b-img73.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol>
+
<li>The M.2 2242 SSD is as follows</li>
 
 
[[File:pi3b-img74.png|192x104px]]
 
  
 +
[[File:pi3b-img74.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li>
 
 
[[File:pi3b-img75.png|283x63px]]
 
  
 +
[[File:pi3b-img75.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img76.png|261x198px]]
 
  
 +
[[File:pi3b-img76.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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 [[\l|Method of burning Linux image to TF card based on Windows PC]] and [[\l|'''the method of burning the Linux image to the TF card based on the Ubuntu PC''']].</p></li>
+
<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 [[Orange 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 [[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''']].</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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>Run nand-sata-install first, '''ordinary users remember to add sudo permission'''</li></ol>
+
<li>Run nand-sata-install first, '''<span style="color:#FF0000">ordinary users remember to add sudo permission</span>'''</li>
</li></ol>
 
 
 
orangepi@orangepi:~$ '''sudo nand-sata-install'''
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''sudo nand-sata-install'''
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select '''7 Install/Update the bootloader on SPI Flash'''</li></ol>
+
<li>Then select '''7 Install/Update the bootloader on SPI Flash'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img86.png|355x174px|IMG_256]]
+
[[File:pi3b-img86.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Yes&gt;'''</li></ol>
+
<li>Then select '''&lt;Yes&gt;'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img87.png|356x179px|IMG_256]]
+
[[File:pi3b-img87.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img88.png|358x161px|IMG_256]]
+
[[File:pi3b-img88.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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 [[\l|'''the method of uploading files to the development board Linux system''']].</p></li>
+
<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 [[Orange 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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
 
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
  
Line 1,232: Line 1,310:
  
 
Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img
 
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?'''
  
'''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 use the debugging serial port|how to use the 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 [[Orange Pi 3B#SSH remote login development board|SSH remote login to the development board]].'''
# '''Use ssh to remotely log in to the Linux system, please refer to the instructions in the section of [[\l|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;">
 
<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>
+
<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>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
 
orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
  
 
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
 
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
 +
|}
  
 
Use the '''lspci''' command to see an NVMe-related PCI device
 
Use the '''lspci''' command to see an NVMe-related PCI device
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''lspci'''
 
orangepi@orangepi:~/Desktop$ '''lspci'''
  
Line 1,254: Line 1,345:
  
 
01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)
 
01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)
 
+
|}
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then we can use the dd command to clear the NVMe SSD (optional)</li></ol>
+
<li>Then we can use the dd command to clear the NVMe SSD (optional)</li>
  
 +
{| 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 dd bs=1M if=/dev/zero of=/dev/nvme0n1 count=2000 status=progress'''
  
 
orangepi@orangepi3b:~/Desktop$ '''sudo sync'''
 
orangepi@orangepi3b:~/Desktop$ '''sudo sync'''
 
+
|}
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
+
<li>Then you can use the dd command to burn the Linux image of the development board to the NVMe SSD</li>
  
 
<!-- -->
 
<!-- -->
 
<ol style="list-style-type: lower-alpha;">
 
<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>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, &gt; but replace it with the actual image name (because the version &gt; number of the image may be updated).</p></li></ol>
+
<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>
  
 +
{| 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 dd bs=1M if=Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img of=/dev/nvme0n1 status=progress'''
 +
  
 
'''sudo''' '''sync'''
 
'''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;">
 
<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 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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>128GB NVMe SSD</li></ol>
+
<li>128GB NVMe SSD</li>
</li></ol>
 
 
 
orangepi@orangepi:~$ '''df -h'''
 
 
 
Filesystem Size Used Avail Use% Mounted on
 
 
 
udev 3.8G 8.0K 3.8G 1% /dev
 
 
 
tmpfs 769M 1.4M 768M 1% /run
 
 
 
'''/dev/nvme0n1p2 118G 5.8G 111G 5% /'''
 
 
 
tmpfs 3.8G 0 3.8G 0% /dev/shm
 
 
 
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
 
 
 
tmpfs 3.8G 16K 3.8G 1% /tmp
 
 
 
'''/dev/nvme0n1p1 256M 90M 166M 36% /boot'''
 
 
 
/dev/zram1 194M 9.9M 170M 6% /var/log
 
 
 
tmpfs 769M 60K 769M 1% /run/user/1000
 
 
 
tmpfs 769M 48K 769M 1% /run/user/0
 
  
 +
{| 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;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>2TB NVMe SSD</li></ol>
+
<li>2TB NVMe SSD</li>
 
+
{| class="wikitable" style="width:800px;"
orangepi@orangepi:~$ '''df -h'''
+
|-
 
+
|
Filesystem Size Used Avail Use% Mounted on
+
<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>
udev 3.8G 8.0K 3.8G 1% /dev
+
<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>
tmpfs 769M 1.4M 768M 1% /run
+
<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>
'''/dev/nvme0n1p2 1.9T 4.1G 1.8T 1% /'''
+
<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>
tmpfs 3.8G 0 3.8G 0% /dev/shm
+
<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>
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
+
<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>
/dev/zram2 3.7G 76K 3.5G 1% /tmp
+
|}
 
+
</ol>
'''/dev/nvme0n1p1 256M 90M 166M 36% /boot'''
+
</li></ol>
 
 
/dev/zram1 194M 15M 165M 9% /var/log
 
 
 
tmpfs 769M 60K 769M 1% /run/user/1000
 
 
 
tmpfs 769M 48K 769M 1% /run/user/0
 
 
 
 
<ol start="13" style="list-style-type: decimal;">
 
<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></ol>
+
<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:~$ '''sudo fix_mmc_ssd.sh'''
 
orangepi@orangepi:~$ '''sudo fix_mmc_ssd.sh'''
 +
|}
 +
{| class="wikitable" style="background-color:#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>
  
'''Exactly the same system means that the image name is exactly the same. Even if they are all Debian11 systems, the versions are different.'''
 
 
<span id="how-to-use-balenaetcher-software-to-burn"></span>
 
 
=== How to use balenaEtcher software to burn ===
 
=== How to use balenaEtcher software to burn ===
  
Line 1,349: Line 1,448:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol>
+
<li>The M.2 2230 SSD is as follows</li>
</li></ol>
 
 
 
[[File:pi3b-img73.png|189x136px]]
 
  
 +
[[File:pi3b-img73.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol>
+
<li>The M.2 2242 SSD is as follows</li>
 
 
[[File:pi3b-img74.png|238x129px]]
 
  
 +
[[File:pi3b-img74.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li>
 
 
[[File:pi3b-img75.png|283x63px]]
 
  
 +
[[File:pi3b-img75.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img76.png|261x198px]]
 
  
 +
[[File:pi3b-img76.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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 [[\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>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 [[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''']].</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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
 
orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''
  
 
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
 
Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors
 +
|}
  
 
Use the '''lspci''' command to see an NVMe-related PCI device
 
Use the '''lspci''' command to see an NVMe-related PCI device
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''lspci'''
 
orangepi@orangepi:~/Desktop$ '''lspci'''
  
Line 1,384: Line 1,489:
  
 
01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)
 
01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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:</li></ol>
+
<li>The balenaEtcher has been pre-installed in the Linux image, and the opening method is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img89.png|506x249px|IMG_256]]
+
[[File:pi3b-img89.png]]
  
 
</div>
 
</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.'''
+
{| 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 on how to download and install the arm64 version of balenaEtcher.'''</big>
 +
|}
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>The interface after balenaEtcher is opened is as follows:</li></ol>
+
<li>The interface after balenaEtcher is opened is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img90.png|406x207px|IMG_256]]
+
[[File:pi3b-img90.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>First click on '''Flash from file'''</li></ol>
+
<li>First click on '''Flash from file'''</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img91.png|406x205px|IMG_256]]
+
[[File:pi3b-img91.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then enter the '''/usr/lib/Linux-u-boot-legacy-orangepi3b_1.x.x_arm64''' directory, select '''rkspi_loader.img''', and click '''Open''' to open</li></ol>
+
<li>Then enter the '''/usr/lib/Linux-u-boot-legacy-orangepi3b_1.x.x_arm64''' directory, select '''rkspi_loader.img''', and click '''Open''' to open</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img92.png|563x110px|IMG_256]]
+
[[File:pi3b-img92.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The interface after opening '''rkspi_loader.img''' is as follows:</li></ol>
+
<li>The interface after opening '''rkspi_loader.img''' is as follows:</li>
 
 
[[File:pi3b-img93.png|379x181px]]
 
  
 +
[[File:pi3b-img93.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then click '''Select target'''</li></ol>
+
<li>Then click '''Select target'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img94.png|379x171px|IMG_256]]
+
[[File:pi3b-img94.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then click '''Show 2 hidden''' to open more options for storage devices</li></ol>
+
<li>Then click '''Show 2 hidden''' to open more options for storage devices</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img95.png|385x155px|IMG_256]]
+
[[File:pi3b-img95.png]]
  
</div>
+
</div></ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then select the device name of SPI Flash '''/dev/mtdblock0''', and click '''Select'''</li></ol>
+
<li>Then select the device name of SPI Flash '''/dev/mtdblock0''', and click '''Select'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img96.png|389x264px|IMG_256]]
+
[[File:pi3b-img96.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click '''Flash'''</li></ol>
+
<li>Then click '''Flash'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img97.png|394x268px|IMG_256]]
+
[[File:pi3b-img97.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click '''Yes, I'm sure'''</li></ol>
+
<li>Then click '''Yes, I'm sure'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img98.png|396x269px|IMG_256]]
+
[[File:pi3b-img98.png]]
  
</div>
+
</div></ol>
<ol style="list-style-type: lower-roman;">
+
<ol start="9" style="list-style-type: lower-alpha;">
<li>Then enter the password '''orangepi''' of the development board Linux system, and it will start burning the u-boot image into the SPI Flash</li></ol>
+
<li>Then enter the password '''orangepi''' of the development board Linux system, and it will start burning the u-boot image into the SPI Flash</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img99.png|393x269px|IMG_256]]
+
[[File:pi3b-img99.png]]
  
</div>
+
</div></ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
<li>The display of the burning process is as follows:</li></ol>
+
<li>The display of the burning process is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img100.png|397x272px|IMG_256]]
+
[[File:pi3b-img100.png]]
  
</div>
+
</div></ol>
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<ol start="11" style="list-style-type: lower-alpha;">
<li>The display after burning is as follows:</li></ol>
+
<li>The display after burning is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img101.png|395x225px|IMG_256]]
+
[[File:pi3b-img101.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
 
<li><p>The method of burning the Linux system in the TF card to the NVMe SSD (this method is equivalent to cloning the system in the TF card to the NVMe SSD)</p>
 
<li><p>The method of burning the Linux system in the TF card to the NVMe SSD (this method is equivalent to cloning the system in the TF card to the NVMe SSD)</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First click '''Clone drive'''</li></ol>
+
<li>First click '''Clone drive'''</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img102.png|386x204px|IMG_256]]
+
[[File:pi3b-img102.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select the device name of the TF card '''/dev/mmcblk1'''</li></ol>
+
<li>Then select the device name of the TF card '''/dev/mmcblk1'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img103.png|379x256px|IMG_256]]
+
[[File:pi3b-img103.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The interface after opening the TF card is as follows:</li></ol>
+
<li>The interface after opening the TF card is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img104.png|381x191px|IMG_256]]
+
[[File:pi3b-img104.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then click '''Select target'''</li></ol>
+
<li>Then click '''Select target'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img94.png|379x171px|IMG_256]]
+
[[File:pi3b-img94.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then click '''Show 2 hidden''' to open more options for storage devices</li></ol>
+
<li>Then click '''Show 2 hidden''' to open more options for storage devices</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img95.png|385x155px|IMG_256]]
+
[[File:pi3b-img95.png]]
  
</div>
+
</div></ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then select the device name of the NVMe SSD '''/dev/nvme0n1''', and click '''Select'''</li></ol>
+
<li>Then select the device name of the NVMe SSD '''/dev/nvme0n1''', and click '''Select'''</li>
 
 
[[File:pi3b-img105.png|386x264px]]
 
  
 +
[[File:pi3b-img105.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click '''Flash'''</li></ol>
+
<li>Then click '''Flash'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img106.png|389x264px|IMG_256]]
+
[[File:pi3b-img106.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click '''Yes, I'm sure'''</li></ol>
+
<li>Then click '''Yes, I'm sure'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img107.png|392x268px|IMG_256]]
+
[[File:pi3b-img107.png]]
  
</div>
+
</div></ol>
<ol style="list-style-type: lower-roman;">
+
<ol start="9" style="list-style-type: lower-alpha;">
<li>Then enter the password orangepi of the Linux system on the development board, and it will start burning the Linux image to the SSD</li></ol>
+
<li>Then enter the password orangepi of the Linux system on the development board, and it will start burning the Linux image to the SSD</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img108.png|390x267px|IMG_256]]
+
[[File:pi3b-img108.png]]
  
</div>
+
</div></ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
<li>The display of the burning process is as follows:</li></ol>
+
<li>The display of the burning process is as follows:</li>
  
[[File:pi3b-img109.png|393x212px]]
+
[[File:pi3b-img109.png]]
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img110.png|395x205px|IMG_256]]
+
[[File:pi3b-img110.png]]
  
</div>
+
</div></ol>
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<ol start="11" style="list-style-type: lower-alpha;">
<li>The display after burning is as follows:</li></ol>
+
<li>The display after burning is as follows:</li>
 
 
[[File:pi3b-img111.png|398x227px]]
 
  
 +
[[File:pi3b-img111.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<ol start="12" style="list-style-type: lower-alpha;">
 
<li><p>Then you need to expand the capacity of the rootfs partition in the NVMe SSD. The steps are as follows:</p>
 
<li><p>Then you need to expand the capacity of the rootfs partition in the NVMe SSD. The steps are as follows:</p>
<ol style="list-style-type: lower-alpha;">
+
<ol style="list-style-type: none;">
<li><p>Open '''GParted''' first, if the system does not have Gparted pre-installed, please use the apt command to install it</p>
+
<li><p>a) Open '''GParted''' first, if the system does not have Gparted pre-installed, please use the apt command to install it</p>
<p>orangepi@orangepi:~$ '''sudo apt-get install -y gparted'''</p></li></ol>
+
{| class="wikitable" style="width:800px;"
</li></ol>
+
|-
 +
|
 +
<p>orangepi@orangepi:~$ '''sudo apt-get install -y gparted'''</p>
 +
|}
 +
</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img112.png|576x215px|IMG_256]]
+
[[File:pi3b-img112.png]]
  
</div>
+
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
+
<ol start="2" style="list-style-type: none;">
<li>Then enter the password orangepi of the Linux system, and click '''Authenticate'''</li></ol>
+
<li>b) Then enter the password orangepi of the Linux system, and click '''Authenticate'''</li>
  
[[File:pi3b-img113.png|356x173px]]
+
[[File:pi3b-img113.png]]
 +
</ol>
 +
<ol start="3" style="list-style-type: none;">
 +
<li>c) Then click '''Fix'''</li>
  
<ol start="3" style="list-style-type: lower-alpha;">
+
[[File:pi3b-img114.png]]
<li>Then click '''Fix'''</li></ol>
+
</ol>
 
+
<ol start="4" style="list-style-type: none;">
[[File:pi3b-img114.png|355x261px]]
+
<li>d) Then select NVMe SSD</li>
 
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<li>Then select NVMe SSD</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img115.png|452x187px|IMG_256]]
+
[[File:pi3b-img115.png]]
  
</div>
+
</div></ol>
<ol start="5" style="list-style-type: lower-alpha;">
+
<ol start="5" style="list-style-type: none;">
<li>The display interface after selecting NVMe SSD is as follows:</li></ol>
+
<li>e) The display interface after selecting NVMe SSD is as follows:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img116.png|451x187px|IMG_256]]
+
[[File:pi3b-img116.png]]
  
</div>
+
</div></ol>
<ol start="6" style="list-style-type: lower-alpha;">
+
<ol start="6" style="list-style-type: none;">
<li>Then select the '''/dev/nvme0n1p2''' partition, click the right button again, and then select '''Resize/Move'''</li></ol>
+
<li>f) Then select the '''/dev/nvme0n1p2''' partition, click the right button again, and then select '''Resize/Move'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img117.png|448x345px|IMG_256]]
+
[[File:pi3b-img117.png]]
  
</div>
+
</div></ol>
<ol start="7" style="list-style-type: lower-alpha;">
+
<ol start="7" style="list-style-type: none;">
<li>Then drag the capacity to the maximum at the position shown in the figure below</li></ol>
+
<li>g) Then drag the capacity to the maximum at the position shown in the figure below</li>
  
[[File:pi3b-img118.png|339x210px]]
+
[[File:pi3b-img118.png]]
 +
</ol>
 +
<ol start="8" style="list-style-type: none;">
 +
<li>h) Then click '''Resize/Move'''</li>
  
<ol start="8" style="list-style-type: lower-alpha;">
+
[[File:pi3b-img119.png]]
<li>Then click '''Resize/Move'''</li></ol>
+
</ol>
 +
<ol style="list-style-type: none;">
 +
<li>i) Then click the green '''''' in the position below</li>
  
[[File:pi3b-img119.png|339x212px]]
+
[[File:pi3b-img120.png]]
 +
</ol>
 +
<ol start="10" style="list-style-type: none;">
 +
<li>j) Then click '''Apply'''</li>
  
<ol style="list-style-type: lower-roman;">
+
[[File:pi3b-img121.png]]
<li>Then click the green '''√''' in the position below</li></ol>
+
</ol>
 
+
<ol start="11" style="list-style-type: none;">
[[File:pi3b-img120.png|425x166px]]
+
<li>k) Then click '''Close''' to close</li>
 
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<li>Then click '''Apply'''</li></ol>
 
 
 
[[File:pi3b-img121.png|378x276px]]
 
 
 
<ol start="11" style="list-style-type: lower-alpha;">
 
<li>Then click '''Close''' to close</li></ol>
 
 
 
[[File:pi3b-img122.png|383x234px]]
 
  
 +
[[File:pi3b-img122.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="13" style="list-style-type: lower-alpha;">
 
<ol start="13" style="list-style-type: lower-alpha;">
 
<li>At this point, you can use the '''sudo 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.</li></ol>
 
<li>At this point, you can use the '''sudo 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.</li></ol>
 
+
</li></ol>
 
<!-- -->
 
<!-- -->
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li><p>Step '''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>
+
<li><p>Step '''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;">
 
<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>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><p>Then use balenaEtcher to burn</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img123.png|529x333px|图片1]]
+
[[File:pi3b-img123.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<li>'''After using this method to burn the image, there is no need to manually expand the capacity, and it will automatically expand the capacity at the first startup.'''</li></ol>
 
<li>'''After using this method to burn the image, there is no need to manually expand the capacity, and it will automatically expand the capacity at the first startup.'''</li></ol>
 +
</li></ol>
 +
<span id="how-to-burn-android-image-to-tf-card"></span>
  
<span id="how-to-burn-android-image-to-tf-card"></span>
 
 
== How to burn Android image to TF card ==
 
== How to burn Android image to TF card ==
  
Line 1,679: Line 1,793:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
::[[File:pi3b-img16.png]]
  
 
</div>
 
</div>
Line 1,686: Line 1,800:
 
<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>
 
<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>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
+
[[File:pi3b-img124.png]]
  
 
</div>
 
</div>
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li><p>After entering the '''TF card and eMMC startup image''' folder, you can see the following two images, the difference between them is:</p>
 
<li><p>After entering 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;">
+
<ol style="list-style-type: none;">
<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>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>If you want to use lcd screen, please choose image with lcd</p></li></ol>
+
<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>
 
</li></ol>
 
[[File:pi3b-img125.png|264x58px]]
 
 
 
<ol start="5" style="list-style-type: decimal;">
 
<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 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></ol>
+
<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|575x169px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|300x157px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<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|315x164px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" 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>
+
<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>
 
 
[[File:pi3b-img34.png|454x134px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" 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>
+
<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|442x208px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
 
<li><p>Then start burning the Android image to the TF card</p>
 
<li><p>Then start burning the Android image to the TF card</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li><p>Then 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 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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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</li></ol>
+
<li>Then connect the power supply of the Type-C interface to the development board, and power on</li>
 
 
[[File:pi3b-img38.png|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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|457x215px]]
 
  
 +
[[File:pi3b-img39.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<li><p>Then insert the TF card into the development board</p></li>
 
<li><p>Then insert the TF card into the development board</p></li>
 
<li><p>Then please select '''advanced features'''</p>
 
<li><p>Then please select '''advanced features'''</p>
<p>[[File:pi3b-img126.png|458x138px]]</p></li>
+
<p>[[File:pi3b-img126.png]]</p></li>
 
<li><p>Then click the position shown in the figure below</p>
 
<li><p>Then click the position shown in the figure below</p>
<p>[[File:pi3b-img127.png|459x216px]]</p></li>
+
<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></li></ol>
+
<li><p>Then select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder downloaded earlier, and click to open</p></li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
+
[[File:pi3b-img68.png]]
  
</div>
+
</div></ol>
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<li><p>Then click '''download'''</p>
 
<li><p>Then click '''download'''</p>
<p>[[File:pi3b-img128.png|472x222px]]</p></li>
+
<p>[[File:pi3b-img128.png]]</p></li>
 
<li><p>The display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the figure below</p>
 
<li><p>The display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the figure below</p>
<p>[[File:pi3b-img129.png|474x227px]]</p></li>
+
<p>[[File:pi3b-img129.png]]</p></li>
 
<li><p>Then select the storage device as '''SD''', and then click '''Switch Storage'''</p>
 
<li><p>Then select the storage device as '''SD''', and then click '''Switch Storage'''</p>
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img130.png|477x222px|D~T2CO%X~K2@ELR98)BVP~2]]
+
[[File:pi3b-img130.png]]
  
 
</div></li>
 
</div></li>
<li><p>The display of successful switching is shown in the figure below</p></li></ol>
+
<li><p>The display of successful switching is shown in the figure below</p></li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img131.png|474x223px|QFVLTK~19N32OK2UGH{D{AK]]
+
[[File:pi3b-img131.png]]
  
</div>
+
</div></ol>
 
<ol start="14" style="list-style-type: lower-alpha;">
 
<ol start="14" style="list-style-type: lower-alpha;">
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li></ol>
+
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
 
 
[[File:pi3b-img132.png|477x224px]]
 
  
 +
[[File:pi3b-img132.png]]
 +
</ol>
 
<ol start="15" style="list-style-type: lower-alpha;">
 
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then click the &quot;'''Firmware'''&quot; button to select the path of the Android image that needs to be burned</li></ol>
+
<li>Then click the &quot;'''Firmware'''&quot; button to select the path of the Android image that needs to be burned</li>
 
 
[[File:pi3b-img133.png|444x209px]]
 
  
 +
[[File:pi3b-img133.png]]
 +
</ol>
 
<ol start="16" style="list-style-type: lower-alpha;">
 
<ol start="16" 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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img134.png|455x214px|GO~ZSPN`B]JCQM`@_9UU8[R]]
+
[[File:pi3b-img134.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<span id="how-to-use-sddisktool-to-burn-android-image-to-tf-card"></span>
 
<span id="how-to-use-sddisktool-to-burn-android-image-to-tf-card"></span>
 +
 
=== How to use SDDiskTool to burn Android image to TF card ===
 
=== How to use SDDiskTool to burn Android image to TF card ===
  
Line 1,814: Line 1,930:
 
<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>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 the card reader to insert the TF card into the computer</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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.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 SDDiskTool programming tool from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi 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 Android11 image from the Orange Pi download''' '''page'''</p>
+
<li><p>Then download the Android11 image from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
<blockquote><div class="figure">
+
<div class="figure">
  
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
+
[[File:pi3b-img124.png]]
  
</div></blockquote>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>After entering the '''TF card and eMMC boot image''' folder, you can see the following two images, the difference between them is:</li></ol>
+
<li>After entering the '''TF card and eMMC boot image''' folder, you can see the following two images, the difference between them is:</li>
  
<!-- -->
+
<ol style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;">
+
<li><p>a) The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the LCD screen, please download the image without lcd</p></li>
<li><p>The image without lcd is specially used for HDMI display and supports 4K display. 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>
<li><p>If you want to use LCD screen, please choose image with lcd</p></li></ol>
 
 
 
[[File:pi3b-img125.png|281x62px]]
 
  
 +
[[File:pi3b-img125.png]]
 +
</ol>
 +
</li></ol>
 +
</li></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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 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>
+
<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|415x99px]]
 
  
 +
[[File:pi3b-img135.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-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. P'''lease 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</li></ol>
+
<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-img136.png|267x228px]]
 
  
 +
[[File:pi3b-img136.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" 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></ol>
+
<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|264x226px]]
 
  
 +
[[File:pi3b-img137.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
 
<li><p>Then start to write the Android image to the TF card</p>
 
<li><p>Then start to write the Android image to the TF card</p>
Line 1,856: Line 1,972:
 
<li><p>First check &quot;SD Boot&quot; in &quot;Select Function Mode&quot;</p></li>
 
<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>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><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>
 
</li></ol>
 
[[File:pi3b-img138.png|286x242px]]
 
 
 
<ol start="10" style="list-style-type: decimal;">
 
<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</li></ol>
+
<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</li>
  
[[File:pi3b-img139.png|288x244px]]
+
[[File:pi3b-img139.png]]
 +
</ol>
 +
<span id="how-to-burn-android-image-to-emmc"></span>
  
<span id="how-to-burn-android-image-to-emmc"></span>
 
 
== How to burn Android image to eMMC ==
 
== How to burn Android image to eMMC ==
  
'''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]]'''.'''
+
{| 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>
 +
|}
  
 
<span id="method-of-burning-android-image-into-emmc-through-usb2.0-burning-port"></span>
 
<span id="method-of-burning-android-image-into-emmc-through-usb2.0-burning-port"></span>
 
=== Method of burning Android image into eMMC through USB2.0 burning port ===
 
=== Method of burning Android image into eMMC through USB2.0 burning port ===
  
'''Note that all the following operations are performed on a Windows computer.'''
+
{| class="wikitable" 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;">
 
<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>
 
<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>
+
<p>The eMMC module and the method of plugging into the development board are as follows:</p></li>
  
[[File:pi3b-img61.png|115x84px]] [[File:pi3b-img62.png|120x87px]]
+
[[File:pi3b-img61.png|400px]] [[File:pi3b-img62.png|400px]]
 
 
[[File:pi3b-img63.png|286x133px]]
 
  
 +
[[File:pi3b-img63.png|800px]]
 +
</ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>You also need to prepare a good quality USB2.0 male-to-male data cable</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
[[File:pi3b-img16.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's data download page''']</p></li>
 
<li><p>Then download Rockchip driver '''DriverAssitant_v5.12.zip''' and burning tool '''RKDevTool_Release_v3.15.zip''' from [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's data download page''']</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>
 
<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>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
+
[[File:pi3b-img124.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li><p>After entering the '''TF card and eMMC startup image folder''', you can see the following two images, the difference between them is</p>
 
<li><p>After entering 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;">
+
<ol style="list-style-type: none;">
<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>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>If you want to use lcd screen, please choose image with lcd</p></li></ol>
+
<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>
 
</li></ol>
 
[[File:pi3b-img125.png|264x58px]]
 
 
 
<ol start="5" style="list-style-type: decimal;">
 
<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 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></ol>
+
<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|575x169px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|300x157px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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|315x164px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" 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>
+
<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>
 
 
[[File:pi3b-img34.png|454x134px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" 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>
+
<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-img35.png|442x208px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
 
<li><p>Then start burning the Android image into eMMC</p>
 
<li><p>Then start burning the Android image into eMMC</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li><p>Then 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 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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<li>Then connect the power supply of the Type-C interface to the development board</li>
 
 
[[File:pi3b-img38.png|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li><p>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;[[File:pi3b-img39.png|457x215px]]</p></li>
+
<li><p>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;</p>
 +
[[File:pi3b-img39.png]]</li>
 
<li><p>Then please select '''Advanced Features'''</p>
 
<li><p>Then please select '''Advanced Features'''</p>
<p>[[File:pi3b-img126.png|458x138px]]</p></li>
+
<p>[[File:pi3b-img126.png]]</p></li>
 
<li><p>Then click the position shown in the figure below</p>
 
<li><p>Then click the position shown in the figure below</p>
<p>[[File:pi3b-img127.png|459x216px]]</p></li></ol>
+
<p>[[File:pi3b-img127.png]]</p></li></ol>
  
<!-- -->
+
<ol start="8" style="list-style-type: lower-alpha;">
<ol style="list-style-type: lower-alpha;">
+
<li>Select '''rk3566_MiniLoaderAll.bin''' in the MiniLoader folder downloaded earlier, and click to open.</li>
<li>Select '''rk3566_MiniLoaderAll.bin''' in the MiniLoader folder downloaded earlier, and click to open.</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
+
[[File:pi3b-img68.png]]
  
</div>
+
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
+
<ol start="9" style="list-style-type: lower-alpha;">
 
<li><p>Then click '''Download'''</p>
 
<li><p>Then click '''Download'''</p>
<p>[[File:pi3b-img128.png|472x222px]]</p></li>
+
<p>[[File:pi3b-img128.png]]</p></li>
 
<li><p>The display after downloading '''MiniLoaderAll.bin''' is shown in the figure below</p>
 
<li><p>The display after downloading '''MiniLoaderAll.bin''' is shown in the figure below</p>
<p>[[File:pi3b-img140.png|474x223px]]</p></li>
+
<p>[[File:pi3b-img140.png]]</p></li>
 
<li><p>Then select the storage device as '''EMMC''', and then click Switch '''Storage'''</p>
 
<li><p>Then select the storage device as '''EMMC''', and then click Switch '''Storage'''</p>
<p>[[File:pi3b-img141.png|468x225px]]</p></li>
+
<p>[[File:pi3b-img141.png]]</p></li>
<li><p>The display of successful switching is shown in the figure below</p></li></ol>
+
<li><p>The display of successful switching is shown in the figure below</p></li>
  
[[File:pi3b-img142.png|472x227px]]
+
[[File:pi3b-img142.png]]
 +
</ol>
 +
<ol start="13" style="list-style-type: lower-alpha;">
 +
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
  
<ol start="8" style="list-style-type: lower-alpha;">
+
[[File:pi3b-img132.png]]
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li></ol>
+
</ol>
 +
<ol start="14" style="list-style-type: lower-alpha;">
 +
<li>Then click the &quot;'''Firmware'''&quot; button to select the path of the Android image that needs to be burned</li>
  
[[File:pi3b-img132.png|442x208px]]
+
[[File:pi3b-img133.png]]
 
+
</ol>
<ol style="list-style-type: lower-roman;">
+
<ol start="15" style="list-style-type: lower-alpha;">
<li>Then click the &quot;'''Firmware'''&quot; button to select the path of the Android image that needs to be burned</li></ol>
+
<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>
 
 
[[File:pi3b-img133.png|444x209px]]
 
 
 
<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.</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img134.png|455x214px|GO~ZSPN`B]JCQM`@_9UU8[R]]
+
[[File:pi3b-img134.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<span id="how-to-burn-android11-image-into-emmc-via-tf-card"></span>
 
<span id="how-to-burn-android11-image-into-emmc-via-tf-card"></span>
 +
 
=== How to burn Android11 image into eMMC via TF card ===
 
=== How to burn Android11 image into eMMC via TF card ===
  
'''Note that all the following operations are performed on a Windows computer.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Note that all the following operations are performed on a Windows computer.'''</big>
 +
|}
  
 
# 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:
 
# 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:
  
[[File:pi3b-img61.png|115x84px]] [[File:pi3b-img62.png|120x87px]]
+
::[[File:pi3b-img61.png|400px]] [[File:pi3b-img62.png|400px]]
  
[[File:pi3b-img63.png|286x133px]]
+
::[[File:pi3b-img63.png|800px]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" 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>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 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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.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 SDDiskTool programming tool from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi 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 image from [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi's download page''']</p>
 
<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>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
+
[[File:pi3b-img124.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
 
<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;">
+
<ol style="list-style-type: none;">
<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>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>If you want to use lcd screen, please choose image with lcd</p></li></ol>
+
<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>
 
</li></ol>
 
[[File:pi3b-img125.png|283x62px]]
 
 
 
<ol start="6" style="list-style-type: decimal;">
 
<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 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></ol>
+
<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|429x103px]]
 
  
 +
[[File:pi3b-img135.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-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. '''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.</li></ol>
+
<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-img136.png|267x228px]]
 
  
 +
[[File:pi3b-img136.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<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></ol>
+
<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|247x212px]]
 
  
 +
[[File:pi3b-img137.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
 
<li><p>Then start to write the Android image into the TF card</p>
 
<li><p>Then start to write the Android image into the TF card</p>
Line 2,065: Line 2,195:
 
<li><p>Then select &quot;'''Firmware Upgrade'''&quot; in &quot;'''Select Function Mode'''&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>Then select the path of the Android firmware in the &quot;'''Select Upgrade Firmware'''&quot; column</p></li>
<li><p>Finally click the &quot;'''Start Create'''&quot; button to start burning</p></li></ol>
+
<li><p>Finally click the &quot;'''Start Create'''&quot; button to start burning</p></li>
 +
 
 +
[[File:pi3b-img143.png]]
 +
</ol>
 
</li></ol>
 
</li></ol>
 
[[File:pi3b-img143.png|290x246px]]
 
 
 
<ol start="11" style="list-style-type: decimal;">
 
<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></ol>
+
<li>After the burning is completed, the display is as shown in the figure below, and then you can exit SDDiskTool</li>
 
 
[[File:pi3b-img144.png|285x243px]]
 
  
 +
[[File:pi3b-img144.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<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>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></ol>
+
<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|430x247px]]
 
  
 +
[[File:pi3b-img145.png]]
 +
</ol>
 
<ol start="14" style="list-style-type: decimal;">
 
<ol start="14" style="list-style-type: decimal;">
<li>When the HDMI monitor displays the following information, it means that the burning of the Android image into the eMMC has been completed. At this time, the TF card can be pulled out, and then the Android system in the eMMC will start.</li></ol>
+
<li>When the HDMI monitor displays the following information, it means that the burning of the Android image into the eMMC has been completed. At this time, the TF card can be pulled out, and then the Android system in the eMMC will start.</li>
  
[[File:pi3b-img146.png|576x389px]]
+
[[File:pi3b-img146.png]]
 +
</ol>
 +
<span id="how-to-burn-android-image-to-spiflashnvme-ssd"></span>
  
<span id="how-to-burn-android-image-to-spiflashnvme-ssd"></span>
 
 
== How to burn Android image to SPIFlash+NVMe SSD ==
 
== How to burn Android image to SPIFlash+NVMe SSD ==
  
'''Note that all the following operations are performed on a Windows computer.'''
+
{| class="wikitable" 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;">
 
<ol style="list-style-type: decimal;">
 
<li><p>First, you need to prepare an NVMe SSD solid state drive</p>
 
<li><p>First, you need to prepare an NVMe SSD solid state drive</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>The M.2 2230 SSD is as follows</li></ol>
+
<li>The M.2 2230 SSD is as follows</li>
</li></ol>
 
 
 
[[File:pi3b-img73.png|147x106px]]
 
  
 +
[[File:pi3b-img73.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The M.2 2242 SSD is as follows</li></ol>
+
<li>The M.2 2242 SSD is as follows</li>
 
 
[[File:pi3b-img74.png|216x119px]]
 
  
 +
[[File:pi3b-img74.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it</li>
 
 
[[File:pi3b-img75.png|283x63px]]
 
  
 +
[[File:pi3b-img75.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img76.png|266x211px]]
 
  
 +
[[File:pi3b-img76.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<li>You also need to prepare a good quality USB2.0 male-to-male data cable</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
[[File:pi3b-img16.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
 
<li><p>Then 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 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 image of Android11</p>
 
<li><p>Then download the image of Android11</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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 S'''PIFlash-NVME SSD boot image folder''' to download</li></ol>
+
<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 S'''PIFlash-NVME SSD boot image folder''' to download</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img124.png|340x108px|e6986fc9c8fc078e8cb6a9c39b76fb8]]
+
[[File:pi3b-img124.png]]
  
 
</div>
 
</div>
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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:</p>
 
<li><p>After entering the '''SPIFlash-NVME SSD boot image folder''', you can see the following two images. Their differences are:</p>
<ol style="list-style-type: lower-alpha;">
+
<ol style="list-style-type: none;">
<li><p>The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the LCD screen, please download the image without lcd</p></li>
+
<li><p>a) The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the 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><p>b) If you want to use LCD screen, please choose image with lcd</p></li>
 +
 
 +
[[File:pi3b-img147.png]]
 +
</ol>
 +
</li></ol>
 
</li></ol>
 
</li></ol>
 
[[File:pi3b-img147.png|305x58px]]
 
 
 
<ol start="7" style="list-style-type: decimal;">
 
<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></ol>
+
<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|407x120px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<li><p>After opening '''DriverInstall.exe''', the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|286x150px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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|296x154px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" 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>
+
<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>
 
 
[[File:pi3b-img34.png|413x122px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
+
<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-img35.png|402x189px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
 
<li><p>Then start burning the Android image to SPIFlash+NVMe SSD</p>
 
<li><p>Then start burning the Android image to SPIFlash+NVMe SSD</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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|443x208px]]
 
  
 +
[[File:pi3b-img39.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li></ol>
+
<li>Then click the &quot;'''Upgrade Firmware'''&quot; column of the burning tool</li>
 
 
[[File:pi3b-img132.png|442x208px]]
 
  
 +
[[File:pi3b-img132.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click the &quot;'''Firmware'''&quot; button to select the Android image to be burned</li></ol>
+
<li>Then click the &quot;'''Firmware'''&quot; button to select the Android image to be burned</li>
 
 
[[File:pi3b-img133.png|444x209px]]
 
  
 +
[[File:pi3b-img133.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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|453x212px]]
+
[[File:pi3b-img148.png]]
 +
</ol>
 +
</li></ol>
 +
<span id="using-rkdevtool-to-clear-spiflash"></span>
  
<span id="using-rkdevtool-to-clear-spiflash"></span>
 
 
== Using RKDevTool to clear SPIFlash ==
 
== Using RKDevTool to clear SPIFlash ==
  
 
# The position of SPI Flash on the development board is shown in the figure below
 
# The position of SPI Flash on the development board is shown in the figure below
  
[[File:pi3b-img76.png|263x193px]]
+
::[[File:pi3b-img76.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>First, you need to prepare a good quality USB2.0 male-to-male data cable</li></ol>
+
<li>First, you need to prepare a good quality USB2.0 male-to-male data cable</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img16.png|141x138px|D6BB9058-CDC3-42d7-A7FC-FBF630D886B7]]
+
[[File:pi3b-img16.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
 
<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/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange Pi data download page''']</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>On the download page of Orange Pi, first select the official tool, and then enter the following folder</li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img149.png|342x56px|1691401357374]]
+
[[File:pi3b-img149.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then download all the files below</li></ol>
+
<li>Then download all the files below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img150.png|347x139px|1691401520573]]
+
[[File:pi3b-img150.png]]
  
 
</div>
 
</div>
'''Note that the &quot;MiniLoader-things needed to burn the Linux image&quot; folder is hereinafter referred to as the MiniLoader folder.'''
+
{| 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;">
 
<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></ol>
+
<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|472x139px]]
 
  
 +
[[File:pi3b-img31.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
 
<li><p>After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Click the &quot;'''Driver Installation'''&quot; button</li></ol>
+
<li>Click the &quot;'''Driver Installation'''&quot; button</li>
</li></ol>
 
 
 
[[File:pi3b-img32.png|276x145px]]
 
  
 +
[[File:pi3b-img32.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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|292x151px]]
 
  
 +
[[File:pi3b-img33.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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''' in the decompressed folder and open it</li></ol>
+
<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>
 
 
[[File:pi3b-img34.png|467x138px]]
 
  
 +
[[File:pi3b-img34.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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></ol>
+
<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|402x189px]]
 
  
 +
[[File:pi3b-img35.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
 
<li><p>Then you can start to clear the content in SPI FLASH</p>
 
<li><p>Then you can start to clear the content in SPI FLASH</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img36.png|275x116px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\1691131157154(1).jpg1691131157154(1)]]
+
[[File:pi3b-img36.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>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>
+
<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|289x100px]]
 
  
 +
[[File:pi3b-img37.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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|305x94px]]
 
  
 +
[[File:pi3b-img38.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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|457x215px]]
 
  
 +
[[File:pi3b-img39.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<li><p>Then please select '''Advanced Features'''</p>
 
<li><p>Then please select '''Advanced Features'''</p>
<p>[[File:pi3b-img126.png|458x138px]]</p></li>
+
<p>[[File:pi3b-img126.png]]</p></li>
 
<li><p>Then click the position shown in the figure below</p>
 
<li><p>Then click the position shown in the figure below</p>
<p>[[File:pi3b-img127.png|459x216px]]</p></li>
+
<p>[[File:pi3b-img127.png]]</p></li>
<li><p>Select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder you downloaded earlier, and click Open</p></li></ol>
+
<li><p>Select '''rk3566_MiniLoaderAll.bin''' in the '''MiniLoader''' folder you downloaded earlier, and click Open</p></li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img68.png|459x216px|SIS5H0S2@F5M2D(6ANZEUPG]]
+
[[File:pi3b-img68.png]]
  
</div>
+
</div></ol>
 
<ol style="list-style-type: lower-roman;">
 
<ol style="list-style-type: lower-roman;">
 
<li><p>Then click '''Download'''</p>
 
<li><p>Then click '''Download'''</p>
<p>[[File:pi3b-img128.png|472x222px]]</p></li></ol>
+
<p>[[File:pi3b-img128.png]]</p></li></ol>
  
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<ol start="10" style="list-style-type: lower-alpha;">
 
<li><p>The display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the figure below</p>
 
<li><p>The display after downloading '''rk3566_MiniLoaderAll.bin''' is shown in the figure below</p>
<p>[[File:pi3b-img140.png|474x223px]]</p></li>
+
<p>[[File:pi3b-img140.png]]</p></li>
 
<li><p>Then select the storage device as '''SPINOR'''</p>
 
<li><p>Then select the storage device as '''SPINOR'''</p>
<p>[[File:pi3b-img151.png|467x220px]]</p></li>
+
<p>[[File:pi3b-img151.png]]</p></li>
 
<li><p>Then click Switch '''Storage'''</p>
 
<li><p>Then click Switch '''Storage'''</p>
<p>[[File:pi3b-img152.png|464x218px]]</p></li>
+
<p>[[File:pi3b-img152.png]]</p></li>
 
<li><p>Then click '''Erase All''' to start erasing SPIFlash</p>
 
<li><p>Then click '''Erase All''' to start erasing SPIFlash</p>
<p>[[File:pi3b-img153.png|467x220px]]</p></li>
+
<p>[[File:pi3b-img153.png]]</p></li>
 
<li><p>The display log after erasing SPIFlash is shown in the figure below</p>
 
<li><p>The display log after erasing SPIFlash is shown in the figure below</p>
<p>[[File:pi3b-img154.png|460x216px]]</p></li></ol>
+
<p>[[File:pi3b-img154.png]]</p></li></ol>
 +
</li></ol>
 +
<span id="start-the-orange-pi-development-board"></span>
  
<span id="start-the-orange-pi-development-board"></span>
 
 
== Start the Orange Pi development board ==
 
== Start the Orange Pi development board ==
  
Line 2,339: Line 2,480:
 
# Connect a USB mouse and keyboard to control the Orange Pi development board.
 
# Connect a USB mouse and keyboard to control the Orange Pi development board.
 
# The development board has an Ethernet port, which can be plugged into a network cable for Internet access.
 
# The development board has an Ethernet port, which can be plugged into a network cable for Internet access.
# Connect a high-quality power adapter with a 5V/3A or 5V/4A USB Type-C interface.
+
# Connect a high-quality power adapter with a 5V/3A USB Type-C interface.
  
'''Remember not to plug in a power adapter with a voltage output greater than 5V, as this will burn out the development board.'''
+
::{| class="wikitable" style="background-color:#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.'''</span>
  
'''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.'''
+
'''<span style="color:#FF0000">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.'''</span>
  
'''The Type-C power port does not support PD negotiation.'''
+
'''<span style="color:#FF0000">The Type-C power port does not support PD negotiation.'''</span>
  
'''In addition, please do not connect the USB interface of the computer to power the development board.'''
+
'''<span style="color:#FF0000">In addition, please do not connect the USB interface of the computer to power the development board.'''</span></big>
 +
|}
  
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.
+
<ol start="6" style="list-style-type: decimal;">
 +
<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.</li>
  
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 '''[[\l|the section on how to use the debugging serial port]].'''
+
<li>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 '''[[Orange Pi 3B#How to use the debugging serial port|the section on how to use the debugging serial port]].'''</li>
 +
</ol>
 +
<span id="how-to-use-the-debugging-serial-port"></span>
  
<span id="how-to-use-the-debugging-serial-port"></span>
 
 
== How to use the debugging serial port ==
 
== How to use the debugging serial port ==
  
Line 2,361: Line 2,508:
 
<ol style="list-style-type: decimal;">
 
<ol style="list-style-type: decimal;">
 
<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>
 
<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.'''</p>
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
<p>'''Before purchasing a USB to TTL module, please confirm that the module supports a baud rate of 1500000.'''</p></li></ol>
+
|-
 +
|
 +
<big><p>'''For better compatibility, it is recommended to use CH340 USB to TTL module, please do not use CP2102, PL2303 USB to TTL module.'''</p>
 +
<p>'''Before purchasing a USB to TTL module, please confirm that the module supports a baud rate of 1500000.'''</p></big>
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img155.png|576x115px|07]]
+
[[File:pi3b-img155.png]]
  
</div>
+
</div></li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img156.png|428x110px]]
 
  
 +
[[File:pi3b-img156.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
  
<blockquote>a. Connect the GND of the USB to TTL module to the GND of the development board
+
: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 TX''' of the development board
+
:b. The '''<span style="color:#FF0000">RX of the USB to TTL module is connected to the TX</span>''' of the development board
  
c. The '''TX of the USB to TTL module is connected to the TX''' of the development board
+
:c. The '''<span style="color:#FF0000">TX of the USB to TTL module is connected to the TX</span>''' of the development board
</blockquote>
+
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<li>The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is as follows</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[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]]
+
[[File:pi3b-img157.png]]
  
 
</div>
 
</div>
'''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 right'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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 right'''</big>
 +
|}
 +
</ol>
 +
<span id="how-to-use-the-debugging-serial-port-on-the-ubuntu-platform"></span>
  
<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 ===
 
=== How to use the debugging serial port on the Ubuntu platform ===
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''</big>
 +
|}
  
 
# 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 '''/dev''' on the Ubuntu PC. Remember this node name, and then set the serial port software will be used
 
# 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 '''/dev''' on the Ubuntu PC. Remember this node name, and then set the serial port software will be used
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''ls /dev/ttyUSB*'''
 
test@test:~$ '''ls /dev/ttyUSB*'''
  
 
/dev/ttyUSB0
 
/dev/ttyUSB0
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then use the following command to install putty on Ubuntu PC</li></ol>
+
<li>Then use the following command to install putty on Ubuntu PC</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo apt-get update'''
 
test@test:~$ '''sudo apt-get update'''
  
 
test@test:~$ '''sudo apt-get install -y putty'''
 
test@test:~$ '''sudo apt-get install -y putty'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then run putty, '''remember to add sudo permission'''</li></ol>
+
<li>Then run putty, '''<span style="color:#FF0000">remember to add sudo permission</span>'''</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo putty'''
 
test@test:~$ '''sudo putty'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>After executing the putty command, the following interface will pop up</li></ol>
+
<li>After executing the putty command, the following interface will pop up</li>
 
 
[[File:pi3b-img158.png|367x321px]]
 
  
 +
[[File:pi3b-img158.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>First select the setting interface of the serial port</li></ol>
+
<li>First select the setting interface of the serial port</li>
 
 
[[File:pi3b-img159.png|359x352px]]
 
  
 +
[[File:pi3b-img159.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
 
<li><p>Then set the parameters of the serial port</p>
 
<li><p>Then set the parameters of the serial port</p>
Line 2,431: Line 2,602:
 
<li><p>Set Serial line to connect toas /dev/ttyUSB0((Modified to the corresponding node name, generally /dev/ttyUSB0)</p></li>
 
<li><p>Set Serial line to connect toas /dev/ttyUSB0((Modified to the corresponding node name, generally /dev/ttyUSB0)</p></li>
 
<li><p>Set Speed(baud) as '''1500000'''(Serial port baud rate)</p></li>
 
<li><p>Set Speed(baud) as '''1500000'''(Serial port baud rate)</p></li>
<li><p>Set Flow control as None</p></li></ol>
+
<li><p>Set Flow control as None</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img160.png|317x312px|09]]
+
[[File:pi3b-img160.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
 
<li><p>After setting the setting interface of the serial port, return to the Session interface</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
 
<li><p>First select the Connection type as Serial</p></li>
 
<li><p>First select the Connection type as Serial</p></li>
<li><p>Then click the Open button to connect to the serial port</p></li></ol>
+
<li><p>Then click the Open button to connect to the serial port</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img161.png|345x340px|10]]
+
[[File:pi3b-img161.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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|468x340px]]
+
[[File:pi3b-img162.png]]
 +
</ol>
 +
<span id="how-to-use-the-debugging-serial-port-on-windows-platform"></span>
  
<span id="how-to-use-the-debugging-serial-port-on-windows-platform"></span>
 
 
=== How to use the debugging serial port on Windows platform ===
 
=== How to use the debugging serial port on Windows platform ===
  
'''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.'''
+
{| 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;">
 
<ol style="list-style-type: decimal;">
 
<li><p>Download MobaXterm</p>
 
<li><p>Download MobaXterm</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Download MobaXterm website as follows</li></ol>
+
<li>Download MobaXterm website as follows</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
[https://mobaxterm.mobatek.net/ https://mobaxterm.mobatek.net]
+
|
 
+
[https://mobaxterm.mobatek.net/ '''https://mobaxterm.mobatek.net''']
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>After entering the MobaXterm download page, click '''GET XOBATERM NOW!'''</li></ol>
+
<li>After entering the MobaXterm download page, click '''GET XOBATERM NOW!'''</li>
 
 
[[File:pi3b-img163.png|576x334px]]
 
  
 +
[[File:pi3b-img163.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then choose to download the Home version</li></ol>
+
<li>Then choose to download the Home version</li>
 
 
[[File:pi3b-img164.png|353x231px]]
 
  
 +
[[File:pi3b-img164.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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|575x259px]]
 
  
 +
[[File:pi3b-img165.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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|576x81px]]
 
  
 +
[[File:pi3b-img166.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<li><p>After opening the software, the steps to set up the serial port connection are as follows</p>
Line 2,494: Line 2,673:
 
<li><p>Open the session settings interface</p></li>
 
<li><p>Open the session settings interface</p></li>
 
<li><p>Select the serial port type</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 number, please use '''Driver Master''' to scan and install the driver for the USB to TTL serial port chip</p></li>
+
<li><p>Select the port number of the serial port (select the corresponding port number according to the actual situation)</p></li>
 
<li><p>Select the baud rate of the serial port as '''1500000'''</p></li>
 
<li><p>Select the baud rate of the serial port as '''1500000'''</p></li>
<li><p>Finally click the &quot;'''OK'''&quot; button to complete the setting</p></li></ol>
+
<li><p>Finally click the &quot;'''OK'''&quot; button to complete the setting</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img167.png|575x438px|11]]
+
[[File:pi3b-img167.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img168.png|575x291px|12]]
+
[[File:pi3b-img168.png]]
  
</div>
+
</div></ol>
 
<span id="instructions-for-using-the-5v-pin-in-the-40pin-interface-of-the-development-board-to-supply-power"></span>
 
<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 ==
 
== Instructions for using the 5v pin in the 40pin interface of the development board to supply power ==
  
'''The power supply method we recommend for the development board is to use the 5V/3A or 5V/4A 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-C power supply.'''
+
{| class="wikitable" style="background-color:#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-C power supply.'''</big>
 +
|}
  
 
# First, you need to prepare a power cord as shown in the figure below
 
# First, you need to prepare a power cord as shown in the figure below
Line 2,521: Line 2,705:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img169.png|151x108px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-7.jpg未标题-7]]
+
::[[File:pi3b-img169.png]]
  
 
</div>
 
</div>
'''Please purchase the power cord shown in the picture above by yourself'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Please purchase the power cord shown in the picture above by yourself'''</big>
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
 
<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-style-type: lower-alpha;">
 
<ol style="list-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 or 5V4A power adapter connector ('''please do not plug into the computer’s USB port for power supply''')</p></li>
+
<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 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 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, remember not to reverse the connection</p></li></ol>
+
<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>
 
</li></ol>
 
</li></ol>
 
[[File:pi3b-img170.png|365x71px]]
 
 
 
<span id="instructions-for-use-of-ubuntudebian-server-and-xfce-desktop-system"></span>
 
<span id="instructions-for-use-of-ubuntudebian-server-and-xfce-desktop-system"></span>
  
 
= '''Instructions for use of Ubuntu/Debian Server and Xfce desktop system''' =
 
= '''Instructions for use of Ubuntu/Debian Server and Xfce desktop system''' =
  
'''The content of this chapter is written based on the images of the Linux server version and the xfce desktop version.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
 +
|
 +
<big>'''The content of this chapter is written based on the images of the Linux server version and the xfce desktop version.'''</big>
 +
|}
 +
 
 
<span id="supported-linux-image-types-and-kernel-versions"></span>
 
<span id="supported-linux-image-types-and-kernel-versions"></span>
 
== Supported Linux image types and kernel versions ==
 
== Supported Linux image types and kernel versions ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''Linux image type'''
 
|'''Linux image type'''
Line 2,572: Line 2,764:
 
== Linux System adaptation ==
 
== Linux System adaptation ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''Function'''
 
|'''Function'''
Line 2,734: Line 2,926:
  
 
# In this manual, all commands that need to be entered in the Linux system will be marked with the following box
 
# In this manual, all commands that need to be entered in the Linux system will be marked with the following box
 +
::{| class="wikitable" style="width:800px;height:40px;"
 +
|-
 +
|
  
As shown below, the content in the yellow box indicates the content that needs special attention, except for the commands in it.
+
|}
 +
::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:40px;"
 +
|-
 +
|
  
 +
|}
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>Description of the prompt type in front of the command</p>
 
<li><p>Description of the prompt type in front of the command</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''<span style="color:#FF0000">orangepi@orangepi:~$</span> sudo apt update'''
  
'''orangepi@orangepi:~$ sudo apt update'''
+
'''<span style="color:#FF0000">root@orangepi:~#</span>''' '''vim /boot/boot.cmd'''
  
'''root@orangepi:~#''' '''vim /boot/boot.cmd'''
+
'''<span style="color:#FF0000">test@test:~$</span> ssh [mailto:root@192.168.1.36 root@192.168.1.]xxx'''
 
 
'''test@test:~$ ssh [mailto:root@192.168.1.36 root@192.168.1.]xxx'''
 
 
 
'''root@test:~# ls'''
 
  
 +
'''<span style="color:#FF0000">root@test:~#</span> ls'''
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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'''. 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'''. 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>'''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>'''<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>'''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 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">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>'''root@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 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><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;">
 
<ol start="3" style="list-style-type: decimal;">
 
<li><p>What are the commands that need to be entered?</p>
 
<li><p>What are the commands that need to be entered?</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="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>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>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
root@orangepi:~# '''cat /boot/orangepiEnv.txt'''
 
root@orangepi:~# '''cat /boot/orangepiEnv.txt'''
  
'''verbosity=7'''
+
'''<span style="color:#FF0000">verbosity=7</span>'''
  
 
bootlogo=false
 
bootlogo=false
  
'''console=serial'''
+
'''<span style="color:#FF0000">console=serial</span>'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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 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;\&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>
+
<li>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;\&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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''echo \'''
 
orangepi@orangepi:~$ '''echo \'''
  
Line 2,784: Line 2,990:
  
 
'''$(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null'''
 
'''$(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null'''
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="linux-system-login-instructions"></span>
  
<span id="linux-system-login-instructions"></span>
 
 
== Linux system login instructions ==
 
== Linux system login instructions ==
  
Line 2,791: Line 3,000:
 
=== Linux system default login account and password ===
 
=== Linux system default login account and password ===
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''Account'''
 
|'''Account'''
Line 2,803: Line 3,012:
 
|}
 
|}
  
'''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.'''
+
{| 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>'''When the wrong password is prompted, or there is a problem with the ssh connection, please note that as long as you are using the Linux image provided by Orange Pi, <span style="color:#FF0000">please do not suspect that the above password is wrong</span>, but look for other reasons.'''</big>
 +
|}
  
'''When the wrong password is prompted, or there is a problem with the ssh connection, please note that as long as you are using the Linux image provided by Orange Pi, please do not suspect that the above password is wrong, but look for other reasons.'''
+
<span id="how-to-set-automatic-terminal-login-in-linux-system"></span>
  
<span id="how-to-set-automatic-terminal-login-in-linux-system"></span>
 
 
=== How to set automatic terminal login in Linux system ===
 
=== 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'''
+
# The Linux system automatically logs in to the terminal by default, and the default login user name is '''<span style="color:#FF0000">orangepi</span>'''
  
[[File:pi3b-img171.png|351x198px]]
+
::[[File:pi3b-img171.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Use the following command to set the root user to automatically log in to the terminal</li></ol>
+
<li>Use the following command to set the root user to automatically log in to the terminal</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh root'''
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh root'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Use the following command to disable automatic login terminal</li></ol>
+
<li>Use the following command to disable automatic login terminal</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh -d'''
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh -d'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Use the following command to set the orangepi user to automatically log in to the terminal again</li></ol>
+
<li>Use the following command to set the orangepi user to automatically log in to the terminal again</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh orangepi'''
 
orangepi@orangepi:~$ '''sudo auto_login_cli.sh orangepi'''
 +
|}
 +
</ol>
 +
<span id="instructions-for-automatic-login-of-linux-desktop-version-system"></span>
  
<span id="instructions-for-automatic-login-of-linux-desktop-version-system"></span>
 
 
=== Instructions for automatic login of Linux desktop version system ===
 
=== Instructions for automatic login of Linux desktop version system ===
  
Line 2,836: Line 3,063:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img172.png|576x324px|1]]
+
::[[File:pi3b-img172.png]]
  
 
</div>
 
</div>
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<li>Run the following command to prohibit the desktop system from automatically logging into the desktop</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo disable_desktop_autologin.sh'''
 
orangepi@orangepi:~$ '''sudo disable_desktop_autologin.sh'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<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">
 
<div class="figure">
  
[[File:pi3b-img173.png|569x320px|IMG_256]]
+
[[File:pi3b-img173.png]]
  
 
</div></li></ol>
 
</div></li></ol>
  
 
<span id="the-setting-method-of-root-user-automatic-login-in-linux-desktop-version-system"></span>
 
<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 ===
 
=== 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
 
# Execute the following command to set the desktop system to automatically log in as the root user
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo desktop_login.sh root'''
 
orangepi@orangepi:~$ '''sudo desktop_login.sh root'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<li>Then restart the system, and the root user will automatically log in to the desktop</li>
  
[[File:pi3b-img174.png|448x187px]]
+
[[File:pi3b-img174.png]]
  
'''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 devices.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''Also note that this is not a bug, since pulseaudio is not allowed to run as root.'''
+
|
 +
<big>'''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 devices.'''
  
 +
'''Also note that this is not a bug, since pulseaudio is not allowed to run as root.'''</big>
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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></ol>
+
<li>Execute the following command to set the desktop system to log in automatically with the orangepi user again</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo desktop_login.sh orangepi'''
 
orangepi@orangepi:~$ '''sudo desktop_login.sh orangepi'''
 +
|}
 +
</ol>
 +
<span id="the-method-of-disabling-the-desktop-in-the-linux-desktop-version-system"></span>
  
<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 ===
 
=== 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'''
+
# First enter the following command on the command line, '''<span style="color:#FF0000">Please remember to add sudo permission</span>'''
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo systemctl disable lightdm.service'''
 
orangepi@orangepi:~$ '''sudo systemctl disable lightdm.service'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<li>Then restart the Linux system and you will find that the desktop will not be displayed</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo reboot'''
 
orangepi@orangepi:~$ '''sudo reboot'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
 
<li><p>The steps to reopen the desktop are as follows:</p>
 
<li><p>The steps to reopen the desktop are as follows:</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First enter the following command on the command line,'''Please remember to add sudo permission'''</li></ol>
+
<li>First enter the following command on the command line, '''<span style="color:#FF0000">Please remember to add sudo permission</span>'''</li>
</li></ol>
 
 
 
orangepi@orangepi:~$ '''sudo systemctl start lightdm.service'''
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''sudo systemctl start lightdm.service'''
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li>After the command is executed, the desktop will be displayed</li></ol>
 
<li>After the command is executed, the desktop will be displayed</li></ol>
 +
</li></ol>
  
 
<span id="onboard-led-light-test-instructions"></span>
 
<span id="onboard-led-light-test-instructions"></span>
 +
 
== Onboard LED Light Test Instructions ==
 
== Onboard LED Light Test Instructions ==
  
Line 2,903: Line 3,160:
 
<div class="figure">
 
<div class="figure">
  
[[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)]]
+
::[[File:pi3b-img175.png]]
  
 
</div>
 
</div>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li><p>'''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'''</p></li>
+
<li><p>'''<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>
 
<li><p>The green LED light will keep blinking after the kernel is started, which is controlled by software.</p></li>
 
<li><p>The PCIe indicator will flash when there is data transmission on the PCIe interface.</p></li>
 
<li><p>The PCIe indicator will flash when there is data transmission on the PCIe interface.</p></li>
<li><p>The method of setting the green light on and off and flashing is as follows</p></li></ol>
+
<li><p>The method of setting the green light on and off and flashing is as follows</p>
 
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
'''Note that the following operations should be performed under the root user.'''
+
|-
 
+
|
 +
<big>'''Note that the following operations should be performed under the root user.'''</big>
 +
|}
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First enter the setting directory of the green light</li></ol>
+
<li>First enter the setting directory of the green light</li>
 
+
{| class="wikitable" style="width:800px;"
root@orangepi:~# '''cd /sys/class/leds/status'''
+
|-
 
+
|
 +
root@orangepi:~# '''cd /sys/class/leds/status_led'''
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The command to set the green light to stop flashing is as follows</li></ol>
+
<li>The command to set the green light to stop flashing is as follows</li>
 
+
{| class="wikitable" style="width:800px;"
root@orangepi:/sys/class/leds/work# '''echo none &gt; trigger'''
+
|-
 
+
|
 +
root@orangepi:/sys/class/leds/status_led# '''echo none &gt; trigger'''
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The command to set the green light to be on is as follows</li></ol>
+
<li>The command to set the green light to be on is as follows</li>
 
+
{| class="wikitable" style="width:800px;"
root@orangepi:/sys/class/leds/work# '''echo default-on &gt; trigger'''
+
|-
 
+
|
 +
root@orangepi:/sys/class/leds/status_led# '''echo default-on &gt; trigger'''
 +
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>The command to set the green light to flash is as follows</li></ol>
+
<li>The command to set the green light to flash is as follows</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
root@orangepi:/sys/class/leds/status_led# '''echo heartbeat &gt; trigger'''
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="network-connection-test"></span>
  
root@orangepi:/sys/class/leds/work# '''echo heartbeat &gt; trigger'''
 
 
<span id="network-connection-test"></span>
 
 
== Network connection test ==
 
== Network connection test ==
  
Line 2,941: Line 3,214:
  
 
# 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
 
# 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, '''No other configuration is required'''
+
# After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP, '''<span style="color:#FF0000">No other configuration is required</span>'''
 
# The command to view the IP address in the Linux system of the development board is as follows
 
# The command to view the IP address in the Linux system of the development board is as follows
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ip addr show eth0'''
 
orangepi@orangepi:~$ '''ip addr show eth0'''
  
 
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000
 
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
+
:link/ether 4a:fe:2b:3d:17:1c brd ff:ff:ff:ff:ff:ff
  
inet '''192.168.1.150'''/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
+
:inet '''<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
+
::valid_lft 43150sec preferred_lft 43150sec
  
inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute
+
:inet6 fe80::9a04:3703:faed:23be/64 scope link noprefixroute
  
valid_lft forever preferred_lft forever
+
::valid_lft forever preferred_lft forever
 +
|}
 +
 
 +
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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 ifconfig'''</big>
  
'''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 ifconfig'''
 
  
 
orangepi@orangepi:~$ '''ifconfig'''
 
orangepi@orangepi:~$ '''ifconfig'''
Line 2,973: Line 3,254:
  
 
ifconfig: command not found
 
ifconfig: command not found
 +
|}
  
'''There are three ways to check the IP address after the development board starts:'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''There are three ways to check the IP address after the development board starts:'''
  
# '''Connect the HDMI display, then log in to the system and use the ip addr show eth0 command to view the IP address'''
+
'''1. Connect the HDMI display, then log in to the system and use the ip addr show eth0 command to view the IP address'''
# '''Enter the ip addr show eth0 command in the debugging serial terminal to view the IP address'''
+
 
# '''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:'''
+
'''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;">
 
<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>'''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>
Line 2,987: Line 3,273:
 
<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 address'''</p></li></ol>
 
<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 address'''</p></li></ol>
  
'''In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.'''
+
 
 +
'''In 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;">
 
<ol start="4" style="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>
+
<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>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''
 
orangepi@orangepi:~$ '''ping www.baidu.com -I eth0'''
  
Line 3,011: Line 3,302:
  
 
rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms
 
rtt min/avg/max/mdev = 6.260/6.770/7.275/0.373 ms
 +
|}
 +
</ol>
 +
<span id="wifi-connection-test"></span>
  
<span id="wifi-connection-test"></span>
 
 
=== WIFI connection test ===
 
=== WIFI connection test ===
  
'''Please 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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Please 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>
 +
|}
  
 
<span id="wifi-the-server-image-connects-to-wifi-through-commands"></span>
 
<span id="wifi-the-server-image-connects-to-wifi-through-commands"></span>
==== WIFI The server image connects to WIFI through commands ====
+
==== The server image connects to WIFI through commands ====
  
'''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 network.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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 network.'''</big>
 +
|}
  
 
<ol style="list-style-type: decimal;">
 
<ol style="list-style-type: decimal;">
Line 3,029: Line 3,330:
 
<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><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>
<li><p>First use the nmcli dev wifi command to scan the surrounding WIFI hotspots</p></li></ol>
+
<li><p>First use the nmcli dev wifi command to scan the surrounding WIFI hotspots</p></li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''nmcli dev wifi'''
 
orangepi@orangepi:~$ '''nmcli dev wifi'''
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img176.png|575x250px|选区_011]]
+
[[File:pi3b-img176.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then use the nmcli command to connect to the scanned WIFI hotspot, where:</li></ol>
+
<li>Then use the nmcli command to connect to the scanned WIFI hotspot, where:</li>
  
a. '''wifi_name''' needs to be replaced with the name of the WIFI hotspot you want to connect to
+
:a. '''wifi_name''' needs to be replaced with the name of the WIFI hotspot you want to connect to
  
b. '''wifi_passwd''' needs to be replaced with the password of the WIFI hotspot you want to connect to
+
:b. '''wifi_passwd''' needs to be replaced with the password of the WIFI hotspot you want to connect to
  
orangepi@orangepi:~$ '''nmcli dev wifi connect wifi_name password wifi_passwd'''
+
:{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''nmcli dev wifi connect <span style="color:#FF0000">wifi_name</span> password <span style="color:#FF0000">wifi_passwd</span>'''
  
 
Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.
 
Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<li>You can view the IP address of wifi through the '''ip addr show wlan0''' command
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ip addr show wlan0'''
 
orangepi@orangepi:~$ '''ip addr show wlan0'''
  
 
11: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 
11: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  
link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
+
:link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
  
inet '''192.168.1.11'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
+
:inet '''<span style="color:#FF0000">192.168.1.11</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
  
valid_lft 259192sec preferred_lft 259192sec
+
::valid_lft 259192sec preferred_lft 259192sec
  
inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
+
:inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
  
valid_lft 259192sec preferred_lft 172792sec
+
::valid_lft 259192sec preferred_lft 172792sec
  
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
+
:inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
  
valid_lft forever preferred_lft forever
+
::valid_lft forever preferred_lft forever
 
+
|}
5) Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''
+
</ol>
 +
<ol start="5" style="list-style-type: decimal;">
 +
<li>Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''
 
orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''
  
Line 3,093: Line 3,410:
  
 
rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 
rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 +
|}
 +
</ol>
 +
<span id="the-server-image-connects-to-wifi-in-a-graphical-way"></span>
  
<span id="the-server-image-connects-to-wifi-in-a-graphical-way"></span>
 
 
==== The server image connects to WIFI in a graphical way ====
 
==== The server image connects to WIFI in a graphical way ====
  
1) First log in to the Linux system, there are the following three ways
+
<ol style="list-style-type: decimal;">
 
+
<li>First log in to the Linux system, there are the following three ways</li>
 
<ol style="list-style-type: lower-alpha;">
 
<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 with a network cable, you can remotely log in to [[Orange Pi 3B#SSH remote login development board|'''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 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>
 
<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>
  
<!-- -->
+
<li>Then enter the nmtui command in the command line to open the wifi connection interface</li>
#
+
{| class="wikitable" style="width:800px;"
# Then enter the nmtui command in the command line to open the wifi connection interface
+
|-
 
+
|
 
orangepi@orangepi:~$ '''nmtui'''
 
orangepi@orangepi:~$ '''nmtui'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Enter the nmtui command to open the interface as shown below</li></ol>
+
<li>Enter the nmtui command to open the interface as shown below</li>
 
 
[[File:pi3b-img177.png|345x215px]]
 
  
 +
[[File:pi3b-img177.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Select '''Activate a connect''' and press Enter</li></ol>
+
<li>Select '''Activate a connect''' and press Enter</li>
 
 
[[File:pi3b-img178.png|349x216px]]
 
  
 +
[[File:pi3b-img178.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then you can see all the searched WIFI hotspots</li></ol>
+
<li>Then you can see all the searched WIFI hotspots</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img179.png|426x270px|16]]
+
[[File:pi3b-img179.png]]
  
</div>
+
</div></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: 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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img180.png|474x298px|17]]
+
[[File:pi3b-img180.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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 '''Password''' and press Enter to start connecting to WIFI</li></ol>
+
<li>Then a dialog box for entering a password will pop up, enter the corresponding password in '''Password''' and press Enter to start connecting to WIFI</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img181.png|480x308px|18]]
+
[[File:pi3b-img181.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>After the WIFI connection is successful, a &quot;*&quot; will be displayed in front of the connected WIFI name</li></ol>
+
<li>After the WIFI connection is successful, a &quot;*&quot; will be displayed in front of the connected WIFI name</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img182.png|443x283px|C:\Users\orangepi\Desktop\用户手册插图\Zero3\未标题-9.jpg未标题-9]]
+
[[File:pi3b-img182.png]]
  
</div>
+
</div></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<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>
+
<li>You can view the IP address of wifi through the '''ip addr show wlan0''' command</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ip addr show wlan0'''
 
orangepi@orangepi:~$ '''ip addr show wlan0'''
  
 
11: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 
11: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  
link/ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ff
+
:link/ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ff
  
inet '''192.168.1.11'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
+
:inet '''<span style="color:#FF0000">192.168.1.11</span>'''/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
  
valid_lft 259069sec preferred_lft 259069sec
+
::valid_lft 259069sec preferred_lft 259069sec
  
inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
+
:inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
  
valid_lft 259071sec preferred_lft 172671sec
+
::valid_lft 259071sec preferred_lft 172671sec
  
inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
+
:inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
 
 
valid_lft forever preferred_lft forever
 
  
 +
::valid_lft forever preferred_lft forever
 +
|}
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''</li></ol>
+
<li>Use the '''ping''' command to test the connectivity of the wifi network, and the '''ping''' command can be interrupted through the shortcut key '''Ctrl+C'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''
 
orangepi@orangepi:~$ '''ping www.orangepi.org -I wlan0'''
  
Line 3,197: Line 3,522:
  
 
rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 
rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms
 +
|}
 +
</ol>
 +
<span id="test-method-of-desktop-image"></span>
  
<span id="test-method-of-desktop-image"></span>
 
 
==== Test method of desktop image ====
 
==== Test method of desktop image ====
  
 
# Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)
 
# Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)
  
[[File:pi3b-img183.png|377x166px]]
+
::[[File:pi3b-img183.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Click '''More 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></ol>
+
<li>Click '''More 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|576x353px]]
 
  
 +
[[File:pi3b-img184.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then enter the password of the WIFI hotspot, and then click '''Connect''' to start connecting to WIFI</li></ol>
+
<li>Then enter the password of the WIFI hotspot, and then click '''Connect''' to start connecting to WIFI</li>
 
 
[[File:pi3b-img185.png|320x163px]]
 
  
 +
[[File:pi3b-img185.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: 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</li></ol>
+
<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</li>
 
 
[[File:pi3b-img186.png|576x308px]]
 
  
 +
[[File:pi3b-img186.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>If you can open other web pages after opening the browser, it means that the WIFI connection is normal</li></ol>
+
<li>If you can open other web pages after opening the browser, it means that the WIFI connection is normal</li>
  
[[File:pi3b-img187.png|576x222px]]
+
[[File:pi3b-img187-1.png]]
 +
</ol>
 +
<span id="how-to-set-a-static-ip-address"></span>
  
<span id="how-to-set-a-static-ip-address"></span>
 
 
=== How to set a static IP address ===
 
=== How to set a static IP address ===
  
'''Please do not set a static IP address by modifying the /etc/network/interfaces configuration file.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Please do not set a static IP address by modifying the /etc/network/interfaces configuration file.'''</big>
 +
|}
  
 
<span id="use-the-nmtui-command-to-set-a-static-ip-address"></span>
 
<span id="use-the-nmtui-command-to-set-a-static-ip-address"></span>
Line 3,235: Line 3,567:
 
# First run the '''nmtui''' command
 
# First run the '''nmtui''' command
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''nmtui'''
 
orangepi@orangepi:~$ '''nmtui'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then select '''Edit a connection''' and press Enter</li></ol>
+
<li>Then select '''Edit a connection''' and press Enter</li>
 
 
[[File:pi3b-img188.png|227x247px]]
 
  
 +
[[File:pi3b-img188.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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 '''Wired connection 1'''.</li></ol>
+
<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'''.</li>
 
 
[[File:pi3b-img189.png|310x149px]]
 
  
 +
[[File:pi3b-img189.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Edit''' with the '''Tab''' key and press the Enter key</li></ol>
+
<li>Then select '''Edit''' with the '''Tab''' key and press the Enter key</li>
 
 
[[File:pi3b-img190.png|316x144px]]
 
  
 +
[[File:pi3b-img190.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then use the Tab key to move the cursor to the '''&lt;Automatic&gt;''' position shown in the figure below to configure IPv4</li></ol>
+
<li>Then use the Tab key to move the cursor to the '''&lt;Automatic&gt;''' position shown in the figure below to configure IPv4</li>
 
 
[[File:pi3b-img191.png|575x240px]]
 
  
 +
[[File:pi3b-img191.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then press Enter, select '''Manual''' with the up and down arrow keys, and press Enter to confirm</li></ol>
+
<li>Then press Enter, select '''Manual''' with the up and down arrow keys, and press Enter to confirm</li>
 
 
[[File:pi3b-img192.png|576x237px]]
 
  
 +
[[File:pi3b-img192.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>The display after selection is shown in the figure below</li></ol>
+
<li>The display after selection is shown in the figure below</li>
 
 
[[File:pi3b-img193.png|575x240px]]
 
  
 +
[[File:pi3b-img193.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>Then move the cursor to the '''&lt;Show&gt;'''</li></ol>
+
<li>Then move the cursor to the '''&lt;Show&gt;'''</li>
 
 
[[File:pi3b-img194.png|576x241px]]
 
  
 +
[[File:pi3b-img194.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then press Enter, the following setting interface will pop up after entering</li></ol>
+
<li>Then press Enter, the following setting interface will pop up after entering</li>
 
 
[[File:pi3b-img195.png|575x450px]]
 
  
 +
[[File:pi3b-img195.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
+
<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), '''<span style="color:#FF0000">Please set it according to your specific needs, the value set in the figure below is just an example</span>'''</li>
 
 
[[File:pi3b-img196.png|576x233px]]
 
  
 +
[[File:pi3b-img196.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
<li>After setting, move the cursor to'''&lt;OK&gt;''' in the lower right corner, and press Enter to confirm</li></ol>
+
<li>After setting, move the cursor to'''&lt;OK&gt;''' in the lower right corner, and press Enter to confirm</li>
 
 
[[File:pi3b-img197.png|576x116px]]
 
  
 +
[[File:pi3b-img197.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" style="list-style-type: decimal;">
<li>Then click'''&lt;Back&gt;''' to return to the previous selection interface</li></ol>
+
<li>Then click'''&lt;Back&gt;''' to return to the previous selection interface</li>
 
 
[[File:pi3b-img198.png|330x325px]]
 
  
 +
[[File:pi3b-img198.png]]
 +
</ol>
 
<ol start="13" style="list-style-type: decimal;">
 
<ol start="13" style="list-style-type: decimal;">
<li>Then select '''Activate a connection''', then move the cursor to'''&lt;OK&gt;''', and finally click Enter</li></ol>
+
<li>Then select '''Activate a connection''', then move the cursor to'''&lt;OK&gt;''', and finally click Enter</li>
 
 
[[File:pi3b-img199.png|331x248px]]
 
  
 +
[[File:pi3b-img199.png]]
 +
</ol>
 
<ol start="14" style="list-style-type: decimal;">
 
<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 '''Wired connection 1'''</li></ol>
+
<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 '''Wired connection 1'''</li>
 
 
[[File:pi3b-img200.png|576x224px]]
 
  
 +
[[File:pi3b-img200.png]]
 +
</ol>
 
<ol start="15" style="list-style-type: decimal;">
 
<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></ol>
+
<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>
 
 
[[File:pi3b-img201.png|576x224px]]
 
  
 +
[[File:pi3b-img201.png]]
 +
</ol>
 
<ol start="16" style="list-style-type: decimal;">
 
<ol start="16" style="list-style-type: decimal;">
<li>Then you can exit nmtui through the'''&lt;Back&gt;''' and '''Quit''' buttons</li></ol>
+
<li>Then you can exit nmtui through the'''&lt;Back&gt;''' and '''Quit''' buttons</li>
 
 
[[File:pi3b-img202.png|300x253px]] [[File:pi3b-img203.png|227x252px]]
 
  
 +
[[File:pi3b-img202.png]] [[File:pi3b-img203.png]]
 +
</ol>
 
<ol start="17" style="list-style-type: decimal;">
 
<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>
+
<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:~$ '''ip addr show eth0'''
 
orangepi@orangepi:~$ '''ip addr show eth0'''
  
 
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  
link/ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ff
+
:link/ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ff
  
inet '''192.168.1.177'''/24 brd 192.168.1.255 scope global noprefixroute eth0
+
:inet '''<span style="color:#FF0000">192.168.1.177</span>'''/24 brd 192.168.1.255 scope global noprefixroute eth0
  
valid_lft forever preferred_lft forever
+
::valid_lft forever preferred_lft forever
  
inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute
+
:inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute
  
valid_lft 259149sec preferred_lft 172749sec
+
::valid_lft 259149sec preferred_lft 172749sec
  
inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute
+
:inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute
 
 
valid_lft forever preferred_lft forever
 
  
 +
::valid_lft forever preferred_lft forever
 +
|}
 +
</ol>
 
<ol start="18" style="list-style-type: decimal;">
 
<ol start="18" style="list-style-type: decimal;">
<li>Then you can test the connectivity 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>
+
<li>Then you can test the connectivity 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>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ping 192.168.1.47 -I eth0'''
 
orangepi@orangepi:~$ '''ping 192.168.1.47 -I eth0'''
  
Line 3,357: Line 3,700:
  
 
rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms
 
rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms
 +
|}
 +
</ol>
 +
<span id="use-the-nmcli-command-to-set-a-static-ip-address"></span>
  
<span id="use-the-nmcli-command-to-set-a-static-ip-address"></span>
 
 
==== Use the nmcli command to set a static IP address ====
 
==== Use the nmcli command to set a static IP address ====
  
Line 3,366: Line 3,711:
 
<ol style="list-style-type: lower-alpha;">
 
<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>'''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></ol>
+
<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</span><br>
 +
<span style="margin-right: 50px;">'''Wired connection 1'''</span><span style="margin-right: 50px;">9db058b7-7701-37b8-9411-efc2ae8bfa30</span><span style="margin-right: 30px;">ethernet </span><span style="margin-right: 50px;">eth0</span><br>
 +
|}</ol>
 
</li></ol>
 
</li></ol>
  
orangepi@orangepi:~$ '''nmcli con show'''
+
<ol start="3" style="list-style-type: decimal;">
 +
<li>Then enter the following command, where</li>
  
NAME UUID TYPE DEVICE
+
:a. '''&quot;Wired connection 1&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 name of the WIFI network interface (you can get it through the '''nmcli con show''' command)
  
'''orangepi''' cfc4f922-ae48-46f1-84e1-2f19e9ec5e2a wifi wlan0
+
:b. After '''ipv4.addresse''' is the static IP address to be set, which can be modified to the value you want to set
  
'''Wired connection 1''' 9db058b7-7701-37b8-9411-efc2ae8bfa30 ethernet eth0
+
:c. '''ipv4.gateway''' indicates the address of the gateway
  
<ol start="3" style="list-style-type: decimal;">
+
::{| class="wikitable" style="width:800px;"  
<li>Then enter the following command, where</li></ol>
+
|-
 
+
|
<blockquote>a. '''&quot;Wired connection 1&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 name of the WIFI network interface (you can get it through the '''nmcli con show''' command)
 
 
 
b. After '''ipv4.addresse''' is the static IP address to be set, which can be modified to the value you want to set
 
 
 
c. '''ipv4.gateway''' indicates the address of the gateway
 
</blockquote>
 
 
orangepi@orangepi:~$ '''nmcli con mod &quot;Wired connection 1&quot; \'''
 
orangepi@orangepi:~$ '''nmcli con mod &quot;Wired connection 1&quot; \'''
  
Line 3,395: Line 3,743:
  
 
'''ipv4.method &quot;manual&quot;'''
 
'''ipv4.method &quot;manual&quot;'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then restart the Linux system</li></ol>
+
<li>Then restart the Linux system</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo reboot'''
 
orangepi@orangepi:~$ '''sudo reboot'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ip addr show eth0'''
 
orangepi@orangepi:~$ '''ip addr show eth0'''
  
 
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 
3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
  
link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
+
:link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
  
inet '''192.168.1.110'''/32 brd 192.168.1.110 scope global noprefixroute eth0
+
:inet '''<span style="color:#FF0000">192.168.1.110</span>'''/32 brd 192.168.1.110 scope global noprefixroute eth0
  
valid_lft forever preferred_lft forever
+
::valid_lft forever preferred_lft forever
  
inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute
+
:inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute
  
valid_lft 259183sec preferred_lft 172783sec
+
::valid_lft 259183sec preferred_lft 172783sec
  
inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute
+
:inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute
  
valid_lft forever preferred_lft forever
+
::valid_lft forever preferred_lft forever
 +
|}
 +
</ol>
 +
<span id="ssh-remote-login-development-board"></span>
  
<span id="ssh-remote-login-development-board"></span>
+
== SSH remote login development board ==
== SSH remote login development board; ==
 
  
'''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.'''
+
{| 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>
 +
|}
  
 
<span id="ssh-remote-login-development-board-under-ubuntu"></span>
 
<span id="ssh-remote-login-development-board-under-ubuntu"></span>
Line 3,433: Line 3,793:
 
# Then you can remotely log in to the Linux system through the ssh command
 
# Then you can remotely log in to the Linux system through the ssh command
  
test@test:~$ '''ssh [mailto:root@192.168.1.36 root@192.168.1.]xxx''' (Need to be replaced with the IP address of the development board)
+
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
test@test:~$ '''ssh [mailto:root@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)
  
root@192.168.1.xx's password: (Enter the password here, the default password is orangepi)
+
root@192.168.1.xx's password: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Enter the password here, the default password is 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.'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''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.'''
+
|
 +
<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>
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>After successfully logging in to the system, the display is as shown in the figure below</li></ol>
+
<li>After successfully logging in to the system, the display is as shown in the figure below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img204.png|405x207px|L467QDF65C(YR79U]TH[TND]]
+
[[File:pi3b-img204.png]]
  
 
</div>
 
</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. 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 again. Is it possible to connect:'''
+
{| 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. 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 again. Is it possible to connect:'''
 +
 
  
 
root@orangepi:~# '''reset_ssh.sh'''
 
root@orangepi:~# '''reset_ssh.sh'''
  
'''If it still doesn't work, try to reset the system.'''
 
  
 +
'''If it still doesn't work, try to reset the system.'''</big>
 +
|}
 +
</ol>
 
<span id="ssh-remote-login-development-board-under-windows"></span>
 
<span id="ssh-remote-login-development-board-under-windows"></span>
 +
 
=== SSH remote login development board under Windows ===
 
=== SSH remote login development board under Windows ===
  
 
# First obtain the IP address of the development board
 
# 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
  
2) Under Windows, you can use MobaXterm to remotely log in to the development board, first create a new ssh session
+
::a. Open '''Session'''
  
a. Open '''Session'''
+
::b. Then select '''SSH''' in '''Session Setting'''
  
b. Then select '''SSH''' in '''Session Setting'''
+
::c. Then enter the IP address of the development board in the '''Remote host'''
  
c. Then enter the IP address of the development board in the '''Remote host'''
+
::d. Then enter the user name '''root''' or '''orangepi''' of the Linux system in '''Specify username'''
  
d. Then enter the user name '''root''' or '''orangepi''' of the Linux system in '''Specify username'''
+
::e. Finally click '''OK'''
 
 
e. Finally click '''OK'''
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img205.png|553x280px|14]]
+
::[[File:pi3b-img205.png]]
  
 
</div>
 
</div>
<ol start="2" style="list-style-type: decimal;">
+
<ol start="3" style="list-style-type: decimal;">
<li></li>
+
<li>Then you will be prompted to enter a password. The default passwords for root and orangepi users are orangepi</li>
<li>Then you will be prompted to enter a password. The default passwords for root and orangepi users are orangepi</li></ol>
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''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.'''
+
|
 +
<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>
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img206.png|578x150px|C:\Users\orangepi\Desktop\用户手册插图\pi 3b\just press Enter after inputting..jpgjust press Enter after inputting.]]
+
[[File:pi3b-img206.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>After successfully logging in to the system, the display is as shown in the figure below</li></ol>
+
<li>After successfully logging in to the system, the display is as shown in the figure below</li>
  
[[File:pi3b-img207.png|576x334px]]
+
[[File:pi3b-img207.png]]
 +
</ol>
 +
<span id="the-method-of-uploading-files-to-the-linux-system-of-the-development-board"></span>
  
<span id="the-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 ==
 
== The method of uploading files to the Linux system of the development board ==
  
Line 3,504: Line 3,883:
 
# Use the scp command to upload files from the Ubuntu PC to the Linux system of the development board. The specific commands are as follows
 
# Use the scp command to upload files from the Ubuntu PC to the Linux system of the development board. The specific commands are as follows
  
<blockquote>a. '''file_path''': need to be replaced with the path of the file to be uploaded
+
::a. '''file_path''': need to be replaced with the path of the file to be uploaded
  
b. '''orangepi''': It is the user name of the Linux system of the development board, and it can also be replaced with other ones, such as root
+
::b. '''orangepi''': It is the user name of the Linux system of the development board, and it can also be replaced with other ones, such as root
  
c. '''192.168.xx.xx''': It is the IP address of the development board, please modify it according to the actual situation
+
::c. '''192.168.xx.xx''': It is the IP address of the development board, please modify it according to the actual situation
  
d. '''/home/orangepi''': The path in the Linux system of the development board, which can also be modified to other paths
+
::d. '''/home/orangepi''': The path in the Linux system of the development board, which can also be modified to other paths
</blockquote>
+
 
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''scp file_path orangepi@192.168.xx.xx:/home/orangepi/'''
 
test@test:~$ '''scp file_path orangepi@192.168.xx.xx:/home/orangepi/'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>If you want to upload a folder, you need to add the -r parameter</li>
 
 
test@test:~$ '''scp -r dir_path orangepi@192.168.xx.xx:/home/orangepi/'''
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
test@test:~$ '''scp <span style="color:#FF0000">-r</span> dir_path orangepi@192.168.xx.xx:/home/orangepi/'''
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<li>There are more usages of scp, please use the following command to view the man manual</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''man scp'''
 
test@test:~$ '''man scp'''
 +
|}
 +
</ol>
 +
<span id="how-to-upload-files-using-filezilla"></span>
  
<span id="how-to-upload-files-using-filezilla"></span>
 
 
==== How to upload files using filezilla ====
 
==== How to upload files using filezilla ====
  
 
# First install filezilla in Ubuntu PC
 
# First install filezilla in Ubuntu PC
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo apt install -y filezilla'''
 
test@test:~$ '''sudo apt install -y filezilla'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then use the following command to open filezilla</li></ol>
+
<li>Then use the following command to open filezilla</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''filezilla'''
 
test@test:~$ '''filezilla'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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></ol>
+
<li>The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img208.png|576x453px|截图 2022-12-03 19-04-40]]
+
[[File:pi3b-img208.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The method of connecting the development board is shown in the figure below</li></ol>
+
<li>The method of connecting the development board is shown in the figure below</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img209.png|575x128px|图片565]]
+
[[File:pi3b-img209.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then choose to '''save the password''', and then click '''OK'''</li></ol>
+
<li>Then choose to '''save the password''', and then click '''OK'''</li>
 
 
[[File:pi3b-img210.png|249x181px]]
 
  
 +
[[File:pi3b-img210.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then choose to always '''trust this host''', and then click '''OK'''</li></ol>
+
<li>Then choose to always '''trust this host''', and then click '''OK'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img211.png|278x150px|IMG_256]]
+
[[File:pi3b-img211.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="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></ol>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img212.png|533x330px|IMG_256]]
+
[[File:pi3b-img212.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="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 bingo.</li></ol>
+
<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.</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img213.png|485x380px|IMG_256]]
+
[[File:pi3b-img213.png]]
  
</div>
+
</div></ol>
9) 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
+
<ol start="9" style="list-style-type: decimal;">
 +
<li>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</li>
  
10) The method of uploading a folder is the same as that of uploading a file, so I won’t go into details here
+
<li>The method of uploading a folder is the same as that of uploading a file, so I won't go into details here</li>
 +
</ol>
 +
<span id="the-method-of-uploading-files-from-windows-pc-to-the-linux-system-of-the-development-board"></span>
  
<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 ===
 
=== The method of uploading files from Windows PC to the Linux system of the development board ===
  
Line 3,593: Line 3,994:
 
# First download the installation file of the Windows version of the filezilla software, the download link is as follows
 
# First download the installation file of the Windows version of the filezilla software, the download link is as follows
  
https://filezilla-project.org/download.php?type=client
+
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''https://filezilla-project.org/download.php?type=client'''
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img214.png|472x171px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-15.jpg未标题-15]]
+
::[[File:pi3b-img214.png]]
  
 
</div>
 
</div>
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img215.png|393x283px|图片5552]]
+
::[[File:pi3b-img215.png]]
  
 
</div>
 
</div>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>The downloaded installation package is as follows, and then double-click to install directly</li></ol>
+
<li>The downloaded installation package is as follows, and then double-click to install directly</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''FileZilla_Server_1.5.1_win64-setup.exe'''
 
'''FileZilla_Server_1.5.1_win64-setup.exe'''
 +
|}
  
 
During the installation process, please select '''Decline''' on the following installation interface, and then select '''Next&gt;'''
 
During the installation process, please select '''Decline''' on the following installation interface, and then select '''Next&gt;'''
Line 3,614: Line 4,023:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img216.png|319x251px|IMG_256]]
+
[[File:pi3b-img216.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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></ol>
+
<li>The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img217.png|451x357px|IMG_256]]
+
[[File:pi3b-img217.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The method of connecting the development board is shown in the figure below:</li></ol>
+
<li>The method of connecting the development board is shown in the figure below:</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img209.png|575x128px|图片565]]
+
[[File:pi3b-img209.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then choose to '''save the password''', and then click '''OK'''</li></ol>
+
<li>Then choose to '''save the password''', and then click '''OK'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img218.png|207x146px|IMG_256]]
+
[[File:pi3b-img218.png]]
  
</div>
+
</div></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then choose to always '''trust this host''', and then click '''OK'''</li></ol>
+
<li>Then choose to always '''trust this host''', and then click '''OK'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img219.png|221x109px|IMG_256]]
+
[[File:pi3b-img219.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="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></ol>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img220.png|446x329px|图片3]]
+
[[File:pi3b-img220.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="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 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>
+
<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.</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img221.png|501x369px|IMG_256]]
+
[[File:pi3b-img221.png]]
  
</div>
+
</div></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="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>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>
Line 3,670: Line 4,079:
  
 
<span id="hdmi-test"></span>
 
<span id="hdmi-test"></span>
 +
 
== HDMI test ==
 
== HDMI test ==
  
Line 3,677: Line 4,087:
 
# Use HDMI to HDMI cable to connect Orange Pi development board and HDMI monitor
 
# Use HDMI to HDMI cable to connect Orange Pi development board and HDMI monitor
  
[[File:pi3b-img10.png|199x129px]]
+
::[[File:pi3b-img10.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: 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>
+
<li>After starting the Linux system, if the HDMI monitor has image output, it means that the HDMI interface is in normal use</li>
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''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.'''
+
|
 +
<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.'''
  
'''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, you can change a different screen and try to see if it is displayed.'''
+
'''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.'''</big>
 +
|}
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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, you can change a different screen and try to see if it is displayed.'''</big>
 +
|}
 +
</ol>
  
 
<span id="hdmi-to-vga-display-test"></span>
 
<span id="hdmi-to-vga-display-test"></span>
 +
 
=== HDMI to VGA display test ===
 
=== HDMI to VGA display test ===
  
Line 3,694: Line 4,113:
 
<li><p>First, you need to prepare the following accessories</p>
 
<li><p>First, you need to prepare the following accessories</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>HDMI to VGA converter</li></ol>
+
<li>HDMI to VGA converter</li>
</li></ol>
 
 
 
[[File:pi3b-img222.png|155x104px]]
 
  
 +
[[File:pi3b-img222.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>A VGA cable</li></ol>
+
<li>A VGA cable</li>
 
 
[[File:pi3b-img223.png|148x133px]]
 
  
 +
[[File:pi3b-img223.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<li>A monitor or TV that supports VGA interface</li></ol>
 
<li>A monitor or TV that supports VGA interface</li></ol>
 
+
</li></ol>
<!-- -->
 
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>HDMI to VGA display test as shown below</li></ol>
+
<li>HDMI to VGA display test as shown below</li>
  
[[File:pi3b-img224.png|576x339px]]
+
[[File:pi3b-img224.png]]
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<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. 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.'''</big>
 +
|}
 +
</ol>
 +
<span id="hdmi-resolution-setting-method"></span>
  
<span id="hdmi-resolution-setting-method"></span>
 
 
=== HDMI resolution setting method ===
 
=== HDMI resolution setting method ===
  
 
# First open '''Display''' in '''Settings'''
 
# First open '''Display''' in '''Settings'''
  
[[File:pi3b-img225.png|576x370px]]
+
::[[File:pi3b-img225.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then you can see the current resolution of the system</li></ol>
+
<li>Then you can see the current resolution of the system</li>
 
 
[[File:pi3b-img226.png|382x254px]]
 
  
 +
[[File:pi3b-img226.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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</li></ol>
+
<li>Click the drop-down box of Resolution to see all resolutions currently supported by the monitor</li>
 
 
[[File:pi3b-img227.png|415x274px]]
 
  
 +
[[File:pi3b-img227.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select the resolution you want to set, and click Apply</li></ol>
+
<li>Then select the resolution you want to set, and click Apply</li>
 
 
[[File:pi3b-img228.png|415x277px]]
 
  
 +
[[File:pi3b-img228.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>After the new resolution is set, select '''Keep the configuration'''</li></ol>
+
<li>After the new resolution is set, select '''Keep the configuration'''</li>
  
[[File:pi3b-img229.png|447x243px]]
+
[[File:pi3b-img229.png]]
 +
</ol>
 +
<span id="how-to-use-bluetooth"></span>
  
<span id="how-to-use-bluetooth"></span>
 
 
== How to use Bluetooth ==
 
== How to use Bluetooth ==
  
Line 3,750: Line 4,173:
 
# Click the Bluetooth icon in the upper right corner of the desktop.
 
# Click the Bluetooth icon in the upper right corner of the desktop.
  
[[File:pi3b-img230.png|330x128px]]
+
::[[File:pi3b-img230.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then select the adapter</li></ol>
+
<li>Then select the adapter</li>
 
 
[[File:pi3b-img231.png|375x165px]]
 
  
 +
[[File:pi3b-img231.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>If there is a prompt below, select '''Yes'''</li></ol>
+
<li>If there is a prompt on the following interface, please select '''Yes'''</li>
 
 
[[File:pi3b-img232.png|248x85px]]
 
  
 +
[[File:pi3b-img232.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then set '''Visibility Setting''' as '''Always visible''' in the Bluetooth adapter settings interface, and then close it</li></ol>
+
<li>Then set '''Visibility Setting''' as '''Always visible''' in the Bluetooth adapter settings interface, and then close it</li>
 
 
[[File:pi3b-img233.png|243x229px]]
 
  
 +
[[File:pi3b-img233.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then open the configuration interface of the Bluetooth device</li></ol>
+
<li>Then open the configuration interface of the Bluetooth device</li>
 
 
[[File:pi3b-img234.png|438x179px]]
 
  
 +
[[File:pi3b-img234.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Click '''Search''' to start scanning the surrounding Bluetooth device</li></ol>
+
<li>Click '''Search''' to start scanning the surrounding Bluetooth device</li>
 
 
[[File:pi3b-img235.png|322x217px]]
 
  
 +
[[File:pi3b-img235.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-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</li></ol>
+
<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>
 
 
[[File:pi3b-img236.png|338x263px]]
 
  
 +
[[File:pi3b-img236.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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></ol>
+
<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-img237.png|417x152px]]
 
  
 +
[[File:pi3b-img237.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<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></ol>
+
<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>
 
 
[[File:pi3b-img238.png|439x259px]]
 
  
 +
[[File:pi3b-img238.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>The interface of the sending picture is shown below</li></ol>
+
<li>The interface of the sending picture is shown below</li>
  
[[File:pi3b-img239.png|437x253px]]
+
[[File:pi3b-img239.png]]
 +
</ol>
 +
<span id="usb-interface-test"></span>
  
<span id="usb-interface-test"></span>
 
 
== USB interface test ==
 
== USB interface test ==
  
'''The USB interface can connect USB Hub to expand the number of USB interfaces.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
 +
|
 +
<big>'''The USB interface can be connected to a USB hub to expand the number of USB interfaces.'''</big>
 +
|}
 +
 
 
<span id="connect-the-usb-mouse-or-keyboard-test"></span>
 
<span id="connect-the-usb-mouse-or-keyboard-test"></span>
 
=== Connect the USB mouse or keyboard test ===
 
=== Connect the USB mouse or keyboard test ===
  
# Insert the keyboard of the USB interface into the USB interface of Orange PI development board
+
# Insert the USB interface keyboard into the USB interface of the Orange Pi development board
 
# Connect Orange PI development board to HDMI display
 
# Connect Orange PI development board to HDMI display
# If the mouse or keyboard can normal operating systems, the USB interface is used normally (the mouse can only be used in the system of the desktop version)
+
# 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)
  
 
<span id="connect-the-usb-storage-device-test"></span>
 
<span id="connect-the-usb-storage-device-test"></span>
 +
 
=== Connect the USB storage device test ===
 
=== Connect the USB storage device test ===
  
# First insert the U disk or USB mobile hard disk into the USB interface of Orange PI development board
+
# First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board
# Execute the following command. If you can see the output of sdX, the U disk recognition is successful
+
# Execute the following command, if you can see the output of sdX, it means that the U disk is recognized successfully
  
orangepi@orangepi:~$ '''cat /proc/partitions | grep &quot;sd*&quot;'''
+
::{| class="wikitable" style="width:800px;"
 
+
|-
major minor #blocks name
+
|
 
+
orangepi@orangepi:~$ '''cat /proc/partitions | grep &quot;sd*&quot;'''<br>
8 0 30044160 '''sda'''
+
<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</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">'''sda'''</span><br>
8 1 30043119 '''sda1'''
+
<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>
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Use the mount command to mount the U disk into '''/mnt''', and then you can view the file in the U disk</li></ol>
+
<li>Use the mount command to mount the U disk into '''/mnt''', and then you can view the file in the U disk</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''
 
orangepi@orangepi:~$ '''sudo mount /dev/sda1 /mnt/'''
  
Line 3,831: Line 4,264:
  
 
test.txt
 
test.txt
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<li>After the mounting, you can view the capacity usage and mount point of the U disk through the '''df -h''' command</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''df -h | grep &quot;sd&quot;'''
 
orangepi@orangepi:~$ '''df -h | grep &quot;sd&quot;'''
  
/dev/sda1 29G 208K 29G 1% /mnt
+
/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>
  
<span id="usb-wireless-network-card-test"></span>
 
 
=== USB wireless network card test ===
 
=== 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
 
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"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
| No.
 
| No.
Line 3,851: Line 4,289:
 
|-
 
|-
 
| 1
 
| 1
| RTL8723BU
+
|  
 +
RTL8723BU
  
 
Support 2.4G WIFI+BT4.0
 
Support 2.4G WIFI+BT4.0
  
| [[File:pi3b-img240.png]]
+
|  
 +
[[File:pi3b-img240.png]]
 
|-
 
|-
 
| 2
 
| 2
| RTL8811
+
|  
 +
RTL8811
  
 
Support 2.4G +5G WIFI
 
Support 2.4G +5G WIFI
  
| [[File:pi3b-img241.png]]
+
|  
 +
[[File:pi3b-img241.png]]
 
|-
 
|-
 
| 3
 
| 3
| RTL8821CU
+
|  
 +
RTL8821CU
  
 
Support 2.4G +5G WIFI
 
Support 2.4G +5G WIFI
Line 3,871: Line 4,314:
 
Support BT 4.2
 
Support BT 4.2
  
| <div class="figure">
+
|  
 +
<div class="figure">
  
[[File:pi3b-img242.png|tb_imag e_share_1670833201 123]]
+
[[File:pi3b-img242.png]]
  
 
</div>
 
</div>
Line 3,882: Line 4,326:
  
 
# First insert the RTL8723BU wireless network card module into the USB interface of the development board
 
# First insert the RTL8723BU wireless network card module into the USB interface of the development board
# 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 command
+
# Then the Linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded
  
orangepi@orangepi:~$ '''lsmod'''
+
::{| class="wikitable" style="width:800px;"
 
+
|-
Module Size Used by
+
|
 
+
<p>orangepi@orangepi:~$ '''lsmod'''</p>
rfcomm 57344 16
+
<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>
rtl8xxxu 106496 0
+
<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>
rtk_btusb 61440 0
+
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>You can see the loading information of the RTL8723BU module through the dmesg command</li></ol>
+
<li>Through the dmesg command, you can see the loading information of the RTL8723BU module</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''dmesg'''
 
orangepi@orangepi:~$ '''dmesg'''
  
Line 3,958: Line 4,405:
  
 
[ 84.912046] rtl8xxxu 2-1:1.2 wlx0013eff458ae: renamed from wlan0
 
[ 84.912046] rtl8xxxu 2-1:1.2 wlx0013eff458ae: renamed from wlan0
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>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>
+
<li>Then you can see the RTL8723BU WIFI device node through the '''sudo ifconfig''' command. Please 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:~$ '''sudo ifconfig wlx0013eff458ae'''
 
orangepi@orangepi:~$ '''sudo ifconfig wlx0013eff458ae'''
  
 
wlx0013eff458ae: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
 
wlx0013eff458ae: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
  
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
+
::ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
  
RX packets 0 bytes 0 (0.0 B)
+
::RX packets 0 bytes 0 (0.0 B)
  
RX errors 0 dropped 0 overruns 0 frame 0
+
::RX errors 0 dropped 0 overruns 0 frame 0
  
TX packets 0 bytes 0 (0.0 B)
+
::TX packets 0 bytes 0 (0.0 B)
 
 
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 
  
 +
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 +
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</li></ol>
+
<li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt update &amp;&amp; sudo apt install bluez'''
 
orangepi@orangepi:~$ '''sudo apt update &amp;&amp; sudo apt install bluez'''
  
 
orangepi@orangepi:~$ '''hciconfig'''
 
orangepi@orangepi:~$ '''hciconfig'''
  
hci0: Type: Primary Bus: '''USB'''
+
hci0: Type: Primary Bus: '''<span style="color:#FF0000">USB</span>'''
  
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
+
::BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
  
DOWN
+
::DOWN
  
RX bytes:1252 acl:0 sco:0 events:125 errors:0
+
::RX bytes:1252 acl:0 sco:0 events:125 errors:0
 
 
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 
  
 +
::TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 +
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>You can also see the Bluetooth icon on the desktop. At this time, Bluetooth has not been opened, so a red '''x''' will be displayed</li></ol>
+
<li>You can also see the Bluetooth icon on the desktop. At this time, Bluetooth has not been opened, so a red '''<span style="color:#FF0000">x</span>''' will be displayed</li>
 
 
[[File:pi3b-img243.png|576x157px]]
 
  
 +
[[File:pi3b-img243.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Click '''Turn Bluetooth On''' to open Bluetooth</li></ol>
+
<li>Click '''Turn Bluetooth On''' to turn on Bluetooth</li>
 
 
[[File:pi3b-img244.png|576x262px]]
 
  
 +
[[File:pi3b-img244.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>The display after opening Bluetooth is shown below</li></ol>
+
<li>The display after turning on Bluetooth is as follows</li>
 
 
[[File:pi3b-img245.png|576x164px]]
 
  
 +
[[File:pi3b-img245.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Please refer to the [[\l|'''Bluetooth use method''']] for Bluetooth test method, so I won't go into details here.</li></ol>
+
<li>Please refer to the [[Orange Pi 3B#How to use Bluetooth|'''Bluetooth use method''']] for Bluetooth test method, so I won't go into details here.</li></ol>
  
 
<span id="rtl8811-test"></span>
 
<span id="rtl8811-test"></span>
 +
 
==== RTL8811 test ====
 
==== RTL8811 test ====
  
 
# First insert the RTL8811 wireless network card module into the USB interface of the development board.
 
# First insert the RTL8811 wireless network card module into the USB interface of the development board.
# 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
+
# Then the Linux system will automatically load the kernel modules related to RTL8811 WIFI, and you can see that the following kernel modules have been automatically loaded through the lsmod command
  
orangepi@orangepi:~$ '''lsmod'''
+
::{| class="wikitable" style="width:800px;"
 
+
|-
Module Size Used by
+
|
 
+
<p>orangepi@orangepi:~$ '''lsmod'''</p>
8821cu 1839104 0
+
<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>
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<li>Through the dmesg command, you can see the loading information of the RTL8811 module</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''dmesg'''
 
orangepi@orangepi:~$ '''dmesg'''
  
Line 4,043: Line 4,502:
  
 
[ 119.525498] rtl8821cu 2-1:1.0 wlx1cbfced9d260: renamed from wlan0
 
[ 119.525498] rtl8821cu 2-1:1.0 wlx1cbfced9d260: renamed from wlan0
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then you can see the WiFi device node through the '''sudo ifconfig''' command. Please refer to the [[\l|'''WiFi connection test a section''']] for WIFI connection and testing methods. I won't go into details her</li></ol>
+
<li>Then you can see the WiFi device node through the '''sudo ifconfig''' command. Please refer to the [[Orange Pi 3B#WIFI connection test|'''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'''
 
orangepi@orangepi:~$ '''sudo ifconfig wlx1cbfced9d260'''
  
 
wlx1cbfced9d260: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
 
wlx1cbfced9d260: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
  
ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet)
+
::ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet)
  
RX packets 0 bytes 0 (0.0 B)
+
::RX packets 0 bytes 0 (0.0 B)
  
RX errors 0 dropped 0 overruns 0 frame 0
+
::RX errors 0 dropped 0 overruns 0 frame 0
  
TX packets 0 bytes 0 (0.0 B)
+
::TX packets 0 bytes 0 (0.0 B)
  
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
+
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 +
|}
 +
</ol>
 +
<span id="rtl8821cu-test"></span>
  
<span id="rtl8821cu-test"></span>
 
 
==== RTL8821CU test ====
 
==== RTL8821CU test ====
  
 
# First insert the rtl8821cu wireless network card module into the USB interface of the development board
 
# 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
+
# 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
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;'''
 
orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;'''
  
 
Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC
 
Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC
 +
|}
 +
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''lsusb | grep &quot;Realtek&quot;'''
 +
 +
Bus 002 Device 002: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter ('''<span style="color:blue">Driver CDROM Mode</span>''')
  
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''')
+
<big>'''If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, please unplug the USB WIFI module again. If not, please manually execute the following command to switch to the next mode:'''</big>
  
'''If the USB WIFI module seen by the lsusb command is in Driver CDROM Mode, re -insert the USB WiFi module. If not, please manually execute the following command to switch the mode: '''
 
  
 
orangepi@orangepi:~$ '''sudo usb_modeswitch -KW -v 0bda -p 1a2b'''
 
orangepi@orangepi:~$ '''sudo usb_modeswitch -KW -v 0bda -p 1a2b'''
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>The Linux system will automatically load the RTL8821CU Bluetooth and WIFI -related kernel modules. You can see that the kernel module below is automatically loaded through the lsmod command</li></ol>
+
<li>The Linux system will automatically load the rtl8821cu bluetooth and wifi-related kernel modules, through the 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: 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</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''dmesg'''
  
orangepi@orangepi:~$ '''lsmod'''
+
......
  
Module Size Used by
+
[ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform
 
 
8821cu 1839104 0
 
 
 
rtk_btusb 61440 0
 
 
 
<ol start="4" style="list-style-type: decimal;">
 
<li>You can see the loading information of the rtl8821cu module through the dmesg command</li></ol>
 
 
 
orangepi@orangepi:~$ '''dmesg'''
 
 
 
......
 
 
 
[ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform
 
  
 
[ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00
 
[ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00
Line 4,144: Line 4,619:
  
 
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
 
[ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0
 +
|}
 +
</ol>
  
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then you can see the RTL8821CU WiFi device node through the '''sudo ifconfig''' command. Please refer to the [[\l|'''WiFi connection test''']] a section for WIFI connection and testing methods.</li></ol>
+
<li>Then you can see the RTL8821CU WiFi device node through the '''sudo ifconfig''' command. Please refer to the [[Orange Pi 3B#WIFI connection test|'''WiFi connection test chapter''']] for WIFI connection and testing methods.</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo ifconfig wlx90de80521825'''
 
orangepi@orangepi:~$ '''sudo ifconfig wlx90de80521825'''
  
 
wlx90de80521825: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
 
wlx90de80521825: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500
  
ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
+
::ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
  
RX packets 0 bytes 0 (0.0 B)
+
::RX packets 0 bytes 0 (0.0 B)
  
RX errors 0 dropped 0 overruns 0 frame 0
+
::RX errors 0 dropped 0 overruns 0 frame 0
  
TX packets 0 bytes 0 (0.0 B)
+
::TX packets 0 bytes 0 (0.0 B)
 
 
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 
  
 +
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 +
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</li></ol>
+
<li>Then you can see the USB Bluetooth device through the '''hciconfig''' command</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt-get update &amp;&amp; sudo apt-get install -y bluez'''
 
orangepi@orangepi:~$ '''sudo apt-get update &amp;&amp; sudo apt-get install -y bluez'''
  
 
orangepi@orangepi:~$ '''hciconfig'''
 
orangepi@orangepi:~$ '''hciconfig'''
  
hci0: Type: Primary Bus: '''USB'''
+
hci0: Type: Primary Bus: '''<span style="color:#FF0000">USB</span>'''
  
BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
+
::BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
  
DOWN
+
::DOWN
  
RX bytes:1252 acl:0 sco:0 events:125 errors:0
+
::RX bytes:1252 acl:0 sco:0 events:125 errors:0
 
 
TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 
  
 +
::TX bytes:23307 acl:0 sco:0 commands:125 errors:0
 +
|}
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Bluetooth icons can also be seen on the desktop. At this time, Bluetooth has not been opened, so a red '''x''' will be displayed</li></ol>
+
<li>Bluetooth icons can also be seen on the desktop. 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|576x157px]]
 
  
 +
[[File:pi3b-img243.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>Click '''Turn Bluetooth On''' to open Bluetooth</li></ol>
+
<li>Click '''Turn Bluetooth On''' to turn on Bluetooth</li>
 
 
[[File:pi3b-img244.png|576x262px]]
 
  
 +
[[File:pi3b-img244.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>The display after opening Bluetooth is shown below</li></ol>
+
<li>The display after turning on Bluetooth is as follows</li>
 
 
[[File:pi3b-img245.png|576x164px]]
 
  
 +
[[File:pi3b-img245.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>Please refer to the [[\l|'''Bluetooth use chapter''']] for the Bluetooth test method. I won't go into details her</li></ol>
+
<li>Please refer to the [[Orange Pi 3B#How to use Bluetooth|'''Bluetooth use chapter''']] for the Bluetooth test method. I won't go into details here</li></ol>
  
 
<span id="usb-camera-test"></span>
 
<span id="usb-camera-test"></span>
 +
 
=== USB Camera Test ===
 
=== USB Camera Test ===
  
# First, you need to prepare a USB camera that supports the UVC protocol in the figure below, and then insert the USB camera into the USB interface of the Orange PI development board
+
# 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
  
[[File:pi3b-img13.png|259x150px]]
+
::[[File:pi3b-img13.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''v4l2-ctl --list-devices'''
 
orangepi@orangepi:~$ '''v4l2-ctl --list-devices'''
  
Q8 HD Webcam: Q8 HD Webcam ('''usb'''-fc880000.usb-1):
+
Q8 HD Webcam: Q8 HD Webcam ('''<span style="color:#FF0000">usb</span>'''-fc880000.usb-1):
  
'''/dev/video0'''
+
:'''<span style="color:blue">/dev/video0</span>'''
  
/dev/video1
+
:/dev/video1
  
/dev/media0
+
:/dev/media0
 +
|}
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Note that the l in v4l2 is a lowercase letter l, not the number 1.'''
  
'''Note that l in v4l2 is a lowercase letter l, not numbers 1.'''
 
 
'''In addition, Video's serial number is not necessarily Video0, please refer to what you see.'''
 
  
 +
'''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: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<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>
+
<li>In the desktop system, Cheese can be used to directly open the USB camera. The method of opening Cheese is shown in the figure below:</li>
  
[[File:pi3b-img246.png|474x302px]]
+
[[File:pi3b-img246.png]]
  
The interface after cheese opens the USB camera is shown in the figure below:  
+
The interface after Cheese turns on the USB camera is shown in the figure below:
 
 
[[File:pi3b-img247.png|473x277px]]
 
  
 +
[[File:pi3b-img247.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
 
<li><p>How to test the USB camera using fswebcam</p>
 
<li><p>How to test the USB camera using fswebcam</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Install fswebcam</li></ol>
+
<li>Install fswebcam</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo''' '''apt update'''
 
orangepi@orangepi:~$ '''sudo''' '''apt update'''
  
 
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
 
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<li><p>After installing fswebcam, you can use the following command to take pictures</p>
 
<li><p>After installing fswebcam, you can use the following command to take pictures</p>
<ol style="list-style-type: lower-alpha;">
+
<ol style="list-style-type: none;">
<li><p>-d The option is used to specify the device node of the USB camera</p></li>
+
<li><p>a) -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>b) --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>c) -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>d) -S The option is used to set the number of previous frames to skip</p></li>
<li><p>./image.jpg The name and path for setting the generated photos</p></li></ol>
+
<li><p>e) ./image.jpg The name and path for setting the generated photos</p></li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo''' '''fswebcam -d /dev/video0 \'''
 
orangepi@orangepi:~$ '''sudo''' '''fswebcam -d /dev/video0 \'''
  
 
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
 
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<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>
+
<li>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''' [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)'''
 
orangepi@orangepi:~$ '''scp image.jpg''' [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="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>In the desktop version of the Linux system, you can directly view the shot pictures through the HDMI display</li></ol>
+
<li>In the desktop 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>
  
<span id="audio-test"></span>
 
 
== Audio Test ==
 
== Audio Test ==
  
Line 4,270: Line 4,770:
 
# First open the file manager
 
# First open the file manager
  
[[File:pi3b-img248.png|357x176px]]
+
::[[File:pi3b-img248.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: 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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img249.png|236x186px|图片10]]
+
[[File:pi3b-img249.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select the audio.wav file, right -click and select VLC to open it to start playing</li></ol>
+
<li>Then select the audio.wav file, right click and select open with vlc to start playing</li>
 
 
[[File:pi3b-img250.png|288x234px]]
 
  
 +
[[File:pi3b-img250.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
 
<li><p>Methods to switch different audio equipment such as HDMI playback and headset playback</p>
 
<li><p>Methods to switch different audio equipment such as HDMI playback and headset playback</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First open the volume control interface</li></ol>
+
<li>First open the volume control interface</li>
</li></ol>
 
 
 
[[File:pi3b-img251.png|308x169px]]
 
  
 +
[[File:pi3b-img251.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<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.</li></ol>
+
<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.</li>
  
[[File:pi3b-img252.png|576x282px]]
+
[[File:pi3b-img252.png]]
 +
</ol>
 +
</li></ol>
 +
<span id="how-to-play-audio-with-commands"></span>
  
<span id="how-to-play-audio-with-commands"></span>
 
 
=== How to play audio with commands ===
 
=== How to play audio with commands ===
  
Line 4,306: Line 4,807:
 
# First insert the headset into the headphone jack of the development board
 
# First insert the headset into the headphone jack of the development board
  
[[File:pi3b-img253.png|395x112px]]
+
::[[File:pi3b-img253.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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 '''card 0''' is the sound card device with RK809, which is the sound card device of the headset</li></ol>
+
<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 '''card 0''' is the sound card device with RK809, which is the sound card device of the headset</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''aplay -l'''
 
orangepi@orangepi:~$ '''aplay -l'''
  
**** List of PLAYBACK Hardware Devices ****
+
<p>**** List of PLAYBACK Hardware Devices ****</p>
  
 
'''card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]'''
 
'''card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]'''
  
'''Subdevices: 0/1'''
+
:'''Subdevices: 0/1'''
  
'''Subdevice #0: subdevice #0'''
+
:'''Subdevice #0: subdevice #0'''
  
 
card 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-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
+
:Subdevices: 0/1
  
Subdevice #0: subdevice #0
+
:Subdevice #0: subdevice #0
 
 
Subdevice #0: subdevice #0
 
  
 +
:Subdevice #0: subdevice #0
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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</li></ol>
+
<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</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''aplay -D hw:0,0 /usr/share/sounds/alsa/audio.wav'''
 
orangepi@orangepi:~$ '''aplay -D hw:0,0 /usr/share/sounds/alsa/audio.wav'''
  
 
Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 
Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
 +
|}
 +
</ol>
 +
<span id="hdmi-audio-play-test"></span>
  
<span id="hdmi-audio-play-test"></span>
 
 
==== HDMI Audio Play Test ====
 
==== HDMI Audio Play Test ====
  
Line 4,342: Line 4,852:
 
# Then check the sound card serial number of HDMI. From the output below, you can know that the HDMI sound card is '''card 1'''
 
# Then check the sound card serial number of HDMI. From the output below, you can know that the HDMI sound card is '''card 1'''
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''aplay -l'''
 
orangepi@orangepi:~$ '''aplay -l'''
  
**** List of PLAYBACK Hardware Devices ****
+
<p>**** List of PLAYBACK Hardware Devices ****</p>
  
 
card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]
 
card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]
  
Subdevices: 0/1
+
:Subdevices: 0/1
  
Subdevice #0: subdevice #0
+
:Subdevice #0: subdevice #0
  
 
'''card 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-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'''
+
:'''Subdevices: 0/1'''
  
'''Subdevice #0: subdevice #0'''
+
:'''Subdevice #0: subdevice #0'''
  
'''Subdevice #0: subdevice #0'''
+
:'''Subdevice #0: subdevice #0'''
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 +
{| 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:~$ '''aplay -D hw:1,0 /usr/share/sounds/alsa/audio.wav'''
+
=== Use the command to test the recording method ===
 
 
<span id="use-the-command-to-test-the-recording-method"></span>
 
=== 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
 
# 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
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''amixer -c 0 cset name='Capture MIC Path' 'Main Mic''''
 
orangepi@orangepi:~$ '''amixer -c 0 cset name='Capture MIC Path' 'Main Mic''''
  
 
orangepi@orangepi:~$ '''arecord -D hw:0,0 -d 5 -f cd -t wav /tmp/test.wav'''
 
orangepi@orangepi:~$ '''arecord -D hw:0,0 -d 5 -f cd -t wav /tmp/test.wav'''
 +
|}
  
 
<span id="temperature-sensor"></span>
 
<span id="temperature-sensor"></span>
 +
 
== Temperature Sensor ==
 
== Temperature Sensor ==
  
# The command of the system temperature sensor is:  
+
# The command to view the system temperature sensor is:  
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sensors'''
 
orangepi@orangepi:~$ '''sensors'''
  
Line 4,386: Line 4,912:
  
 
temp1: +41.9°C (crit = +115.0°C)
 
temp1: +41.9°C (crit = +115.0°C)
 +
  
 
gpu_thermal-virtual-0
 
gpu_thermal-virtual-0
Line 4,392: Line 4,919:
  
 
temp1: +43.8°C
 
temp1: +43.8°C
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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:~$ '''sudo smartctl -a /dev/nvme0 | grep &quot;Temperature:&quot;'''</p>
 
<p>orangepi@orangepi:~$ '''sudo smartctl -a /dev/nvme0 | grep &quot;Temperature:&quot;'''</p>
<p>Temperature: '''40 Celsius'''</p></li></ol>
+
<p>Temperature: '''<span style="color:#FF0000">40 Celsius</span>'''</p>
 +
|}
 +
</li></ol>
  
 
<span id="pin-interface-pin-explanation"></span>
 
<span id="pin-interface-pin-explanation"></span>
 +
 
== 40 Pin interface pin explanation ==
 
== 40 Pin interface pin explanation ==
  
Line 4,405: Line 4,939:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-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)]]
+
::[[File:pi3b-img254.png]]
  
 
</div>
 
</div>
Line 4,411: Line 4,945:
 
<li><p>The function of the Orange Pi 3B development board 40 PIN interface pins is shown in the table below.</p>
 
<li><p>The function of the Orange Pi 3B development board 40 PIN interface pins is shown in the table below.</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Below is a complete pins of 40pin</li></ol>
+
<li>Below is a complete pins of 40pin</li>
</li></ol>
 
 
 
[[File:pi3b-img255.png|575x160px]]
 
  
 +
[[File:pi3b-img255-1.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The following form is a picture on the left half of the full table above, which can be seen clearly</li>
 
 
[[File:pi3b-img256.png|478x267px]]
 
  
 +
[[File:pi3b-img256-1.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The following form is a picture on the right half of the top table above, which can be seen clearly</li>
 
 
[[File:pi3b-img257.png|479x266px]]
 
  
 +
[[File:pi3b-img257-1.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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:#FF0000">3.3v</span>'''</li></ol>
  
 
<span id="how-to-install-wiringop"></span>
 
<span id="how-to-install-wiringop"></span>
== How to install Wiringop ==
 
  
'''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.'''
+
== How to install wiringOP ==
 +
 
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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: '''
 
  
'''orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb'''
+
'''The storage path of the compiled wiringOP's Deb is wrapped in Orangepi-Build:'''
  
'''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.'''
+
'''<span style="color:blue">orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb</span>'''
 +
 
 +
 
 +
'''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.'''</big>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img258.png|575x355px|66AC(IBG%N8L@Y7(1BZPS`N]]
+
[[File:pi3b-img258-1.png]]
  
 
</div>
 
</div>
'''wiringOP is currently adapted to set the 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.'''
+
<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>
 +
|}
  
# Download the code of Wiringop
+
# Download the code of wiringOP
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt update'''
 
orangepi@orangepi:~$ '''sudo apt update'''
  
Line 4,454: Line 4,998:
  
 
orangepi@orangepi:~$ '''git clone https://github.com/orangepi-xunlong/wiringOP.git -b next'''
 
orangepi@orangepi:~$ '''git clone https://github.com/orangepi-xunlong/wiringOP.git -b next'''
 +
|}
  
'''Note that Orange Pi 3B needs to download the code of the wiringOP next branch, please don't miss the parameter of -b next.'''
+
::{| 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't miss the parameter of -b next.'''
  
'''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'''
+
 
 +
'''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'''</big>
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Compile and install wiringOP</li></ol>
+
<li>Compile and install wiringOP</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cd wiringOP'''
 
orangepi@orangepi:~$ '''cd wiringOP'''
  
Line 4,467: Line 5,020:
  
 
orangepi@orangepi:~/wiringOP$ '''sudo ./build'''
 
orangepi@orangepi:~/wiringOP$ '''sudo ./build'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Test the output of the GPIO Readall command as follows</li></ol>
+
<li>Test the output of the GPIO Readall command as follows</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img258.png|575x355px|66AC(IBG%N8L@Y7(1BZPS`N]]
+
[[File:pi3b-img258-1.png]]
  
</div>
+
</div></ol>
 
<span id="pin-interface-gpio-i2c-uart-spi-and-pwm-test"></span>
 
<span id="pin-interface-gpio-i2c-uart-spi-and-pwm-test"></span>
 +
 
== 40Pin interface GPIO, I2C, UART, SPI, and PWM test ==
 
== 40Pin interface GPIO, I2C, UART, SPI, and PWM test ==
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<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.'''</big>
  
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
  
'''overlays=spi3-m0-cs0-spidev i2c2-m1 i2c3-m0 uart7-m2 uart9-m2 pwm11-m1'''
+
'''<span style="color:#FF0000">overlays=spi3-m0-cs0-spidev i2c2-m1 i2c3-m0 uart7-m2 uart9-m2 pwm11-m1</span>'''
 +
|}
  
 
<span id="pin-gpio-port-test"></span>
 
<span id="pin-gpio-port-test"></span>
 
=== 40pin GPIO port test ===
 
=== 40pin GPIO port test ===
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''
 +
 
  
 
'''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 test whether the GPIO port can work normally'''
 
'''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 test whether the GPIO port can work normally'''
  
'''The method of running blink_all_gpio program is shown below: '''
 
  
orangepi@orangepi3b:~$ '''sudo blink_all_gpio''' #Remember to add Sudo permissions
+
'''The method of running blink_all_gpio program is shown below: '''</big>
  
[sudo] password for orangepi: #You need to enter a password here
+
orangepi@orangepi3b:~$ '''sudo blink_all_gpio''' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Remember to add Sudo permissions
  
# 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
+
[sudo] password for orangepi: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #You need to enter password here'''
 +
|}
  
[[File:pi3b-img259.png|576x120px]]
+
# 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_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
 +
 
 +
::[[File:pi3b-img259-1.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
root@orangepi:~/wiringOP# '''gpio mode 2 out'''
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">2</span> out'''
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-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 -electric flat is successful</li></ol>
+
<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>
  
root@orangepi:~/wiringOP# '''gpio write 2 0'''
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
root@orangepi:~/wiringOP# '''gpio write 2 <span style="color:#FF0000">0</span>'''
 +
|}
  
Using GPIO Readall, you can see the value of the No. 7 pin (v) to 0
+
Using GPIO Readall, you can see the value of the No. 7 pin (V) to 0
 
 
[[File:pi3b-img260.png|576x120px]]
 
  
 +
[[File:pi3b-img260.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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 3.3V, it means that the high-electricity level is successful</li></ol>
+
<li>Then set the GPIO port to output a high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means that the high level is set successfully.</li>
  
root@orangepi:~/wiringOP# '''gpio write 2 1'''
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
root@orangepi:~/wiringOP# '''gpio write 2 <span style="color:#FF0000">1</span>'''
 +
|}
  
 
Using GPIO Readall, you can see the value of No. 7 pin (v) into 1
 
Using GPIO Readall, you can see the value of No. 7 pin (v) into 1
  
[[File:pi3b-img261.png|576x118px]]
+
[[File:pi3b-img261-1.png]]
 
+
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>The setting method of other pins is similar. Just modify the serial number of the wPi sequence number as the corresponding serial number corresponding to the pin</li></ol>
+
<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>
  
 
<span id="pin-gpio-port--down-and-downward-pull--down-resistance-setting-method"></span>
 
<span id="pin-gpio-port--down-and-downward-pull--down-resistance-setting-method"></span>
=== 40Pin GPIO Port -down and downward pull -down resistance setting method ===
 
  
'''Note that the 4 GPIO pins below Orange Pi 3B are invalid because there are 3.3V on the outside, so setting drop -down is invalid. Other pins can be set normally'''
+
=== 40pin GPIO port pull-down resistance setting method ===
  
[[File:pi3b-img262.png|575x353px]]
+
{| 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.3V on the outside, so setting drop-down is invalid. Other pins can be set normally '''</big>
  
# 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 port
+
[[File:pi3b-img262-1.png|center]]
 +
|}
  
[[File:pi3b-img263.png|576x147px]]
+
# 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 port
 +
 
 +
::[[File:pi3b-img263-1.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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 5 in'''
+
|-
 
+
|
 +
root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5</span> in'''
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<li>After the setting is set to input mode, execute the following command to set the GPIO port as the pull-down mode</li>
 
+
{| class="wikitable" style="width:800px;"
root@orangepi:~/wiringOP# '''gpio mode 5 up'''
+
|-
 
+
|
 +
root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5</span> up'''
 +
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then enter the following command to read the level of the GPIO port. If the level is 1, it means that the drawing mode is successful</li></ol>
+
<li>Then enter the following command to read the level of the GPIO port. If the level is 1, it means that the drawing mode is successful</li>
 
+
{| class="wikitable" style="width:800px;"
root@orangepi:~/wiringOP# '''gpio read 5'''
+
|-
 
+
|
'''1'''
+
root@orangepi:~/wiringOP# '''gpio read <span style="color:#FF0000">5</span>'''
  
 +
'''<span style="color:#FF0000">1</span>'''
 +
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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></ol>
+
<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 5 down'''
+
|-
 
+
|
 +
root@orangepi:~/wiringOP# '''gpio mode <span style="color:#FF0000">5</span> down'''
 +
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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></ol>
+
<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# '''gpio read <span style="color:#FF0000">5</span>'''
  
root@orangepi:~/wiringOP# '''gpio read 5'''
+
'''<span style="color:#FF0000">0</span>'''
 
+
|}
'''0'''
+
</ol>
 +
<span id="pin-spi-test"></span>
  
<span id="pin-spi-test"></span>
 
 
=== 40pin SPI Test ===
 
=== 40pin SPI Test ===
  
 
# From the schematic diagram of the 40PIN interface, the SPI available for Orange Pi 3B is spi3
 
# From the schematic diagram of the 40PIN interface, the SPI available for Orange Pi 3B is spi3
  
[[File:pi3b-img264.png|577x193px]]
+
::[[File:pi3b-img264-1.png]]
  
'''In the Linux system, the SPI3 in 40pin is closed by default, and it needs to be opened manually to use.'''
+
<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>[[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 SPI configuration you want to open</p>
 +
<p>[[File:pi3b-3.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 configuration take effect</p>
 +
<p>[[File:pi3b-6.png]]</p>
 +
</li>
 +
</ol>
 +
</li></ol>
  
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the spi3.'''
+
<ol start="3" style="list-style-type: decimal;">
 
+
<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>
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
 
 
'''overlays=spi3-m0-cs0-spidev'''
 
 
 
<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. You can use it directly</li></ol>
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ls /dev/spidev3.0'''
 
orangepi@orangepi:~$ '''ls /dev/spidev3.0'''
  
 
/dev/spidev3.0
 
/dev/spidev3.0
 +
|}
 +
</ol>
 +
<ol start="4" style="list-style-type: decimal;">
 +
<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>
  
<ol start="3" style="list-style-type: decimal;">
+
{| class="wikitable" style="width:800px;"  
<li>Do not shorten the two pins of the SPI3 MOSI and MISO, and run the output result of the spidev_test as shown below. You can see that the data of TX and RX is inconsistent</li></ol>
+
|-
 
+
|
 
orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
 
orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
  
Line 4,601: Line 5,229:
 
max speed: 500000 Hz (500 KHz)
 
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 | ......@.…▒..................▒.
+
TX | 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 | ......@.…▒..................▒.
  
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 | ............................….
+
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 start="4" style="list-style-type: decimal;">
+
</ol>
<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>
+
<ol start="5" style="list-style-type: decimal;">
 
+
<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>
[[File:pi3b-img265.png|577x83px]]
 
  
 +
[[File:pi3b-img265.png]]
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
 
orangepi@orangepi:~$ '''sudo spidev_test -v -D /dev/spidev3.0'''
  
Line 4,618: Line 5,249:
 
max speed: 500000 Hz (500 KHz)
 
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 | ......@.…▒..................▒.
+
TX | 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 | ......@.…▒..................▒.
  
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 | ......@.…▒..................▒.
+
RX | 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 | ......@.…▒..................▒.
 +
|}
 +
</ol>
 +
<span id="pin-i2c-test"></span>
  
<span id="pin-i2c-test"></span>
 
 
=== 40pin I2C Test ===
 
=== 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.
 
# 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]]
+
::[[File:pi3b-img266-1.png]]
  
'''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'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''In the Linux system, the i2c in 40Pin is closed by default, and it needs to be opened manually to use.'''
+
|
 
+
<big>'''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'''</big>
'''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="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>After starting the Linux system, first confirm that the i2c device node exists under/dev</li></ol>
+
<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>[[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 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-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 configuration take effect</p>
 +
<p>[[File:pi3b-6.png]]</p>
 +
</li>
 +
</ol>
 +
</li></ol>
  
 +
<ol start="3" style="list-style-type: decimal;">
 +
<li>After starting the Linux system, first confirm that the i2c device node exists under/dev</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~# '''ls /dev/i2c-*'''
 
orangepi@orangepi:~# '''ls /dev/i2c-*'''
  
/dev/i2c-0 '''/dev/i2c-2''' '''/dev/i2c-3''' '''/dev/i2c-4''' /dev/i2c-6
+
/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="4" style="list-style-type: decimal;">
 +
<li>Then connect a i2c device on the i2c pin of the 40Pin connector</li>
  
<ol start="3" style="list-style-type: decimal;">
+
{| class="wikitable" style="width:800px;text-align: center;"
<li>Then connect a i2c device on the i2c pin of the 40Pin connector</li></ol>
 
 
 
{| class="wikitable"
 
 
|-
 
|-
 
|
 
|
Line 4,656: Line 5,319:
 
|i2c4-m0
 
|i2c4-m0
 
|-
 
|-
| Sda Pin
+
|  
 +
Sda Pin
 
|Corresponding to No. 3 pin
 
|Corresponding to No. 3 pin
 
|Corresponding to No. 27 pin
 
|Corresponding to No. 27 pin
 
|Corresponding to No. 19 pin
 
|Corresponding to No. 19 pin
 
|-
 
|-
| Sck Pin
+
|  
 +
Sck Pin
 
|Corresponding to No. 5 pin
 
|Corresponding to No. 5 pin
 
|Corresponding to No. 28 pin
 
|Corresponding to No. 28 pin
 
|Corresponding to No. 23 pin
 
|Corresponding to No. 23 pin
 
|-
 
|-
| Vcc Pin
+
|  
 +
Vcc Pin
 
|Corresponding to No. 1 pin
 
|Corresponding to No. 1 pin
 
|Corresponding to No. 1 pin
 
|Corresponding to No. 1 pin
 
|Corresponding to No. 1 pin
 
|Corresponding to No. 1 pin
 
|-
 
|-
| Gnd Pin
+
|  
 +
Gnd Pin
 
|Corresponding to No. 6 pin
 
|Corresponding to No. 6 pin
 
|Corresponding to No. 6 pin
 
|Corresponding to No. 6 pin
 
|Corresponding to No. 6 pin
 
|Corresponding to No. 6 pin
 
|}
 
|}
 
+
</ol>
<ol start="4" style="list-style-type: decimal;">
+
<ol start="5" 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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
 
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
  
Line 4,685: Line 5,354:
  
 
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command
 
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img267.png|476x179px|UN}~]Q}T_70O%Z%RNO8R@YE]]
+
[[File:pi3b-img267.png]]
  
</div>
+
</div></ol>
 
<span id="pin-uart-test"></span>
 
<span id="pin-uart-test"></span>
 +
 
=== 40pin UART test ===
 
=== 40pin 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
 
# 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
  
[[File:pi3b-img268.png|575x160px]]
+
::[[File:pi3b-img268-1.png]]
  
'''As 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'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''As 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'''</big>
 +
|}
  
'''In the Linux system, the uart in 40pin is closed by default, and it needs to be opened manually to use.'''
+
<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-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 configuration take effect</p>
 +
<p>[[File:pi3b-6.png]]</p>
 +
</li>
 +
</ol>
 +
</li></ol>
  
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the uart3, uart7, and uart9 at the same time. If you only need to open one, you can fill in one..'''
+
<ol start="3" 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>
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
 
 
'''overlays=uart3-m0 uart7-m2 uart9-m2'''
 
 
 
<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>
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~# '''ls /dev/ttyS*'''
 
orangepi@orangepi:~# '''ls /dev/ttyS*'''
  
/dev/ttyS1 '''/dev'''/'''ttyS3 /dev/ttyS7 /dev/ttyS9'''
+
/dev/ttyS1 &nbsp;&nbsp;&nbsp;&nbsp; '''/dev/ttyS3 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS7 &nbsp;&nbsp;&nbsp;&nbsp; /dev/ttyS9'''
 +
|}
 +
</ol>
 +
<ol start="4" style="list-style-type: decimal;">
 +
<li>Then start testing the uart interface, first use the rx and tx of the uart interface to be tested by DuPont</li>
  
<ol start="3" style="list-style-type: decimal;">
+
{| class="wikitable" style="width:800px;text-align: center;"
<li>Then start testing the uart interface, first use the rx and tx of the uart interface to be tested by DuPont</li></ol>
 
 
 
{| class="wikitable"
 
 
|-
 
|-
 
|
 
|
Line 4,733: Line 5,435:
 
|Corresponding to the 27 pin
 
|Corresponding to the 27 pin
 
|Corresponding to the 15 pin
 
|Corresponding to the 15 pin
|Corresponding to the 7 pin
+
|Corresponding to the 22 pin
 
|}
 
|}
  
[[File:pi3b-img269.png|545x134px]]
+
[[File:pi3b-img269-1.png]]
 
+
</ol>
<ol start="4" style="list-style-type: decimal;">
+
<ol start="5" style="list-style-type: 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</p>
 
<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</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Test UART3</li></ol>
+
<li>Test UART3</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS3'''
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS3'''
  
 
[sudo] password for orangepi: #Enter the password here.
 
[sudo] password for orangepi: #Enter the password here.
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 4,759: Line 5,463:
  
 
Out: 5: -&gt; 5^C
 
Out: 5: -&gt; 5^C
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Test UART7</li></ol>
+
<li>Test UART7</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS7'''
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS7'''
  
 
[sudo] password for orangepi: #Enter the password here.
 
[sudo] password for orangepi: #Enter the password here.
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 4,778: Line 5,486:
  
 
Out: 5: -&gt; 5^C
 
Out: 5: -&gt; 5^C
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Test UART9</li></ol>
+
<li>Test UART9</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS9'''
 
orangepi@orangepi:~$ '''sudo gpio serial /dev/ttyS9'''
  
 
[sudo] password for orangepi: #Enter the password here.
 
[sudo] password for orangepi: #Enter the password here.
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 4,797: Line 5,509:
  
 
Out: 5: -&gt; 5^C
 
Out: 5: -&gt; 5^C
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="pwm-test-method"></span>
  
<span id="pwm-test-method"></span>
 
 
=== PWM test method ===
 
=== PWM test method ===
  
 
# From the table below, the pwm11 available for Orange Pi 3B
 
# From the table below, the pwm11 available for Orange Pi 3B
  
[[File:pi3b-img270.png|575x160px]]
+
::[[File:pi3b-img270-1.png]]
 
 
'''In the Linux system, the pwm 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 pwm11.'''
 
 
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
 
 
'''overlays=pwm11-m1'''
 
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>After opening a pwm, a pwmchipX (X is a specific number) will be available in'''/sys/class/pwm/'''</li></ol>
+
<li><p>In the linux system, the PWM in the 40 pin is turned off by default, and it needs to be turned on 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 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 configuration take effect</p>
 +
<p>[[File:pi3b-6.png]]</p>
 +
</li>
 +
</ol>
 +
</li></ol>
  
 +
<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:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ls /sys/class/pwm/'''
 
orangepi@orangepi:~$ '''ls /sys/class/pwm/'''
  
 
pwmchip0 pwmchip1
 
pwmchip0 pwmchip1
 
+
|}
<ol start="3" style="list-style-type: decimal;">
+
</ol>
<li><p>Which pwmchip corresponds to pwm11 above? Let's first check out the output of '''ls /sys/class/pwm/ -l''' command, as shown below: </p></li>
+
<ol start="4" style="list-style-type: decimal;">
<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>
+
<li><p>Which pwmchip above corresponds to pwm11, let's check the output of the '''ls /sys/class/pwm/ -l''' command first, as shown below:</p></li>
 +
<li><p>Then it can be known from the table below that the base address of the pwm11 register is fe6f0030, and then look at the output of the '''ls /sys/class/pwm/ -l''' command, you can see that pwmchip1 is linked to fe6f0030.pwm, so pwm11 corresponds to pwmchip as pwmchip1</p></li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img271.png|576x46px|RCUS$_~VYM{4ZS]_L}DNZQR]]
+
[[File:pi3b-img271.png]]
 
 
</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>
 
  
 +
</div></ol>
 +
<ol start="6" style="list-style-type: 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)</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~# '''echo 0 &gt; /sys/class/pwm/pwmchip1/export'''
 
root@orangepi:~# '''echo 0 &gt; /sys/class/pwm/pwmchip1/export'''
  
Line 4,839: Line 5,582:
  
 
root@orangepi:~# '''echo 1 &gt; /sys/class/pwm/pwmchip1/pwm0/enable'''
 
root@orangepi:~# '''echo 1 &gt; /sys/class/pwm/pwmchip1/pwm0/enable'''
 +
|}
  
[[File:pi3b-img272.png|575x346px]]
+
[[File:pi3b-img272.png]]
  
 +
<li>The test method of pwm11 demonstrated above is similar to other pwm test methods.</li>
 +
</ol>
 
<span id="how-to-install-and-use-wiringop-python"></span>
 
<span id="how-to-install-and-use-wiringop-python"></span>
== How to install and use Wiringop-Python ==
 
  
'''Wiringop-Python is the library of the Python language 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.'''
+
== How to install and use wiringOP-Python ==
  
'''Please note that all the following command below is operated under the root user.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''wiringOP-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.'''
 +
 
 +
 
 +
'''In addition, please note that all the following commands are operated under the root user.'''</big>
 +
|}
  
 
<span id="wiringop-python-installation-method"></span>
 
<span id="wiringop-python-installation-method"></span>
=== Wiringop-Python installation method ===
+
=== wiringOP-Python installation method ===
  
 
# First install the dependency package
 
# First install the dependency package
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~# '''sudo apt-get update'''
 
root@orangepi:~# '''sudo apt-get update'''
  
 
root@orangepi:~# '''sudo apt-get -y install git swig python3-dev python3-setuptools'''
 
root@orangepi:~# '''sudo apt-get -y install git swig python3-dev python3-setuptools'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then use the following command to download the source code of wiringOP-Python</li></ol>
+
<li>Then use the following command to download the source code of wiringOP-Python</li>
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Note that the following git clone--recursivee command will automatically download the source code of wiringOP, because wiringOP-Python depends on wiringOP. Please make sure that the download process does not report an error due to network problems.'''
  
'''Note that the following git clone--recursivee command will automatically download the source code of Wiringop, because Wiringop-Python depends on Wiringop. Please make sure that the download process does not report an error due to network problems.'''
 
 
'''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'''
 
  
 +
'''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'''</big>
 +
|}
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~# '''git clone --recursive https://github.com/orangepi-xunlong/wiringOP-Python -b next'''
 
root@orangepi:~# '''git clone --recursive https://github.com/orangepi-xunlong/wiringOP-Python -b next'''
  
Line 4,870: Line 5,632:
  
 
root@orangepi:~/wiringOP-Python# '''git submodule update --init --remote'''
 
root@orangepi:~/wiringOP-Python# '''git submodule update --init --remote'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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></ol>
+
<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:~# '''cd wiringOP-Python'''
 
root@orangepi:~# '''cd wiringOP-Python'''
  
Line 4,879: Line 5,644:
  
 
root@orangepi:~/wiringOP-Python# '''sudo python3 setup.py install'''
 
root@orangepi:~/wiringOP-Python# '''sudo python3 setup.py install'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then enter the following command. If there is a help information output, it means that Wiringop-Python is successfully installed. Press the '''q''' key to exit the interface of the help information</li></ol>
+
<li>Then enter the following command. If there is a help information output, it means that Wiringop-Python is successfully installed. Press the '''q''' key to exit the interface of the help information</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; help(wiringpi)&quot;'''
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; help(wiringpi)&quot;'''
  
 
Help on module wiringpi:
 
Help on module wiringpi:
 +
  
 
NAME
 
NAME
  
wiringpi
+
:wiringpi
 +
 
  
 
DESCRIPTION
 
DESCRIPTION
  
# This file was automatically generated by SWIG (http://www.swig.org).
+
: # This file was automatically generated by SWIG (http://www.swig.org).
  
# Version 4.0.2
+
: # Version 4.0.2
  
#
+
: #
  
# Do not make changes to this file unless you know what you are doing--modify
+
: # Do not make changes to this file unless you know what you are doing--modify
 
 
# the SWIG interface file instead.
 
  
 +
: # the SWIG interface file instead.
 +
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>First use the Python3 command to enter the command line mode of Python3</li></ol>
+
<li>First use the Python3 command to enter the command line mode of Python3</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
root@orangepi:~# '''python3'''
 
root@orangepi:~# '''python3'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then import the Python module of WiringPi</li></ol>
+
<li>Then import the Python module of WiringPi</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
&gt;&gt;&gt; '''import wiringpi;'''
 
&gt;&gt;&gt; '''import wiringpi;'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Enter the following command to view the help information of Wiringop-Python, and press the '''q''' key to exit the interface of the help information</li></ol>
+
<li>Enter the following command to view the help information of wiringOP-Python, and press the '''q''' key to exit the interface of the help information</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
&gt;&gt;&gt; '''help(wiringpi)'''
 
&gt;&gt;&gt; '''help(wiringpi)'''
  
 
Help on module wiringpi:
 
Help on module wiringpi:
 +
  
 
NAME
 
NAME
  
wiringpi
+
:wiringpi
 +
 
  
 
DESCRIPTION
 
DESCRIPTION
  
# This file was automatically generated by SWIG (http://www.swig.org).
+
: # This file was automatically generated by SWIG (http://www.swig.org).
  
# Version 4.0.2
+
: # Version 4.0.2
  
#
+
: #
  
# Do not make changes to this file unless you know what you are doing--modify
+
: # Do not make changes to this file unless you know what you are doing--modify
 +
 
 +
: # the SWIG interface file instead.
  
# the SWIG interface file instead.
 
  
 
CLASSES
 
CLASSES
  
builtins.object
+
:builtins.object
  
GPIO
+
::GPIO
  
I2C
+
::I2C
  
Serial
+
::Serial
  
nes
+
::nes
  
class GPIO(builtins.object)
 
  
| GPIO(pinmode=0)
+
:class GPIO(builtins.object)
  
|
+
:| GPIO(pinmode=0)
  
&gt;&gt;&gt;
+
:|
  
<span id="pin-gpio-port-test-1"></span>
 
=== 40pin GPIO port test ===
 
  
'''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.'''
+
&gt;&gt;&gt;
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="pin-gpio-port-test-1"></span>
 +
 
 +
=== 40pin GPIO port test ===
 +
 
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''wiringOP-Python is the same 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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img258.png|575x355px|66AC(IBG%N8L@Y7(1BZPS`N]]
+
[[File:pi3b-img258.png|center]]
  
 
</div>
 
</div>
 +
|}
 
# Below the No. 7 pin — corresponding to GPIO4_a4 -corresponding WPI serial number 2 -to demonstrate how to set the height of the GPIO port
 
# Below the No. 7 pin — corresponding to GPIO4_a4 -corresponding WPI serial number 2 -to demonstrate how to set the height of the GPIO port
  
[[File:pi3b-img259.png|576x120px]]
+
::[[File:pi3b-img259.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>The steps of the command test are shown below directly: </p>
 
<li><p>The steps of the command test are shown below directly: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<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</li></ol>
+
<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</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
  
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ; \'''
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ; \'''
  
'''wiringpi.pinMode(2, GPIO.OUTPUT) ; &quot;'''
+
'''wiringpi.pinMode(<span style="color:#FF0000">2, GPIO.OUTPUT</span>) ; &quot;'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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# '''python3 -c &quot;import wiringpi; \'''
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
  
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\'''
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\'''
  
'''wiringpi.digitalWrite(2, GPIO.LOW)&quot;'''
+
'''wiringpi.digitalWrite(<span style="color:#FF0000">2, GPIO.LOW</span>)&quot;'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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 of the pins with a multimeter. If it is 3.3V, it means that the high -power flat is successful.</li></ol>
+
<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;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
 
root@orangepi:~/wiringOP-Python# '''python3 -c &quot;import wiringpi; \'''
  
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\'''
 
'''from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\'''
  
'''wiringpi.digitalWrite(2, GPIO.HIGH)&quot;'''
+
'''wiringpi.digitalWrite(<span style="color:#FF0000">2, GPIO.HIGH</span>)&quot;'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
 
<li><p>The steps of testing in the command line of Python3 are shown below: </p>
 
<li><p>The steps of testing in the command line of Python3 are shown below: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First use the Python3 command to enter the command line mode of Python3</li></ol>
+
<li>First use the Python3 command to enter the command line mode of Python3</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
root@orangepi:~# '''python3'''
 
root@orangepi:~# '''python3'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then import the Python module of WiringPi</li></ol>
+
<li>Then import the Python module of WiringPi</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
&gt;&gt;&gt; '''import wiringpi'''
 
&gt;&gt;&gt; '''import wiringpi'''
  
 
&gt;&gt;&gt; '''from wiringpi import GPIO'''
 
&gt;&gt;&gt; '''from wiringpi import GPIO'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then set the GPIO port 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.</li></ol>
+
<li>Then set the GPIO port 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.</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
&gt;&gt;&gt; '''wiringpi.wiringPiSetup()'''
 
&gt;&gt;&gt; '''wiringpi.wiringPiSetup()'''
  
 
0
 
0
  
&gt;&gt;&gt; '''wiringpi.pinMode(2, GPIO.OUTPUT)'''
+
&gt;&gt;&gt; '''wiringpi.pinMode(<span style="color:#FF0000">2, GPIO.OUTPUT</span>)'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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, GPIO.LOW)'''
+
|-
 
+
|
 +
&gt;&gt;&gt; '''wiringpi.digitalWrite(2, <span style="color:#FF0000">GPIO.LOW</span>)'''
 +
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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, GPIO.HIGH)'''
+
|-
 
+
|
 +
&gt;&gt;&gt; '''wiringpi.digitalWrite(2, <span style="color:#FF0000">GPIO.HIGH</span>)'''
 +
|}
 +
</ol>
 +
</li></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<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# '''cd examples'''
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
  
Line 5,047: Line 5,864:
  
 
root@orangepi:~/wiringOP-Python/examples'''# python3 blink.py'''
 
root@orangepi:~/wiringOP-Python/examples'''# python3 blink.py'''
 +
|}
 +
</ol>
 +
<span id="pin-spi-test-1"></span>
  
<span id="pin-spi-test-1"></span>
 
 
=== 40pin SPI test ===
 
=== 40pin SPI test ===
  
 
# From the schematic diagram of the 40pin interface, the SPI available for Orange Pi 3B is spi3
 
# From the schematic diagram of the 40pin interface, the SPI available for Orange Pi 3B is spi3
  
[[File:pi3b-img264.png|577x193px]]
+
::[[File:pi3b-img264.png]]
 +
 
 +
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''In the Linux system, the spi3 in 40pin is closed by default, and it needs to be opened manually to use.'''
  
'''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 spi4.'''
+
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the spi4.'''</big>
 +
 
  
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
  
'''overlays=spi3-m0-cs0-spidev'''
+
'''<span style="color:#FF0000">overlays=spi3-m0-cs0-spidev</span>'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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:~$ '''ls /dev/spidev3.0'''
 
orangepi@orangepi:~$ '''ls /dev/spidev3.0'''
  
 
/dev/spidev3.0
 
/dev/spidev3.0
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<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>
Line 5,076: Line 5,904:
 
<li><p>'''--port''': Specify the port number of SPI</p></li></ol>
 
<li><p>'''--port''': Specify the port number of SPI</p></li></ol>
 
</li>
 
</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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
  
Line 5,090: Line 5,920:
 
Opening device /dev/spidev3.0
 
Opening device /dev/spidev3.0
  
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 |......@.......…|
+
TX | 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 |......@.......…|
 
 
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 |.............….|
 
  
 +
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;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then use the TXD (No. 19 pins in the 40Pin interface) and RXD (No. 21 pins in the 40pin interface) of the DuPont line short connection SPI3. Like sending and receiving data, it means that the SPI3 loop test is normal</li></ol>
+
<li>Then use the TXD (No. 19 pins in the 40Pin interface) and RXD (No. 21 pins in the 40pin interface) of the DuPont line short connection SPI3. Like sending and receiving data, it means that the SPI3 loop test is normal</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
  
Line 5,109: Line 5,942:
 
Opening device /dev/spidev3.0
 
Opening device /dev/spidev3.0
  
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 |......@.......…|
+
TX | 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 |......@.......…|
  
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 |......@.......…|
+
RX | 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 |......@.......…|
 +
|}
 +
</ol>
 +
<span id="pin-i2c-test-1"></span>
  
<span id="pin-i2c-test-1"></span>
 
 
=== 40pin I2C test ===
 
=== 40pin I2C test ===
  
<ol start="5" style="list-style-type: decimal;">
+
<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</li></ol>
+
<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>
  
[[File:pi3b-img266.png|576x160px]]
+
[[File:pi3b-img266.png]]
 +
 
 +
{| 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. 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>
 +
|}
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''</big>
  
'''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'''
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
  
'''overlays=i2c2-m1 i2c3-m0 i2c4-m0'''
+
'''<span style="color:#FF0000">overlays=i2c2-m1 i2c3-m0 i2c4-m0</span>'''
 
+
|}
<ol start="6" style="list-style-type: decimal;">
+
</ol>
<li>After starting the Linux system, first confirm the I2C device node under/dev.</li></ol>
+
<ol start="2" style="list-style-type: decimal;">
 +
<li>After starting the Linux system, first confirm the I2C device node under/dev.</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~# '''ls /dev/i2c-*'''
 
orangepi@orangepi:~# '''ls /dev/i2c-*'''
  
/dev/i2c-0 '''/dev/i2c-2''' '''/dev/i2c-3''' '''/dev/i2c-4''' /dev/i2c-6
+
/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>Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example of the DS1307 RTC module.</li>
  
<ol start="7" style="list-style-type: decimal;">
+
{| class="wikitable" style="width:800px;text-align: center;"
<li>Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example of the DS1307 RTC module.</li></ol>
 
 
 
{| class="wikitable"
 
 
|-
 
|-
 
|
 
|
Line 5,169: Line 6,017:
 
|}
 
|}
  
[[File:pi3b-img273.png|180x153px]]
+
[[File:pi3b-img273.png]]
 
+
</ol>
<ol start="8" style="list-style-type: decimal;">
+
<ol start="4" 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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
 
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
  
Line 5,179: Line 6,029:
  
 
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command
 
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img274.png|464x174px|V@(61L~0})Q`8VLBCAYEP[2]]
+
[[File:pi3b-img274.png]]
 
 
</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>
 
  
 +
</div></ol>
 +
<ol start="5" 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>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
 
root@orangepi:~/wiringOP-Python# '''cd examples'''
  
Line 5,203: Line 6,056:
  
 
exit
 
exit
 +
|}
 +
</ol>
 +
<span id="pins-uart-test."></span>
  
<span id="pins-uart-test."></span>
 
 
=== 40pin's UART test ===
 
=== 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
 
# 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
  
[[File:pi3b-img268.png|575x160px]]
+
::[[File:pi3b-img268.png]]
  
'''As 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'''
+
::{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 +
|-
 +
|
 +
<big>'''As 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'''</big>
 +
|}
  
'''In the Linux system, the UART in 40pin is closed by default, and it needs to be opened manually to use.'''
+
::{| class="wikitable" style="width:800px;background-color:#ffffdc;"
 +
|-
 +
|
 +
<big>'''In the Linux system, the 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 UART3, UART7, and UART9 at the same time. If you only need to open one, you can fill in one'''
+
'''Add the configuration of the red font part below to the /boot/orangepiEnv.txt, and then restart the Linux system to open the UART3, UART7, and 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'''
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
  
'''overlays=uart3-m0 uart7-m2 uart9-m2'''
+
'''<span style="color:#FF0000">overlays=uart3-m0 uart7-m2 uart9-m2</span>'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>After entering the Linux system, first confirm whether there is a device node corresponding to UART under/dev</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~# '''ls /dev/ttyS*'''
 
orangepi@orangepi:~# '''ls /dev/ttyS*'''
  
/dev/ttyS1 '''/dev'''/'''ttyS3 /dev/ttyS7 /dev/ttyS9'''
+
/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;">
 
<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>
+
<li>Then start testing the UART interface, and first use the RX and TX of the UART interface to be tested by DuPont</li>
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|
 
|
Line 5,248: Line 6,115:
 
|Corresponding to the 7 pin
 
|Corresponding to the 7 pin
 
|}
 
|}
 
+
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>Test UART3</li></ol>
+
<li>Test UART3</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
  
 
'''&quot;/dev/ttyS3&quot;'''
 
'''&quot;/dev/ttyS3&quot;'''
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 5,270: Line 6,139:
  
 
exit
 
exit
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Test UART7</li></ol>
+
<li>Test UART7</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
  
 
'''&quot;/dev/ttyS7&quot;'''
 
'''&quot;/dev/ttyS7&quot;'''
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 5,289: Line 6,162:
  
 
exit
 
exit
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Test UART9</li></ol>
+
<li>Test UART9</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
 
root@orangepi:~/wiringOP-Python/examples# '''python3 serialTest.py --device \'''
  
 
'''&quot;/dev/ttyS9&quot;'''
 
'''&quot;/dev/ttyS9&quot;'''
 +
  
 
Out: 0: -&gt; 0
 
Out: 0: -&gt; 0
Line 5,308: Line 6,185:
  
 
exit
 
exit
 
+
|}
 +
</ol>
 +
</li></ol>
 
<span id="hardware-watch-the-door-dog-test"></span>
 
<span id="hardware-watch-the-door-dog-test"></span>
  
Line 5,319: Line 6,198:
 
<ol style="list-style-type: lower-alpha;">
 
<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>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 (except ESC). After the dog is fed, the program will print a line of Keep Alive to indicate that the dog is successful</p></li></ol>
+
<li><p>We can feed the dog by pressing any keys on the keyboard (except ESC). After the dog is fed, the program will print a line of Keep Alive to indicate that the dog is successful</p></li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo watchdog_test 10'''
 
orangepi@orangepi:~$ '''sudo watchdog_test 10'''
  
Line 5,344: Line 6,226:
  
 
keep alive
 
keep alive
 +
|}
 +
</ol>
 +
<span id="check-the-serial-number-of-the-rk3566-chip"></span>
  
<span id="check-the-serial-number-of-the-rk3566-chip"></span>
 
 
== Check the serial number of the RK3566 chip ==
 
== Check the serial number of the RK3566 chip ==
  
 
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.
 
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.
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cat_serial.sh'''
 
orangepi@orangepi:~$ '''cat_serial.sh'''
  
 
Serial : '''8fa18eaf489041f0'''
 
Serial : '''8fa18eaf489041f0'''
 +
|}
  
 
<span id="the-method-of-downloading-and-installing-the-balenaetcher-version-of-arm64"></span>
 
<span id="the-method-of-downloading-and-installing-the-balenaetcher-version-of-arm64"></span>
 +
 
== The method of downloading and installing the balenaEtcher version of arm64 ==
 
== The method of downloading and installing the balenaEtcher version of arm64 ==
  
Line 5,360: Line 6,249:
 
<li><p>The download address of Balenaetcher ARM64 version is: </p>
 
<li><p>The download address of Balenaetcher ARM64 version is: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>The download address of the Deb installation package is shown below, and it needs to be installed to use</li>
</li></ol>
+
{| 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
+
|
 
+
'''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="list-style-type: lower-alpha;">
 
<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>
+
<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
+
|-
 +
|
 +
'''https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balenaEtcher-1.7.9+5945ab1f-arm64.AppImage'''
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img275.png|527x211px|IMG_256]]
+
[[File:pi3b-img275.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>How to install and use the deb version of Balenaetcher: </p>
 
<li><p>How to install and use the deb version of Balenaetcher: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>deb version of Balenaetcher installation commands as shown below: </li></ol>
+
<li>deb version of Balenaetcher installation commands as shown below: </li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install -y \'''
 
orangepi@orangepi:~$ '''sudo apt install -y \'''
  
 
'''--fix-broken ./balena-etcher-electron_1.7.9+5945ab1f_arm64.deb'''
 
'''--fix-broken ./balena-etcher-electron_1.7.9+5945ab1f_arm64.deb'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<li>After the deb version of Balenaetcher is installed, it can be opened in the Application</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img89.png|507x249px|IMG_256]]
+
[[File:pi3b-img89.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The interface after Balenaetcher is opened is shown below: </li></ol>
+
<li>The interface after Balenaetcher is opened is shown below: </li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img276.png|429x263px|IMG_256]]
+
[[File:pi3b-img276.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
 
<li><p>How to use the AppImage version of balenaEtcher: </p>
 
<li><p>How to use the AppImage version of balenaEtcher: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First add permissions to Balenaetcher</li></ol>
+
<li>First add permissions to Balenaetcher</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~/Desktop$ '''chmod +x balenaEtcher-1.7.9+5945ab1f-arm64.AppImage'''
 
orangepi@orangepi:~/Desktop$ '''chmod +x balenaEtcher-1.7.9+5945ab1f-arm64.AppImage'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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</li></ol>
+
<li>Then select the AppImage version balenaEtcher right -click the mouse, and then click Execute to open balenaEtcher</li>
  
[[File:pi3b-img277.png|145x118px]]
+
[[File:pi3b-img277.png]]
 +
</ol>
 +
</li></ol>
 +
<span id="the-installation-method-of-the-bt-panel-linux-panel"></span>
  
<span id="the-installation-method-of-the-bt-panel-linux-panel"></span>
 
 
== The installation method of the Bt-Panel Linux panel ==
 
== 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 (excerpted from the [https://www.bt.cn/new/index.html official website of the Bt-Panel])'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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 (excerpted from the [https://www.bt.cn/new/index.html official website of the Bt-Panel])'''</big>
 +
|}
  
# 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:  
+
# First of all, the size of the'''/tmp''' space is needed. After setting, you need to '''<span style="color:#FF0000">restart the Linux system of the development board</span>''', and the command is shown below:  
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo sed -i 's/nosuid/&amp;,size=2G/' /etc/fstab'''
 
orangepi@orangepi:~$ '''sudo sed -i 's/nosuid/&amp;,size=2G/' /etc/fstab'''
  
 
orangepi@orangepi:~$ '''sudo reboot'''
 
orangepi@orangepi:~$ '''sudo reboot'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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;'''
 
orangepi@orangepi:~$ '''df -h | grep &quot;/tmp&quot;'''
  
tmpfs 2.0G 12K '''2.0G''' 1% /tmp
+
tmpfs &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;">
 
<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>
+
<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'''
 
orangepi@orangepi:~$ '''sudo install_bt_panel.sh'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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 y at this time</li></ol>
+
<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;"
 +
|-
 +
|
 
+----------------------------------------------------------------------
 
+----------------------------------------------------------------------
  
| Bt-WebPanel FOR CentOS/Ubuntu/Debian
+
<p>| Bt-WebPanel FOR CentOS/Ubuntu/Debian</p>
  
 
+----------------------------------------------------------------------
 
+----------------------------------------------------------------------
  
| Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved.
+
<p>| Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved.</p>
  
 
+----------------------------------------------------------------------
 
+----------------------------------------------------------------------
  
| The WebPanel URL will be http://SERVER_IP:8888 when installed.
+
<p>| The WebPanel URL will be http://SERVER_IP:8888 when installed.</p>
  
 
+----------------------------------------------------------------------
 
+----------------------------------------------------------------------
  
Do you want to install Bt-Panel to the /www directory now?(y/n): '''y'''
 
  
 +
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;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then you have to wait patiently. When you see the printing information below the terminal output, it means that the pagoda has been installed. The entire installation process takes about 34 minutes. There may be some differences according to the difference in network speed</li></ol>
+
<li>Then you have to wait patiently. When you see the printing information below the terminal output, it means that the pagoda has been installed. The entire installation process takes about 34 minutes. There may be some differences according to the difference in network speed</li>
 
 
[[File:pi3b-img278.png|576x233px]]
 
  
 +
[[File:pi3b-img278.png|800px]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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 />
 
<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>
+
[[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></ol>
+
<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|575x317px]]
 
  
 +
[[File:pi3b-img280.png|1200px]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img281.png|576x300px]]
 
  
 +
[[File:pi3b-img281.png|1200px]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<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>
+
<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|575x306px]]
 
  
 +
[[File:pi3b-img282.png|1200px]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>More functions of the Bt-Panel can refer to the following information to explore by yourself</li></ol>
+
<li>More functions of the Bt-Panel can refer to the following information to explore by yourself</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
Manual: [http://docs.bt.cn '''http://docs.bt.cn''']
 
Manual: [http://docs.bt.cn '''http://docs.bt.cn''']
  
Line 5,486: Line 6,409:
  
 
GitHub Link: '''https://github.com/aaPanel/BaoTa'''
 
GitHub Link: '''https://github.com/aaPanel/BaoTa'''
 +
|}
 +
</ol>
 +
<span id="set-the-chinese-environment-and-install-chinese-input-method"></span>
  
<span id="set-the-chinese-environment-and-install-chinese-input-method"></span>
 
 
== Set the Chinese environment and install Chinese input method ==
 
== Set the Chinese environment and install Chinese input method ==
  
'''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.'''
+
{| 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>
 +
|}
  
 
<span id="debian-system-installation-method"></span>
 
<span id="debian-system-installation-method"></span>
Line 5,498: Line 6,427:
 
<li><p>First set the default '''locale''' as Chinese</p>
 
<li><p>First set the default '''locale''' as Chinese</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Enter the command below to start configured '''locale'''</li></ol>
+
<li>Enter the command below to start configured '''locale'''</li>
</li></ol>
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''
 
orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
 
 
[[File:pi3b-img283.png|575x296px]]
 
  
 +
[[File:pi3b-img283.png|1200px]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then set the default '''locale''' as '''zh_CN.UTF-8'''</li></ol>
+
<li>Then set the default '''locale''' as '''zh_CN.UTF-8'''</li>
 
 
[[File:pi3b-img284.png|575x160px]]
 
  
 +
[[File:pi3b-img284.png|1200px]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>After exiting the interface, the '''locale''' settings will be started. The output displayed by the command line is shown below</li></ol>
+
<li>After exiting the interface, 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'''
 
orangepi@orangepi:~$ '''sudo dpkg-reconfigure locales'''
  
 
Generating locales (this might take a while)...
 
Generating locales (this might take a while)...
  
en_US.UTF-8... done
+
:en_US.UTF-8... done
  
zh_CN.UTF-8... done
+
:zh_CN.UTF-8... done
  
 
Generation complete.
 
Generation complete.
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then open '''Input Method'''</li></ol>
+
<li>Then open '''Input Method'''</li>
 
 
[[File:pi3b-img285.png|575x361px]]
 
  
 +
[[File:pi3b-img285.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select '''OK'''</li></ol>
+
<li>Then select '''OK'''</li>
 
 
[[File:pi3b-img286.png|295x212px]]
 
  
 +
[[File:pi3b-img286.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Yes'''</li></ol>
+
<li>Then select '''Yes'''</li>
 
 
[[File:pi3b-img287.png|303x192px]]
 
  
 +
[[File:pi3b-img287.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then select '''fcitx'''</li></ol>
+
<li>Then select '''fcitx'''</li>
 
 
[[File:pi3b-img288.png|307x220px]]
 
  
 +
[[File:pi3b-img288.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then select '''OK'''</li></ol>
+
<li>Then select '''OK'''</li>
 
 
[[File:pi3b-img289.png|305x216px]]
 
  
 +
[[File:pi3b-img289.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li><p>'''Then restart the Linux system to make the configuration effective'''</p></li>
+
<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></ol>
+
<li><p>Then open '''Fcitx configuration'''</p></li>
 
 
[[File:pi3b-img290.png|575x376px]]
 
  
 +
[[File:pi3b-img290.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then click the + of the position shown in the figure below</li></ol>
+
<li>Then click the + of the position shown in the figure below</li>
 
 
[[File:pi3b-img291.png|280x187px]]
 
  
 +
[[File:pi3b-img291.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>Then search '''Google Pinyin''' and click '''OK'''</li></ol>
+
<li>Then search '''Google Pinyin''' and click '''OK'''</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img292.png|291x196px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-10.jpg未标题-10]]
+
[[File:pi3b-img292.png]]
  
</div>
+
</div></ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
<li>Then put '''Google Pinyin''' to the front</li></ol>
+
<li>Then put '''Google Pinyin''' to the front</li>
  
[[File:pi3b-img293.png|299x202px]]
+
[[File:pi3b-img293.png]]
 
 
[[File:pi3b-img294.png|300x202px]]
 
  
 +
[[File:pi3b-img294.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" style="list-style-type: decimal;">
<li>Then open the '''Geany''' editor to test the Chinese input method</li></ol>
+
<li>Then open the '''Geany''' editor to test the Chinese input method</li>
 
 
[[File:pi3b-img295.png|349x212px]]
 
  
 +
[[File:pi3b-img295.png]]
 +
</ol>
 
<ol start="13" style="list-style-type: decimal;">
 
<ol start="13" style="list-style-type: decimal;">
<li>The Chinese input method test is shown below</li></ol>
+
<li>The Chinese input method test is shown below</li>
 
 
[[File:pi3b-img296.png|575x325px]]
 
  
 +
[[File:pi3b-img296.png]]
 +
</ol>
 
<ol start="14" style="list-style-type: decimal;">
 
<ol start="14" style="list-style-type: decimal;">
 
<li><p>You can switch the Chinese and English input method through the '''Ctrl+Space''' shortcut</p></li>
 
<li><p>You can switch the Chinese and English input method through the '''Ctrl+Space''' 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.UTF-8'''</p></li></ol>
+
<li><p>If the entire system is required as Chinese, the variables in '''/etc/default/locale''' can be set to '''zh_CN.UTF-8'''</p></li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo vim /etc/default/locale'''
 
orangepi@orangepi:~$ '''sudo vim /etc/default/locale'''
  
# File generated by update-locale
+
<p># File generated by update-locale</p>
  
LC_MESSAGES='''zh_CN.UTF-8'''
+
LC_MESSAGES='''<span style="color:#FF0000">zh_CN.UTF-8</span>'''
  
LANG='''zh_CN.UTF-8'''
+
LANG='''<span style="color:#FF0000">zh_CN.UTF-8</span>'''
 
 
LANGUAGE='''zh_CN.UTF-8'''
 
  
 +
LANGUAGE='''<span style="color:#FF0000">zh_CN.UTF-8</span>'''
 +
|}
 +
</ol>
 
<ol start="16" style="list-style-type: decimal;">
 
<ol start="16" style="list-style-type: decimal;">
<li>Then '''restart the system''' to see the system displayed as Chinese</li></ol>
+
<li>Then '''<span style="color:#FF0000">restart the system</span>''' to see the system displayed as Chinese</li>
  
[[File:pi3b-img297.png|576x356px]]
+
[[File:pi3b-img297.png]]
 +
</ol>
 +
<span id="the-installation-method-of-ubuntu-20.04-system"></span>
  
<span id="the-installation-method-of-ubuntu-20.04-system"></span>
 
 
=== The installation method of Ubuntu 20.04 system ===
 
=== The installation method of Ubuntu 20.04 system ===
  
 
# First open '''Language Support'''
 
# First open '''Language Support'''
  
[[File:pi3b-img298.png|575x351px]]
+
::[[File:pi3b-img298.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then find '''Chinese (China)''' option</li></ol>
+
<li>Then find '''Chinese (China)''' option</li>
 
 
[[File:pi3b-img299.png|318x311px]]
 
  
 +
[[File:pi3b-img299.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<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 is shown below: </li></ol>
+
<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 is shown below: </li>
  
[[File:pi3b-img300.png|324x320px]]
+
[[File:pi3b-img300.png]]
 
 
'''Note that this step is not easy to drag, please try more patiently.'''
 
  
 +
{| 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="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li></ol>
+
<li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li>
 
 
[[File:pi3b-img301.png|321x316px]]
 
  
 +
[[File:pi3b-img301.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then set the '''Keyboard input method system''' to '''fcitx'''</li></ol>
+
<li>Then set the '''Keyboard input method system''' to '''fcitx'''</li>
 
 
[[File:pi3b-img302.png|327x320px]]
 
  
 +
[[File:pi3b-img302.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li><p>'''hen restart the Linux system to make the configuration effective'''</p></li>
+
<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 '''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>
+
<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>
 
 
[[File:pi3b-img303.png|303x247px]]
 
  
 +
[[File:pi3b-img303.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>Then you can see that the desktop is displayed as Chinese</li></ol>
+
<li>Then you can see that the desktop is displayed as Chinese</li>
 
 
[[File:pi3b-img304.png|575x383px]]
 
  
 +
[[File:pi3b-img304.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-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>
+
<li>Then we can open the '''Geany''' to test Chinese input method , and the way to open is shown in the figure below</li>
 
 
[[File:pi3b-img305.png|576x292px]]
 
  
 +
[[File:pi3b-img305.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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></ol>
+
<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>
  
[[File:pi3b-img306.png|575x308px]]
+
[[File:pi3b-img306.png]]
 +
</ol>
 +
<span id="the-installation-method-of-ubuntu-22.04-system"></span>
  
<span id="the-installation-method-of-ubuntu-22.04-system"></span>
 
 
=== The installation method of ubuntu 22.04 system ===
 
=== The installation method of ubuntu 22.04 system ===
  
 
# First open '''Language Support'''
 
# First open '''Language Support'''
  
[[File:pi3b-img298.png|575x351px]]
+
::[[File:pi3b-img298.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then find '''Chinese (China)''' option</li></ol>
+
<li>Then find '''Chinese (China)''' option</li>
 
 
[[File:pi3b-img307.png|335x326px]]
 
  
 +
[[File:pi3b-img307.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<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>
+
<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>
  
[[File:pi3b-img308.png|337x331px]]
+
[[File:pi3b-img308.png]]
 
 
'''Note that this step is not easy to drag, please try more patiently.'''
 
  
 +
{| 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="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li></ol>
+
<li>Then select the '''Apply System-Wide''' to apply the Chinese settings to the entire system</li>
 
 
[[File:pi3b-img309.png|336x330px]]
 
  
 +
[[File:pi3b-img309.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li><p>'''Then restart the Linux system to make the configuration effective'''</p></li>
+
<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 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>
+
<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>
 
 
[[File:pi3b-img303.png|303x247px]]
 
  
 +
[[File:pi3b-img303.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Then you can see that the desktop is displayed as Chinese</li></ol>
+
<li>Then you can see that the desktop is displayed as Chinese</li>
 
 
[[File:pi3b-img304.png|575x383px]]
 
  
 +
[[File:pi3b-img304.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>Then open the Fcitx5 configuration program</li></ol>
+
<li>Then open the Fcitx5 configuration program</li>
 
 
[[File:pi3b-img310.png|575x349px]]
 
  
 +
[[File:pi3b-img310.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then choose to use Pinyin input method</li></ol>
+
<li>Then choose to use Pinyin input method</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img311.png|338x267px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-11.jpg未标题-11]]
+
[[File:pi3b-img311.png]]
  
</div>
+
</div></ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>The interface after the selection is shown below, then click OK</li></ol>
+
<li>The interface after the selection is shown below, then click OK</li>
 
 
[[File:pi3b-img312.png|366x290px]]
 
  
 +
[[File:pi3b-img312.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-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>
+
<li>Then we can open the '''Geany''' to test Chinese input method, and the way to open is shown in the figure below</li>
 
 
[[File:pi3b-img305.png|576x292px]]
 
  
 +
[[File:pi3b-img305.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" 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>
+
<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>
  
[[File:pi3b-img313.png|576x408px]]
+
[[File:pi3b-img313.png]]
 +
</ol>
 +
<span id="how-to-remotely-log-in-to-the-linux-system-desktop-method"></span>
  
<span id="how-to-remotely-log-in-to-the-linux-system-desktop-method"></span>
 
 
== How to remotely log in to the Linux system desktop method ==
 
== How to remotely log in to the Linux system desktop method ==
  
'''Ubuntu Gnome Wayland image does not support Nomachine and VNCs introduced here to remotely log in to the desktop.'''
+
{| 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.'''</big>
 +
|}
  
 
<span id="use-nomachine-remote-login"></span>
 
<span id="use-nomachine-remote-login"></span>
 
=== Use nomachine remote login ===
 
=== Use nomachine remote login ===
  
'''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: '''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''Make 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: '''
  
'''https://knowledgebase.nomachine.com/DT10R00166'''
+
'''https://knowledgebase.nomachine.com/DT10R00166'''</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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''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 normally.'''
+
|
 +
<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.'''</big>
 +
|}
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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 normally.'''</big>
 +
|}
  
 
<ol style="list-style-type: decimal;">
 
<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</p>
+
<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-type: lower-alpha;">
 
<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 DEB''' installation package here. The download link is shown below: </li></ol>
+
<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>
</li></ol>
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
'''Note that this download link may change, please recognize the DEB package of the ARMV8/ARM64 version.'''
+
|
 
+
<big>'''Note that this download link may change, please recognize the DEB package of the ARMV8/ARM64 version.'''</big>
 +
|}
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[https://www.nomachine.com/download/download&id=112&s=ARM '''https://downloads.nomachine.com/download/?id=118&amp;distro=ARM''']
 
[https://www.nomachine.com/download/download&id=112&s=ARM '''https://downloads.nomachine.com/download/?id=118&amp;distro=ARM''']
 +
|}
  
[[File:pi3b-img314.png|575x227px]]
+
[[File: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>
  
<ol start="2" style="list-style-type: lower-alpha;">
+
[[File:pi3b-img315.png]]
<li>In addition, you can also download the installation package to '''NoMachine''' in the '''official tools'''.</li></ol>
 
  
[[File:pi3b-img315.png|66x102px]]
+
First enter the '''remote login software-Nomachine''' folder
  
<blockquote>First enter the '''remote login software-Nomachine''' folder
+
[[File:pi3b-img316.png]]
</blockquote>
 
[[File:pi3b-img316.png|271x43px]]
 
  
<blockquote>Then download the ARM64 version of the DEB installation package
+
Then download the ARM64 version of the DEB installation package
</blockquote>
 
[[File:pi3b-img317.png|180x109px]]
 
  
 +
[[File:pi3b-img317.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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 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>
+
<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'''
 
orangepi@orangepi:~$ '''sudo dpkg -i nomachine_x.x.x_x_arm64_arm64.deb'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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</li></ol>
+
<li>Then download the nomachine software Windows version of the installation package, the download address is shown below</li>
 
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
'''Note that this download link may change.'''
+
|-
 
+
|
'''https://downloads.nomachine.com/download/?id=9'''
+
<big>'''Note that this download link may change.'''</big>
 
+
|}
[[File:pi3b-img318.png|575x163px]]
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''https://downloads.nomachine.com/download/?id=9'''
 +
|}
  
 +
[[File:pi3b-img318.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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 install nomachine in Windows. '''Please restart the computer after installation'''</p></li>
<li><p>Then open '''NoMachine''' in Window</p></li></ol>
+
<li><p>Then open '''NoMachine''' in Window</p></li>
 
 
[[File:pi3b-img319.png|76x66px]]
 
  
 +
[[File:pi3b-img319.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img320.png|321x92px]]
 
  
 +
[[File:pi3b-img320.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then click '''OK'''</li></ol>
+
<li>Then click '''OK'''</li>
 
 
[[File:pi3b-img321.png|402x275px]]
 
  
 +
[[File:pi3b-img321.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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></ol>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img322.png|303x204px|C:\Users\orangepi\Desktop\用户手册插图\Pi5 Plus\未标题-12.jpg未标题-12]]
+
[[File:pi3b-img322.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
 
<li><p>Then click OK in the next interface</p></li>
 
<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>
 
<li><p>Finally, you can see the desktop of the development board Linux system</p>
<p>[[File:pi3b-img323.png|411x246px]]</p></li></ol>
+
<p>[[File:pi3b-img323.png]]</p></li></ol>
  
 
<span id="use-vnc-remote-login"></span>
 
<span id="use-vnc-remote-login"></span>
 +
 
=== Use VNC remote login ===
 
=== Use VNC remote login ===
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<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.'''
  
'''Ubuntu 20.04 tests many problems with VNC, please do not use this method.'''
+
'''<span style="color:#FF0000">Ubuntu 20.04 tests many problems with VNC, please do not use this method.</span>'''</big>
 +
|}
  
# First run the '''set_vnc.sh''' script settings, and '''remember to add Sudo permissions'''
+
# First run the '''set_vnc.sh''' script settings, and '''<span style="color:#FF0000">remember to add Sudo permissions</span>'''
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo set_vnc.sh'''
 
orangepi@orangepi:~$ '''sudo set_vnc.sh'''
  
 
You will require a password to access your desktops.
 
You will require a password to access your desktops.
  
Password: '''#Set the VNC password here, 8 -bit characters'''
 
  
Verify: '''#Set the VNC password here, 8 -bit characters'''
+
Password: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''<span style="color:#FF0000">#Set the VNC password here, 8 -bit characters</span>'''
 +
 
 +
Verify: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '''<span style="color:#FF0000">#Set the VNC password here, 8 -bit characters</span>'''
  
Would you like to enter a view-only password (y/n)? '''n'''
+
Would you like to enter a view-only password (y/n)? '''<span style="color:#FF0000">n</span>'''
  
 
xauth: file /root/.Xauthority does not exist
 
xauth: file /root/.Xauthority does not exist
 +
  
 
New 'X' desktop is orangepi3b:1
 
New 'X' desktop is orangepi3b:1
 +
  
 
Creating default startup script /root/.vnc/xstartup
 
Creating default startup script /root/.vnc/xstartup
Line 5,832: Line 6,822:
  
 
Log file is /root/.vnc/orangepi3b:1.log
 
Log file is /root/.vnc/orangepi3b:1.log
 +
  
 
Killing Xtightvnc process ID 3047
 
Killing Xtightvnc process ID 3047
 +
  
 
New 'X' desktop is orangepi3b:1
 
New 'X' desktop is orangepi3b:1
 +
  
 
Starting applications specified in /root/.vnc/xstartup
 
Starting applications specified in /root/.vnc/xstartup
  
 
Log file is /root/.vnc/orangepi3b:1.log
 
Log file is /root/.vnc/orangepi3b:1.log
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>The steps of using MobaxTerm software to connect the development board Linux system desktop are shown below: </p>
 
<li><p>The steps of using MobaxTerm software to connect the development board Linux system desktop are shown below: </p>
 
<ol style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img324.png|490x349px|图片1208]]
+
[[File:pi3b-img324.png]]
  
</div>
+
</div></ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then enter the password of the previously set VNC</li></ol>
+
<li>Then enter the password of the previously set VNC</li>
 
 
[[File:pi3b-img325.png|274x131px]]
 
  
 +
[[File:pi3b-img325.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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>
 
<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>
+
<p>[[File:pi3b-img326.png]]</p></li></ol>
 +
</li></ol>
  
 
<span id="some-programming-language-tests-supported-by-linux-system"></span>
 
<span id="some-programming-language-tests-supported-by-linux-system"></span>
 +
 
== Some programming language tests supported by Linux system ==
 
== Some programming language tests supported by Linux system ==
  
Line 5,870: Line 6,865:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The version of the gcc is shown below</li></ol>
+
<li>The version of the gcc is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''gcc --version'''
 
orangepi@orangepi:~$ '''gcc --version'''
  
Line 5,882: Line 6,878:
  
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Write C language of '''Hello_world.c''' program</li></ol>
+
<li>Write C language of '''Hello_world.c''' program</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''vim hello_world.c'''
  
orangepi@orangepi:~$ '''vim hello_world.c'''
 
  
#include &lt;stdio.h&gt;
+
<p>#include &lt;stdio.h&gt;</p>
  
 
int main(void)
 
int main(void)
Line 5,894: Line 6,894:
 
{
 
{
  
printf(&quot;Hello World!\n&quot;);
+
:printf(&quot;Hello World!\n&quot;);
  
return 0;
+
 
 +
:return 0;
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.c'''</li></ol>
+
<li>Then compile and run '''hello_world.c'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
  
Line 5,908: Line 6,912:
  
 
Hello World!
 
Hello World!
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>Debian BullSeye Default with Python3</p>
 
<li><p>Debian BullSeye Default with Python3</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>The specific version of Python is shown below</li></ol>
+
<li>The specific version of Python is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''python3'''
 
orangepi@orangepi:~$ '''python3'''
  
Line 5,924: Line 6,931:
  
 
&gt;&gt;&gt;
 
&gt;&gt;&gt;
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''hello_world.py''' program in Python language</li></ol>
+
<li>'''hello_world.py''' program in Python language</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.py'''
 
orangepi@orangepi:~$ '''vim hello_world.py'''
  
 
print('Hello World!')
 
print('Hello World!')
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The results of running '''hello_world.py''' are shown below</li></ol>
+
<li>The results of running '''hello_world.py''' are shown below</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
  
 
Hello World!
 
Hello World!
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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></ol>
+
<li>You can use the following command to install OpenJDK. The latest version in Debian Bullseye is openjdk-17</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>After installation, you can check the version of Java</li></ol>
+
<li>After installation, you can check the version of Java</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''java --version'''
 
orangepi@orangepi:~$ '''java --version'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Edit the '''hello_world.java''' of the Jave version</li></ol>
+
<li>Edit the '''hello_world.java''' of the Jave version</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.java'''
 
orangepi@orangepi:~$ '''vim hello_world.java'''
  
Line 5,961: Line 6,983:
 
{
 
{
  
public static void main(String[] args)
+
:public static void main(String[] args)
  
{
+
:{
  
System.out.println(&quot;Hello World!&quot;);
+
::System.out.println(&quot;Hello World!&quot;);
  
}
+
:}
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.java'''</li></ol>
+
<li>Then compile and run '''hello_world.java'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''javac hello_world.java'''
 
orangepi@orangepi:~$ '''javac hello_world.java'''
  
Line 5,979: Line 7,004:
  
 
Hello World!
 
Hello World!
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="ubuntu-focal-system"></span>
  
<span id="ubuntu-focal-system"></span>
 
 
=== Ubuntu Focal system ===
 
=== Ubuntu Focal system ===
  
Line 5,986: Line 7,014:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The version of the gcc is shown below</li></ol>
+
<li>The version of the gcc is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''gcc --version'''
 
orangepi@orangepi:~$ '''gcc --version'''
  
Line 5,998: Line 7,027:
  
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''hello_world.c''' program to write C language</li></ol>
+
<li>'''hello_world.c''' program to write C language</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''vim hello_world.c'''
  
orangepi@orangepi:~$ '''vim hello_world.c'''
+
<p>#include &lt;stdio.h&gt;</p>
  
#include &lt;stdio.h&gt;
 
  
 
int main(void)
 
int main(void)
Line 6,010: Line 7,043:
 
{
 
{
  
printf(&quot;Hello World!\n&quot;);
+
:printf(&quot;Hello World!\n&quot;);
 +
 
  
return 0;
+
:return 0;
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.c'''</li></ol>
+
<li>Then compile and run '''hello_world.c'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
  
Line 6,024: Line 7,061:
  
 
Hello World!
 
Hello World!
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>Ubuntu Focal defaults to install Python3</p>
 
<li><p>Ubuntu Focal defaults to install Python3</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Python3 specific version is shown below</li></ol>
+
<li>Python3 specific version is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''python3'''
 
orangepi@orangepi:~$ '''python3'''
  
Line 6,040: Line 7,080:
  
 
&gt;&gt;&gt;
 
&gt;&gt;&gt;
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''hello_world.py''' program in Python language</li></ol>
+
<li>'''hello_world.py''' program in Python language</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.py'''
 
orangepi@orangepi:~$ '''vim hello_world.py'''
  
 
print('Hello World!')
 
print('Hello World!')
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The results of running '''hello_world.py''' are shown below</li></ol>
+
<li>The results of running '''hello_world.py''' are shown below</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
  
 
Hello World!
 
Hello World!
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<li><p>Ubuntu Focal's compilation tool and operating environment without the installation of Java default</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>You can use the following command to install '''openjdk-17'''</li></ol>
+
<li>You can use the following command to install '''openjdk-17'''</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>After installation, you can check the version of Java</li></ol>
+
<li>After installation, you can check the version of Java</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''java --version'''
 
orangepi@orangepi:~$ '''java --version'''
  
Line 6,073: Line 7,125:
  
 
OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing)
 
OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing)
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Edit the '''hello_world.java''' of Jave version</li></ol>
+
<li>Edit the '''hello_world.java''' of Jave version</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.java'''
 
orangepi@orangepi:~$ '''vim hello_world.java'''
  
Line 6,083: Line 7,138:
 
{
 
{
  
public static void main(String[] args)
+
:public static void main(String[] args)
  
{
+
:{
  
System.out.println(&quot;Hello World!&quot;);
+
::System.out.println(&quot;Hello World!&quot;);
  
}
+
:}
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.java'''</li></ol>
+
<li>Then compile and run '''hello_world.java'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''javac hello_world.java'''
 
orangepi@orangepi:~$ '''javac hello_world.java'''
  
Line 6,101: Line 7,159:
  
 
Hello World!
 
Hello World!
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="ubuntu-jammy-system"></span>
  
<span id="ubuntu-jammy-system"></span>
 
 
=== Ubuntu jammy system ===
 
=== Ubuntu jammy system ===
  
Line 6,108: Line 7,169:
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The version of the gcc is shown below</li></ol>
+
<li>The version of the gcc is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''gcc --version'''
 
orangepi@orangepi:~$ '''gcc --version'''
  
Line 6,120: Line 7,182:
  
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Write the '''hello_world.c''' program of c language</li></ol>
+
<li>Write the '''hello_world.c''' program of c language</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''vim hello_world.c'''
  
orangepi@orangepi:~$ '''vim hello_world.c'''
+
<p>#include &lt;stdio.h&gt;</p>
  
#include &lt;stdio.h&gt;
 
  
 
int main(void)
 
int main(void)
Line 6,132: Line 7,198:
 
{
 
{
  
printf(&quot;Hello World!\n&quot;);
+
:printf(&quot;Hello World!\n&quot;);
  
return 0;
+
 
 +
:return 0;
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.c'''</li></ol>
+
<li>Then compile and run '''hello_world.c'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
 
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
  
Line 6,146: Line 7,216:
  
 
Hello World!
 
Hello World!
 +
|}</ol>
 +
</li></ol>
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>Ubuntu jammy is installed with Python3 by default</p>
 
<li><p>Ubuntu jammy is installed with Python3 by default</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Python3 specific version is shown below</li></ol>
+
<li>Python3 specific version is shown below</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''python3'''
 
orangepi@orangepi:~$ '''python3'''
  
Line 6,160: Line 7,233:
  
 
&gt;&gt;&gt;
 
&gt;&gt;&gt;
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Edit '''hello_world.py''' program in Python language</li></ol>
+
<li>Edit '''hello_world.py''' program in Python language</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.py'''
 
orangepi@orangepi:~$ '''vim hello_world.py'''
  
 
print('Hello World!')
 
print('Hello World!')
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The results of running '''hello_world.py''' are shown below</li></ol>
+
<li>The results of running '''hello_world.py''' are shown below</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
 
orangepi@orangepi:~$ '''python3 hello_world.py'''
  
 
Hello World!
 
Hello World!
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>You can use the following command to install openjdk-18</li></ol>
+
<li>You can use the following command to install openjdk-18</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-18-jdk'''
 
orangepi@orangepi:~$ '''sudo apt install -y openjdk-18-jdk'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>After installation, you can check the version of Java</li></ol>
+
<li>After installation, you can check the version of Java</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''java --version'''
 
orangepi@orangepi:~$ '''java --version'''
  
Line 6,193: Line 7,278:
  
 
OpenJDK 64-Bit Server VM (build 18-ea+36-Ubuntu-1, mixed mode, sharing)
 
OpenJDK 64-Bit Server VM (build 18-ea+36-Ubuntu-1, mixed mode, sharing)
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Edit the '''hello_world.java''' of the Jave version</li></ol>
+
<li>Edit the '''hello_world.java''' of the Jave version</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim hello_world.java'''
 
orangepi@orangepi:~$ '''vim hello_world.java'''
  
Line 6,203: Line 7,291:
 
{
 
{
  
public static void main(String[] args)
+
:public static void main(String[] args)
  
{
+
:{
  
System.out.println(&quot;Hello World!&quot;);
+
::System.out.println(&quot;Hello World!&quot;);
  
}
+
:}
  
 
}
 
}
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.java'''</li></ol>
+
<li>Then compile and run '''hello_world.java'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''javac hello_world.java'''
 
orangepi@orangepi:~$ '''javac hello_world.java'''
  
Line 6,221: Line 7,312:
  
 
Hello World!
 
Hello World!
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="qt-installation-method"></span>
  
<span id="qt-installation-method"></span>
 
 
== QT installation method ==
 
== QT installation method ==
  
 
# Use the following script to install QT5 and QT Creator
 
# Use the following script to install QT5 and QT Creator
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_qt.sh'''
 
orangepi@orangepi:~$ '''install_qt.sh'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
 
<li><p>The QT version number will be automatically printed after installation</p>
 
<li><p>The QT version number will be automatically printed after installation</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Ubuntu20.04 comes with QT version '''5.12.8'''</li></ol>
+
<li>Ubuntu20.04 comes with QT version '''5.12.8'''</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''install_qt.sh'''
 
orangepi@orangepi:~$ '''install_qt.sh'''
  
Line 6,241: Line 7,340:
 
QMake version 3.1
 
QMake version 3.1
  
Using Qt version '''5.12.8''' in /usr/lib/aarch64-linux-gnu
+
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;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Ubuntu22.04 comes with QT version '''5.15.3'''</li></ol>
+
<li>Ubuntu22.04 comes with QT version '''5.15.3'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_qt.sh'''
 
orangepi@orangepi:~$ '''install_qt.sh'''
  
Line 6,252: Line 7,354:
 
QMake version 3.1
 
QMake version 3.1
  
Using Qt version '''5.15.3''' in /usr/lib/aarch64-linux-gnu
+
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;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Debian11 comes with QT version '''5.15.2'''</li></ol>
+
<li>Debian11 comes with QT version '''5.15.2'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_qt.sh'''
 
orangepi@orangepi:~$ '''install_qt.sh'''
  
Line 6,263: Line 7,368:
 
QMake version 3.1
 
QMake version 3.1
  
Using Qt version '''5.15.2''' in /usr/lib/aarch64-linux-gnu
+
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;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Debian12 comes with QT version '''5.15.8'''</li></ol>
+
<li>Debian12 comes with QT version '''5.15.8'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_qt.sh'''
 
orangepi@orangepi:~$ '''install_qt.sh'''
  
Line 6,274: Line 7,382:
 
QMake version 3.1
 
QMake version 3.1
  
Using Qt version '''5.15.8''' in /usr/lib/aarch64-linux-gnu
+
Using Qt version '''<span style="color:#FF0000">5.15.8</span>''' in /usr/lib/aarch64-linux-gnu
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then you can see the QT Creator launch icon in '''Applications'''</li></ol>
+
<li>Then you can see the QT Creator launch icon in '''Applications'''</li>
  
[[File:pi3b-img327.png|576x270px]]
+
[[File:pi3b-img327.png]]
  
 
QT Creator can also be opened using the following command
 
QT Creator can also be opened using the following command
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''qtcreator'''
 
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.'''
  
'''During the startup of QT and QT applications, if the following error is displayed, ignore it. This error has no impact on application running.'''
 
  
 
'''libGL error: failed to create dri screen'''
 
'''libGL error: failed to create dri screen'''
Line 6,293: Line 7,409:
 
'''libGL error: failed to create dri screen'''
 
'''libGL error: failed to create dri screen'''
  
'''libGL error: failed to load driver: rockchip'''
+
'''libGL error: failed to load driver: rockchip'''</big>
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The interface after QT Creator is opened is as follows</li></ol>
+
<li>The interface after QT Creator is opened is as follows</li>
 
 
[[File:pi3b-img328.png|418x222px]]
 
  
 +
[[File:pi3b-img328.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
 
<li><p>The QT Creator version is shown below</p>
 
<li><p>The QT Creator version is shown below</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Ubuntu20.04''' is as follows</li></ol>
+
<li>The default version of QT Creator in '''Ubuntu20.04''' is as follows</li>
</li></ol>
 
 
 
[[File:pi3b-img329.png|419x224px]]
 
  
 +
[[File:pi3b-img329.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Ubuntu22.04''' is as follows</li></ol>
+
<li>The default version of QT Creator in '''Ubuntu22.04''' is as follows</li>
 
 
[[File:pi3b-img330.png|443x237px]]
 
  
 +
[[File:pi3b-img330.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Debian11''' is as follows</li></ol>
+
<li>The default version of QT Creator in '''Debian11''' is as follows</li>
 
 
[[File:pi3b-img331.png|444x238px]]
 
  
 +
[[File:pi3b-img331.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>The default version of QT Creator in '''Debian12''' is as follows</li></ol>
+
<li>The default version of QT Creator in '''Debian12''' is as follows</li>
 
 
[[File:pi3b-img332.png|449x277px]]
 
  
 +
[[File:pi3b-img332.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
 
<li><p>Then set QT</p>
 
<li><p>Then set QT</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First open '''Help'''-&gt;'''About Plugins...'''</li></ol>
+
<li>First open '''Help'''-&gt;'''About Plugins...'''</li>
</li></ol>
 
 
 
[[File:pi3b-img333.png|573x164px]]
 
  
 +
[[File:pi3b-img333.png]]
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then remove the check box for '''ClangCodeModel'''</li></ol>
+
<li>Then remove the check box for '''ClangCodeModel'''</li>
 
 
[[File:pi3b-img334.png|408x254px]]
 
  
 +
[[File:pi3b-img334.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>'''Restart QT Creator after the Settings are complete'''</p></li>
+
<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></ol>
+
<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>
 +
|}
  
'''Debian12 Please skip this step.'''
+
[[File:pi3b-img335.png]]
 
 
[[File:pi3b-img335.png|576x315px]]
 
 
 
[[File:pi3b-img336.png|575x307px]]
 
  
 +
[[File:pi3b-img336.png]]
 +
</ol>
 +
</li></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>You can then open a sample code</li></ol>
+
<li>You can then open a sample code</li>
 
 
[[File:pi3b-img337.png|575x312px]]
 
  
 +
[[File:pi3b-img337.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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></ol>
+
<li>Clicking on the example code will automatically open the corresponding instruction document, you can carefully read the instructions</li>
 
 
[[File:pi3b-img338.png|576x218px]]
 
  
 +
[[File:pi3b-img338.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>Then click '''Configure Project'''</li></ol>
+
<li>Then click '''Configure Project'''</li>
 
 
[[File:pi3b-img339.png|575x304px]]
 
  
 +
[[File:pi3b-img339.png]]
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<ol start="10" style="list-style-type: decimal;">
<li>Then click the green triangle in the lower left corner to compile and run the sample code</li></ol>
+
<li>Then click the green triangle in the lower left corner to compile and run the sample code</li>
 
 
[[File:pi3b-img340.png|575x312px]]
 
  
 +
[[File:pi3b-img340.png]]
 +
</ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
<li>After waiting for a period of time, the interface shown in the following figure will pop up, which indicates that QT can compile and run normally</li></ol>
+
<li>After waiting for a period of time, the interface shown in the following figure will pop up, which indicates that QT can compile and run normally</li>
 
 
[[File:pi3b-img341.png|576x308px]]
 
  
 +
[[File:pi3b-img341.png]]
 +
</ol>
 
<ol start="12" style="list-style-type: decimal;">
 
<ol start="12" style="list-style-type: decimal;">
<li>Reference documents</li></ol>
+
<li>Reference documents</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''https://wiki.qt.io/Install_Qt_5_on_Ubuntu'''
  
https://wiki.qt.io/Install_Qt_5_on_Ubuntu
+
'''https://download.qt.io/archive/qtcreator'''
  
https://download.qt.io/archive/qtcreator
+
'''https://download.qt.io/archive/qt'''
 +
|}
 +
</ol>
 +
<span id="ros-installation-method"></span>
  
https://download.qt.io/archive/qt
 
 
<span id="ros-installation-method"></span>
 
 
== ROS Installation Method ==
 
== ROS Installation Method ==
  
Line 6,388: Line 7,512:
 
# The current active version of ROS 1 is as follows, the recommended version is '''Noetic Ninjemys'''
 
# The current active version of ROS 1 is as follows, the recommended version is '''Noetic Ninjemys'''
  
[[File:pi3b-img342.png|345x235px]]
+
::[[File:pi3b-img342.png|800px]]
  
[[File:pi3b-img343.png|576x210px]]
+
::[[File:pi3b-img343.png|800px]]
  
[http://docs.ros.org/ http://docs.ros.org]
+
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
[http://docs.ros.org/ '''http://docs.ros.org''']
  
 
'''https://wiki.ros.org/Distributions'''
 
'''https://wiki.ros.org/Distributions'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>The official installation document link of ROS 1 '''Noetic Ninjemys''' is as follows:</li></ol>
+
<li>The official installation document link of ROS 1 '''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''']
 
[http://wiki.ros.org/noetic/Installation/Ubuntu '''http://wiki.ros.org/noetic/Installation/Ubuntu''']
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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 system used by the development board is '''Ubuntu20.04 desktop system'''</li></ol>
+
<li>In the official installation document of ROS '''Noetic Ninjemys''', Ubuntu recommends using Ubuntu20.04, so please make sure that the system used by the development board is '''<span style="color:#FF0000">Ubuntu20.04 desktop system</span>'''</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
http://wiki.ros.org/noetic/Installation
 
http://wiki.ros.org/noetic/Installation
 +
|}
  
[[File:pi3b-img344.png|312x176px]]
+
[[File:pi3b-img344.png]]
 
+
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then use the script below to install ros1</li></ol>
+
<li>Then use the script below to install ros1</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi3b:~$ '''install_ros.sh ros1'''
 
orangepi@orangepi3b:~$ '''install_ros.sh ros1'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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></ol>
+
<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.'''
  
'''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.'''
 
  
 
'''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.'''
 
'''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://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml'''
 
'''https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml'''
Line 6,426: Line 7,567:
 
'''ERROR: error loading sources list:'''
 
'''ERROR: error loading sources list:'''
  
'''The read operation timed out'''
+
:'''The read operation timed out'''</big>
 
+
|}
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''source /opt/ros/noetic/setup.bash'''
 
orangepi@orangepi:~$ '''source /opt/ros/noetic/setup.bash'''
  
Line 6,436: Line 7,580:
 
Recommended: please run
 
Recommended: please run
  
rosdep update
+
 
 +
::rosdep update
  
 
orangepi@orangepi:~$ '''rosdep update'''
 
orangepi@orangepi:~$ '''rosdep update'''
Line 6,489: Line 7,634:
  
 
updated cache in /home/orangepi/.ros/rosdep/sources.cache
 
updated cache in /home/orangepi/.ros/rosdep/sources.cache
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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:~$ '''test_ros.sh'''</p></li>
+
<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 normally</p></li>
<li><p>After running the '''test_ros.sh''' script, a little turtle as shown in the figure below will pop up</p></li></ol>
+
{| 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></li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img345.png|575x275px|图片4]]
+
[[File:pi3b-img345.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>Then please keep the terminal window just opened at the top</li></ol>
+
<li>Then please keep the terminal window just opened at the top</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img346.png|576x275px|图片5]]
+
[[File:pi3b-img346.png]]
  
</div>
+
</div></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
<li>At this time, press the direction keys on the keyboard to control the little turtle to move up, down, left, and right</li></ol>
+
<li>At this time, press the direction keys on the keyboard to control the little turtle to move up, down, left, and right</li>
  
[[File:pi3b-img347.png|575x296px]]
+
[[File:pi3b-img347.png]]
 +
</ol>
 +
<span id="how-to-install-ros-2-galactic-on-ubuntu-20.04"></span>
  
<span id="how-to-install-ros-2-galactic-on-ubuntu-20.04"></span>
 
 
=== How to install ROS 2 Galactic on Ubuntu 20.04 ===
 
=== How to install ROS 2 Galactic on Ubuntu 20.04 ===
  
 
# The current active version of ROS 2 is as follows, the recommended version is '''Galactic Geochelone'''
 
# The current active version of ROS 2 is as follows, the recommended version is '''Galactic Geochelone'''
  
[[File:pi3b-img348.png|576x271px]]
+
::[[File:pi3b-img348.png]]
  
[[File:pi3b-img349.png|575x265px]]
+
::[[File:pi3b-img349.png]]
  
[http://docs.ros.org/ http://docs.ros.org]
+
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
[http://docs.ros.org/ '''http://docs.ros.org''']
  
 
'''http://docs.ros.org/en/galactic/Releases.html'''
 
'''http://docs.ros.org/en/galactic/Releases.html'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>The link to the official ROS 2 '''Galactic Geochelone''' installation documentation is as follows:</li></ol>
+
<li>The link to the official ROS 2 '''Galactic Geochelone''' installation documentation is as follows:</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''docs.ros.org/en/galactic/Installation.html'''
 
'''docs.ros.org/en/galactic/Installation.html'''
  
 
'''http://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html'''
 
'''http://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li><p>It is recommended to use Ubuntu20.04 in the official installation document of ROS 2 '''Galactic Geochelone''', so please ensure that the system used by the development board is '''Ubuntu20.04 desktop version'''. There are several ways to install ROS 2. The following shows how to install ROS 2 '''Galactic Geochelone''' using '''Debian packages'''</p></li>
+
<li><p>It is recommended to use Ubuntu20.04 in the official installation document of ROS 2 '''Galactic 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></li>
<li><p>Use the '''install_ros.sh''' script to install ros2</p></li></ol>
+
<li><p>Use the '''install_ros.sh''' script to install ros2</p></li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_ros.sh ros2'''
 
orangepi@orangepi:~$ '''install_ros.sh ros2'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="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></ol>
+
<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. ...
  
usage: ros2 [-h] Call `ros2 &lt;command&gt; -h` for more detailed usage. ...
 
  
 
ros2 is an extensible command-line tool for ROS 2.
 
ros2 is an extensible command-line tool for ROS 2.
 +
  
 
optional arguments:
 
optional arguments:
  
-h, --help show this help message and exit
+
:-h, --help show this help message and exit
 +
 
  
 
Commands:
 
Commands:
  
action Various action related sub-commands
+
:action Various action related sub-commands
  
bag Various rosbag related sub-commands
+
:bag Various rosbag related sub-commands
  
component Various component related sub-commands
+
:component Various component related sub-commands
  
daemon Various daemon related sub-commands
+
:daemon Various daemon related sub-commands
  
doctor Check ROS setup and other potential issues
+
:doctor Check ROS setup and other potential issues
  
interface Show information about ROS interfaces
+
:interface Show information about ROS interfaces
  
launch Run a launch file
+
:launch Run a launch file
  
lifecycle Various lifecycle related sub-commands
+
:lifecycle Various lifecycle related sub-commands
  
multicast Various multicast related sub-commands
+
:multicast Various multicast related sub-commands
  
node Various node related sub-commands
+
:node Various node related sub-commands
  
param Various param related sub-commands
+
:param Various param related sub-commands
  
pkg Various package related sub-commands
+
:pkg Various package related sub-commands
  
run Run a package specific executable
+
:run Run a package specific executable
  
security Various security related sub-commands
+
:security Various security related sub-commands
  
service Various service related sub-commands
+
:service Various service related sub-commands
  
topic Various topic related sub-commands
+
:topic Various topic related sub-commands
  
wtf Use `wtf` as alias to `doctor`
+
:wtf Use `wtf` as alias to `doctor`
  
Call `ros2 &lt;command&gt; -h` for more detailed usage.
 
  
 +
:Call `ros2 &lt;command&gt; -h` for more detailed usage.
 +
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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></ol>
+
<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@orangepi3b:~$ '''test_ros.sh'''
 
orangepi@orangepi3b:~$ '''test_ros.sh'''
  
Line 6,603: Line 7,774:
  
 
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]
 
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]
 
+
|}
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Run the following command to open rviz2</li></ol>
+
<li>Run the following command to open rviz2</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''source /opt/ros/galactic/setup.bash'''
 
orangepi@orangepi:~$ '''source /opt/ros/galactic/setup.bash'''
  
 
orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
 
orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img350.png|576x324px|1]]
+
[[File:pi3b-img350.png]]
  
</div>
+
</div></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
<li>For the usage of ROS, please refer to the documentation of ROS 2</li></ol>
+
<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
+
|-
 +
|
 +
'''http://docs.ros.org/en/galactic/Tutorials.html'''
 +
|}
 +
</ol>
 +
<span id="how-to-install-ros-2-humble-on-ubuntu-22.04"></span>
  
<span id="how-to-install-ros-2-humble-on-ubuntu-22.04"></span>
 
 
=== How to install ROS 2 Humble on Ubuntu 22.04 ===
 
=== How to install ROS 2 Humble on Ubuntu 22.04 ===
  
 
# Use the '''install_ros.sh''' script to install ros2
 
# Use the '''install_ros.sh''' script to install ros2
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''install_ros.sh ros2'''
 
orangepi@orangepi:~$ '''install_ros.sh ros2'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" 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></ol>
+
<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. ...
 
usage: ros2 [-h] Call `ros2 &lt;command&gt; -h` for more detailed usage. ...
 +
  
 
ros2 is an extensible command-line tool for ROS 2.
 
ros2 is an extensible command-line tool for ROS 2.
 +
  
 
optional arguments:
 
optional arguments:
  
-h, --help show this help message and exit
+
:-h, --help show this help message and exit
 +
 
  
 
Commands:
 
Commands:
  
action Various action related sub-commands
+
:action Various action related sub-commands
  
bag Various rosbag related sub-commands
+
:bag Various rosbag related sub-commands
  
component Various component related sub-commands
+
:component Various component related sub-commands
  
daemon Various daemon related sub-commands
+
:daemon Various daemon related sub-commands
  
doctor Check ROS setup and other potential issues
+
:doctor Check ROS setup and other potential issues
  
interface Show information about ROS interfaces
+
:interface Show information about ROS interfaces
  
launch Run a launch file
+
:launch Run a launch file
  
lifecycle Various lifecycle related sub-commands
+
:lifecycle Various lifecycle related sub-commands
  
multicast Various multicast related sub-commands
+
:multicast Various multicast related sub-commands
  
node Various node related sub-commands
+
:node Various node related sub-commands
  
param Various param related sub-commands
+
:param Various param related sub-commands
  
pkg Various package related sub-commands
+
:pkg Various package related sub-commands
  
run Run a package specific executable
+
:run Run a package specific executable
  
security Various security related sub-commands
+
:security Various security related sub-commands
  
service Various service related sub-commands
+
:service Various service related sub-commands
  
topic Various topic related sub-commands
+
:topic Various topic related sub-commands
  
wtf Use `wtf` as alias to `doctor`
+
:wtf Use `wtf` as alias to `doctor`
  
Call `ros2 &lt;command&gt; -h` for more detailed usage.
 
  
 +
:Call `ros2 &lt;command&gt; -h` for more detailed usage.
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" 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></ol>
+
<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@orangepi3b:~$ '''test_ros.sh'''
 
orangepi@orangepi3b:~$ '''test_ros.sh'''
  
Line 6,693: Line 7,887:
  
 
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]
 
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Run the following command to open rviz2</li></ol>
+
<li>Run the following command to open rviz2</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''source /opt/ros/humble/setup.bash'''
 
orangepi@orangepi:~$ '''source /opt/ros/humble/setup.bash'''
  
 
orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
 
orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
 +
|}
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img351.png|576x324px|1]]
+
[[File:pi3b-img351.png]]
  
</div>
+
</div></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Reference documents</li></ol>
+
<li>Reference documents</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''http://docs.ros.org/en/humble/index.html'''
 
'''http://docs.ros.org/en/humble/index.html'''
  
 
[http://docs.ros.org/en/galactic/Tutorials.html '''http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html''']
 
[http://docs.ros.org/en/galactic/Tutorials.html '''http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html''']
 +
|}
 +
</ol>
 +
<span id="how-to-install-kernel-header-files"></span>
  
<span id="how-to-install-kernel-header-files"></span>
 
 
== How to install kernel header files ==
 
== How to install kernel header files ==
  
 
# The Linux image released by OPi comes with the deb package of the kernel header file by default, and the storage location is '''/opt/'''
 
# The Linux image released by OPi comes with the deb package of the kernel header file by default, and the storage location is '''/opt/'''
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ls /opt/linux-headers*'''
 
orangepi@orangepi:~$ '''ls /opt/linux-headers*'''
  
 
/opt/linux-headers-legacy-rockchip-rk356x_x.x.x_arm64.deb
 
/opt/linux-headers-legacy-rockchip-rk356x_x.x.x_arm64.deb
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Use the following command to install the deb package of the kernel header file</li>
 
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
'''The name of the kernel header file deb package needs to be replaced with the actual name, please do not copy it.'''
+
|-
 
+
|
 +
<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="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo dpkg -i /opt/linux-headers-legacy-rockchip-rk356x_1.x.x_arm64.deb'''
 
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;">
 
<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>
+
<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'''
 
orangepi@orangepi:~$ '''ls /usr/src'''
  
 
linux-headers-5.10.160-rockchip-rk356x
 
linux-headers-5.10.160-rockchip-rk356x
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
 
<li><p>Then you can write a hello kernel module to test the kernel header file</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First write the code of the hello kernel module, as follows:</li></ol>
+
<li>First write the code of the hello kernel module, as follows:</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''vim hello.c'''
  
orangepi@orangepi:~$ '''vim hello.c'''
+
<p>#include &lt;linux/init.h&gt;</p>
  
#include &lt;linux/init.h&gt;
+
<p>#include &lt;linux/module.h&gt;</p>
  
#include &lt;linux/module.h&gt;
 
  
 
static int hello_init(void)
 
static int hello_init(void)
Line 6,752: Line 7,969:
 
{
 
{
  
printk(&quot;Hello Orange Pi -- init\n&quot;);
+
:printk(&quot;Hello Orange Pi -- init\n&quot;);
 +
 
  
return 0;
+
:return 0;
  
 
}
 
}
Line 6,762: Line 7,980:
 
{
 
{
  
printk(&quot;Hello Orange Pi -- exit\n&quot;);
+
:printk(&quot;Hello Orange Pi -- exit\n&quot;);
  
return;
+
 
 +
:return;
  
 
}
 
}
 +
  
 
module_init(hello_init);
 
module_init(hello_init);
  
 
module_exit(hello_exit);
 
module_exit(hello_exit);
 +
  
 
MODULE_LICENSE(&quot;GPL&quot;);
 
MODULE_LICENSE(&quot;GPL&quot;);
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then write the Makefile for compiling the hello kernel module, as follows:</li></ol>
+
<li>Then write the Makefile for compiling the hello kernel module, as follows:</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim Makefile'''
 
orangepi@orangepi:~$ '''vim Makefile'''
  
Line 6,791: Line 8,015:
 
all:
 
all:
  
make -C $(KDIR) M=$(PWD) modules
+
:make -C $(KDIR) M=$(PWD) modules
  
 
clean:
 
clean:
  
rm -f *.ko *.o *.mod.o *.mod *.symvers *.cmd *.mod.c *.order
+
:rm -f *.ko *.o *.mod.o *.mod *.symvers *.cmd *.mod.c *.order
  
 
endif
 
endif
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then use the make command to compile the hello kernel module. The output of the compilation process is as follows:</li>
 
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
'''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.'''
+
|-
 
+
|
[[File:pi3b-img352.png|337x52px]]
+
<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>
  
 +
[[File:pi3b-img352.png|center]]
 +
|}
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''make'''
 
orangepi@orangepi:~$ '''make'''
  
Line 6,812: Line 8,042:
 
make[1]: Entering directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'
 
make[1]: Entering directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'
  
CC [M] /home/orangepi/hello.o
+
:CC [M] /home/orangepi/hello.o
  
MODPOST /home/orangepi/Module.symvers
+
:MODPOST /home/orangepi/Module.symvers
  
CC [M] /home/orangepi/hello.mod.o
+
:CC [M] /home/orangepi/hello.mod.o
  
LD [M] /home/orangepi/hello.ko
+
:LD [M] /home/orangepi/hello.ko
  
 
make[1]: Leaving directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'
 
make[1]: Leaving directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>After compiling, the '''hello.ko''' kernel module will be generated</li></ol>
+
<li>After compiling, the '''hello.ko''' kernel module will be generated</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ls *.ko'''
 
orangepi@orangepi:~$ '''ls *.ko'''
  
 
hello.ko
 
hello.ko
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<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'''
 
orangepi@orangepi:~$ '''sudo insmod hello.ko'''
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''dmesg | grep &quot;Hello&quot;'''
 
orangepi@orangepi:~$ '''dmesg | grep &quot;Hello&quot;'''
  
 
[ 2871.893988] '''Hello Orange Pi -- init'''
 
[ 2871.893988] '''Hello Orange Pi -- init'''
 
+
|}
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<ol start="7" style="list-style-type: lower-alpha;">
<li>Use the '''rmmod''' command to uninstall the '''hello.ko''' kernel module</li></ol>
+
<li>Use the '''rmmod''' command to uninstall the '''hello.ko''' kernel module</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo rmmod hello'''
 
orangepi@orangepi:~$ '''sudo rmmod hello'''
  
Line 6,851: Line 8,094:
  
 
[ 3173.800892] '''Hello Orange Pi -- exit'''
 
[ 3173.800892] '''Hello Orange Pi -- exit'''
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="use-of-the-raspberry-pis-5-inch-screen"></span>
  
<span id="use-of-the-raspberry-pis-5-inch-screen"></span>
 
 
== Use of the Raspberry PI's 5-inch screen ==
 
== Use of the Raspberry PI's 5-inch screen ==
  
Line 6,861: Line 8,107:
 
<li><p>First prepare the required accessories</p>
 
<li><p>First prepare the required accessories</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Raspberry PI 5-inch MIPI LCD display + touch screen</li></ol>
+
<li>Raspberry PI 5-inch MIPI LCD display + touch screen</li>
</li></ol>
 
  
<blockquote>[[File:pi3b-img353.png|306x219px]]
+
[[File:pi3b-img353.png]]
</blockquote>
+
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>15pin MIPI cable</li></ol>
+
<li>15pin MIPI cable</li>
  
<blockquote>[[File:pi3b-img354.png|276x111px]]
+
[[File:pi3b-img354.png]]
</blockquote>
+
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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|294x160px]]
 
  
 +
[[File:pi3b-img355.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Finally connect to the LCD interface of the Orange Pi 3B development board</li></ol>
+
<li>Finally connect to the LCD interface of the Orange Pi 3B development board</li>
  
[[File:pi3b-img356.png|333x199px]]
+
[[File:pi3b-img356.png]]
 +
</ol>
 +
<span id="open-the-raspberry-pi-5-inch-screen-configuration-method"></span>
  
<span id="open-the-raspberry-pi-5-inch-screen-configuration-method"></span>
 
 
=== Open the Raspberry PI 5-inch screen configuration method ===
 
=== Open the Raspberry PI 5-inch screen configuration method ===
  
Line 6,888: Line 8,135:
 
<li><p>The steps to open the mipi lcd configuration are as follows:</p>
 
<li><p>The steps to open the mipi lcd configuration are as follows:</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>First run '''orangepi-config''', ordinary users remember to add '''sudo''' permission</li></ol>
+
<li>First run '''orangepi-config''', ordinary users remember to add '''sudo''' permission</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''sudo orangepi-config'''
 
orangepi@orangepi:~$ '''sudo orangepi-config'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select '''System'''</li></ol>
+
<li>Then select '''System'''</li>
 
 
[[File:pi3b-img357.png|575x272px]]
 
  
 +
[[File:pi3b-img357.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then select '''Hardware'''</li></ol>
+
<li>Then select '''Hardware'''</li>
 
 
[[File:pi3b-img358.png|576x266px]]
 
  
 +
[[File:pi3b-img358.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-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>
+
<li>Then use the arrow keys on the keyboard to locate the Rasp-7inch-touchscreen, and then use the space button to check</li>
 
 
[[File:pi3b-img359.png|408x310px]]
 
  
 +
[[File:pi3b-img359.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Save&gt;''' to save</li></ol>
+
<li>Then select '''&lt;Save&gt;''' to save</li>
 
 
[[File:pi3b-img360.png|404x133px]]
 
  
 +
[[File:pi3b-img360.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Back&gt;'''</li></ol>
+
<li>Then select '''&lt;Back&gt;'''</li>
 
 
[[File:pi3b-img361.png|397x151px]]
 
  
 +
[[File:pi3b-img361.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<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></ol>
+
<li>Then select '''&lt;Reboot&gt;''' to restart the system for the configuration to take effect</li>
  
[[File:pi3b-img362.png|331x154px]]
+
[[File:pi3b-img362.png]]
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''The above settings will eventually add the configuration of <span style="color:#FF0000">overlays=raspi-7inch-touchscreen</span> 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 <span style="color:#FF0000">overlays=raspi-7inch-touchscreen</span> is also possible.'''</big>
  
'''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-touchscreen is also possible.'''
 
  
 
orangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep "raspi"'''
 
orangepi@orangepi:~$ '''cat /boot/orangepiEnv.txt | grep "raspi"'''
  
'''overlays=raspi-7inch-touchscreen #Sample configuration'''
+
'''<span style="color:#FF0000">overlays=raspi-7inch-touchscreen #Sample configuration</span>'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>After startup, you can see the lcd screen display as follows:</li></ol>
+
<li>After startup, you can see the lcd screen display as follows:</li>
  
[[File:pi3b-img363.png|381x262px]]
+
[[File:pi3b-img363.png]]
 +
</ol>
 +
<span id="the-method-of-server-version-image-rotation-display-direction"></span>
  
<span id="the-method-of-server-version-image-rotation-display-direction"></span>
 
 
=== The method of server version image rotation display direction ===
 
=== The method of server version image rotation display direction ===
  
# Add '''extraargs=fbcon=rotate:the direction to rotate''' in '''/boot/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:
+
<ol start="1" style="list-style-type: decimal;">
 +
<li><p>Add '''extraargs=fbcon=rotate:the direction to rotate''' in '''/boot/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:</p></li>
  
<!-- -->
 
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
 
<li><p>0: normal screen (default is landscape)</p></li>
 
<li><p>0: normal screen (default is landscape)</p></li>
 
<li><p>1: Turn clockwise 90 degrees</p></li>
 
<li><p>1: Turn clockwise 90 degrees</p></li>
 
<li><p>2: Flip 180 degrees</p></li>
 
<li><p>2: Flip 180 degrees</p></li>
<li><p>3: Turn clockwise 270 degrees</p></li></ol>
+
<li><p>3: Turn clockwise 270 degrees</p></li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
 
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
  
 
overlays=lcd1
 
overlays=lcd1
  
'''extraargs=cma=64M fbcon=rotate:3'''
+
'''<span style="color:#FF0000">extraargs=cma=64M fbcon=rotate:3</span>'''
 
+
|}
'''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).'''
+
{| class="wikitable" style="background-color:#ffffdc;width: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;">
 
<ol start="2" style="list-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>
+
<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>
  
 
<span id="method-of-rotating-display-and-touch-direction-of-desktop-version-image"></span>
 
<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 ===
 
=== Method of rotating display and touch direction of desktop version image ===
  
 
# First open '''Display''' Settings in Linux
 
# First open '''Display''' Settings in Linux
  
[[File:pi3b-img364.png|298x206px]]
+
::[[File:pi3b-img364.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
Line 6,972: Line 8,236:
 
<li><p>'''Left''': rotate left 90 degrees</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>'''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><p>'''Right''': rotate right 90 degrees</p></li>
 +
 
 +
[[File:pi3b-img365.png]]
 +
</ol>
 
</li></ol>
 
</li></ol>
 
[[File:pi3b-img365.png|286x180px]]
 
 
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then click '''Apply'''</li></ol>
+
<li>Then click '''Apply'''</li>
 
 
[[File:pi3b-img366.png|330x207px]]
 
  
 +
[[File:pi3b-img366.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Keep this configuration'''</li></ol>
+
<li>Then select '''Keep this configuration'''</li>
 
 
[[File:pi3b-img367.png|374x210px]]
 
  
 +
[[File:pi3b-img367.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>'''None''': no rotation</li></ol>
+
<li>'''None''': no rotation</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh none'''
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh none'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>'''Left''': rotate left 90 degrees</li></ol>
+
<li>'''Left''': rotate left 90 degrees</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh left'''
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh left'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>'''Inverted''': Flip up and down, which is equivalent to rotating 180 degrees</li></ol>
+
<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'''
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh inverted'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>'''Right''': rotate right 90 degrees</li></ol>
+
<li>'''Right''': rotate right 90 degrees</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''set_lcd_rotate.sh right'''
 
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:'''
  
'''The set_lcd_rotate.sh script mainly does four things:'''
 
  
 
'''1. Rotate the direction displayed by the framebuffer'''
 
'''1. Rotate the direction displayed by the framebuffer'''
Line 7,021: Line 8,299:
 
'''4. Restart the system'''
 
'''4. Restart the system'''
  
'''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 directions.'''
 
  
 +
'''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 directions.'''</big>
 +
|}
 +
</ol>
 +
</li></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Touch rotation reference</li></ol>
+
<li>Touch rotation reference</li>
 
+
{| class="wikitable" style="width:800px;"
https://wiki.ubuntu.com/X/InputCoordinateTransformation
+
|-
 +
|
 +
'''https://wiki.ubuntu.com/X/InputCoordinateTransformation'''
 +
|}
 +
</ol>
 +
<span id="instructions-for-using-the-switch-logo"></span>
  
<span id="instructions-for-using-the-switch-logo"></span>
 
 
== Instructions for using the switch logo ==
 
== Instructions for using the switch logo ==
  
Line 7,034: Line 8,319:
 
# Set the '''bootlogo''' variable to '''false''' in '''/boot/orangepiEnv.txt''' to turn off the switch logo
 
# Set the '''bootlogo''' variable to '''false''' in '''/boot/orangepiEnv.txt''' to turn off the switch logo
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim /boot/orangepiEnv.txt'''
 
orangepi@orangepi:~$ '''vim /boot/orangepiEnv.txt'''
  
 
verbosity=1
 
verbosity=1
  
'''bootlogo=false'''
+
'''<span style="color:#FF0000">bootlogo=false</span>'''
 +
|}
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Set the '''bootlogo''' variable to '''true''' in '''/boot/orangepiEnv.txt''' to enable the switch logo</li></ol>
+
<li>Set the '''bootlogo''' variable to '''true''' in '''/boot/orangepiEnv.txt''' to enable the switch logo</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''vim /boot/orangepiEnv.txt'''
 
orangepi@orangepi:~$ '''vim /boot/orangepiEnv.txt'''
  
 
verbosity=1
 
verbosity=1
  
'''bootlogo=true'''
+
'''<span style="color:#FF0000">bootlogo=true</span>'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The location of the boot logo image in the Linux system is</li></ol>
+
<li>The location of the boot logo image in the Linux system is</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''/usr/share/plymouth/themes/orangepi/watermark.png'''
 
'''/usr/share/plymouth/themes/orangepi/watermark.png'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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'''
 
orangepi@orangepi:~$ '''sudo update-initramfs -u'''
 +
|}
 +
</ol>
 +
<span id="how-to-use-the-zfs-file-system"></span>
  
<span id="how-to-use-the-zfs-file-system"></span>
 
 
== How to use the ZFS file system ==
 
== How to use the ZFS file system ==
  
'''The latest version of Ubuntu20.04, Ubuntu22.04, Debian11 and Debian12 desktop version systems have pre-installed zfs, you can use it directly.'''
+
{| 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.'''
 
'''The pre-installed zfs version in Ubuntu20.04 and Ubuntu22.04 desktop systems is 2.1.6.'''
Line 7,068: Line 8,371:
 
'''The pre-installed zfs version in Debian11 and Debian12 desktop systems is 2.1.11.'''
 
'''The pre-installed zfs version in Debian11 and Debian12 desktop systems is 2.1.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.'''
+
'''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;'''
 
orangepi@orangepi:~$ '''lsmod | grep &quot;zfs&quot;'''
  
zfs 2801664 0
+
zfs   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              2801664 &nbsp;&nbsp;&nbsp;  0
  
zunicode 327680 1 zfs
+
zunicode     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        327680 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
zzstd 471040 1 zfs
+
zzstd       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;        471040 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
zlua 139264 1 zfs
+
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
  
zcommon 69632 1 zfs
+
zcommon     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        69632 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
znvpair 61440 2 zfs,zcommon
+
znvpair         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      61440 &nbsp;&nbsp;&nbsp;  2 &nbsp; zfs,zcommon
  
zavl 16384 1 zfs
+
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
  
icp 221184 1 zfs
+
icp         &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
  
spl 77824 6 zfs,icp,zzstd,znvpair,zcommon,zavl
+
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>
 
<span id="how-to-install-zfs"></span>
 
=== How to install ZFS ===
 
=== How to install ZFS ===
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''</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 [[\l|'''section on the method of installing the kernel header file''']].
+
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''']].
  
 
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.
 
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.
Line 7,101: Line 8,409:
 
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 '''<span class="mark">official tool</span>''', and enter the '''<span class="mark">zfs-related deb package folders used by Ubuntu and Debian systems</span>'''. You can see three types of deb packages: Ubuntu20.04, Ubuntu22.04 and Debian11. Please download the required version.
 
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 '''<span class="mark">official tool</span>''', and enter the '''<span class="mark">zfs-related deb package folders used by Ubuntu and Debian systems</span>'''. You can see three types of deb packages: Ubuntu20.04, Ubuntu22.04 and Debian11. Please download the required version.
  
[[File:pi3b-img368.png|230x93px]]
+
[[File:pi3b-img368.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 '''[[\l|the description in the section of the method of uploading files to the Linux system of the development board]].'''
+
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]].'''
  
 
After 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.
 
After 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.
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install ./*.deb'''
 
orangepi@orangepi:~$ '''sudo apt install ./*.deb'''
 +
|}
  
 
After the installation is complete, use the following command to see the zfs-related kernel modules:
 
After the installation is complete, use the following command to see the zfs-related kernel modules:
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''ls /lib/modules/5.10.160-rockchip-rk356x/updates/dkms/'''
 
orangepi@orangepi:~$ '''ls /lib/modules/5.10.160-rockchip-rk356x/updates/dkms/'''
  
 
'''icp.ko spl.ko zavl.ko zcommon.ko zfs.ko zlua.ko znvpair.ko zunicode.ko zzstd.ko'''
 
'''icp.ko spl.ko zavl.ko zcommon.ko zfs.ko zlua.ko znvpair.ko zunicode.ko zzstd.ko'''
 +
|}
  
 
Then restart the Linux system to see that the zfs kernel module will be automatically loaded:
 
Then restart the Linux system to see that the zfs kernel module will be automatically loaded:
  
orangepi@orangepi:~$ '''lsmod | grep &quot;zfs&quot;'''
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''lsmod | grep "zfs"'''
  
zfs 2801664 0
+
zfs   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              2801664 &nbsp;&nbsp;&nbsp;  0
  
zunicode 327680 1 zfs
+
zunicode     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        327680 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
zzstd 471040 1 zfs
+
zzstd       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;        471040 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
zlua 139264 1 zfs
+
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
  
zcommon 69632 1 zfs
+
zcommon     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        69632 &nbsp;&nbsp;&nbsp;  1 &nbsp; zfs
  
znvpair 61440 2 zfs,zcommon
+
znvpair         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      61440 &nbsp;&nbsp;&nbsp;  2 &nbsp; zfs,zcommon
  
zavl 16384 1 zfs
+
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
  
icp 221184 1 zfs
+
icp         &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
  
spl 77824 6 zfs,icp,zzstd,znvpair,zcommon,zavl
+
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
 +
|}
  
 
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.
 
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.
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo apt install -y zfsutils-linux zfs-dkms'''
 
orangepi@orangepi:~$ '''sudo apt install -y zfsutils-linux zfs-dkms'''
 +
|}
  
 
<span id="methods-of-creating-zfs-pools"></span>
 
<span id="methods-of-creating-zfs-pools"></span>
 +
 
=== Methods of creating ZFS pools ===
 
=== Methods of creating ZFS pools ===
  
'''ZFS is based on storage pools, we can add multiple physical storage devices to the pool, and then allocate storage space from this pool.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''
 
'''The following content is demonstrated based on the development board connected to an NVMe SSD and a USB flash drive.'''
 +
</big>
 +
|}
  
 
# 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:
 
# 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-img369.png|379x227px]]
+
::[[File:pi3b-img369.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo zpool create -f pool1 /dev/nvme0n1 /dev/sda'''
 
orangepi@orangepi:~$ '''sudo zpool create -f pool1 /dev/nvme0n1 /dev/sda'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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></ol>
+
<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|576x37px]]
 
  
 +
[[File:pi3b-img370.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then execute '''df -h''' to see that '''pool1''' is mounted to the '''/pool1''' directory</li></ol>
+
<li>Then execute '''df -h''' to see that '''pool1''' is mounted to the '''/pool1''' directory</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
orangepi@orangepi:~$ '''df -h''' <br>
  
orangepi@orangepi:~$ '''df -h'''
+
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
  
Filesystem Size Used Avail Use% Mounted on
+
tmpfs  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        1.6G  &nbsp;&nbsp;&nbsp; 18M  1.6G  2% /run <br>
  
tmpfs 1.6G 18M 1.6G 2% /run
+
/dev/mmcblk0p2 &nbsp;&nbsp;&nbsp;  29G &nbsp;&nbsp;&nbsp; 6.0G  22G  22% / <br>
  
/dev/mmcblk0p2 29G 6.0G 22G 22% /
+
tmpfs    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      7.7G &nbsp;&nbsp;&nbsp;  46M  7.7G  1% /dev/shm <br>
  
tmpfs 7.7G 46M 7.7G 1% /dev/shm
+
tmpfs     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      5.0M &nbsp;&nbsp;&nbsp; 4.0K  5.0M  1% /run/lock <br>
  
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
+
tmpfs   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      7.7G &nbsp;&nbsp;&nbsp; 944K  7.7G  1% /tmp <br>
  
tmpfs 7.7G 944K 7.7G 1% /tmp
+
/dev/mmcblk0p1  &nbsp;&nbsp;&nbsp;  1022M &nbsp;&nbsp;&nbsp; 115M  908M  12% /boot <br>
  
/dev/mmcblk0p1 1022M 115M 908M 12% /boot
+
/dev/zram1  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    188M &nbsp;&nbsp;&nbsp; 4.5M  169M  3% /var/log <br>
  
/dev/zram1 188M 4.5M 169M 3% /var/log
+
tmpfs     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      1.6G &nbsp;&nbsp;&nbsp;  80K 1.6G   1% /run/user/1000 <br>
 
 
tmpfs 1.6G 80K 1.6G 1% /run/user/1000
 
 
 
'''pool1 489G 9.3M 489G 1% /pool1'''
 
  
 +
'''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="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Use the following command to see that the file system type of pool1 is zfs</li></ol>
+
<li>Use the following command to see that the file system type of pool1 is zfs</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''mount | grep pool1'''
 
orangepi@orangepi:~$ '''mount | grep pool1'''
  
pool1 on /pool1 type '''zfs''' (rw,xattr,noacl)
+
pool1 on /pool1 type '''<span style="color:#FF0000">zfs</span>''' (rw,xattr,noacl)
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then we can test copying a file to the ZFS pool</li></ol>
+
<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/'''
 
orangepi@orangepi:~$ '''sudo cp -v /usr/local/test.mp4 /pool1/'''
  
 
'/usr/local/test.mp4' -&gt; '/pool1/test.mp4'
 
'/usr/local/test.mp4' -&gt; '/pool1/test.mp4'
 +
|}
 +
</ol>
 +
<span id="test-the-data-deduplication-function-of-zfs"></span>
  
<span id="test-the-data-deduplication-function-of-zfs"></span>
 
 
=== Test the data deduplication function of ZFS ===
 
=== Test the data deduplication function of ZFS ===
  
 
# The data deduplication function of ZFS is disabled by default, we need to execute the following command to enable it
 
# The data deduplication function of ZFS is disabled by default, we need to execute the following command to enable it
 
+
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo zfs set dedup=on pool1'''
 
orangepi@orangepi:~$ '''sudo zfs set dedup=on pool1'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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></ol>
+
<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:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cd /pool1/'''
 
orangepi@orangepi:~$ '''cd /pool1/'''
  
Line 7,220: Line 8,568:
  
 
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.04367 s, 213 MB/s
 
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.04367 s, 213 MB/s
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then use the following command to copy 1000 random files of size 1G</li></ol>
+
<li>Then use the following command to copy 1000 random files of size 1G</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:/pool1$ '''for ((i=0; i&lt;1000; i++)); do sudo cp test.1g $i.test.1g; done'''
 
root@orangepi:/pool1$ '''for ((i=0; i&lt;1000; i++)); do sudo cp test.1g $i.test.1g; done'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<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;"
 +
|-
 +
|
 
root@orangepi:/pool1$ '''du -lh'''
 
root@orangepi:/pool1$ '''du -lh'''
  
 
1002G
 
1002G
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then use the '''zpool list''' command to see that only 1.01G is actually occupied, because these 1001 files are all duplicates, indicating that the data deduplication function is effective.</li></ol>
+
<li>Then use the '''zpool list''' command to see that only 1.01G is actually occupied, because these 1001 files are all duplicates, indicating that the data deduplication function is effective.</li>
  
[[File:pi3b-img371.png|576x36px]]
+
[[File:pi3b-img371.png]]
 +
</ol>
 +
<span id="test-the-data-compression-function-of-zfs"></span>
  
<span id="test-the-data-compression-function-of-zfs"></span>
 
 
=== Test the data compression function of ZFS ===
 
=== 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
 
# 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
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''cd /pool1/'''
 
orangepi@orangepi:~$ '''cd /pool1/'''
  
 
root@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log/ /etc/'''
 
root@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log/ /etc/'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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'''</li></ol>
+
<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'''</li>
 
 
[[File:pi3b-img372.png|576x90px]]
 
  
 +
[[File:pi3b-img372.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then we enable compression in the ZFS pool pool1</li></ol>
+
<li>Then we enable compression in the ZFS pool pool1</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:/pool1$ '''sudo zfs set compression=lz4 pool1'''
 
root@orangepi:/pool1$ '''sudo zfs set compression=lz4 pool1'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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></ol>
+
<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/'''
 
root@orangepi:/pool1$ '''sudo tar -cf text.tar /var/log/ /etc/'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>At this time, you can see that the size of the '''text.tar''' file is still 27M, but it only occupies 9.47M in the ZFS pool, indicating that the file is compressed</li></ol>
+
<li>At this time, you can see that the size of the '''text.tar''' file is still 27M, but it only occupies 9.47M in the ZFS pool, indicating that the file is compressed</li>
  
[[File:pi3b-img373.png|576x79px]]
+
[[File:pi3b-img373.png]]
 +
</ol>
 +
<span id="how-to-shut-down-and-restart-the-development-board"></span>
  
<span id="how-to-shut-down-and-restart-the-development-board"></span>
 
 
== How to shut down and restart the development board ==
 
== How to shut down and restart the development board ==
  
 
# During the running of the Linux system, if the Type-C power supply is directly unplugged, some data may be lost or damaged 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.
 
# During the running of the Linux system, if the Type-C power supply is directly unplugged, some data may be lost or damaged 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.
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo poweroff'''
 
orangepi@orangepi:~$ '''sudo poweroff'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img374.png|294x80px]]
+
[[File:pi3b-img374.png]]
  
'''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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 
+
|-
[[File:pi3b-img375.png|207x193px]]
+
|
 +
<big>'''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.'''</big>
  
 +
[[File:pi3b-img375.png|center]]
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Short press the switch button on the development board after shutting down to start up.</li></ol>
+
<li>Short press the switch button on the development board after shutting down to start up.</li>
 
 
[[File:pi3b-img374.png|294x80px]]
 
  
 +
[[File:pi3b-img374.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The command to restart the Linux system is</li></ol>
+
<li>The command to restart the Linux system is</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
orangepi@orangepi:~$ '''sudo''' '''reboot'''
 
orangepi@orangepi:~$ '''sudo''' '''reboot'''
 
+
|}
 +
</ol>
 
<span id="linux-sdkorangepi-build-instructions"></span>
 
<span id="linux-sdkorangepi-build-instructions"></span>
  
Line 7,300: Line 8,678:
 
== Compilation system requirements ==
 
== Compilation system requirements ==
  
'''We can cross-compile the Linux image of the development board on the x64 computer, or compile the Linux image of the development board on the Ubuntu22.04 system of the development board, please choose one according to your preference.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''We can cross-compile the Linux image of the development board on the x64 computer, or compile the Linux image of the development board on the Ubuntu22.04 system of the development board, please choose one according to your preference.'''
  
'''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.'''
+
 
 +
'''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.'''</big>
 +
|}
  
 
<span id="compile-with-the-ubuntu22.04-system-of-the-development-board"></span>
 
<span id="compile-with-the-ubuntu22.04-system-of-the-development-board"></span>
Line 7,309: Line 8,692:
 
# The Linux SDK, namely '''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.
 
# The Linux SDK, namely '''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:~$ '''lsb_release -a'''
 
orangepi@orangepi:~$ '''lsb_release -a'''
  
Line 7,317: Line 8,703:
 
Description: Ubuntu 22.04.1 LTS
 
Description: Ubuntu 22.04.1 LTS
  
Release: '''22.04'''
+
Release: '''<span style="color:#FF0000">22.04</span>'''
  
 
Codename: jammy
 
Codename: jammy
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>'''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.'''</li></ol>
+
<li>'''<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>
  
 
<span id="compile-with-x64-ubuntu22.04-computer"></span>
 
<span id="compile-with-x64-ubuntu22.04-computer"></span>
 +
 
=== Compile with x64 Ubuntu22.04 computer ===
 
=== 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 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.
 
# 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 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.
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''lsb_release -a'''
 
test@test:~$ '''lsb_release -a'''
  
Line 7,337: Line 8,728:
 
Description: Ubuntu 22.04 LTS
 
Description: Ubuntu 22.04 LTS
  
Release: '''22.04'''
+
Release: '''<span style="color:#FF0000">22.04</span>'''
  
 
Codename: jammy
 
Codename: jammy
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: 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>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 '''amd64''' version is:</p></li></ol>
+
<li><p>The download address of the installation image of Ubuntu 22.04 '''<span style="color:#FF0000">amd64</span>''' version is:</p></li>
  
 +
{| 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-releases/22.04/ubuntu-22.04-desktop-amd64.iso''']
 
[https://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.iso''']
  
Line 7,350: Line 8,745:
  
 
'''https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.iso'''
 
'''https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.iso'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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>For the method of replacing Tsinghua source, please refer to the instructions on this web page</li>
</li></ol>
 
 
 
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
 
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/'''
 +
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Note that the Ubuntu version needs to be switched to 22.04</li></ol>
+
<li>Note that the Ubuntu version needs to be switched to 22.04</li>
 
 
[[File:pi3b-img376.png|576x241px]]
 
  
 +
[[File:pi3b-img376.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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</li></ol>
+
<li>The content of the '''/etc/apt/sources.list''' file that needs to be replaced is</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak'''
 
test@test:~$ '''sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak'''
  
 
test@test:~$ '''sudo vim /etc/apt/sources.list'''
 
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 necessary
+
<p># By default, the source image is commented to improve the speed of apt update, you can uncomment it yourself if necessary</p>
  
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
  
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
+
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse</p>
  
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
  
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
+
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse</p>
  
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
  
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
+
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse</p>
  
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
 
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
  
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
+
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse</p>
  
# Pre-release software source, not recommended to enable
 
  
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
+
<p># Pre-release software source, not recommended to enable</p>
  
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
+
<p># deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</p>
  
 +
<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;">
 
<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>
+
<li>After the replacement, you need to update the package information and make sure there is no error</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo apt update'''
 
test@test:~$ '''sudo apt update'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
  
<span id="get-the-source-code-of-linux-sdk"></span>
 
 
== Get the source code of Linux sdk ==
 
== Get the source code of Linux sdk ==
  
Line 7,411: Line 8,819:
 
# 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:
 
# 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:
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo apt-get update'''
 
test@test:~$ '''sudo apt-get update'''
  
Line 7,416: Line 8,827:
  
 
test@test:~$ '''git clone https://github.com/orangepi-xunlong/orangepi-build.git -b next'''
 
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.'''
+
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img377.png|576x298px|图片6]]
+
[[File:pi3b-img377.png|center]]
  
 
</div>
 
</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.'''
+
|}
 +
::{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''</big>
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>The u-boot and Linux kernel versions currently used by the development board are as follows</li>
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''branch'''
 
|'''branch'''
Line 7,439: Line 8,858:
 
|'''Linux5.10'''
 
|'''Linux5.10'''
 
|}
 
|}
 +
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''
  
'''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.'''</big>
 
+
|}
'''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>
 
 
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
 
<li><p>orangepi-build will contain the following files and folders after downloading</p>
 
<li><p>orangepi-build will contain the following files and folders after downloading</p>
Line 7,451: Line 8,873:
 
<li><p>'''LICENSE''': GPL 2 license file</p></li>
 
<li><p>'''LICENSE''': GPL 2 license file</p></li>
 
<li><p>README.md: orangepi-build documentation</p></li>
 
<li><p>README.md: orangepi-build documentation</p></li>
<li><p>'''scripts''': General script for compiling Linux images</p></li></ol>
+
<li><p>'''scripts''': General script for compiling Linux images</p></li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''ls'''
 
test@test:~/orangepi-build$ '''ls'''
  
'''build.sh external LICENSE''' README.md '''scripts'''
+
'''build.sh &nbsp;&nbsp;&nbsp;&nbsp; external &nbsp;&nbsp;&nbsp;&nbsp; LICENSE &nbsp;&nbsp;&nbsp;&nbsp; README.md &nbsp;&nbsp;&nbsp;&nbsp; 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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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.'''</big>
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="download-the-cross-compilation-toolchain"></span>
  
<span id="download-the-cross-compilation-toolchain"></span>
 
 
=== Download the cross-compilation toolchain ===
 
=== 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.'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<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>
 +
|}
  
 
# 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.
 
# 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.
Line 7,469: Line 8,902:
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img378.png|575x278px|选区_396]]
+
::[[File:pi3b-img378.png]]
  
 
</div>
 
</div>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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/
+
|-
 
+
|
 +
'''https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/'''
 +
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''ls toolchains/'''
 
test@test:~/orangepi-build$ '''ls toolchains/'''
  
Line 7,503: Line 8,941:
  
 
gcc-linaro-arm-none-eabi-4.8-2014.04_linux
 
gcc-linaro-arm-none-eabi-4.8-2014.04_linux
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
 
<li><p>The cross-compilation toolchain used to compile the Linux kernel source code is</p>
 
<li><p>The cross-compilation toolchain used to compile the Linux kernel source code is</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Linux5.10</li></ol>
+
<li>Linux5.10</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu'''
 +
|}
 +
</ol>
 
</li></ol>
 
</li></ol>
 
'''gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu'''
 
 
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
 
<li><p>The cross-compilation tool chain used to compile the u-boot source code is</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>v2017.09</li></ol>
+
<li>v2017.09</li>
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 +
'''gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu'''
 +
|}
 +
</ol>
 
</li></ol>
 
</li></ol>
 +
<span id="orangepi-build-complete-directory-structure-description"></span>
  
'''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 ===
 
=== orangepi-build complete directory structure description ===
  
Line 7,526: Line 8,972:
 
<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>
 
<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;">
 
<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>The git repository where the Linux kernel source code is stored is as follows:</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
'''https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx'''
 
'''https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The git warehouse where the b.u-boot source code is stored is as follows:</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2017.09-rk3588'''
 
'''https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2017.09-rk3588'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
 
<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>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>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>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>d. '''LICENSE''': GPL 2 license file</p>
<p>e. '''README'''.md: orangepi-build documentation</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>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>g. '''scripts''': general scripts for compiling Linux images</p>
<p>h. '''toolchains''': store cross-compilation toolchain</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>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>
+
:<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>
  
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 ==
 
== Compile u-boot ==
  
 
# Run the build.sh script, remember to add sudo permission
 
# Run the build.sh script, remember to add sudo permission
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Select '''U-boot package''',then enter</li></ol>
+
<li>Select '''U-boot package''', then enter</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img379.png|576x132px|选区_238]]
+
[[File:pi3b-img379.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select the model of the development board</li></ol>
+
<li>Then select the model of the development board</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]]
+
[[File:pi3b-img380.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>u-boot source code version</li></ol>
+
<li>u-boot source code version</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
[ o.k. ] Compiling u-boot [ '''v2017.09''' ]
 
[ o.k. ] Compiling u-boot [ '''v2017.09''' ]
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The version of the cross-compilation toolchain</li></ol>
+
<li>The version of the cross-compilation toolchain</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Compiler version [ '''aarch64-linux-gnu-gcc 7.4.1''' ]
 
[ o.k. ] Compiler version [ '''aarch64-linux-gnu-gcc 7.4.1''' ]
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Path to the generated u-boot deb package</li></ol>
+
<li>Path to the generated u-boot deb package</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Target directory [ '''orangepi-build/output/debs/u-boot''' ]
 
[ o.k. ] Target directory [ '''orangepi-build/output/debs/u-boot''' ]
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>The package name of the generated u-boot deb package</li></ol>
+
<li>The package name of the generated u-boot deb package</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] File name [ '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb''' ]
 
[ o.k. ] File name [ '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb''' ]
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li>Compilation time</li></ol>
+
<li>Compilation time</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Runtime [ '''1 min''' ]
 
[ o.k. ] Runtime [ '''1 min''' ]
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=u-boot KERNEL_CONFIGURE=no''' ]
 
[ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=u-boot KERNEL_CONFIGURE=no''' ]
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>View the u-boot deb package generated by compilation</li></ol>
+
<li>View the u-boot deb package generated by compilation</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''ls output/debs/u-boot/'''
 
test@test:~/orangepi-build$ '''ls output/debs/u-boot/'''
  
 
linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb
 
linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
 
<li><p>The files contained in the generated u-boot deb package are as follows</p>
 
<li><p>The files contained in the generated u-boot deb package are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Use the following command to decompress the deb package</li></ol>
+
<li>Use the following command to decompress the deb package</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''cd output/debs/u-boot'''
 
test@test:~/orangepi-build$ '''cd output/debs/u-boot'''
  
Line 7,631: Line 9,112:
  
 
linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb '''usr'''
 
linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb '''usr'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The decompressed file is as follows</li></ol>
+
<li>The decompressed file is as follows</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build/output/debs/u-boot$ '''tree usr'''
 
test@test:~/orangepi-build/output/debs/u-boot$ '''tree usr'''
  
Line 7,641: Line 9,125:
 
└── lib
 
└── lib
  
├── linux-u-boot-legacy-orangepi3b_1.0.0_arm64
+
:├── linux-u-boot-legacy-orangepi3b_1.0.0_arm64
  
│   ├── idbloader.img
+
:│   ├── idbloader.img
  
│   ├── rkspi_loader.img
+
:│   ├── rkspi_loader.img
  
│   └── u-boot.itb
+
:│   └── u-boot.itb
  
└── u-boot
+
:└── u-boot
  
├── LICENSE
+
::├── LICENSE
  
├── orangepi-3b-rk3566_defconfig
+
::├── orangepi-3b-rk3566_defconfig
 +
 
 +
::└── platform_install.sh
  
└── platform_install.sh
 
  
 
3 directories, 6 files
 
3 directories, 6 files
 +
|}
 +
</ol>
 +
</li></ol>
 +
<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 start="7" style="list-style-type: decimal;">
+
Set the IGNORE_UPDATES variable in userpatches/config-default.conf to &quot;yes&quot;
<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;
+
{| class="wikitable" style="width:800px;"
</blockquote>
+
|-
 +
|
 
test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''
 
test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''
  
IGNORE_UPDATES=&quot;'''yes'''&quot;
+
IGNORE_UPDATES=&quot;'''<span style="color:#FF0000">yes</span>'''&quot;
 
+
|}
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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>Upload the compiled u-boot deb package to the Linux system of the development board</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''cd output/debs/u-boot'''
 
test@test:~/orangepi-build$ '''cd output/debs/u-boot'''
  
 
test@test:~/orangepi_build/output/debs/u-boot$ '''scp \'''
 
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]
+
'''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb root@192.168.1.xxx:/root'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<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'''
 
root@orangepi:~# '''apt purge -y linux-u-boot-orangepi3b-legacy'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Install the new u-boot deb package just uploaded</li></ol>
+
<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'''
 
root@orangepi:~# '''dpkg -i''' '''linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then run the nand-sata-install script</li></ol>
+
<li>Then run the nand-sata-install script</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
root@orangepi:~# '''nand-sata-install'''
 
root@orangepi:~# '''nand-sata-install'''
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
 
 
[[File:pi3b-img381.png|312x152px]]
 
  
 +
[[File:pi3b-img381.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>After pressing the Enter key, a Warning will pop up first</li></ol>
+
<li>After pressing the Enter key, a Warning will pop up first</li>
 
 
[[File:pi3b-img382.png|309x168px]]
 
  
 +
[[File:pi3b-img382.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Press the Enter key again to start updating u-boot, and the following information will be displayed after the update is completed</li>
 
 
[[File:pi3b-img383.png|244x137px]]
 
  
 +
[[File:pi3b-img383.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: lower-alpha;">
 
<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>
+
<li>Then you can 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;">
 
<ol start="9" style="list-style-type: decimal;">
 
<li><p>Other useful information</p>
 
<li><p>Other useful information</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>In the u-boot 2017.09 source code, the defconfig configuration file used by the development board is</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
[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''']
 
[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>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>
+
<li>In the u-boot 2017.09 source code, the dts 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/arch/arm/dts/rk3588s-orangepi-5.dts orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3566-orangepi-3b.dts]
+
|-
 +
|
 +
[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''']
 +
|}
 +
</ol>
 +
</li></ol>
 +
<span id="compile-the-linux-kernel"></span>
  
<span id="compile-the-linux-kernel"></span>
 
 
== Compile the Linux kernel ==
 
== Compile the Linux kernel ==
  
 
# Run the build.sh script, remember to add sudo permission
 
# Run the build.sh script, remember to add sudo permission
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Select '''Kernel package''',then enter</li></ol>
+
<li>Select '''Kernel package''', then enter</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img384.png|575x116px|选区_240]]
+
[[File:pi3b-img384.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select the model of the development board</li></ol>
+
<li>Then select the model of the development board</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]]
+
[[File:pi3b-img380.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img385.png|576x87px]]
 
  
 +
[[File:pi3b-img385.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img386.png|462x322px]]
+
[[File:pi3b-img386.png]]
  
 
<ol style="list-style-type: lower-alpha;">
 
<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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''sudo ./build.sh KERNEL_CONFIGURE=no'''
 
test@test:~/orangepi-build$ '''sudo ./build.sh KERNEL_CONFIGURE=no'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<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>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>
+
<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>
 
 
[[File:pi3b-img387.png|574x234px]]
 
  
 +
[[File:pi3b-img387.png]]
 +
</ol>
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
 
<li><p>Part of the information prompted when compiling the kernel source code is as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>The version of the Linux kernel source code</li></ol>
+
<li>The version of the Linux kernel source code</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
[ o.k. ] Compiling current kernel [ '''5.10.160''' ]
 
[ o.k. ] Compiling current kernel [ '''5.10.160''' ]
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The version of the cross-compilation toolchain used</li></ol>
+
<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''' ]
 
[ o.k. ] Compiler version [ '''aarch64-none-linux-gnu-gcc 11.2.1''' ]
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The configuration file used by the kernel by default and the path where it is stored</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Using kernel config file [ '''config/kernel/linux-rockchip-rk356x-legacy.config''' ]
 
[ o.k. ] Using kernel config file [ '''config/kernel/linux-rockchip-rk356x-legacy.config''' ]
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<li>The path of the deb package related to the kernel generated by compiling</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Target directory [ '''orangepi-build/output/debs/''' ]
 
[ o.k. ] Target directory [ '''orangepi-build/output/debs/''' ]
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: lower-alpha;">
 
<ol start="5" style="list-style-type: lower-alpha;">
<li>The package name of the compiled kernel image deb package</li></ol>
+
<li>The package name of the compiled kernel image deb package</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] File name [ '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' ]
 
[ o.k. ] File name [ '''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' ]
 
+
|}
 +
</ol>
 
<ol start="6" style="list-style-type: lower-alpha;">
 
<ol start="6" style="list-style-type: lower-alpha;">
<li>The time used for compilation</li></ol>
+
<li>The time used for compilation</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Runtime [ '''5 min''' ]
 
[ o.k. ] Runtime [ '''5 min''' ]
 
+
|}
 +
</ol>
 
<ol start="7" style="list-style-type: lower-alpha;">
 
<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>
+
<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>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=kernel KERNEL_CONFIGURE=no''' ]
 
[ o.k. ] Repeat Build Options [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=kernel KERNEL_CONFIGURE=no''' ]
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
 
<li><p>View the deb package related to the kernel generated by compilation</p>
 
<li><p>View the deb package related to the kernel generated by compilation</p>
Line 7,814: Line 9,353:
 
<li><p>'''linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains dtb files used by the kernel</p></li>
 
<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-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><p>'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb''' Contains kernel images and kernel modules</p></li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''ls output/debs/linux-*'''
 
test@test:~/orangepi-build$ '''ls output/debs/linux-*'''
  
Line 7,822: Line 9,362:
  
 
output/debs/linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb
 
output/debs/linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<ol start="8" style="list-style-type: decimal;">
 
<li><p>The files contained in the generated Linux-image deb package are as follows</p>
 
<li><p>The files contained in the generated Linux-image deb package are as follows</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>Use the following command to decompress the deb package</li></ol>
+
<li>Use the following command to decompress the deb package</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''cd output/debs'''
 
test@test:~/orangepi-build$ '''cd output/debs'''
  
Line 7,846: Line 9,389:
  
 
'''boot etc lib''' linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb '''usr'''
 
'''boot etc lib''' linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb '''usr'''
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The decompressed file is as follows</li></ol>
+
<li>The decompressed file is as follows</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build/output/debs/test$ '''tree -L 2'''
 
test@test:~/orangepi-build/output/debs/test$ '''tree -L 2'''
  
Line 7,874: Line 9,420:
 
└── usr
 
└── usr
  
├── lib
+
:├── lib
  
└── share
+
:└── 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 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 start="9" style="list-style-type: decimal;">
+
Set the IGNORE_UPDATES variable in '''userpatches/config-default.conf''' to &quot;yes&quot;
<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;
+
{| class="wikitable" style="width:800px;"
</blockquote>
+
|-
 +
|
 
test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''
 
test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''
  
IGNORE_UPDATES=&quot;'''yes'''&quot;
+
IGNORE_UPDATES=&quot;'''<span style="color:#FF0000">yes</span>'''&quot;
 
+
|}
 +
</ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<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>Upload the deb package of the compiled Linux kernel to the Linux system of the development board</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''cd output/debs'''
 
test@test:~/orangepi-build$ '''cd output/debs'''
  
Line 7,898: Line 9,451:
  
 
'''linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb root@192.168.1.xxx:/root'''
 
'''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;">
 
<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>
+
<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'''
 
root@orangepi:~# '''apt purge -y linux-image-legacy-rockchip-rk356x'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>Install the deb package of the new Linux kernel just uploaded</li></ol>
+
<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'''
 
root@orangepi:~# '''dpkg -i linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<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>
+
<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'''
 
root@orangepi:~# '''reboot'''
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="11" style="list-style-type: decimal;">
 
<ol start="11" style="list-style-type: decimal;">
 
<li><p>Other useful information</p>
 
<li><p>Other useful information</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>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;"
 +
|-
 +
|
 +
[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>
 +
<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/boot/dts/rockchip/rk3588s-orangepi-5.dts '''orangepi-build/kernel/orange-pi-5.10-rk35xx/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts''']
 +
|}
 +
</ol>
 
</li></ol>
 
</li></ol>
 +
<span id="compile-rootfs"></span>
  
[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]
+
== Compile rootfs ==
  
<ol start="2" style="list-style-type: lower-alpha;">
+
# Run the build.sh script, remember to add sudo permission
<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
 
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Select '''Rootfs and all deb packages''',then enter</li></ol>
+
<li>Select '''Rootfs and all deb packages''', then enter</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img388.png|576x119px|选区_241]]
+
[[File:pi3b-img388.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select the model of the development board</li></ol>
+
<li>Then select the model of the development board</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]]
+
[[File:pi3b-img380.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select the type of rootfs</li></ol>
+
<li>Then select the type of rootfs</li>
 
 
[[File:pi3b-img389.png|575x86px]]
 
  
 +
[[File:pi3b-img389.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
 
<li><p>Then select the type of image</p>
 
<li><p>Then select the type of image</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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 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><p>'''Image with desktop environment''' Indicates a image with a desktop, which is relatively large</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img390.png|576x75px|选区_245]]
+
[[File:pi3b-img390.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img391.png|576x78px|选区_397]]
+
[[File:pi3b-img391.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img392.png|575x99px|Selection_001]]
+
[[File:pi3b-img392.png]]
  
 
</div>
 
</div>
[[File:pi3b-img393.png|576x74px]]
+
[[File:pi3b-img393.png]]
  
 
You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.
 
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]]
+
[[File:pi3b-img394.png]]
 
+
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<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;">
 
<ol style="list-style-type: lower-alpha;">
<li>The type of rootfs</li></ol>
+
<li>The type of rootfs</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
[ o.k. ] local not found [ Creating new rootfs cache for '''jammy''']
 
[ o.k. ] local not found [ Creating new rootfs cache for '''jammy''']
 
+
|}
 +
</ol>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>The storage path of the compiled rootfs compressed package</li></ol>
+
<li>The storage path of the compiled rootfs compressed package</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Target directory [ '''external/cache/rootfs''' ]
 
[ o.k. ] Target directory [ '''external/cache/rootfs''' ]
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: lower-alpha;">
 
<ol start="3" style="list-style-type: lower-alpha;">
<li>The name of the rootfs compressed package generated by compilation</li></ol>
+
<li>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''' ]
 
[ o.k. ] File name [ '''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4''' ]
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: lower-alpha;">
 
<ol start="4" style="list-style-type: lower-alpha;">
<li>The time used for compilation</li></ol>
+
<li>The time used for compilation</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
[ o.k. ] Runtime [ '''13 min''' ]
 
[ o.k. ] Runtime [ '''13 min''' ]
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<ol start="9" style="list-style-type: decimal;">
 
<li><p>View the rootfs compressed package generated by compilation</p>
 
<li><p>View the rootfs compressed package generated by compilation</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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>
 
<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;">
+
<ol style="list-style-type: none;">
<li><p>'''jammy''' indicates the type of Linux distribution of rootfs</p></li>
+
<li><p>a) '''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>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>'''arm64''' represents the architecture type of rootfs</p></li>
+
<li><p>c) '''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><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>
<li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list''' lists the package names of all packages installed by rootfs</p></li></ol>
+
<li><p>'''jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list''' lists the package names of all packages installed by rootfs</p></li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
test@test:~/orangepi-build$ '''ls external/cache/rootfs/'''
 
test@test:~/orangepi-build$ '''ls external/cache/rootfs/'''
  
Line 8,032: Line 9,620:
  
 
jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list
 
jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list
 
+
|}
 +
</ol>
 +
</li></ol>
 
<ol start="10" style="list-style-type: decimal;">
 
<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>
 
<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>
 
<span id="compile-linux-image"></span>
 +
 
== Compile Linux image ==
 
== Compile Linux image ==
  
 
# Run the build.sh script, remember to add sudo permission
 
# Run the build.sh script, remember to add sudo permission
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 
test@test:~/orangepi-build$ '''sudo ./build.sh'''
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Select '''Full OS image for flashing''',then enter</li></ol>
+
<li>Select '''Full OS image for flashing''', then enter</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img395.png|576x128px|选区_242]]
+
[[File:pi3b-img395.png]]
  
</div>
+
</div></ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select the model of the development board</li></ol>
+
<li>Then select the model of the development board</li>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img380.png|576x197px|}4$_5F06}}0R4GU8]OVO}4E]]
+
[[File:pi3b-img380.png]]
  
</div>
+
</div></ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select the type of rootfs</li></ol>
+
<li>Then select the type of rootfs</li>
 
 
[[File:pi3b-img389.png|575x86px]]
 
  
 +
[[File:pi3b-img389.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
 
<li><p>Then select the type of image</p>
 
<li><p>Then select the type of image</p>
 
<ol style="list-style-type: lower-alpha;">
 
<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 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><p>'''Image with desktop environment''' Indicates a image with a desktop, which is relatively large</p></li>
</li></ol>
 
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img390.png|576x75px|选区_245]]
+
[[File:pi3b-img390.png]]
  
</div>
+
</div></ol>
 +
</li></ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img391.png|569x77px|选区_397]]
+
[[File:pi3b-img391.png]]
  
</div>
+
</div></ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
  
 
<div class="figure">
 
<div class="figure">
  
[[File:pi3b-img392.png|575x99px|Selection_001]]
+
[[File:pi3b-img392.png]]
  
 
</div>
 
</div>
[[File:pi3b-img393.png|576x74px]]
+
[[File:pi3b-img393.png]]
  
 
You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.
 
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]]
+
[[File:pi3b-img394.png]]
 
+
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
 
<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>
+
<ol style="list-style-type: lower-alpha;">
<p>b. Download the source code of u-boot and Linux kernel (if cached, only update the code)</p>
+
<li><p>Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process</p></li>
<p>c. Compile u-boot source code and generate u-boot deb package</p>
+
<li><p>Download the source code of u-boot and Linux kernel (if cached, only update the code)</p></li>
<p>d. Compile the Linux source code and generate Linux-related deb packages</p>
+
<li><p>Compile u-boot source code and generate u-boot deb package</p></li>
<p>e. Make the deb package of Linux firmware</p>
+
<li><p>Compile the Linux source code and generate Linux-related deb packages</p></li>
<p>f. Make the deb package of the orangepi-config tool</p>
+
<li><p>Make the deb package of Linux firmware</p></li>
<p>g. Create a deb package supported by the board</p>
+
<li><p>Make the deb package of the orangepi-config tool</p></li>
<p>h. If you are compiling the desktop image, you will also create desktop-related deb packages</p>
+
<li><p>Create a deb package supported by the board</p></li>
<p>i. Check whether the rootfs has been cached, if not, recreate the rootfs, if it has been cached, directly decompress and use</p>
+
<li><p>If you are compiling the desktop image, you will also create desktop-related deb packages</p></li>
<p>j. Install the previously generated deb package into rootfs</p>
+
<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>
<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>
+
<li><p>Install the previously generated deb package into rootfs</p></li>
<p>l. Then make an image file and format the partition, the default type is ext4</p>
+
<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>
<p>m. Then copy the configured rootfs to the mirrored partition</p>
+
<li><p>Then make an image file and format the partition, the default type is ext4</p></li>
<p>n. Then update initramfs</p>
+
<li><p>Then copy the configured rootfs to the mirrored partition</p></li>
<p>o. Finally, write the bin file of u-boot into the image through the dd command</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>
 
<li><p>After compiling the image, the following information will be prompted</p>
 
<ol style="list-style-type: lower-alpha;">
 
<ol style="list-style-type: lower-alpha;">
<li>The storage path of the compiled image</li></ol>
+
<li>The storage path of the compiled image</li>
</li></ol>
+
{| class="wikitable" style="width:800px;"
 
+
|-
 +
|
 
[ 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''' ]
 
[ 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>
 
<ol start="2" style="list-style-type: lower-alpha;">
 
<ol start="2" style="list-style-type: lower-alpha;">
<li>Compilation time</li></ol>
+
<li>Compilation time</li>
 
+
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
'''[ o.k. ] Runtime [ 19 min ]'''
 
'''[ o.k. ] Runtime [ 19 min ]'''
 
+
|}
<ol style="list-style-type: lower-alpha;">
+
</ol>
<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>
+
<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 [ '''sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=image RELEASE=bullseye BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=yes''' ]
 
[ 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''' ]
 
+
|}
 +
</ol>
 +
</li></ol>
 
<span id="android-11-operating-system-instructions"></span>
 
<span id="android-11-operating-system-instructions"></span>
  
Line 8,139: Line 9,746:
 
== Supported Android versions ==
 
== Supported Android versions ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''Android version'''
 
|'''Android version'''
Line 8,149: Line 9,756:
  
 
<span id="android-function-adaptation"></span>
 
<span id="android-function-adaptation"></span>
 +
 
== Android Function Adaptation ==
 
== Android Function Adaptation ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
 
|'''Functions'''
 
|'''Functions'''
Line 8,239: Line 9,847:
  
 
<span id="wifi-connection-test-method"></span>
 
<span id="wifi-connection-test-method"></span>
 +
 
== WIFI connection test method ==
 
== WIFI connection test method ==
  
 
# First click enter '''Setting'''
 
# First click enter '''Setting'''
  
[[File:pi3b-img396.png|549x228px]]
+
::[[File:pi3b-img396.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then select '''Network &amp; internet'''</li></ol>
+
<li>Then select '''Network &amp; internet'''</li>
 
 
[[File:pi3b-img397.png|565x120px]]
 
  
 +
[[File:pi3b-img397.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select '''Wi-Fi'''</li></ol>
+
<li>Then select '''Wi-Fi'''</li>
 
 
[[File:pi3b-img398.png|561x99px]]
 
  
 +
[[File:pi3b-img398.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then turn on the '''Wi-Fi''' switch</li></ol>
+
<li>Then turn on the '''Wi-Fi''' switch</li>
 
 
[[File:pi3b-img399.png|560x167px]]
 
  
 +
[[File:pi3b-img399.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<li>After turning on '''Wi-Fi''', if everything is normal, you can scan for nearby Wi-Fi hotspots</li>
 
 
[[File:pi3b-img400.png|561x166px]]
 
  
 +
[[File:pi3b-img400.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img401.png|553x237px]]
 
  
 +
[[File:pi3b-img401.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img402.png|553x232px]]
 
  
 +
[[File:pi3b-img402.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<li>After the Wi-Fi connection is successful, the display is as shown in the figure below:</li>
  
[[File:pi3b-img403.png|558x102px]]
+
[[File:pi3b-img403.png]]
 +
</ol>
 +
<span id="how-to-use-wi-fi-hotspot"></span>
  
<span id="how-to-use-wi-fi-hotspot"></span>
 
 
== How to use Wi-Fi hotspot ==
 
== How to use Wi-Fi hotspot ==
  
Line 8,286: Line 9,896:
 
# Then select '''Settings'''
 
# Then select '''Settings'''
  
[[File:pi3b-img396.png|549x228px]]
+
::[[File:pi3b-img396.png]]
  
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then select '''Network &amp; internet'''</li></ol>
+
<li>Then select '''Network &amp; internet'''</li>
 
 
[[File:pi3b-img397.png|565x120px]]
 
  
 +
[[File:pi3b-img397.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then select '''Hotspot &amp; tethering'''</li></ol>
+
<li>Then select '''Hotspot &amp; tethering'''</li>
 
 
[[File:pi3b-img404.png|549x173px]]
 
  
 +
[[File:pi3b-img404.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then select '''Wi-Fi hotspot'''</li></ol>
+
<li>Then select '''Wi-Fi hotspot'''</li>
 
 
[[File:pi3b-img405.png|548x104px]]
 
  
 +
[[File:pi3b-img405.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img406.png|551x158px]]
 
  
 +
[[File:pi3b-img406.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img407.png|313x238px]]
 
  
 +
[[File:pi3b-img407.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img408.png|327x165px]]
+
[[File:pi3b-img408.png]]
 +
</ol>
 +
<span id="bluetooth-test-method"></span>
  
<span id="bluetooth-test-method"></span>
 
 
== Bluetooth test method ==
 
== Bluetooth test method ==
  
 
# First click enter '''Setting'''
 
# First click enter '''Setting'''
  
[[File:pi3b-img396.png|549x228px]]
+
::[[File:pi3b-img396.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>Then select '''Connected devices'''</li></ol>
+
<li>Then select '''Connected devices'''</li>
 
 
[[File:pi3b-img409.png|547x115px]]
 
  
 +
[[File:pi3b-img409.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<li>Then click '''Pair new device''' to turn on Bluetooth and start scanning the surrounding Bluetooth devices</li>
 
 
[[File:pi3b-img410.png|547x126px]]
 
  
 +
[[File:pi3b-img410.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>The searched Bluetooth devices will be displayed under '''Available devices'''</li></ol>
+
<li>The searched Bluetooth devices will be displayed under '''Available devices'''</li>
 
 
[[File:pi3b-img411.png|559x279px]]
 
  
 +
[[File:pi3b-img411.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img412.png|522x212px]]
 
  
 +
[[File:pi3b-img412.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img413.png|236x273px]]
 
  
 +
[[File:pi3b-img413.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<li>After the pairing is completed, you can see the paired Bluetooth device as shown in the figure below</li>
 
 
[[File:pi3b-img414.png|545x178px]]
 
  
 +
[[File:pi3b-img414.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img415.png|559x238px]]
 
  
 +
[[File:pi3b-img415.png]]
 +
</ol>
 
<ol start="9" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img416.png|573x97px]]
+
[[File:pi3b-img416.png]]
 +
</ol>
 +
<span id="how-to-use-raspberry-pi-5-inch-screen"></span>
  
<span id="how-to-use-raspberry-pi-5-inch-screen"></span>
 
 
== How to use Raspberry Pi 5-inch screen ==
 
== How to use Raspberry Pi 5-inch screen ==
  
'''Please make sure that the image used is the following two versions of the image:'''
+
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
 +
|-
 +
|
 +
<big>'''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_lcd_v1.x.x.img'''
  
'''OrangePi3B_RK3566_Android11_spi-nvme_lcd_v1.x.x.img'''
+
'''OrangePi3B_RK3566_Android11_spi-nvme_lcd_v1.x.x.img'''</big>
 +
|}
  
# The screen needs to be assembled first, please refer to [[\l|'''the assembly method of the Raspberry Pi 5-inch screen''']]
+
# The screen needs to be assembled first, please refer to [[Orange Pi 3B#Use of the Raspberry PI's 5-inch screen|'''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
 
# 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]]
+
::[[File:pi3b-img417.png]]
  
 
<span id="pin-interface-gpio-uart-spi-and-pwm-test"></span>
 
<span id="pin-interface-gpio-uart-spi-and-pwm-test"></span>
 +
 
== 40pin interface GPIO, UART, SPI and PWM test ==
 
== 40pin interface GPIO, UART, SPI and PWM test ==
  
Line 8,387: Line 10,004:
 
# First click on the wiringOP icon to open the wiringOP APP
 
# First click on the wiringOP icon to open the wiringOP APP
  
[[File:pi3b-img418.png|576x210px]]
+
::[[File:pi3b-img418.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img419.png|575x148px]]
 
  
 +
[[File:pi3b-img419.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img420.png|576x303px]]
 
  
 +
[[File:pi3b-img420.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<li>Then click the '''GPIO READALL''' button, the output information is as shown in the figure below:</li>
 
 
[[File:pi3b-img421.png|575x323px]]
 
  
 +
[[File:pi3b-img421.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img422.png|241x326px]]
 
  
 +
[[File:pi3b-img422.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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|574x301px]]
 
  
 +
[[File:pi3b-img423.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img424.png|250x345px]]
 
  
 +
[[File:pi3b-img424.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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|576x300px]]
+
[[File:pi3b-img425.png]]
 +
</ol>
 +
<span id="pin-uart-test-1"></span>
  
<span id="pin-uart-test-1"></span>
 
 
=== 40pin UART test ===
 
=== 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
 
# 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]]
+
::[[File:pi3b-img269.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>First click on the wiringOP icon to open the wiringOP APP</li></ol>
+
<li>First click on the wiringOP icon to open the wiringOP APP</li>
 
 
[[File:pi3b-img418.png|576x210px]]
 
  
 +
[[File:pi3b-img418.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img426.png|575x156px]]
 
  
 +
[[File:pi3b-img426.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<li>The serial port test interface of the APP is shown in the figure below</li>
 
 
[[File:pi3b-img427.png|576x324px]]
 
  
 +
[[File:pi3b-img427.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img428.png|574x166px]]
 
  
 +
[[File:pi3b-img428.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<ol start="6" style="list-style-type: decimal;">
<li>Then use Dupont wire to short the RXD and TXD pins of uart7</li></ol>
+
<li>Then use Dupont wire to short the RXD and TXD pins of uart7</li>
 
 
[[File:pi3b-img429.png|418x103px]]
 
  
 +
[[File:pi3b-img429.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<li>Then you can enter a character in the send edit box below, and click the '''SEND''' button to start sending</li>
 
 
[[File:pi3b-img430.png|575x161px]]
 
  
 +
[[File:pi3b-img430.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<li>If everything is normal, the received string will be displayed in the receiving box</li>
  
[[File:pi3b-img431.png|574x164px]]
+
[[File:pi3b-img431.png]]
 +
</ol>
 +
<span id="pin-spi-test-2"></span>
  
<span id="pin-spi-test-2"></span>
 
 
=== 40pin SPI test ===
 
=== 40pin SPI test ===
  
 
# According to the schematic diagram of the 40pin interface, the spi available for Orange Pi 3B is spi3
 
# According to the schematic diagram of the 40pin interface, the spi available for Orange Pi 3B is spi3
  
[[File:pi3b-img264.png|577x193px]]
+
::[[File:pi3b-img264.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>Here, the SPI interface is tested through the w25q64 module. First, the w25q64 device is connected to the SPI3 interface</li>
 
 
[[File:pi3b-img432.png|373x215px]]
 
  
 +
[[File:pi3b-img432.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Then click the wiringOP icon to open the wiringOP APP</li></ol>
+
<li>Then click the wiringOP icon to open the wiringOP APP</li>
 
 
[[File:pi3b-img418.png|576x210px]]
 
  
 +
[[File:pi3b-img418.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img433.png|574x149px]]
 
  
 +
[[File:pi3b-img433.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">
<li>Then click the '''OPEN''' button to initialize the SPI</li></ol>
+
<li>Then click the '''OPEN''' button to initialize the SPI</li>
 
 
[[File:pi3b-img434.png|576x241px]]
 
  
 +
[[File:pi3b-img434.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img435.png|572x216px]]
 
  
 +
[[File:pi3b-img435.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<ol start="7" style="list-style-type: decimal;">
<li>Finally, the APP will display the read ID information</li></ol>
+
<li>Finally, the APP will display the read ID information</li>
 
 
[[File:pi3b-img436.png|575x296px]]
 
  
 +
[[File:pi3b-img436.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img437.png|374x126px]]
+
[[File:pi3b-img437.png]]
 +
</ol>
 +
<span id="pin-pwm-test"></span>
  
<span id="pin-pwm-test"></span>
 
 
=== 40pin PWM test ===
 
=== 40pin PWM test ===
  
 
# Android enables '''PWM11''' by default, and the corresponding pin is located at 40pin as shown in the figure below
 
# Android enables '''PWM11''' by default, and the corresponding pin is located at 40pin as shown in the figure below
  
[[File:pi3b-img438.png|334x107px]]
+
::[[File:pi3b-img438.png]]
  
 
<ol start="2" style="list-style-type: decimal;">
 
<ol start="2" style="list-style-type: decimal;">
<li>First click on the wiringOP icon to open the wiringOP APP</li></ol>
+
<li>First click on the wiringOP icon to open the wiringOP APP</li>
 
 
[[File:pi3b-img418.png|576x210px]]
 
  
 +
[[File:pi3b-img418.png]]
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<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>
+
<li>Then click the '''PWM_TEST''' button on the main interface of wiringOP to enter the PWM test interface</li>
 
 
[[File:pi3b-img439.png|575x150px]]
 
  
 +
[[File:pi3b-img439.png]]
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img440.png|576x178px]]
 
  
 +
[[File:pi3b-img440.png]]
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<li>When the drop-down option selects '''pwmchip3''', the corresponding base address of PWM11 is '''fe6f0030''' on the right</li>
 
 
[[File:pi3b-img441.png|574x161px]]
 
  
 +
[[File:pi3b-img441.png]]
 +
</ol>
 
<ol start="6" style="list-style-type: decimal;">
 
<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>
+
<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>
 
 
[[File:pi3b-img442.png|575x160px]]
 
  
 +
[[File:pi3b-img442.png]]
 +
</ol>
 
<ol start="7" style="list-style-type: decimal;">
 
<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>
+
<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|575x167px]]
 
  
 +
[[File:pi3b-img443.png]]
 +
</ol>
 
<ol start="8" style="list-style-type: decimal;">
 
<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>
+
<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>
  
[[File:pi3b-img444.png|460x276px]]
+
[[File:pi3b-img444.png]]
 +
</ol>
 +
<span id="how-to-use-adb"></span>
  
<span id="how-to-use-adb"></span>
 
 
== How to use ADB ==
 
== How to use ADB ==
  
Line 8,556: Line 10,177:
 
=== Use network connection adb debugging ===
 
=== 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.'''
+
{| 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>
 +
|}
  
 
# Make sure that the '''service.adb.tcp.port''' of the Android system is set to port number 5555
 
# Make sure that the '''service.adb.tcp.port''' of the Android system is set to port number 5555
  
 +
::{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
console:/ # '''getprop | grep &quot;adb.tcp&quot;'''
 
console:/ # '''getprop | grep &quot;adb.tcp&quot;'''
  
 
[service.adb.tcp.port]: ['''5555''']
 
[service.adb.tcp.port]: ['''5555''']
 +
|}
  
 
<ol start="2" style="list-style-type: decimal;">
 
<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>
+
<li>If '''service.adb.tcp.port''' is not set, you can use the following command to set the port number of network adb</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
console:/ # '''setprop service.adb.tcp.port 5555'''
 
console:/ # '''setprop service.adb.tcp.port 5555'''
  
Line 8,572: Line 10,204:
  
 
console:/ # '''start adbd'''
 
console:/ # '''start adbd'''
 
+
|}
 +
</ol>
 
<ol start="3" style="list-style-type: decimal;">
 
<ol start="3" style="list-style-type: decimal;">
<li>Install adb tool on Ubuntu PC</li></ol>
+
<li>Install adb tool on Ubuntu PC</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''sudo apt update'''
 
test@test:~$ '''sudo apt update'''
  
 
test@test:~$ '''sudo apt install -y adb'''
 
test@test:~$ '''sudo apt install -y adb'''
 
+
|}
 +
</ol>
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
<li>Then connect network adb on Ubuntu PC</li></ol>
+
<li>Then connect network adb on Ubuntu PC</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''adb connect 192.168.1.xxx''' '''(The IP address needs to be changed to the IP address of the development board)'''
 
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
+
<p>* daemon not running; starting now at tcp:5037</p>
  
* daemon started successfully
+
<p>* daemon started successfully</p>
  
 
connected to 192.168.1.xxx:5555
 
connected to 192.168.1.xxx:5555
 +
  
 
test@test:~$ '''adb devices'''
 
test@test:~$ '''adb devices'''
Line 8,596: Line 10,237:
  
 
192.168.1.xxx:5555 device
 
192.168.1.xxx:5555 device
 
+
|}
 +
</ol>
 
<ol start="5" style="list-style-type: decimal;">
 
<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>
+
<li>Then you can log in to the android system through the adb shell on the Ubuntu PC</li>
  
 +
{| class="wikitable" style="width:800px;"
 +
|-
 +
|
 
test@test:~$ '''adb shell'''
 
test@test:~$ '''adb shell'''
  
 
console:/ #
 
console:/ #
 
+
|}
 +
</ol>
 
<span id="appendix"></span>
 
<span id="appendix"></span>
  
Line 8,611: Line 10,257:
 
== User Manual Update History ==
 
== User Manual Update History ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;text-align: center;"
 
|-
 
|-
|'''Version'''
+
|
|'''Date'''
+
'''Version'''
|'''Update Notes'''
+
|
 +
'''Date'''
 +
|
 +
'''Update Notes'''
 
|-
 
|-
|v0.1
+
|
|2023-07-19
+
v0.1
|initial version
+
|
 +
2023-07-19
 +
|
 +
initial version
 
|}
 
|}
  
Line 8,625: Line 10,277:
 
== Image Update History ==
 
== Image Update History ==
  
{| class="wikitable"
+
{| class="wikitable" style="width:800px;"
 
|-
 
|-
| '''Date'''
+
| style="text-align: center;" |
| '''Update Notes'''
+
'''Date'''
 +
| style="text-align: center;" |
 +
'''Update Notes'''
 
|-
 
|-
| 2023-07-19
+
| style="text-align: center;" |
| Orangepi3 b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z
+
2023-07-19
 +
|
 +
Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z
  
Orange pi3b_1.0.0_ubuntu_jammy_desktop_xfce_linux5.10.160.7z
+
Orangepi3b_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_1.0.0_ubuntu_focal_desktop_xfce_linux5.10.160.7z
  
 
OrangePi3B_RK3566_Android11_v1.0.0.tar.gz
 
OrangePi3B_RK3566_Android11_v1.0.0.tar.gz
Line 8,643: Line 10,299:
 
OrangePi3B_RK3566_Android11_spi-nvme_v1.0.0.tar.gz
 
OrangePi3B_RK3566_Android11_spi-nvme_v1.0.0.tar.gz
  
O rangePi3B_RK3566_Android11_lcd_spi-nvme_v1.0.0.tar.gz
+
OrangePi3B_RK3566_Android11_lcd_spi-nvme_v1.0.0.tar.gz
 +
 
  
* initial version
+
<p>* initial version</p>
  
 
|}
 
|}

Latest revision as of 09:06, 24 August 2023

Contents

Basic features of Orange Pi 3B

What is Orange Pi 3B

Orange Pi 3B adopts Rockchip RK3566 quad-core 64-bit Cortex-A55 processor, adopts 22nm process, the main frequency can reach up to 1.8GHz, integrates ARM Mali-G52 GPU, embedded high-performance 2D image acceleration module, built-in 1 The AI accelerator NPU of Tops computing power can choose 2GB, 4GB or 8GB memory, and has up to 4K display processing capability.

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, OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on OpenHarmony and other operating systems.

Purpose of Orange Pi 3B

We can use it to achieve:

  • A Linux desktop computer
  • A Linux web server
  • Android tablet
  • Android game console, etc.

Of course, there are more functions. Relying on a powerful ecosystem and a variety of expansion accessories, Orange Pi can help users easily realize the delivery from idea to prototype to mass production. It is a maker, dreamer, hobby The ideal creative platform for readers.

Hardware Features of Orange Pi 3B

Introduction to hardware features
Master chip

Rockchip RK3566

CPU

Quad-core 64-bit Cortex-A55 processor, 22nm advanced technology, main frequency up to 1.8GHz

GPU

• ARM Mali G52 2EE graphics processor

• Support OpenGL ES 1.1/2.0/3.2, OpenCL 2.0, Vulkan 1.1

• Embedded high-performance 2D acceleration hardware

NPU

• Integrated RKNN NPU AI accelerator, 0.8Tops@INT8 performance

• Supports one-click conversion of Caffe/TensorFlow/TFLite/ONNX/PyTorch/Keras/Darknet architecture models

VPU

• 4K@60fps H.265/H.264/VP9 video decoding

• 1080P@100fps H.265 video encoding

• 1080P@60fps H.264 video encoding

PMU

Rockchip RK809-5

Memory

2GB/4GB/8GB (LPDDR4/4x)

storage

• Support eMMC module: 16GB/32GB/64GB/128GB/256GB

• SPI Flash: 16MB/32MB

• M.2 M-KEY slot: SATA3 or PCIe2.0 NVME SSD

• TF card slot

Wi-Fi+Bluetooth

Wi-Fi 5+BT 5.0, BLE(20U5622)

ethernet transceiver

10/100/1000Mbps Ethernet (onboard PHY chip: YT8531C)

show

• 1x HDMI TX 2.0, maximum support 4K@60FPS

• 1xMIPI DSI 2 Lane

• eDP1.3

Camera

1xMIPI CSI 2 Lane camera interface

USB

• 1xUSB 2.0 supports Device or HOST mode

• 1xUSB 3.0 HOST

• 2xUSB 2.0 HOST

Audio

3.5mm headphone jack audio input/output

Button

1x MaskROM key, 1xRESET key, 1 xPOWER key

FAN

2Pin 1.25mm 5V fan interface

RTC

2Pin 1.25mm backup battery interface

40Pin

40Pin function expansion interface, supports the following interface types:

GPIO, UART, I2C, SPI, PWM

Power Supply

Type-C 5V3A

Supported OS

Android11, Ubuntu22.04, Ubuntu20.04, Debian11, Debian12, OpenHarmony 4.0 Beta1, Orange Pi OS (Arch), Orange Pi OS (OH) based on OpenHarmony and other operating systems.

Introduction of Appearance Specifications
PCB size

85mm x 56mm x 17mm

weight

49g

Top view and bottom view of Orange Pi 3B

Top view:

Pi3b-img3.png

Bottom view:

Pi3b-img4.png

Interface details of Orange Pi 3B

Pi3b-img5-1.png

Pi3b-img6.png

The diameter of the four positioning holes is 2.7mm, and the diameter of the M.2 PICE device fixing hole is 2.9mm.

Introduction to the use of the development board

Prepare the required accessories

  1. TF card, class 10 or above high-speed SanDisk card with a minimum capacity of 16GB (recommended 32GB or above)
Pi3b-img7.png
  1. TF card reader, used to burn the image into the TF card
  2. Pi3b-img8.png

  1. Display with HDMI interface
  2. Pi3b-img9.png

  1. HDMI to HDMI cable, used to connect the development board to an HDMI monitor or TV for display
  2. Pi3b-img10.png

    Note, if you want to connect a 4K monitor, please make sure that the HDMI cable supports 4K video output.

  1. Power adapter, Orange Pi 3B is recommended to use 5V/3A Type-C power supply for power supply
  2. Pi3b-img11-1.png

  1. The mouse and keyboard of the USB interface, as long as the mouse and keyboard of the standard USB interface are acceptable, the mouse and keyboard can be used to control the Orange Pi development board
  2. Pi3b-img12.png

  1. USB camera
  2. Pi3b-img13.png

  1. 5V cooling fan. As shown in the figure below, the development board has an interface for connecting the cooling fan, and the interface specification is 2pin 1.25mm pitch
  2. The fan on the development board can adjust the speed and switch through PWM.

    Pi3b-img14.png

  1. 100M or 1000M network cable, used to connect the development board to the Internet
  2. Pi3b-img15.png

  1. USB2.0 male-to-male data cable, used to burn images to eMMC, NVMe SSD and other functions
  2. Pi3b-img16.png

  1. 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
  2. Pi3b-img17.png Pi3b-img18.png

  1. A personal computer with Ubuntu and Windows operating systems installed
  2. 1 Ubuntu22.04 PC Optional, used to compile Linux source code
    2 Windows PC For burning Android and Linux images

Download the image of the development board and related materials

  1. The website for downloading the English version of materials is:

http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html

Pi3b-img19.png
  1. The information mainly includes

    1. Android source code: saved on Google Cloud Disk

    2. Linux source code: saved on Github

    3. User manual and schematic diagram: saved on Google Cloud Disk

    4. Official tools: mainly include the software that needs to be used during the use of the development board

    5. Android image: saved on Google Cloud Disk

    6. Ubuntu image: saved on Google Cloud Disk

    7. Debian image: saved on Google Cloud Disk

    8. Orange Pi OS image: saved on Google Cloud Disk

    9. OpenHarmony image: saved on Google Cloud Disk

Method of burning Linux image to TF card based on Windows PC

Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the Orange Pi data download page.

How to use balenaEtcher to burn Linux image

  1. 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
  2. Then use the card reader to insert the TF card into the computer
  3. Download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system. The size is generally above 2GB.
  4. Then download the burning software of Linux image—balenaEtcher, the download address is:

https://www.balena.io/etcher/

  1. After entering the balenaEtcher download page, click the green download button to jump to the place where the software is downloaded
  2. Pi3b-img20.png

  1. Then you can choose to download the Portable version of balenaEtcher software. The Portable version does not need to be installed, and you can use it by double-clicking to open it
  2. Pi3b-img21.png

  1. If the downloaded version of balenaEtcher needs to be installed, please install it before using it. If you downloaded the Portable version of balenaEtcher, just double-click to open it. The balenaEtcher interface after opening is shown in the figure below:
  2. Pi3b-img22.png

    When opening balenaEtcher, if the following error is prompted:

    Pi3b-img23.png

    Please select balenaEtcher, right-click, and select Run as administrator.

    Pi3b-img24.png
  1. The specific steps to use balenaEtcher to burn the Linux image are as follows

    1. First select the path of the Linux image file to be burned

    2. Then select the drive letter of the TF card

    3. Finally click Flash to start burning the Linux image to the TF card

    4. Pi3b-img25.png

  1. 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
  2. Pi3b-img26.png

  1. 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
  2. Pi3b-img27.png

  1. 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.
  2. Pi3b-img28.png

How to use RKDevTool to burn Linux image to TF card

  1. First, you need to prepare a good quality USB2.0 male-to-male data cable
Pi3b-img16.png
  1. 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

  2. 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

    1. On the data download page of Orange Pi, first select the official tool, and then enter the following folder
    2. Pi3b-img29.png

    1. Then download all the files below
    2. Pi3b-img30.png

      Note that the "MiniLoader-things needed to burn the Linux image" folder is hereinafter referred to as the MiniLoader folder.

  1. Then download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system , the size is generally more than 2GB

  2. 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

  3. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "The driver is installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Linux image to the TF card

    1. 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
    2. Pi3b-img36.png

    1. Make sure the TF card slot is not inserted into the TF card

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. At this time, please insert the TF card into the TF card slot

    2. Then place the mouse cursor in the area below

    3. Pi3b-img40.png

    1. Then click the right mouse button and the selection interface shown in the figure below will pop up
    2. Pi3b-img41.png

    1. Then select the import configuration option
    2. Pi3b-img42.png

    1. Then select the rk3588_Linux_tfcard.cfg configuration file in the MiniLoader folder downloaded earlier, and click Open
    2. Pi3b-img43.png

    1. Then click OK
    2. Pi3b-img44.png

    1. Then click the position shown in the figure below
    2. Pi3b-img45.png

    1. Then select rk3566_MiniLoaderAll.bin in the MiniLoader folder downloaded earlier, and click to open
    2. Pi3b-img46.png

    1. Then click the position shown in the figure below
    2. Pi3b-img47.png

    1. Then select the path of the Linux image you want to burn, and then click Open
    2. 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.

      Pi3b-img48.png

    1. Then please check the mandatory write by address option
    2. Pi3b-img49.png

    1. Click the execute button again to start burning the Linux image to the tf card of the development board
    2. Pi3b-img50.png

    1. The display log after burning the Linux image is shown in the figure below
    2. Pi3b-img51.png

    1. After burning the Linux image to the TF card, the Linux system will start automatically.

How to use Win32Diskimager to burn Linux image

  1. 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

  2. Then use the card reader to insert the TF card into the computer

  3. Then format the TF card

    1. SD Card Formatter can be used to format the TF card. The download address is:
    2. https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip

    1. After downloading, unzip and install directly, and then open the software

    2. If only a TF card is inserted into the computer, the drive letter of the TF card will be displayed in the "Select card" 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

    3. Pi3b-img52.png

    1. Then click "Format", a warning box will pop up before formatting, and formatting will start after selecting "Yes (Y)"
    2. Pi3b-img53.png

    1. After formatting the TF card, the information shown in the figure below will pop up, click OK
    2. Pi3b-img54.png

  1. Download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system. The size is generally more than 2GB

  2. Use Win32Diskimager to burn the Linux image to the TF card

    1. The download page of Win32Diskimager is
    2. http://sourceforge.net/projects/win32diskimager/files/Archive/

    1. After downloading, install it directly. The interface of Win32Diskimager is as follows

      1. a) First select the path of the image file

      2. b) Then confirm that the drive letter of the TF card is consistent with that displayed in the "Device" column

      3. c) Finally click "Write" to start burning

      4. Pi3b-img55.png

    1. After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start

Method of burning Linux image to TF card based on Ubuntu PC

Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the Orange Pi data download page, and the Ubuntu PC refers to the personal computer with the Ubuntu system installed.

  1. 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
  2. Then use the card reader to insert the TF card into the computer
  3. Download the balenaEtcher software, the download address is

https://www.balena.io/etcher/

  1. After entering the balenaEtcher download page, click the green download button to jump to the place where the software is downloaded
  2. Pi3b-img20.png

  1. Then choose to download the Linux version of the software
  2. Pi3b-img56.png

  1. Download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system. The size is generally more than 2GB
  2. The decompression command for the compressed package ending in 7z is as follows

    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

  1. 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
  2. test@test:~$ sha256sum -c *.sha

    Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_Linux5.10.160.img: OK

  1. 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
  2. Pi3b-img57.png

  1. The specific steps of using balenaEtcher to burn the Linux image are as follows

    1. First select the path of the Linux image file to be burned

    2. Then select the drive letter of the TF card

    3. Finally, click Flash to start burning the Linux image to the TF card

    4. Pi3b-img25.png

  1. 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
  2. Pi3b-img58.png

  1. 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
  2. Pi3b-img59.png

  1. 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.
  2. Pi3b-img60.png

How to burn Linux image to eMMC

Using RKDevTool to burn the Linux image into eMMC

Note that all the following operations are performed on a Windows computer.

Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the Orange Pi data download page.

  1. 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:
Pi3b-img61.png Pi3b-img62.png
Pi3b-img63.png
  1. You also need to prepare a good quality USB2.0 male-to-male data cable
  2. Pi3b-img16.png

  1. 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

    1. On the data download page of Orange Pi, first select the official tool, and then enter the following folder
    2. Pi3b-img29.png

    1. Then download all the files below
    2. Pi3b-img30.png

      Note that the "MiniLoader-things needed to burn the Linux image" folder is hereinafter referred to as the MiniLoader folder.

  1. Then download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system , the size is generally more than 2GB

  2. 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

  3. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "The driver is installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Linux image into eMMC

    1. 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
    2. Pi3b-img36.png

    1. Make sure that the development board is not inserted into the TF card and not connected to the power supply

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. Then place the mouse cursor in the area below
    2. Pi3b-img64.png

    1. Then click the right mouse button and the selection interface shown in the figure below will pop up
    2. Pi3b-img41.png

    1. Then select the import configuration option
    2. Pi3b-img42.png

    1. Then select the rk3588_Linux_emmc.cfg configuration file in the MiniLoader folder downloaded earlier, and click Open
    2. Pi3b-img65.png

    1. Then click OK
    2. Pi3b-img66.png

    1. Then click the position shown in the figure below
    2. Pi3b-img67.png

    1. Then select rk3566_MiniLoaderAll.bin in the MiniLoader folder downloaded earlier, and then click to open
    2. Pi3b-img68.png

    1. Then click the position shown in the figure below
    2. Pi3b-img69.png

    1. Then select the path of the Linux image you want to burn, and then click Open
    2. 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.

      Pi3b-img48.png

    1. Then please check the option to force writing by address
    2. Pi3b-img70.png

    1. Click the execute button again to start burning the Linux image to the eMMC of the development board
    2. Pi3b-img71.png

    1. The log displayed after burning the Linux image is shown in the figure below
    2. Pi3b-img72.png

    1. After burning the Linux image into the eMMC, the Linux system will start automatically.
    2. 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 the method of using RKDevTool to clear SPIFlash.

Use the dd command to burn the Linux image into eMMC

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 Orange Pi data download page.

  1. 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:
Pi3b-img61.png Pi3b-img62.png
Pi3b-img63.png
  1. 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 the method of burning the Linux image to the TF card based on the Windows PC and the method of burning the Linux image to the TF card based on the Ubuntu PC.

  2. 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 the method of uploading files to the development board Linux system.

  3. 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.

  4. orangepi@orangepi:~$ cd /home/orangepi/Desktop

    orangepi@orangepi:~/Desktop$ ls

    Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img

    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 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 SSH remote login to the development board.

    3. If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.

  1. Next, we first use the following command to confirm the device node of eMMC
  2. orangepi@orangepi:~/Desktop$ ls /dev/mmcblk*boot0 | cut -c1-12

    /dev/mmcblk0

  1. 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
  2. orangepi@orangepi:~/Desktop$ sudo dd bs=1M if=/dev/zero of=/dev/mmcblk0 count=1000 status=progress

    orangepi@orangepi:~/Desktop$ sudo sync

  1. Then you can use the dd command to burn the Linux image of the development board into the eMMC

    1. 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.

    2. 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).

    3. sudo dd bs=1M if=Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img of=/dev/mmcblk0 status=progress

      sudo sync

      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.

  1. 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.
  2. 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 the method of using RKDevTool to clear SPIFlash.

How to write Linux image to SPIFlash+NVMe SSD

Note that the Linux image mentioned here specifically refers to the images of Linux distributions such as Debian and Ubuntu downloaded from the Orange Pi data download page.

Note that all the following operations are performed on a Windows computer.

Using RKDevTool to burn

  1. 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.

    1. The M.2 2230 SSD is as follows
    2. Pi3b-img73.png

    1. The M.2 2242 SSD is as follows
    2. Pi3b-img74.png

  1. Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it
  2. Pi3b-img75.png

  1. 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
  2. Pi3b-img76.png

  1. Then you need to prepare a good quality USB2.0 male-to-male data cable
  2. Pi3b-img16.png

  1. 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

    1. On the data download page of Orange Pi, first select the official tool, and then enter the following folder
    2. Pi3b-img29.png

    1. Then download all the files below
    2. Pi3b-img30.png

      Note that the "MiniLoader-things needed to burn the Linux image" folder is hereinafter referred to as the MiniLoader folder.

  1. Then download the Linux operating system image file compression package that you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. Among the decompressed files, the file ending with ".img" is the image file of the operating system , the size is generally more than 2GB

  2. 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

  3. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "The driver is installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Linux image to the SSD

    1. 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
    2. Pi3b-img36.png

    1. Make sure that the development board is not connected to the power supply and inserted into the TF card and eMMC

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. Then place the mouse cursor in the area below
    2. Pi3b-img64.png

    1. Then click the right mouse button and the selection interface shown in the figure below will pop up
    2. Pi3b-img41.png

    1. Then select the import configuration option
    2. Pi3b-img42.png

    1. Then enter the MiniLoader folder downloaded earlier, then select the rk3588_Linux_pcie.cfg configuration file, and click Open
    2. Pi3b-img77.png

    1. Then click OK
    2. Pi3b-img78.png

    1. Then click the position shown in the figure below
    2. Pi3b-img79.png

    1. Then select rk3566_MiniLoaderAll.bin in the MiniLoader folder downloaded earlier, and then click to open
    2. Pi3b-img68.png

    1. Then click the position shown in the figure below
    2. Pi3b-img80.png

    1. Then enter the MiniLoader folder downloaded earlier, select rk3566_rkspi_loader.img, and click Open
    2. Pi3b-img81.png

    1. Then click the position shown in the figure below
    2. Pi3b-img82.png

    1. Then select the path of the Linux image you want to burn, and then click Open
    2. 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.

      Pi3b-img48.png

    1. Then please check the option to force writing by address
    2. Pi3b-img83.png

    1. Click the Execute button again to start burning the Linux image to the SSD
    2. Pi3b-img84.png

    1. The log displayed after burning the Linux image is shown in the figure below
    2. Pi3b-img85.png

      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 the method of using RKDevTool to clear SPIFlash.

    1. 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.

The method of using the dd command to burn

  1. 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.

    1. The M.2 2230 SSD is as follows
    2. Pi3b-img73.png

    1. The M.2 2242 SSD is as follows
    2. Pi3b-img74.png

  1. Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it
  2. Pi3b-img75.png

  1. The position of SPI Flash on the development board is shown in the figure below, no other settings are required before starting to burn
  2. Pi3b-img76.png

  1. 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 Method of burning Linux image to TF card based on Windows PC and the method of burning the Linux image to the TF card based on the Ubuntu PC.

  2. After using the TF card to start the Linux system, we first burn the u-boot image into the SPI Flash

    1. Run nand-sata-install first, ordinary users remember to add sudo permission
    2. orangepi@orangepi:~$ sudo nand-sata-install

    1. Then select 7 Install/Update the bootloader on SPI Flash
    2. Pi3b-img86.png

    1. Then select <Yes>
    2. Pi3b-img87.png

    1. 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):
    2. Pi3b-img88.png

  1. 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 the method of uploading files to the development board Linux system.

  2. 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.

  3. orangepi@orangepi:~$ cd /home/orangepi/Desktop

    orangepi@orangepi:~/Desktop$ ls

    Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img

    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 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 SSH remote login to the development board.

    3. If HDMI, LCD and other display screens are connected, you can open a command line terminal on the desktop.

  1. 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
  2. orangepi@orangepi:~/Desktop$ sudo fdisk -l | grep "nvme0n1"

    Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors

    Use the lspci command to see an NVMe-related PCI device

    orangepi@orangepi:~/Desktop$ lspci

    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)

  1. Then we can use the dd command to clear the NVMe SSD (optional)
  2. orangepi@orangepi3b:~/Desktop$ sudo dd bs=1M if=/dev/zero of=/dev/nvme0n1 count=2000 status=progress

    orangepi@orangepi3b:~/Desktop$ sudo sync

  1. Then you can use the dd command to burn the Linux image of the development board to the NVMe SSD
    1. 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.

    2. 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).

    3. sudo dd bs=1M if=Orangepi3b_x.x.x_debian_bullseye_desktop_xfce_Linux5.10.160.img of=/dev/nvme0n1 status=progress


      sudo sync

      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.

  1. 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.

  2. After starting the system in the NVMe SSD, use the df -h command to see the actual hard disk capacity

    1. 128GB NVMe SSD
    2. orangepi@orangepi:~$ df -h

      Filesystem Size Used AvailUse% Mounted on
      udev3.8G 8.0K 3.8G 1% /dev
      tmpfs 769M 1.4M 768M 1% /run
      /dev/nvme0n1p2118G 5.8G 111G 5% /
      tmpfs 3.8G 03.8G 0% /dev/shm
      tmpfs 5.0M 4.0K 5.0M 1% /run/lock
      tmpfs 3.8G 16K 3.8G 1% /tmp
      /dev/nvme0n1p1256M 90M 166M 36% /boot
      /dev/zram1194M 9.9M 170M 6% /var/log
      tmpfs 769M 60K 769M 1% /run/user/1000
      tmpfs 769M 48K 769M 1% /run/user/0

    1. 2TB NVMe SSD
    2. orangepi@orangepi:~$ df -h

      Filesystem Size Used AvailUse% Mounted on
      udev3.8G 8.0K 3.8G 1% /dev
      tmpfs 769M 1.4M 768M 1% /run
      /dev/nvme0n1p21.9T 4.1G 1.8T 1% /
      tmpfs 3.8G 03.8G 0% /dev/shm
      tmpfs 5.0M 4.0K 5.0M 1% /run/lock
      /dev/zram23.7G 76K 3.5G 1% /tmp
      /dev/nvme0n1p1256M 90M 166M 36% /boot
      /dev/zram1194M 9.9M 170M 6% /var/log
      tmpfs 769M 60K 769M 1% /run/user/1000
      tmpfs 769M 48K 769M 1% /run/user/0

  1. 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.
  2. orangepi@orangepi:~$ sudo fix_mmc_ssd.sh

    Exactly the same system means that the image name is exactly the same. Even if they are all Debian11 systems, the versions are different.

How to use balenaEtcher software to burn

  1. 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.

    1. The M.2 2230 SSD is as follows
    2. Pi3b-img73.png

    1. The M.2 2242 SSD is as follows
    2. Pi3b-img74.png

  1. Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it
  2. Pi3b-img75.png

  1. 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
  2. Pi3b-img76.png

  1. 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 the method of burning the Linux image to the TF card based on the Windows PC and the method of burning the Linux image to the TF card based on the Ubuntu PC.

  2. 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

  3. orangepi@orangepi:~/Desktop$ sudo fdisk -l | grep "nvme0n1"

    Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors

    Use the lspci command to see an NVMe-related PCI device

    orangepi@orangepi:~/Desktop$ lspci

    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)

  1. The balenaEtcher has been pre-installed in the Linux image, and the opening method is as follows:
  2. Pi3b-img89.png

    If it is not pre-installed, for 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.

  1. The interface after balenaEtcher is opened is as follows:
  2. Pi3b-img90.png

  1. The method of using balenaEtcher to burn u-boot to the SPI Flash of the development board is as follows:

    1. First click on Flash from file
    2. Pi3b-img91.png

    1. Then enter the /usr/lib/Linux-u-boot-legacy-orangepi3b_1.x.x_arm64 directory, select rkspi_loader.img, and click Open to open
    2. Pi3b-img92.png

    1. The interface after opening rkspi_loader.img is as follows:
    2. Pi3b-img93.png

    1. Then click Select target
    2. Pi3b-img94.png

    1. Then click Show 2 hidden to open more options for storage devices
    2. Pi3b-img95.png

    1. Then select the device name of SPI Flash /dev/mtdblock0, and click Select
    2. Pi3b-img96.png

    1. Then click Flash
    2. Pi3b-img97.png

    1. Then click Yes, I'm sure
    2. Pi3b-img98.png

    1. Then enter the password orangepi of the development board Linux system, and it will start burning the u-boot image into the SPI Flash
    2. Pi3b-img99.png

    1. The display of the burning process is as follows:
    2. Pi3b-img100.png

    1. The display after burning is as follows:
    2. Pi3b-img101.png

  1. The method of burning the Linux system in the TF card to the NVMe SSD (this method is equivalent to cloning the system in the TF card to the NVMe SSD)

    1. First click Clone drive
    2. Pi3b-img102.png

    1. Then select the device name of the TF card /dev/mmcblk1
    2. Pi3b-img103.png

    1. The interface after opening the TF card is as follows:
    2. Pi3b-img104.png

    1. Then click Select target
    2. Pi3b-img94.png

    1. Then click Show 2 hidden to open more options for storage devices
    2. Pi3b-img95.png

    1. Then select the device name of the NVMe SSD /dev/nvme0n1, and click Select
    2. Pi3b-img105.png

    1. Then click Flash
    2. Pi3b-img106.png

    1. Then click Yes, I'm sure
    2. Pi3b-img107.png

    1. Then enter the password orangepi of the Linux system on the development board, and it will start burning the Linux image to the SSD
    2. Pi3b-img108.png

    1. The display of the burning process is as follows:
    2. Pi3b-img109.png

      Pi3b-img110.png

    1. The display after burning is as follows:
    2. Pi3b-img111.png

    1. Then you need to expand the capacity of the rootfs partition in the NVMe SSD. The steps are as follows:

      1. a) Open GParted first, if the system does not have Gparted pre-installed, please use the apt command to install it

        orangepi@orangepi:~$ sudo apt-get install -y gparted

      2. Pi3b-img112.png

      1. b) Then enter the password orangepi of the Linux system, and click Authenticate
      2. Pi3b-img113.png

      1. c) Then click Fix
      2. Pi3b-img114.png

      1. d) Then select NVMe SSD
      2. Pi3b-img115.png

      1. e) The display interface after selecting NVMe SSD is as follows:
      2. Pi3b-img116.png

      1. f) Then select the /dev/nvme0n1p2 partition, click the right button again, and then select Resize/Move
      2. Pi3b-img117.png

      1. g) Then drag the capacity to the maximum at the position shown in the figure below
      2. Pi3b-img118.png

      1. h) Then click Resize/Move
      2. Pi3b-img119.png

      1. i) Then click the green in the position below
      2. Pi3b-img120.png

      1. j) Then click Apply
      2. Pi3b-img121.png

      1. k) Then click Close to close
      2. Pi3b-img122.png

    1. At this point, you can use the sudo 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.
  1. Step 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:

    1. Upload the Linux image file to the Linux system of the development board

    2. Then use balenaEtcher to burn

    3. Pi3b-img123.png

    1. After using this method to burn the image, there is no need to manually expand the capacity, and it will automatically expand the capacity at the first startup.

How to burn Android image to TF card

Method of burning Android image to TF card through USB2.0 burning port

  1. 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
  2. You also need to prepare a good quality USB2.0 male-to-male data cable
Pi3b-img16.png
  1. Then download Rockchip driver DriverAssitant_v5.12.zip and burning tool RKDevTool_Release_v3.15.zip from Orange Pi's data download page

  2. Then download the Android image from Orange Pi's download page.

    1. 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
    2. Pi3b-img124.png

    1. After entering the TF card and eMMC startup image folder, you can see the following two images, the difference between them is:

      1. 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

      2. b) If you want to use lcd screen, please choose image with lcd

      3. Pi3b-img125.png

  1. Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with ".img" is the Android image file, and the size is more than 1GB

  2. 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

  3. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "The driver is installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Android image to the TF card

    1. 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
    2. Pi3b-img36.png

    1. Then make sure that the development board is not inserted into the TF card and not connected to the power supply

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. Then insert the TF card into the development board

    2. Then please select advanced features

      Pi3b-img126.png

    3. Then click the position shown in the figure below

      Pi3b-img127.png

    4. Then select rk3566_MiniLoaderAll.bin in the MiniLoader folder downloaded earlier, and click to open

    5. Pi3b-img68.png

    1. Then click download

      Pi3b-img128.png

    2. The display after downloading rk3566_MiniLoaderAll.bin is shown in the figure below

      Pi3b-img129.png

    3. Then select the storage device as SD, and then click Switch Storage

      Pi3b-img130.png

    4. The display of successful switching is shown in the figure below

    5. Pi3b-img131.png

    1. Then click the "Upgrade Firmware" column of the burning tool
    2. Pi3b-img132.png

    1. Then click the "Firmware" button to select the path of the Android image that needs to be burned
    2. Pi3b-img133.png

    1. Finally, click the "Upgrade" 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.
    2. Pi3b-img134.png

How to use SDDiskTool to burn Android image to TF card

  1. 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

  2. Then use the card reader to insert the TF card into the computer

  3. Then download the SDDiskTool programming tool from the Orange Pi data download page, please make sure that the version of the SDDiskTool tool is the latest v1.72.

  4. Then download the Android11 image from the Orange Pi data download page

    1. 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
    2. Pi3b-img124.png

    1. After entering the TF card and eMMC boot image folder, you can see the following two images, the difference between them is:
      1. a) The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the LCD screen, please download the image without lcd

      2. b) If you want to use LCD screen, please choose image with lcd

      3. Pi3b-img125.png

  1. Then use decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with ".img" is the Android image file, and the size is more than 1GB

  2. 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

  3. Pi3b-img135.png

  1. After opening SDDiskTool, if the TF card is recognized normally, the inserted disk device will be displayed in the "Select Removable Disk Device" 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
  2. Pi3b-img136.png

  1. 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
  2. Pi3b-img137.png

  1. Then start to write the Android image to the TF card

    1. First check "SD Boot" in "Select Function Mode"

    2. Then select the path of the Android image in the "Select to upgrade firmware" column

    3. Finally click the "Start Create" button to start burning the Android image to the TF card

    4. Pi3b-img138.png

  1. 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
  2. Pi3b-img139.png

How to burn Android image to eMMC

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 the method of using RKDevTool to clear SPIFlash.

Method of burning Android image into eMMC through USB2.0 burning port

Note that all the following operations are performed on a Windows computer.

  1. 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:

  2. Pi3b-img61.png Pi3b-img62.png

    Pi3b-img63.png

  1. You also need to prepare a good quality USB2.0 male-to-male data cable
  2. Pi3b-img16.png

  1. Then download Rockchip driver DriverAssitant_v5.12.zip and burning tool RKDevTool_Release_v3.15.zip from Orange Pi's data download page

  2. Then download the Android image from Orange Pi's download page.

    1. 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
    2. Pi3b-img124.png

    1. After entering the TF card and eMMC startup image folder, you can see the following two images, the difference between them is

      1. 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

      2. b) If you want to use lcd screen, please choose image with lcd

      3. Pi3b-img125.png

  1. Then use decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with ".img" is the Android image file, and the size is more than 1GB

  2. 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

  3. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "driver installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Android image into eMMC

    1. 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
    2. Pi3b-img36.png

    1. Then make sure that the development board is not inserted into the TF card and not connected to the power supply

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"

      Pi3b-img39.png
    2. Then please select Advanced Features

      Pi3b-img126.png

    3. Then click the position shown in the figure below

      Pi3b-img127.png

    1. Select rk3566_MiniLoaderAll.bin in the MiniLoader folder downloaded earlier, and click to open.
    2. Pi3b-img68.png

    1. Then click Download

      Pi3b-img128.png

    2. The display after downloading MiniLoaderAll.bin is shown in the figure below

      Pi3b-img140.png

    3. Then select the storage device as EMMC, and then click Switch Storage

      Pi3b-img141.png

    4. The display of successful switching is shown in the figure below

    5. Pi3b-img142.png

    1. Then click the "Upgrade Firmware" column of the burning tool
    2. Pi3b-img132.png

    1. Then click the "Firmware" button to select the path of the Android image that needs to be burned
    2. Pi3b-img133.png

    1. Finally, click the "Upgrade" 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.
    2. Pi3b-img134.png

How to burn Android11 image into eMMC via TF card

Note that all the following operations are performed on a Windows computer.

  1. 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:
Pi3b-img61.png Pi3b-img62.png
Pi3b-img63.png
  1. 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

  2. Then use the card reader to insert the TF card into the computer

  3. Then download the SDDiskTool programming tool from the Orange Pi data download page, please make sure that the version of the SDDiskTool tool is the latest v1.72

  4. Then download the Android image from Orange Pi's download page

    1. 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
    2. Pi3b-img124.png

    1. After entering the TF card and eMMC boot image folder, you can see the following tow images, the difference between them is:

      1. 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

      2. b) If you want to use lcd screen, please choose image with lcd

      3. Pi3b-img125.png

  1. Then use the decompression software to decompress the compressed package of the downloaded Android image. Among the decompressed files, the file ending with ".img" is the Android image file, and the size is more than 1GB

  2. 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

  3. Pi3b-img135.png

  1. After opening SDDiskTool, if the TF card is recognized normally, the inserted disk device will be displayed in the "Select Removable Disk Device" 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.
  2. Pi3b-img136.png

  1. 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
  2. Pi3b-img137.png

  1. Then start to write the Android image into the TF card

    1. First confirm that the displayed drive letter is the drive letter corresponding to the TF card under "Select Removable Disk Device"

    2. Then select "Firmware Upgrade" in "Select Function Mode"

    3. Then select the path of the Android firmware in the "Select Upgrade Firmware" column

    4. Finally click the "Start Create" button to start burning

    5. Pi3b-img143.png

  1. After the burning is completed, the display is as shown in the figure below, and then you can exit SDDiskTool
  2. Pi3b-img144.png

  1. 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.

  2. 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

  3. Pi3b-img145.png

  1. When the HDMI monitor displays the following information, it means that the burning of the Android image into the eMMC has been completed. At this time, the TF card can be pulled out, and then the Android system in the eMMC will start.
  2. Pi3b-img146.png

How to burn Android image to SPIFlash+NVMe SSD

Note that all the following operations are performed on a Windows computer.

  1. First, you need to prepare an NVMe SSD solid state drive

    1. The M.2 2230 SSD is as follows
    2. Pi3b-img73.png

    1. The M.2 2242 SSD is as follows
    2. Pi3b-img74.png

  1. Then insert the NVMe SSD into the M.2 PCIe interface of the development board and fix it
  2. Pi3b-img75.png

  1. 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
  2. Pi3b-img76.png

  1. You also need to prepare a good quality USB2.0 male-to-male data cable
  2. Pi3b-img16.png

  1. Then download Rockchip driver DriverAssitant_v5.12.zip and burning tool RKDevTool_Release_v3.15.zip from Orange Pi's data download page

  2. Then download the image of Android11

    1. 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 SPIFlash-NVME SSD boot image folder to download
    2. Pi3b-img124.png

    1. After entering the SPIFlash-NVME SSD boot image folder, you can see the following two images. Their differences are:

      1. a) The image without lcd is specially used for HDMI display and supports 4K display. If you do not use the LCD screen, please download the image without lcd

      2. b) If you want to use LCD screen, please choose image with lcd

      3. Pi3b-img147.png

  1. 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
  2. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "driver installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then start burning the Android image to SPIFlash+NVMe SSD

    1. 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
    2. Pi3b-img36.png

    1. Make sure that the development board is not inserted into the TF card and not connected to the power supply

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. Then click the "Upgrade Firmware" column of the burning tool
    2. Pi3b-img132.png

    1. Then click the "Firmware" button to select the Android image to be burned
    2. Pi3b-img133.png

    1. Finally, click the "Upgrade" 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.
    2. Pi3b-img148.png

Using RKDevTool to clear SPIFlash

  1. The position of SPI Flash on the development board is shown in the figure below
Pi3b-img76.png
  1. First, you need to prepare a good quality USB2.0 male-to-male data cable
  2. Pi3b-img16.png

  1. 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

    1. On the download page of Orange Pi, first select the official tool, and then enter the following folder
    2. Pi3b-img149.png

    1. Then download all the files below
    2. Pi3b-img150.png

      Note that the "MiniLoader-things needed to burn the Linux image" folder is hereinafter referred to as the MiniLoader folder.

  1. 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
  2. Pi3b-img31.png

  1. After opening DriverInstall.exe, the steps to install the Rockchip driver are as follows

    1. Click the "Driver Installation" button
    2. Pi3b-img32.png

    1. After waiting for a period of time, a pop-up window will prompt "driver installed successfully", and then click the "OK" button.
    2. Pi3b-img33.png

  1. 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
  2. Pi3b-img34.png

  1. 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 "No device found"
  2. Pi3b-img35.png

  1. Then you can start to clear the content in SPI FLASH

    1. 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
    2. Pi3b-img36.png

    1. Make sure that the development board is not inserted into the TF card and not connected to the power supply

    2. 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:

    3. Pi3b-img37.png

    1. Then connect the power supply of the Type-C interface to the development board, and power on, and then release the MaskROM button
    2. Pi3b-img38.png

    1. 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 "found a MASKROM device"
    2. Pi3b-img39.png

    1. Then please select Advanced Features

      Pi3b-img126.png

    2. Then click the position shown in the figure below

      Pi3b-img127.png

    3. Select rk3566_MiniLoaderAll.bin in the MiniLoader folder you downloaded earlier, and click Open

    4. Pi3b-img68.png

    1. Then click Download

      Pi3b-img128.png

    1. The display after downloading rk3566_MiniLoaderAll.bin is shown in the figure below

      Pi3b-img140.png

    2. Then select the storage device as SPINOR

      Pi3b-img151.png

    3. Then click Switch Storage

      Pi3b-img152.png

    4. Then click Erase All to start erasing SPIFlash

      Pi3b-img153.png

    5. The display log after erasing SPIFlash is shown in the figure below

      Pi3b-img154.png

Start the Orange Pi development board

  1. 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.
  2. 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.
  3. Connect a USB mouse and keyboard to control the Orange Pi development board.
  4. The development board has an Ethernet port, which can be plugged into a network cable for Internet access.
  5. Connect a high-quality power adapter with a 5V/3A USB Type-C interface.

Remember not to plug in a power adapter with a voltage output greater than 5V, as this will burn out the development board.

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.

The Type-C power port does not support PD negotiation.

In addition, please do not connect the USB interface of the computer to power the development board.

  1. 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.
  2. 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 the section on how to use the debugging serial port.

How to use the debugging serial port

Connection instruction of debugging serial port

  1. 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.

    For better compatibility, it is recommended to use CH340 USB to TTL module, please do not use CP2102, PL2303 USB to TTL module.

    Before purchasing a USB to TTL module, please confirm that the module supports a baud rate of 1500000.

    Pi3b-img155.png

  1. The corresponding relationship between GND, RXD and TXD pins of the debugging serial port of the development board is shown in the figure below
  2. Pi3b-img156.png

  1. 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
  2. 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 TX of the development board
    c. The TX of the USB to TTL module is connected to the TX of the development board
  1. The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is as follows
  2. Pi3b-img157.png

    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 right

How to use the debugging serial port on the Ubuntu platform

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.

  1. 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 /dev on the Ubuntu PC. Remember this node name, and then set the serial port software will be used

test@test:~$ ls /dev/ttyUSB*

/dev/ttyUSB0

  1. Then use the following command to install putty on Ubuntu PC
  2. test@test:~$ sudo apt-get update

    test@test:~$ sudo apt-get install -y putty

  1. Then run putty, remember to add sudo permission
  2. test@test:~$ sudo putty

  1. After executing the putty command, the following interface will pop up
  2. Pi3b-img158.png

  1. First select the setting interface of the serial port
  2. Pi3b-img159.png

  1. Then set the parameters of the serial port

    1. Set Serial line to connect toas /dev/ttyUSB0((Modified to the corresponding node name, generally /dev/ttyUSB0)

    2. Set Speed(baud) as 1500000(Serial port baud rate)

    3. Set Flow control as None

    4. Pi3b-img160.png

  1. After setting the setting interface of the serial port, return to the Session interface

    1. First select the Connection type as Serial

    2. Then click the Open button to connect to the serial port

    3. Pi3b-img161.png

  1. After starting the development board, you can see the Log information output by the system from the opened serial port terminal
  2. Pi3b-img162.png

How to use the debugging serial port on Windows platform

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.

  1. Download MobaXterm

    1. Download MobaXterm website as follows
    2. https://mobaxterm.mobatek.net

    1. After entering the MobaXterm download page, click GET XOBATERM NOW!
    2. Pi3b-img163.png

    1. Then choose to download the Home version
    2. Pi3b-img164.png

    1. Then select the Portable version. After downloading, you don't need to install it, just open it and use it
    2. Pi3b-img165.png

  1. 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
  2. Pi3b-img166.png

  1. After opening the software, the steps to set up the serial port connection are as follows

    1. Open the session settings interface

    2. Select the serial port type

    3. Select the port number of the serial port (select the corresponding port number according to the actual situation)

    4. Select the baud rate of the serial port as 1500000

    5. Finally click the "OK" button to complete the setting

    6. Pi3b-img167.png

  1. After clicking the "OK" 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
  2. Pi3b-img168.png

Instructions for using the 5v pin in the 40pin interface of the development board to supply power

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-C power supply.

  1. First, you need to prepare a power cord as shown in the figure below
Pi3b-img169.png

Please purchase the power cord shown in the picture above by yourself

  1. 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

    1. The USB A port of the power cord shown in the above picture needs to be plugged into the 5V/3A power adapter connector (please do not plug into the computer's USB port for power supply)

    2. The red DuPont line needs to be plugged into the 5V pin of the development board 40pin

    3. The black Dupont wire needs to be inserted into the GND pin of the 40pin interface

    4. The position of the 5V pin and GND pin of the 40pin interface on the development board is shown in the figure below, remember not to reverse the connection

    5. Pi3b-img170.png

Instructions for use of Ubuntu/Debian Server and Xfce desktop system

The content of this chapter is written based on the images of the Linux server version and the xfce desktop version.

Supported Linux image types and kernel versions

Linux image type kernel version server version desktop version
Debian 11 - Bullseye Linux5.10 support support
Ubuntu 20.04 - Focal Linux5.10 support support
Ubuntu 22.04 - Jammy Linux5.10 support support

Linux System adaptation

Function Debian11 Ubuntu20.04 Ubuntu22.04
USB2.0x3 OK OK OK
USB3.0x1 OK OK OK
M.2 NVMe SSD Start OK OK OK
WIFI OK OK OK
Bluetooth OK OK OK
GPIO(40pin) OK OK OK
UART(40pin) OK OK OK
SPI(40pin) OK OK OK
I2C(40pin) OK OK OK
PWM(40pin) OK OK OK
PWM fan interface OK OK OK
3pin Debug serial port OK OK OK
EMMC OK OK OK
TF card start OK OK OK
HDMI Video OK OK OK
HDMI Audio OK OK OK
Camera OK OK OK
LCD OK OK OK
Edp Display OK OK OK
Gigabit Ethernet port OK OK OK
Network port status light OK OK OK
headphone playback OK OK OK
headphone recording 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

The format of Linux commands in this manual

  1. In this manual, all commands that need to be entered in the Linux system will be marked with the following box
As shown below, the content in the yellow box indicates the content that needs special attention, except for the commands in it.
  1. Description of the prompt type in front of the command

    1. 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
    2. orangepi@orangepi:~$ sudo apt update

      root@orangepi:~# vim /boot/boot.cmd

      test@test:~$ ssh root@192.168.1.xxx

      root@test:~# ls

    1. root@orangepi:~$ 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

    2. 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

    3. 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 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

    4. root@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 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

  1. What are the commands that need to be entered?

    1. 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
    2. root@orangepi:~# cat /boot/orangepiEnv.txt

      verbosity=7

      bootlogo=false

      console=serial

    1. 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 "\" 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
    2. orangepi@orangepi:~$ echo \

      "deb [arch=$(dpkg --print-architecture) \

      signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \

      https://download.docker.com/Linux/debian \

      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Linux system login instructions

Linux system default login account and password

Account Passport
root orangepi
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.

When the wrong password is prompted, or there is a problem with the ssh connection, please note that as long as you are using the Linux image provided by Orange Pi, please do not suspect that the above password is wrong, but look for other reasons.

How to set automatic terminal login in Linux system

  1. The Linux system automatically logs in to the terminal by default, and the default login user name is orangepi
Pi3b-img171.png
  1. Use the following command to set the root user to automatically log in to the terminal
  2. orangepi@orangepi:~$ sudo auto_login_cli.sh root

  1. Use the following command to disable automatic login terminal
  2. orangepi@orangepi:~$ sudo auto_login_cli.sh -d

  1. Use the following command to set the orangepi user to automatically log in to the terminal again
  2. orangepi@orangepi:~$ sudo auto_login_cli.sh orangepi

Instructions for automatic login of Linux desktop version system

  1. After the desktop system starts, it will automatically log in to the desktop without entering a password
Pi3b-img172.png
  1. Run the following command to prohibit the desktop system from automatically logging into the desktop
  2. orangepi@orangepi:~$ sudo disable_desktop_autologin.sh

  1. Then restart the system and a login dialog box will appear, at which point a password is required to enter the system

    Pi3b-img173.png

The setting method of root user automatic login in Linux desktop version system

  1. Execute the following command to set the desktop system to automatically log in as the root user

orangepi@orangepi:~$ sudo desktop_login.sh root

  1. Then restart the system, and the root user will automatically log in to the desktop
  2. Pi3b-img174.png

    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 devices.

    Also note that this is not a bug, since pulseaudio is not allowed to run as root.

  1. Execute the following command to set the desktop system to log in automatically with the orangepi user again
  2. orangepi@orangepi:~$ sudo desktop_login.sh orangepi

The method of disabling the desktop in the Linux desktop version system

  1. First enter the following command on the command line, Please remember to add sudo permission

orangepi@orangepi:~$ sudo systemctl disable lightdm.service

  1. Then restart the Linux system and you will find that the desktop will not be displayed
  2. orangepi@orangepi:~$ sudo reboot

  1. The steps to reopen the desktop are as follows:

    1. First enter the following command on the command line, Please remember to add sudo permission
    2. orangepi@orangepi:~$ sudo systemctl start lightdm.service

    1. After the command is executed, the desktop will be displayed

Onboard LED Light Test Instructions

  1. 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:
Pi3b-img175.png
  1. 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

  2. The green LED light will keep blinking after the kernel is started, which is controlled by software.

  3. The PCIe indicator will flash when there is data transmission on the PCIe interface.

  4. The method of setting the green light on and off and flashing is as follows

    Note that the following operations should be performed under the root user.

    1. First enter the setting directory of the green light
    2. root@orangepi:~# cd /sys/class/leds/status_led

    1. The command to set the green light to stop flashing is as follows
    2. root@orangepi:/sys/class/leds/status_led# echo none > trigger

    1. The command to set the green light to be on is as follows
    2. root@orangepi:/sys/class/leds/status_led# echo default-on > trigger

    1. The command to set the green light to flash is as follows
    2. root@orangepi:/sys/class/leds/status_led# echo heartbeat > trigger

Network connection test

Ethernet port test

  1. 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
  2. After the system starts, it will automatically assign an IP address to the Ethernet card through DHCP, No other configuration is required
  3. The command to view the IP address in the Linux system of the development board is as follows

orangepi@orangepi:~$ ip addr show eth0

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> 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 192.168.1.150/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

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 ifconfig


orangepi@orangepi:~$ ifconfig

Command 'ifconfig' is available in the following places

  • /sbin/ifconfig
  • /usr/sbin/ifconfig

The command could not be located because '/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

There are three ways to check the IP address after the development board starts:

1. Connect the HDMI display, 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:

  1. 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;

  2. Check whether the network cable is plugged in tightly, or try another network cable;

  3. 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);

  4. 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 address


In addition, it should be noted that the development board DHCP automatically assigns an IP address without any settings.

  1. The command to test the network connectivity is as follows, the ping command can be interrupted through the shortcut key of Ctrl+C
  2. orangepi@orangepi:~$ ping 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

WIFI connection test

Please 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.

The server image connects to WIFI through commands

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 network.

  1. First log in to the Linux system, there are the following three ways

    1. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh

    2. 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

    3. 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

  2. First use the nmcli dev wifi command to scan the surrounding WIFI hotspots

  3. orangepi@orangepi:~$ nmcli dev wifi

    Pi3b-img176.png

  1. Then use the nmcli command to connect to the scanned WIFI hotspot, where:
  2. a. wifi_name needs to be replaced with the name of the WIFI hotspot you want to connect to
    b. wifi_passwd needs to be replaced with the password of the WIFI hotspot you want to connect to

    orangepi@orangepi:~$ nmcli dev wifi connect wifi_name password wifi_passwd

    Device 'wlan0' successfully activated with 'cf937f88-ca1e-4411-bb50-61f402eef293'.

  1. You can view the IP address of wifi through the ip addr show wlan0 command

    orangepi@orangepi:~$ ip addr show wlan0

    11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

    link/ether 23:8c:d6:ae:76:bb brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
    valid_lft 259192sec preferred_lft 259192sec
    inet6 240e:3b7:3240:c3a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
    valid_lft 259192sec preferred_lft 172792sec
    inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
    valid_lft forever preferred_lft forever
  1. Use the ping command to test the connectivity of the wifi network, and the ping command can be interrupted through the shortcut key Ctrl+C
  2. orangepi@orangepi:~$ ping www.orangepi.org -I wlan0

    PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.

    64 bytes from 182.92.236.130 (182.92.236.130): 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): icmp_seq=3 ttl=52 time=44.9 ms

    64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms

    64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms

    ^C

    --- www.orangepi.org ping statistics ---

    5 packets transmitted, 5 received, 0% packet loss, time 4006ms

    rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms

The server image connects to WIFI in a graphical way

  1. First log in to the Linux system, there are the following three ways
    1. If the development board is connected with a network cable, you can remotely log in to the Linux system through ssh

    2. 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)

    3. If the development board is connected to the HDMI display, you can log in to the Linux system through the HDMI display terminal

  2. Then enter the nmtui command in the command line to open the wifi connection interface
  3. orangepi@orangepi:~$ nmtui

  1. Enter the nmtui command to open the interface as shown below
  2. Pi3b-img177.png

  1. Select Activate a connect and press Enter
  2. Pi3b-img178.png

  1. Then you can see all the searched WIFI hotspots
  2. Pi3b-img179.png

  1. Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on Activate and press Enter
  2. Pi3b-img180.png

  1. Then a dialog box for entering a password will pop up, enter the corresponding password in Password and press Enter to start connecting to WIFI
  2. Pi3b-img181.png

  1. After the WIFI connection is successful, a "*" will be displayed in front of the connected WIFI name
  2. Pi3b-img182.png

  1. You can view the IP address of wifi through the ip addr show wlan0 command
  2. orangepi@orangepi:~$ ip addr show wlan0

    11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

    link/ether 24:8c:d3:aa:76:bb brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.11/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
    valid_lft 259069sec preferred_lft 259069sec
    inet6 240e:3b7:3240:c4a0:c401:a445:5002:ccdd/64 scope global dynamic noprefixroute
    valid_lft 259071sec preferred_lft 172671sec
    inet6 fe80::42f1:6019:a80e:4c31/64 scope link noprefixroute
    valid_lft forever preferred_lft forever
  1. Use the ping command to test the connectivity of the wifi network, and the ping command can be interrupted through the shortcut key Ctrl+C
  2. orangepi@orangepi:~$ ping www.orangepi.org -I wlan0

    PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.

    64 bytes from 182.92.236.130 (182.92.236.130): 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): icmp_seq=3 ttl=52 time=44.9 ms

    64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms

    64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms

    ^C

    --- www.orangepi.org ping statistics ---

    5 packets transmitted, 5 received, 0% packet loss, time 4006ms

    rtt min/avg/max/mdev = 41.321/44.864/48.834/2.484 ms

Test method of desktop image

  1. Click the network configuration icon in the upper right corner of the desktop (please do not connect the network cable when testing WIFI)
Pi3b-img183.png
  1. Click More 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.
  2. Pi3b-img184.png

  1. Then enter the password of the WIFI hotspot, and then click Connect to start connecting to WIFI
  2. Pi3b-img185.png

  1. 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
  2. Pi3b-img186.png

  1. If you can open other web pages after opening the browser, it means that the WIFI connection is normal
  2. Pi3b-img187-1.png

How to set a static IP address

Please do not set a static IP address by modifying the /etc/network/interfaces configuration file.

Use the nmtui command to set a static IP address

  1. First run the nmtui command

orangepi@orangepi:~$ nmtui

  1. Then select Edit a connection and press Enter
  2. Pi3b-img188.png

  1. 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.
  2. Pi3b-img189.png

  1. Then select Edit with the Tab key and press the Enter key
  2. Pi3b-img190.png

  1. Then use the Tab key to move the cursor to the <Automatic> position shown in the figure below to configure IPv4
  2. Pi3b-img191.png

  1. Then press Enter, select Manual with the up and down arrow keys, and press Enter to confirm
  2. Pi3b-img192.png

  1. The display after selection is shown in the figure below
  2. Pi3b-img193.png

  1. Then move the cursor to the <Show>
  2. Pi3b-img194.png

  1. Then press Enter, the following setting interface will pop up after entering
  2. Pi3b-img195.png

  1. 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
  2. Pi3b-img196.png

  1. After setting, move the cursor to<OK> in the lower right corner, and press Enter to confirm
  2. Pi3b-img197.png

  1. Then click<Back> to return to the previous selection interface
  2. Pi3b-img198.png

  1. Then select Activate a connection, then move the cursor to<OK>, and finally click Enter
  2. Pi3b-img199.png

  1. Then select the network interface that needs to be set, such as Wired connection 1, then move the cursor to<Deactivate>, and press Enter to disable Wired connection 1
  2. Pi3b-img200.png

  1. 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
  2. Pi3b-img201.png

  1. Then you can exit nmtui through the<Back> and Quit buttons
  2. Pi3b-img202.png Pi3b-img203.png

  1. 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
  2. orangepi@orangepi:~$ ip addr show eth0

    3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

    link/ether 5e:ac:14:a5:92:b3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.177/24 brd 192.168.1.255 scope global noprefixroute eth0
    valid_lft forever preferred_lft forever
    inet6 241e:3b8:3240:c3a0:e269:8305:dc08:135e/64 scope global dynamic noprefixroute
    valid_lft 259149sec preferred_lft 172749sec
    inet6 fe80::957d:bbbe:4928:3604/64 scope link noprefixroute
    valid_lft forever preferred_lft forever
  1. Then you can test the connectivity 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
  2. orangepi@orangepi:~$ ping 192.168.1.47 -I eth0

    PING 192.168.1.47 (192.168.1.47) from 192.168.1.188 eth0: 56(84) bytes of data.

    64 bytes from 192.168.1.47: icmp_seq=1 ttl=64 time=0.233 ms

    64 bytes from 192.168.1.47: icmp_seq=2 ttl=64 time=0.263 ms

    64 bytes from 192.168.1.47: icmp_seq=3 ttl=64 time=0.273 ms

    64 bytes from 192.168.1.47: icmp_seq=4 ttl=64 time=0.269 ms

    64 bytes from 192.168.1.47: icmp_seq=5 ttl=64 time=0.275 ms

    ^C

    --- 192.168.1.47 ping statistics ---

    5 packets transmitted, 5 received, 0% packet loss, time 4042ms

    rtt min/avg/max/mdev = 0.233/0.262/0.275/0.015 ms

Use the nmcli command to set a static IP address

  1. 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

  2. Then use the nmcli con show command to view the name of the network device, as shown below

    1. orangepi is the name of the WIFI network interface (the names are not necessarily the same)

    2. Wired connection 1 is the name of the Ethernet interface

    3. orangepi@orangepi:~$ nmcli con show
      NAMEUUID TYPE DEVICE
      orangepicfc4f922-ae48-46f1-84e1-2f19e9ec5e2awifi wlan0
      Wired connection 19db058b7-7701-37b8-9411-efc2ae8bfa30ethernet eth0

  1. Then enter the following command, where
  2. a. "Wired connection 1" 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 name of the WIFI network interface (you can get it through the nmcli con show command)
    b. After ipv4.addresse is the static IP address to be set, which can be modified to the value you want to set
    c. ipv4.gateway indicates the address of the gateway

    orangepi@orangepi:~$ nmcli con mod "Wired connection 1" \

    ipv4.addresses "192.168.1.110" \

    ipv4.gateway "192.168.1.1" \

    ipv4.dns "8.8.8.8" \

    ipv4.method "manual"

  1. Then restart the Linux system
  2. orangepi@orangepi:~$ sudo reboot

  1. 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
  2. orangepi@orangepi:~$ ip addr show eth0

    3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

    link/ether 5e:ae:14:a5:91:b3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.110/32 brd 192.168.1.110 scope global noprefixroute eth0
    valid_lft forever preferred_lft forever
    inet6 240e:3b7:3240:c3a0:97de:1d01:b290:fe3a/64 scope global dynamic noprefixroute
    valid_lft 259183sec preferred_lft 172783sec
    inet6 fe80::3312:861a:a589:d3c/64 scope link noprefixroute
    valid_lft forever preferred_lft forever

SSH remote login development board

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.

SSH remote login development board under Ubuntu

  1. Obtain the IP address of the development board
  2. Then you can remotely log in to the Linux system through the ssh command

test@test:~$ ssh root@192.168.1.xxx        (Need to be replaced with the IP address of the development board)

root@192.168.1.xx's password:        (Enter the password here, the default password is 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.

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.

  1. After successfully logging in to the system, the display is as shown in the figure below
  2. Pi3b-img204.png

    If ssh cannot log in to the Linux system normally, please first check whether the IP address of the development board can be pinged. 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 again. Is it possible to connect:


    root@orangepi:~# reset_ssh.sh


    If it still doesn't work, try to reset the system.

SSH remote login development board under Windows

  1. First obtain the IP address of the development board
  2. Under Windows, you can use MobaXterm to remotely log in to the development board, first create a new ssh session
a. Open Session
b. Then select SSH in Session Setting
c. Then enter the IP address of the development board in the Remote host
d. Then enter the user name root or orangepi of the Linux system in Specify username
e. Finally click OK
Pi3b-img205.png
  1. Then you will be prompted to enter a password. The default passwords for root and orangepi users are orangepi
  2. 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.

    Pi3b-img206.png

  1. After successfully logging in to the system, the display is as shown in the figure below
  2. Pi3b-img207.png

The method of uploading files to the Linux system of the development board

How to upload files to the development board Linux system in Ubuntu PC

How to upload files using the scp command

  1. Use the scp command to upload files from the Ubuntu PC to the Linux system of the development board. The specific commands are as follows
a. file_path: need to be replaced with the path of the file to be uploaded
b. orangepi: It is the user name of the Linux system of the development board, and it can also be replaced with other ones, such as root
c. 192.168.xx.xx: It is the IP address of the development board, please modify it according to the actual situation
d. /home/orangepi: The path in the Linux system of the development board, which can also be modified to other paths

test@test:~$ scp file_path orangepi@192.168.xx.xx:/home/orangepi/

  1. If you want to upload a folder, you need to add the -r parameter
  2. test@test:~$ scp -r dir_path orangepi@192.168.xx.xx:/home/orangepi/

  1. There are more usages of scp, please use the following command to view the man manual
  2. test@test:~$ man scp

How to upload files using filezilla

  1. First install filezilla in Ubuntu PC

test@test:~$ sudo apt install -y filezilla

  1. Then use the following command to open filezilla
  2. test@test:~$ filezilla

  1. The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty
  2. Pi3b-img208.png

  1. The method of connecting the development board is shown in the figure below
  2. Pi3b-img209.png

  1. Then choose to save the password, and then click OK
  2. Pi3b-img210.png

  1. Then choose to always trust this host, and then click OK
  2. Pi3b-img211.png

  1. 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
  2. Pi3b-img212.png

  1. 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.
  2. Pi3b-img213.png

  1. 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
  2. The method of uploading a folder is the same as that of uploading a file, so I won't go into details here

The method of uploading files from Windows PC to the Linux system of the development board

How to upload files using filezilla

  1. First download the installation file of the Windows version of the filezilla software, the download link is as follows

https://filezilla-project.org/download.php?type=client

Pi3b-img214.png
Pi3b-img215.png
  1. The downloaded installation package is as follows, and then double-click to install directly
  2. FileZilla_Server_1.5.1_win64-setup.exe

    During the installation process, please select Decline on the following installation interface, and then select Next>

    Pi3b-img216.png

  1. The interface after filezilla is opened is as follows, and the display under the remote site on the right is empty
  2. Pi3b-img217.png

  1. The method of connecting the development board is shown in the figure below:
  2. Pi3b-img209.png

  1. Then choose to save the password, and then click OK
  2. Pi3b-img218.png

  1. Then choose to always trust this host, and then click OK
  2. Pi3b-img219.png

  1. 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
  2. Pi3b-img220.png

  1. 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.
  2. Pi3b-img221.png

  1. 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

  2. The method of uploading a folder is the same as that of uploading a file

HDMI test

HDMI display test

  1. Use HDMI to HDMI cable to connect Orange Pi development board and HDMI monitor
Pi3b-img10.png
  1. After starting the Linux system, if the HDMI monitor has image output, it means that the HDMI interface is in normal use
  2. 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.

    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.

    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, you can change a different screen and try to see if it is displayed.

HDMI to VGA display test

  1. First, you need to prepare the following accessories

    1. HDMI to VGA converter
    2. Pi3b-img222.png

    1. A VGA cable
    2. Pi3b-img223.png

    1. A monitor or TV that supports VGA interface
  1. HDMI to VGA display test as shown below
  2. Pi3b-img224.png

    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.

HDMI resolution setting method

  1. First open Display in Settings
Pi3b-img225.png
  1. Then you can see the current resolution of the system
  2. Pi3b-img226.png

  1. Click the drop-down box of Resolution to see all resolutions currently supported by the monitor
  2. Pi3b-img227.png

  1. Then select the resolution you want to set, and click Apply
  2. Pi3b-img228.png

  1. After the new resolution is set, select Keep the configuration
  2. Pi3b-img229.png

How to use Bluetooth

Test method of desktop image

  1. Click the Bluetooth icon in the upper right corner of the desktop.
Pi3b-img230.png
  1. Then select the adapter
  2. Pi3b-img231.png

  1. If there is a prompt on the following interface, please select Yes
  2. Pi3b-img232.png

  1. Then set Visibility Setting as Always visible in the Bluetooth adapter settings interface, and then close it
  2. Pi3b-img233.png

  1. Then open the configuration interface of the Bluetooth device
  2. Pi3b-img234.png

  1. Click Search to start scanning the surrounding Bluetooth device
  2. Pi3b-img235.png

  1. 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
  2. Pi3b-img236.png

  1. 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
  2. Pi3b-img237.png

  1. 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
  2. Pi3b-img238.png

  1. The interface of the sending picture is shown below
  2. Pi3b-img239.png

USB interface test

The USB interface can be connected to a USB hub to expand the number of USB interfaces.

Connect the USB mouse or keyboard test

  1. Insert the USB interface keyboard into the USB interface of the Orange Pi development board
  2. Connect Orange PI development board to HDMI display
  3. 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)

Connect the USB storage device test

  1. First insert the U disk or USB mobile hard disk into the USB interface of the Orange Pi development board
  2. Execute the following command, if you can see the output of sdX, it means that the U disk is recognized successfully

orangepi@orangepi:~$ cat /proc/partitions | grep "sd*"
major minor #blocksname
8030044160 sda
8130043119 sda1

  1. Use the mount command to mount the U disk into /mnt, and then you can view the file in the U disk
  2. orangepi@orangepi:~$ sudo mount /dev/sda1 /mnt/

    orangepi@orangepi:~$ ls /mnt/

    test.txt

  1. After the mounting, you can view the capacity usage and mount point of the U disk through the df -h command
  2. orangepi@orangepi:~$ df -h | grep "sd"

    /dev/sda1     29G    208K    29G    1% /mnt

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

No. Model
1

RTL8723BU

Support 2.4G WIFI+BT4.0

Pi3b-img240.png

2

RTL8811

Support 2.4G +5G WIFI

Pi3b-img241.png

3

RTL8821CU

Support 2.4G +5G WIFI

Support BT 4.2

Pi3b-img242.png

RTL8723BU test

  1. First insert the RTL8723BU wireless network card module into the USB interface of the development board
  2. Then the Linux system will automatically load the RTL8723BU bluetooth and WIFI-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded

orangepi@orangepi:~$ lsmod

Module Size Used by
rfcomm 5734416
rtl8xxxu 1064960
rtk_btusb 614400

  1. Through the dmesg command, you can see the loading information of the RTL8723BU module
  2. orangepi@orangepi:~$ dmesg

    ......

    [ 83.438901] usb 2-1: new high-speed USB device number 2 using ehci-platform

    [ 83.588375] usb 2-1: New USB device found, idVendor=0bda, idProduct=b720, bcdDevice= 2.00

    [ 83.588403] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [ 83.588422] usb 2-1: Product: 802.11n WLAN Adapter

    [ 83.588443] usb 2-1: Manufacturer: Realtek

    [ 83.588460] usb 2-1: SerialNumber: 00e04c000001

    [ 83.601974] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723

    [ 83.603894] Bluetooth: hci0: RTL: rom_version status=0 version=1

    [ 83.603920] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_fw.bin

    [ 83.610108] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723b_config.bin

    [ 83.611274] Bluetooth: hci0: RTL: cfg_sz 68, total sz 22564

    [ 83.658494] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432

    [ 83.658651] usbcore: registered new interface driver rtk_btusb

    [ 83.667124] usb 2-1: This Realtek USB WiFi dongle (0x0bda:0xb720) is untested!

    [ 83.667137] usb 2-1: Please report results to Jes.Sorensen@gmail.com

    [ 83.890140] usb 2-1: Vendor: Realtek

    [ 83.890153] usb 2-1: Product: 802.11n WLAN Adapter

    [ 83.890159] usb 2-1: rtl8723bu_parse_efuse: dumping efuse (0x200 bytes):

    ......

    [ 83.890412] usb 2-1: RTL8723BU rev E (SMIC) 1T1R, TX queues 3, WiFi=1, BT=1, GPS=0, HI PA=0

    [ 83.890417] usb 2-1: RTL8723BU MAC: 00:13:ef:f4:58:ae

    [ 83.890421] usb 2-1: rtl8xxxu: Loading firmware rtlwifi/rtl8723bu_nic.bin

    [ 83.895289] usb 2-1: Firmware revision 35.0 (signature 0x5301)

    [ 84.050893] Bluetooth: hci0: RTL: fw version 0x0e2f9f73

    [ 84.266905] Bluetooth: RFCOMM TTY layer initialized

    [ 84.266949] Bluetooth: RFCOMM socket layer initialized

    [ 84.266999] Bluetooth: RFCOMM ver 1.11

    [ 84.884270] usbcore: registered new interface driver rtl8xxxu

    [ 84.912046] rtl8xxxu 2-1:1.2 wlx0013eff458ae: renamed from wlan0

  1. Then you can see the RTL8723BU WIFI device node through the sudo ifconfig command. Please refer to the WIFI connection test chapter for WIFI connection and testing methods
  2. orangepi@orangepi:~$ sudo ifconfig wlx0013eff458ae

    wlx0013eff458ae: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

    ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  1. Then you can see the USB Bluetooth device through the hciconfig command
  2. orangepi@orangepi:~$ sudo apt update && sudo apt install bluez

    orangepi@orangepi:~$ hciconfig

    hci0: Type: Primary Bus: USB

    BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
    DOWN
    RX bytes:1252 acl:0 sco:0 events:125 errors:0
    TX bytes:23307 acl:0 sco:0 commands:125 errors:0
  1. You can also see the Bluetooth icon on the desktop. At this time, Bluetooth has not been opened, so a red x will be displayed
  2. Pi3b-img243.png

  1. Click Turn Bluetooth On to turn on Bluetooth
  2. Pi3b-img244.png

  1. The display after turning on Bluetooth is as follows
  2. Pi3b-img245.png

  1. Please refer to the Bluetooth use method for Bluetooth test method, so I won't go into details here.

RTL8811 test

  1. First insert the RTL8811 wireless network card module into the USB interface of the development board.
  2. Then the Linux system will automatically load the kernel modules related to RTL8811 WIFI, and you can see that the following kernel modules have been automatically loaded through the lsmod command

orangepi@orangepi:~$ lsmod

Module Size Used by
8821cu 1839104 0

  1. Through the dmesg command, you can see the loading information of the RTL8811 module
  2. orangepi@orangepi:~$ dmesg

    [ 118.618194] usb 2-1: new high-speed USB device number 2 using ehci-platform

    [ 118.767152] usb 2-1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00

    [ 118.767181] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [ 118.767199] usb 2-1: Product: 802.11ac NIC

    [ 118.767219] usb 2-1: Manufacturer: Realtek

    [ 118.767235] usb 2-1: SerialNumber: 123456

    [ 119.500530] usbcore: registered new interface driver rtl8821cu

    [ 119.525498] rtl8821cu 2-1:1.0 wlx1cbfced9d260: renamed from wlan0

  1. Then you can see the WiFi device node through the sudo ifconfig command. Please refer to the WiFi connection test chapter for WIFI connection and testing methods. I won't go into details her
  2. orangepi@orangepi:~$ sudo ifconfig wlx1cbfced9d260

    wlx1cbfced9d260: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

    ether 1c:bf:ce:d9:d2:60 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

RTL8821CU test

  1. First insert the rtl8821cu wireless network card module into the USB interface of the development board
  2. 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

orangepi@orangepi:~$ lsusb | grep "Realtek"

Bus 002 Device 003: ID 0bda:c820 Realtek Semiconductor Corp. 802.11ac NIC

orangepi@orangepi:~$ lsusb | grep "Realtek"

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, please unplug the USB WIFI module again. If not, please manually execute the following command to switch to the next mode:


orangepi@orangepi:~$ sudo usb_modeswitch -KW -v 0bda -p 1a2b

  1. The Linux system will automatically load the rtl8821cu bluetooth and wifi-related kernel modules, through the lsmod command, you can see that the following kernel modules have been automatically loaded
  2. orangepi@orangepi:~$ lsmod

    Module Size Used by
    8821cu 1839104 0
    rtk_btusb 614400

  1. Through the dmesg command, you can see the loading information of the rtl8821cu module
  2. orangepi@orangepi:~$ dmesg

    ......

    [ 57.083693] usb 2-1: new high-speed USB device number 2 using ehci-platform

    [ 57.231888] usb 2-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00

    [ 57.231916] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [ 57.231937] usb 2-1: Product: DISK

    [ 57.231956] usb 2-1: Manufacturer: Realtek

    [ 57.242594] usb-storage 2-1:1.0: USB Mass Storage device detected

    [ 57.245674] scsi host0: usb-storage 2-1:1.0

    [ 58.069172] usb 2-1: USB disconnect, device number 2

    [ 58.440025] usb 2-1: new high-speed USB device number 3 using ehci-platform

    [ 58.587819] usb 2-1: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00

    [ 58.587827] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    [ 58.587833] usb 2-1: Product: 802.11ac NIC

    [ 58.587838] usb 2-1: Manufacturer: Realtek

    [ 58.587844] usb 2-1: SerialNumber: 123456

    [ 58.610463] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.6d45ddf.20220519-142432

    [ 58.610656] usbcore: registered new interface driver rtk_btusb

    [ 58.634631] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821

    [ 58.636729] Bluetooth: hci0: RTL: rom_version status=0 version=1

    [ 58.636740] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin

    [ 58.664190] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin

    [ 58.664746] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990

    [ 59.122471] Bluetooth: hci0: RTL: fw version 0x829a7644

    [ 59.265513] usbcore: registered new interface driver rtl8821cu

    [ 59.280119] rtl8821cu 2-1:1.2 wlx90de80521825: renamed from wlan0

  1. Then you can see the RTL8821CU WiFi device node through the sudo ifconfig command. Please refer to the WiFi connection test chapter for WIFI connection and testing methods.
  2. orangepi@orangepi:~$ sudo ifconfig wlx90de80521825

    wlx90de80521825: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

    ether 00:13:ef:f4:58:ae txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  1. Then you can see the USB Bluetooth device through the hciconfig command
  2. orangepi@orangepi:~$ sudo apt-get update && sudo apt-get install -y bluez

    orangepi@orangepi:~$ hciconfig

    hci0: Type: Primary Bus: USB

    BD Address: 00:13:EF:F4:58:AE ACL MTU: 820:8 SCO MTU: 255:16
    DOWN
    RX bytes:1252 acl:0 sco:0 events:125 errors:0
    TX bytes:23307 acl:0 sco:0 commands:125 errors:0
  1. Bluetooth icons can also be seen on the desktop. At this time, Bluetooth has not been turned on, so a red x will be displayed
  2. Pi3b-img243.png

  1. Click Turn Bluetooth On to turn on Bluetooth
  2. Pi3b-img244.png

  1. The display after turning on Bluetooth is as follows
  2. Pi3b-img245.png

  1. Please refer to the Bluetooth use chapter for the Bluetooth test method. I won't go into details here

USB Camera Test

  1. 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
Pi3b-img13.png
  1. You can see that the USB camera's device node information is/dev/video0 through the v4l2-ctl command
  2. orangepi@orangepi:~$ v4l2-ctl --list-devices

    Q8 HD Webcam: Q8 HD Webcam (usb-fc880000.usb-1):

    /dev/video0
    /dev/video1
    /dev/media0

    Note that the l in v4l2 is a lowercase letter l, not the number 1.


    In addition, the serial number of the video is not necessarily video0, please refer to what you actually see.

  1. In the desktop system, Cheese can be used to directly open the USB camera. The method of opening Cheese is shown in the figure below:
  2. Pi3b-img246.png

    The interface after Cheese turns on the USB camera is shown in the figure below:

    Pi3b-img247.png

  1. How to test the USB camera using fswebcam

    1. Install fswebcam
    2. orangepi@orangepi:~$ sudo apt update

      orangepi@orangepi:~$ sudo apt-get install -y fswebcam

    1. After installing fswebcam, you can use the following command to take pictures

      1. a) -d The option is used to specify the device node of the USB camera

      2. b) --no-banner Used to remove the watermark of photos

      3. c) -r The option is used to specify the resolution of the photo

      4. d) -S The option is used to set the number of previous frames to skip

      5. e) ./image.jpg The name and path for setting the generated photos

      6. orangepi@orangepi:~$ sudo fswebcam -d /dev/video0 \

        --no-banner -r 1280x720 -S 5 ./image.jpg

    1. In the desktop version of the Linux system, you can directly view the captured pictures through the HDMI display
    2. orangepi@orangepi:~$ scp image.jpg test@192.168.1.55:/home/test (Modify the IP address and path according to the actual situation)

    1. In the desktop version of the Linux system, you can directly view the captured pictures through the HDMI display

Audio Test

Test audio methods in the desktop system

  1. First open the file manager
Pi3b-img248.png
  1. 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)
  2. Pi3b-img249.png

  1. Then select the audio.wav file, right click and select open with vlc to start playing
  2. Pi3b-img250.png

  1. Methods to switch different audio equipment such as HDMI playback and headset playback

    1. First open the volume control interface
    2. Pi3b-img251.png

    1. 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.
    2. Pi3b-img252.png

How to play audio with commands

Headphone interface play audio test

  1. First insert the headset into the headphone jack of the development board
Pi3b-img253.png
  1. 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 card 0 is the sound card device with RK809, which is the sound card device of the headset
  2. orangepi@orangepi:~$ aplay -l

    **** List of PLAYBACK Hardware Devices ****

    card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]

    Subdevices: 0/1
    Subdevice #0: 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
    Subdevice #0: subdevice #0
    Subdevice #0: subdevice #0
  1. 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
  2. orangepi@orangepi:~$ aplay -D hw:0,0 /usr/share/sounds/alsa/audio.wav

    Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

HDMI Audio Play Test

  1. 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)
  2. Then check the sound card serial number of HDMI. From the output below, you can know that the HDMI sound card is card 1

orangepi@orangepi:~$ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]

Subdevices: 0/1
Subdevice #0: 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
Subdevice #0: subdevice #0
Subdevice #0: subdevice #0
  1. 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
  2. orangepi@orangepi:~$ aplay -D hw:1,0 /usr/share/sounds/alsa/audio.wav

Use the command to test the recording method

  1. 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 -c 0 cset name='Capture MIC Path' 'Main Mic'

orangepi@orangepi:~$ arecord -D hw:0,0 -d 5 -f cd -t wav /tmp/test.wav

Temperature Sensor

  1. The command to view the system temperature sensor is:

orangepi@orangepi:~$ sensors

soc_thermal-virtual-0

Adapter: Virtual device

temp1: +41.9°C (crit = +115.0°C)


gpu_thermal-virtual-0

Adapter: Virtual device

temp1: +43.8°C

  1. The command to view the current temperature of the nvme ssd solid state drive is:

    orangepi@orangepi:~$ sudo smartctl -a /dev/nvme0 | grep "Temperature:"

    Temperature: 40 Celsius

40 Pin interface pin explanation

  1. Orange Pi 3B Development board 40 Pin interface pins, please refer to the figure below
Pi3b-img254.png
  1. The function of the Orange Pi 3B development board 40 PIN interface pins is shown in the table below.

    1. Below is a complete pins of 40pin
    2. Pi3b-img255-1.png

    1. The following form is a picture on the left half of the full table above, which can be seen clearly
    2. Pi3b-img256-1.png

    1. The following form is a picture on the right half of the top table above, which can be seen clearly
    2. Pi3b-img257-1.png

  1. There are a total of 28 GPIO ports in the 40pin interface. The voltage of all GPIO ports is 3.3v

How to install wiringOP

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:

orangepi-build/external/cache/debs/arm64/wiringpi_x.xx.deb


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.

Pi3b-img258-1.png

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.

  1. Download the code of wiringOP

orangepi@orangepi:~$ sudo apt update

orangepi@orangepi:~$ sudo apt install -y git

orangepi@orangepi:~$ git clone https://github.com/orangepi-xunlong/wiringOP.git -b next

Note that Orange Pi 3B needs to download the code of the wiringOP next branch, please don't miss the parameter of -b next.


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

  1. Compile and install wiringOP
  2. orangepi@orangepi:~$ cd wiringOP

    orangepi@orangepi:~/wiringOP$ sudo ./build clean

    orangepi@orangepi:~/wiringOP$ sudo ./build

  1. Test the output of the GPIO Readall command as follows
  2. Pi3b-img258-1.png

40Pin interface GPIO, I2C, UART, SPI, and PWM test

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.

orangepi@orangepi:~$ sudo vim /boot/orangepiEnv.txt

overlays=spi3-m0-cs0-spidev i2c2-m1 i2c3-m0 uart7-m2 uart9-m2 pwm11-m1

40pin GPIO port test

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.


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 test whether the GPIO port can work normally


The method of running blink_all_gpio program is shown below:

orangepi@orangepi3b:~$ sudo blink_all_gpio         #Remember to add Sudo permissions

[sudo] password for orangepi:        #You need to enter password here

  1. 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_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
Pi3b-img259-1.png
  1. 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
  2. root@orangepi:~/wiringOP# gpio mode 2 out

  1. 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
  2. root@orangepi:~/wiringOP# gpio write 2 0

    Using GPIO Readall, you can see the value of the No. 7 pin (V) to 0

    Pi3b-img260.png

  1. Then set the GPIO port to output a high level. After setting, you can use a multimeter to measure the voltage value of the pin. If it is 3.3v, it means that the high level is set successfully.
  2. root@orangepi:~/wiringOP# gpio write 2 1

    Using GPIO Readall, you can see the value of No. 7 pin (v) into 1

    Pi3b-img261-1.png

  1. The setting method of other pins is similar, just modify the serial number of wPi to the corresponding serial number of the pin

40pin GPIO port pull-down resistance setting method

Note that the 4 GPIO pins below Orange Pi 3B are invalid because there are 3.3V on the outside, so setting drop-down is invalid. Other pins can be set normally

Pi3b-img262-1.png
  1. 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 port
Pi3b-img263-1.png
  1. 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
  2. root@orangepi:~/wiringOP# gpio mode 5 in

  1. After the setting is set to input mode, execute the following command to set the GPIO port as the pull-down mode
  2. root@orangepi:~/wiringOP# gpio mode 5 up

  1. Then enter the following command to read the level of the GPIO port. If the level is 1, it means that the drawing mode is successful
  2. root@orangepi:~/wiringOP# gpio read 5

    1

  1. Then execute the following command to set the GPIO port as the drop-down mode
  2. root@orangepi:~/wiringOP# gpio mode 5 down

  1. 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
  2. root@orangepi:~/wiringOP# gpio read 5

    0

40pin SPI Test

  1. From the schematic diagram of the 40PIN interface, the SPI available for Orange Pi 3B is spi3
Pi3b-img264-1.png
  1. 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:

    1. First run orangepi-config, normal users remember to add sudo permission

      orangepi@orangepi:~$ sudo orangepi-config

    2. Then select System

      Pi3b-1.png

    3. Then select Hardware

      Pi3b-2.png

    4. 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

      Pi3b-3.png

    5. Then select <Save> to save

      Pi3b-4.png

    6. Then select <Back>

      Pi3b-5.png

    7. Then select <Reboot> to restart the system to make the configuration take effect

      Pi3b-6.png

  1. 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
  2. orangepi@orangepi:~$ ls /dev/spidev3.0

    /dev/spidev3.0

  1. 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
  2. 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 | ............................….

  1. 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
  2. Pi3b-img265.png

    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 | ......@.…▒..................▒.

40pin I2C Test

  1. From the table below, the I2C available for Orange Pi 3B is I2C2, I2C3, and I2C4 a total of three groups of I2C bus.
Pi3b-img266-1.png

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

  1. 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:

    1. First run orangepi-config, normal users remember to add sudo permission

      orangepi@orangepi:~$ sudo orangepi-config

    2. Then select System

      Pi3b-1.png

    3. Then select Hardware

      Pi3b-2.png

    4. 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

      Pi3b-3-2.png

    5. Then select <Save> to save

      Pi3b-4.png

    6. Then select <Back>

      Pi3b-5.png

    7. Then select <Reboot> to restart the system to make the configuration take effect

      Pi3b-6.png

  1. After starting the Linux system, first confirm that the i2c device node exists under/dev
  2. orangepi@orangepi:~# ls /dev/i2c-*

    /dev/i2c-0      /dev/i2c-2      /dev/i2c-3      /dev/i2c-4      /dev/i2c-6

  1. Then connect a i2c device on the i2c pin of the 40Pin connector
  2. 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
  1. 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
  2. orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command

    orangepi@orangepi:~$ sudo i2cdetect -y 3 #i2c3 command

    orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command

    Pi3b-img267.png

40pin UART test

  1. 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
Pi3b-img268-1.png

As 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

  1. 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:

    1. First run orangepi-config, normal users remember to add sudo permission

      orangepi@orangepi:~$ sudo orangepi-config

    2. Then select System

      Pi3b-1.png

    3. Then select Hardware

      Pi3b-2.png

    4. 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

      Pi3b-3-3.png

    5. Then select <Save> to save

      Pi3b-4.png

    6. Then select <Back>

      Pi3b-5.png

    7. Then select <Reboot> to restart the system to make the configuration take effect

      Pi3b-6.png

  1. After entering the Linux system, first confirm whether there is a device node corresponding to uart under/dev
  2. orangepi@orangepi:~# ls /dev/ttyS*

    /dev/ttyS1      /dev/ttyS3      /dev/ttyS7      /dev/ttyS9

  1. Then start testing the uart interface, first use the rx and tx of the uart interface to be tested by DuPont
  2. 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

    Pi3b-img269-1.png

  1. 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

    1. Test UART3
    2. orangepi@orangepi:~$ sudo gpio serial /dev/ttyS3

      [sudo] password for orangepi: #Enter the password here.


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4: -> 4

      Out: 5: -> 5^C

    1. Test UART7
    2. orangepi@orangepi:~$ sudo gpio serial /dev/ttyS7

      [sudo] password for orangepi: #Enter the password here.


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4: -> 4

      Out: 5: -> 5^C

    1. Test UART9
    2. orangepi@orangepi:~$ sudo gpio serial /dev/ttyS9

      [sudo] password for orangepi: #Enter the password here.


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4: -> 4

      Out: 5: -> 5^C

PWM test method

  1. From the table below, the pwm11 available for Orange Pi 3B
Pi3b-img270-1.png
  1. In the linux system, the PWM in the 40 pin is turned off by default, and it needs to be turned on manually before it can be used. The detailed steps are as follows:

    1. First run orangepi-config, normal users remember to add sudo permission

      orangepi@orangepi:~$ sudo orangepi-config

    2. Then select System

      Pi3b-1.png

    3. Then select Hardware

      Pi3b-2.png

    4. 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

      Pi3b-3-4.png

    5. Then select <Save> to save

      Pi3b-4.png

    6. Then select <Back>

      Pi3b-5.png

    7. Then select <Reboot> to restart the system to make the configuration take effect

      Pi3b-6.png

  1. 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
  2. orangepi@orangepi:~$ ls /sys/class/pwm/

    pwmchip0 pwmchip1

  1. Which pwmchip above corresponds to pwm11, let's check the output of the ls /sys/class/pwm/ -l command first, as shown below:

  2. Then it can be known from the table below that the base address of the pwm11 register is fe6f0030, and then look at the output of the ls /sys/class/pwm/ -l command, you can see that pwmchip1 is linked to fe6f0030.pwm, so pwm11 corresponds to pwmchip as pwmchip1

  3. Pi3b-img271.png

  1. 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)
  2. root@orangepi:~# echo 0 > /sys/class/pwm/pwmchip1/export

    root@orangepi:~# echo 20000000 > /sys/class/pwm/pwmchip1/pwm0/period

    root@orangepi:~# echo 1000000 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle

    root@orangepi:~# echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable

    Pi3b-img272.png

  3. The test method of pwm11 demonstrated above is similar to other pwm test methods.

How to install and use wiringOP-Python

wiringOP-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.


In addition, please note that all the following commands are operated under the root user.

wiringOP-Python installation method

  1. First install the dependency package

root@orangepi:~# sudo apt-get update

root@orangepi:~# sudo apt-get -y install git swig python3-dev python3-setuptools

  1. Then use the following command to download the source code of wiringOP-Python
  2. Note that the following git clone--recursivee command will automatically download the source code of wiringOP, because wiringOP-Python depends on wiringOP. Please make sure that the download process does not report an error due to network problems.


    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

    root@orangepi:~# git clone --recursive https://github.com/orangepi-xunlong/wiringOP-Python -b next

    root@orangepi:~# cd wiringOP-Python

    root@orangepi:~/wiringOP-Python# git submodule update --init --remote

  1. Then use the following command to compile wiringOP-Python and install it into the Linux system of the development board
  2. root@orangepi:~# cd wiringOP-Python

    root@orangepi:~/wiringOP-Python# python3 generate-bindings.py > bindings.i

    root@orangepi:~/wiringOP-Python# sudo python3 setup.py install

  1. Then enter the following command. If there is a help information output, it means that Wiringop-Python is successfully installed. Press the q key to exit the interface of the help information
  2. root@orangepi:~/wiringOP-Python# python3 -c "import wiringpi; help(wiringpi)"

    Help on module wiringpi:


    NAME

    wiringpi


    DESCRIPTION

    # This file was automatically generated by SWIG (http://www.swig.org).
    # Version 4.0.2
    #
    # Do not make changes to this file unless you know what you are doing--modify
    # the SWIG interface file instead.
  1. Test whether the wiringOP-Python is installed successfully under the Python command line is shown below:

    1. First use the Python3 command to enter the command line mode of Python3
    2. root@orangepi:~# python3

    1. Then import the Python module of WiringPi
    2. >>> import wiringpi;

    1. Enter the following command to view the help information of wiringOP-Python, and press the q key to exit the interface of the help information
    2. >>> help(wiringpi)

      Help on module wiringpi:


      NAME

      wiringpi


      DESCRIPTION

      # This file was automatically generated by SWIG (http://www.swig.org).
      # Version 4.0.2
      #
      # Do not make changes to this file unless you know what you are doing--modify
      # the SWIG interface file instead.


      CLASSES

      builtins.object
      GPIO
      I2C
      Serial
      nes


      class GPIO(builtins.object)
      | GPIO(pinmode=0)
      |


      >>>

40pin GPIO port test

wiringOP-Python is the same 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.

Pi3b-img258.png
  1. Below the No. 7 pin — corresponding to GPIO4_a4 -corresponding WPI serial number 2 -to demonstrate how to set the height of the GPIO port
Pi3b-img259.png
  1. The steps of the command test are shown below directly:

    1. 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
    2. root@orangepi:~/wiringOP-Python# python3 -c "import wiringpi; \

      from wiringpi import GPIO; wiringpi.wiringPiSetup() ; \

      wiringpi.pinMode(2, GPIO.OUTPUT) ; "

    1. 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
    2. root@orangepi:~/wiringOP-Python# python3 -c "import wiringpi; \

      from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\

      wiringpi.digitalWrite(2, GPIO.LOW)"

    1. 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.
    2. root@orangepi:~/wiringOP-Python# python3 -c "import wiringpi; \

      from wiringpi import GPIO; wiringpi.wiringPiSetup() ;\

      wiringpi.digitalWrite(2, GPIO.HIGH)"

  1. The steps of testing in the command line of Python3 are shown below:

    1. First use the Python3 command to enter the command line mode of Python3
    2. root@orangepi:~# python3

    1. Then import the Python module of WiringPi
    2. >>> import wiringpi

      >>> from wiringpi import GPIO

    1. Then set the GPIO port 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.
    2. >>> wiringpi.wiringPiSetup()

      0

      >>> wiringpi.pinMode(2, GPIO.OUTPUT)

    1. 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.
    2. >>> wiringpi.digitalWrite(2, GPIO.LOW)

    1. 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
    2. >>> wiringpi.digitalWrite(2, GPIO.HIGH)

  1. 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
  2. root@orangepi:~/wiringOP-Python# cd examples

    root@orangepi:~/wiringOP-Python/examples# ls blink.py

    blink.py

    root@orangepi:~/wiringOP-Python/examples# python3 blink.py

40pin SPI test

  1. From the schematic diagram of the 40pin interface, the SPI available for Orange Pi 3B is spi3
Pi3b-img264.png

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 spi4.


orangepi@orangepi:~$ sudo vim /boot/orangepiEnv.txt

overlays=spi3-m0-cs0-spidev

  1. 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
  2. orangepi@orangepi:~$ ls /dev/spidev3.0

    /dev/spidev3.0

  1. 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:

    1. --channel: Specify the channel number of SPI

    2. --port: Specify the port number of SPI

  2. 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

  3. root@orangepi:~/wiringOP-Python# cd examples

    root@orangepi:~/wiringOP-Python/examples# python3 spidev_test.py \

    --channel 3 --port 0

    spi mode: 0x0

    max speed: 500000 Hz (500 KHz)

    Opening device /dev/spidev3.0

    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 |.............….|

  1. Then use the TXD (No. 19 pins in the 40Pin interface) and RXD (No. 21 pins in the 40pin interface) of the DuPont line short connection SPI3. Like sending and receiving data, it means that the SPI3 loop test is normal
  2. root@orangepi:~/wiringOP-Python# cd examples

    root@orangepi:~/wiringOP-Python/examples# python3 spidev_test.py \

    --channel 3 --port 0

    spi mode: 0x0

    max speed: 500000 Hz (500 KHz)

    Opening device /dev/spidev3.0

    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 |......@.......…|

40pin I2C test

  1. 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
  2. Pi3b-img266.png

    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

  1. After starting the Linux system, first confirm the I2C device node under/dev.
  2. orangepi@orangepi:~# ls /dev/i2c-*

    /dev/i2c-0      /dev/i2c-2      /dev/i2c-3      /dev/i2c-4      /dev/i2c-6

  1. Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example of the DS1307 RTC module.
  2. 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

    Pi3b-img273.png

  1. 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
  2. orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command

    orangepi@orangepi:~$ sudo i2cdetect -y 3 #i2c3 command

    orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command

    Pi3b-img274.png

  1. You can then run the time of the ds ds1307.py test program in examples to read the RTC time
  2. root@orangepi:~/wiringOP-Python# cd examples

    root@orangepi:~/wiringOP-Python/examples# python3 ds1307.py --device \

    "/dev/i2c-4"

    Thu 2023-01-05 14:57:55

    Thu 2023-01-05 14:57:56

    Thu 2023-01-05 14:57:57

    ^C

    exit

40pin's UART test

  1. 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
Pi3b-img268.png

As 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

In the Linux system, the 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 UART3, UART7, and UART9 at the same time. If you only need to open one, you can fill in one

orangepi@orangepi:~$ sudo vim /boot/orangepiEnv.txt

overlays=uart3-m0 uart7-m2 uart9-m2

  1. After entering the Linux system, first confirm whether there is a device node corresponding to UART under/dev
  2. orangepi@orangepi:~# ls /dev/ttyS*

    /dev/ttyS1      /dev/ttyS3      /dev/ttyS7      /dev/ttyS9

  1. Then start testing the UART interface, and first use the RX and TX of the UART interface to be tested by DuPont
  2. 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
  1. 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

    1. Test UART3
    2. root@orangepi:~/wiringOP-Python/examples# python3 serialTest.py --device \

      "/dev/ttyS3"


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4:^C

      exit

    1. Test UART7
    2. root@orangepi:~/wiringOP-Python/examples# python3 serialTest.py --device \

      "/dev/ttyS7"


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4:^C

      exit

    1. Test UART9
    2. root@orangepi:~/wiringOP-Python/examples# python3 serialTest.py --device \

      "/dev/ttyS9"


      Out: 0: -> 0

      Out: 1: -> 1

      Out: 2: -> 2

      Out: 3: -> 3

      Out: 4:^C

      exit

Hardware watch the door dog test

The WatchDog_test program is pre -installed in the Linux system released by Orange PI, which can be tested directly.

The method of running the WatchDog_test program is shown below:

  1. The second parameter 10 indicates the counting time of the door. If there is no dog feeding in this time, the system will restart.

  2. We can feed the dog by pressing any keys on the keyboard (except ESC). After the dog is fed, the program will print a line of Keep Alive to indicate that the dog is successful

  3. orangepi@orangepi:~$ sudo watchdog_test 10

    open success

    options is 33152,identity is sunxi-wdt

    put_usr return,if 0,success:0

    The old reset time is: 16

    return ENOTTY,if -1,success:0

    return ENOTTY,if -1,success:0

    put_user return,if 0,success:0

    put_usr return,if 0,success:0

    keep alive

    keep alive

    keep alive

Check the serial number of the RK3566 chip

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.

orangepi@orangepi:~$ cat_serial.sh

Serial : 8fa18eaf489041f0

The method of downloading and installing the balenaEtcher version of arm64

  1. The download address of Balenaetcher ARM64 version is:

    1. The download address of the Deb installation package is shown below, and it needs to be installed to use
    2. https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balena-etcher-electron_1.7.9+5945ab1f_arm64.deb

    1. The download address of the Appimage version that does not need to be installed is shown below:
    2. https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/balenaEtcher-1.7.9+5945ab1f-arm64.AppImage

      Pi3b-img275.png

  1. How to install and use the deb version of Balenaetcher:

    1. deb version of Balenaetcher installation commands as shown below:
    2. orangepi@orangepi:~$ sudo apt install -y \

      --fix-broken ./balena-etcher-electron_1.7.9+5945ab1f_arm64.deb

    1. After the deb version of Balenaetcher is installed, it can be opened in the Application
    2. Pi3b-img89.png

    1. The interface after Balenaetcher is opened is shown below:
    2. Pi3b-img276.png

  1. How to use the AppImage version of balenaEtcher:

    1. First add permissions to Balenaetcher
    2. orangepi@orangepi:~/Desktop$ chmod +x balenaEtcher-1.7.9+5945ab1f-arm64.AppImage

    1. Then select the AppImage version balenaEtcher right -click the mouse, and then click Execute to open balenaEtcher
    2. Pi3b-img277.png

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 (excerpted from the official website of the Bt-Panel)

  1. 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/&,size=2G/' /etc/fstab

orangepi@orangepi:~$ sudo reboot

  1. After restarting, you can see that the size of the/tmp space has become 2G.
  2. orangepi@orangepi:~$ df -h | grep "/tmp"

    tmpfs      2.0G      12K      2.0G      1% /tmp

  1. Then enter the following command in the Linux system to start the installation of the Bt-Panel
  2. orangepi@orangepi:~$ sudo install_bt_panel.sh

  1. Then the pagoda installation program reminds whether to install the Bt-Panel to the/www folder, and enter y at this time
  2. +----------------------------------------------------------------------

    | Bt-WebPanel FOR CentOS/Ubuntu/Debian

    +----------------------------------------------------------------------

    | Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved.

    +----------------------------------------------------------------------

    | The WebPanel URL will be http://SERVER_IP:8888 when installed.

    +----------------------------------------------------------------------


    Do you want to install Bt-Panel to the /www directory now?(y/n): y

  1. Then you have to wait patiently. When you see the printing information below the terminal output, it means that the pagoda has been installed. The entire installation process takes about 34 minutes. There may be some differences according to the difference in network speed
  2. Pi3b-img278.png

  1. 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
    Pi3b-img279.png

  2. 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 "I have agreed and read" User Agreement ", and then click" Enter the panel " You can enter the Bt-Panel

  3. Pi3b-img280.png

  1. 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.
  2. Pi3b-img281.png

  1. 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
  2. Pi3b-img282.png

  1. More functions of the Bt-Panel can refer to the following information to explore by yourself
  2. Manual: http://docs.bt.cn

    Forum address: https://www.bt.cn/bbs

    GitHub Link: https://github.com/aaPanel/BaoTa

Set the Chinese environment and install Chinese input method

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.

Debian system installation method

  1. First set the default locale as Chinese

    1. Enter the command below to start configured locale
    2. orangepi@orangepi:~$ sudo dpkg-reconfigure locales

    1. 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 <OK> through the TAB key, then press the ENTER key )
    2. Pi3b-img283.png

    1. Then set the default locale as zh_CN.UTF-8
    2. Pi3b-img284.png

    1. After exiting the interface, the locale settings will be started. The output displayed by the command line is shown below
    2. orangepi@orangepi:~$ sudo dpkg-reconfigure locales

      Generating locales (this might take a while)...

      en_US.UTF-8... done
      zh_CN.UTF-8... done

      Generation complete.

  1. Then open Input Method
  2. Pi3b-img285.png

  1. Then select OK
  2. Pi3b-img286.png

  1. Then select Yes
  2. Pi3b-img287.png

  1. Then select fcitx
  2. Pi3b-img288.png

  1. Then select OK
  2. Pi3b-img289.png

  1. Then restart the Linux system to make the configuration effective

  2. Then open Fcitx configuration

  3. Pi3b-img290.png

  1. Then click the + of the position shown in the figure below
  2. Pi3b-img291.png

  1. Then search Google Pinyin and click OK
  2. Pi3b-img292.png

  1. Then put Google Pinyin to the front
  2. Pi3b-img293.png

    Pi3b-img294.png

  1. Then open the Geany editor to test the Chinese input method
  2. Pi3b-img295.png

  1. The Chinese input method test is shown below
  2. Pi3b-img296.png

  1. You can switch the Chinese and English input method through the Ctrl+Space shortcut

  2. If the entire system is required as Chinese, the variables in /etc/default/locale can be set to zh_CN.UTF-8

  3. orangepi@orangepi:~$ sudo vim /etc/default/locale

    # File generated by update-locale

    LC_MESSAGES=zh_CN.UTF-8

    LANG=zh_CN.UTF-8

    LANGUAGE=zh_CN.UTF-8

  1. Then restart the system to see the system displayed as Chinese
  2. Pi3b-img297.png

The installation method of Ubuntu 20.04 system

  1. First open Language Support
Pi3b-img298.png
  1. Then find Chinese (China) option
  2. Pi3b-img299.png

  1. Then use the left mouse button to select Chinese (China) and hold it down, and then drag it up to the beginning. The display is shown below:
  2. Pi3b-img300.png

    Note that this step is not easy to drag, please try more patiently.

  1. Then select the Apply System-Wide to apply the Chinese settings to the entire system
  2. Pi3b-img301.png

  1. Then set the Keyboard input method system to fcitx
  2. Pi3b-img302.png

  1. Then restart the Linux system to make the configuration effective

  2. 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.

  3. Pi3b-img303.png

  1. Then you can see that the desktop is displayed as Chinese
  2. Pi3b-img304.png

  1. Then we can open the Geany to test Chinese input method , and the way to open is shown in the figure below
  2. Pi3b-img305.png

  1. 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
  2. Pi3b-img306.png

The installation method of ubuntu 22.04 system

  1. First open Language Support
Pi3b-img298.png
  1. Then find Chinese (China) option
  2. Pi3b-img307.png

  1. 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:
  2. Pi3b-img308.png

    Note that this step is not easy to drag, please try more patiently.

  1. Then select the Apply System-Wide to apply the Chinese settings to the entire system
  2. Pi3b-img309.png

  1. Then restart the Linux system to make the configuration effective

  2. 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

  3. Pi3b-img303.png

  1. Then you can see that the desktop is displayed as Chinese
  2. Pi3b-img304.png

  1. Then open the Fcitx5 configuration program
  2. Pi3b-img310.png

  1. Then choose to use Pinyin input method
  2. Pi3b-img311.png

  1. The interface after the selection is shown below, then click OK
  2. Pi3b-img312.png

  1. Then we can open the Geany to test Chinese input method, and the way to open is shown in the figure below
  2. Pi3b-img305.png

  1. 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
  2. Pi3b-img313.png

How to remotely log in to the Linux system desktop method

Ubuntu Gnome Wayland image does not support Nomachine and VNCs introduced here to remotely log in to the desktop.

Use nomachine remote login

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:

https://knowledgebase.nomachine.com/DT10R00166

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.

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 normally.

  1. 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

    1. 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:
    2. Note that this download link may change, please recognize the DEB package of the ARMV8/ARM64 version.

      https://downloads.nomachine.com/download/?id=118&distro=ARM

      Pi3b-img314.png

    1. In addition, you can also download the installation package to NoMachine in the official tools.
    2. Pi3b-img315.png

      First enter the remote login software-Nomachine folder

      Pi3b-img316.png

      Then download the ARM64 version of the DEB installation package

      Pi3b-img317.png

    1. Then upload the downloaded nomachine_x.x.x_x_arm64.deb to the Linux system of the development board.

    2. Then use the following command to install NoMachine in the Linux system of the development board

    3. orangepi@orangepi:~$ sudo dpkg -i nomachine_x.x.x_x_arm64_arm64.deb

  1. Then download the nomachine software Windows version of the installation package, the download address is shown below
  2. Note that this download link may change.

    https://downloads.nomachine.com/download/?id=9

    Pi3b-img318.png

  1. Then install nomachine in Windows. Please restart the computer after installation

  2. Then open NoMachine in Window

  3. Pi3b-img319.png

  1. 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
  2. Pi3b-img320.png

  1. Then click OK
  2. Pi3b-img321.png

  1. 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
  2. Pi3b-img322.png

  1. Then click OK in the next interface

  2. Finally, you can see the desktop of the development board Linux system

    Pi3b-img323.png

Use VNC remote login

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.

Ubuntu 20.04 tests many problems with VNC, please do not use this method.

  1. First run the set_vnc.sh script settings, and remember to add Sudo permissions

orangepi@orangepi:~$ sudo set_vnc.sh

You will require a password to access your desktops.


Password:        #Set the VNC password here, 8 -bit characters

Verify:        #Set the VNC password here, 8 -bit characters

Would you like to enter a view-only password (y/n)? n

xauth: file /root/.Xauthority does not exist


New 'X' desktop is orangepi3b:1


Creating default startup script /root/.vnc/xstartup

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/orangepi3b:1.log


Killing Xtightvnc process ID 3047


New 'X' desktop is orangepi3b:1


Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/orangepi3b:1.log

  1. The steps of using MobaxTerm software to connect the development board Linux system desktop are shown below:

    1. First click Session, then select VNC, then fill in the IP address and port of the development board, and finally click OK to confirm
    2. Pi3b-img324.png

    1. Then enter the password of the previously set VNC
    2. Pi3b-img325.png

    1. 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

      Pi3b-img326.png

Some programming language tests supported by Linux system

Debian Bullseye system

  1. 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

    1. The version of the gcc is shown below
    2. orangepi@orangepi:~$ gcc --version

      gcc (Debian 10.2.1-6) 10.2.1 20210110

      Copyright (C) 2020 Free Software Foundation, Inc.

      This is free software; see the source for copying conditions. There is NO

      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    1. Write C language of Hello_world.c program
    2. orangepi@orangepi:~$ vim hello_world.c


      #include <stdio.h>

      int main(void)

      {

      printf("Hello World!\n");


      return 0;

      }

    1. Then compile and run hello_world.c
    2. orangepi@orangepi:~$ gcc -o hello_world hello_world.c

      orangepi@orangepi:~$ ./hello_world

      Hello World!

  1. Debian BullSeye Default with Python3

    1. The specific version of Python is shown below
    2. orangepi@orangepi:~$ python3

      Python 3.9.2 (default, Feb 28 2021, 17:03:44)

      [GCC 10.2.1 20210110] on linux

      Type "help", "copyright", "credits" or "license" for more information.

      >>>

    1. hello_world.py program in Python language
    2. orangepi@orangepi:~$ vim hello_world.py

      print('Hello World!')

    1. The results of running hello_world.py are shown below
    2. orangepi@orangepi:~$ python3 hello_world.py

      Hello World!

  1. Debian Bullseye's compilation tool and operating environment that is not installed in Java by default

    1. You can use the following command to install OpenJDK. The latest version in Debian Bullseye is openjdk-17
    2. orangepi@orangepi:~$ sudo apt install -y openjdk-17-jdk

    1. After installation, you can check the version of Java
    2. orangepi@orangepi:~$ java --version

    1. Edit the hello_world.java of the Jave version
    2. orangepi@orangepi:~$ vim hello_world.java

      public class hello_world

      {

      public static void main(String[] args)
      {
      System.out.println("Hello World!");
      }

      }

    1. Then compile and run hello_world.java
    2. orangepi@orangepi:~$ javac hello_world.java

      orangepi@orangepi:~$ java hello_world

      Hello World!

Ubuntu Focal system

  1. 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.

    1. The version of the gcc is shown below
    2. orangepi@orangepi:~$ gcc --version

      gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

      Copyright (C) 2019 Free Software Foundation, Inc.

      This is free software; see the source for copying conditions. There is NO

      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    1. hello_world.c program to write C language
    2. orangepi@orangepi:~$ vim hello_world.c

      #include <stdio.h>


      int main(void)

      {

      printf("Hello World!\n");


      return 0;

      }

    1. Then compile and run hello_world.c
    2. orangepi@orangepi:~$ gcc -o hello_world hello_world.c

      orangepi@orangepi:~$ ./hello_world

      Hello World!

  1. Ubuntu Focal defaults to install Python3

    1. Python3 specific version is shown below
    2. orangepi@orangepi:~$ python3

      Python 3.8.10 (default, Nov 14 2022, 12:59:47)

      [GCC 9.4.0] on linux

      Type "help", "copyright", "credits" or "license" for more information.

      >>>

    1. hello_world.py program in Python language
    2. orangepi@orangepi:~$ vim hello_world.py

      print('Hello World!')

    1. The results of running hello_world.py are shown below
    2. orangepi@orangepi:~$ python3 hello_world.py

      Hello World!

  1. Ubuntu Focal's compilation tool and operating environment without the installation of Java default

    1. You can use the following command to install openjdk-17
    2. orangepi@orangepi:~$ sudo apt install -y openjdk-17-jdk

    1. After installation, you can check the version of Java
    2. orangepi@orangepi:~$ java --version

      openjdk 17.0.2 2022-01-18

      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)

    1. Edit the hello_world.java of Jave version
    2. orangepi@orangepi:~$ vim hello_world.java

      public class hello_world

      {

      public static void main(String[] args)
      {
      System.out.println("Hello World!");
      }

      }

    1. Then compile and run hello_world.java
    2. orangepi@orangepi:~$ javac hello_world.java

      orangepi@orangepi:~$ java hello_world

      Hello World!

Ubuntu jammy system

  1. 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

    1. The version of the gcc is shown below
    2. orangepi@orangepi:~$ gcc --version

      gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0

      Copyright (C) 2021 Free Software Foundation, Inc.

      This is free software; see the source for copying conditions. There is NO

      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    1. Write the hello_world.c program of c language
    2. orangepi@orangepi:~$ vim hello_world.c

      #include <stdio.h>


      int main(void)

      {

      printf("Hello World!\n");


      return 0;

      }

    1. Then compile and run hello_world.c
    2. orangepi@orangepi:~$ gcc -o hello_world hello_world.c

      orangepi@orangepi:~$ ./hello_world

      Hello World!

  1. Ubuntu jammy is installed with Python3 by default

    1. Python3 specific version is shown below
    2. orangepi@orangepi:~$ python3

      Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux

      Type "help", "copyright", "credits" or "license" for more information.

      >>>

    1. Edit hello_world.py program in Python language
    2. orangepi@orangepi:~$ vim hello_world.py

      print('Hello World!')

    1. The results of running hello_world.py are shown below
    2. orangepi@orangepi:~$ python3 hello_world.py

      Hello World!

  1. Ubuntu jammy defaults to compile tools and operating environments that are not installed in Java

    1. You can use the following command to install openjdk-18
    2. orangepi@orangepi:~$ sudo apt install -y openjdk-18-jdk

    1. After installation, you can check the version of Java
    2. orangepi@orangepi:~$ java --version

      openjdk 18-ea 2022-03-22

      OpenJDK Runtime Environment (build 18-ea+36-Ubuntu-1)

      OpenJDK 64-Bit Server VM (build 18-ea+36-Ubuntu-1, mixed mode, sharing)

    1. Edit the hello_world.java of the Jave version
    2. orangepi@orangepi:~$ vim hello_world.java

      public class hello_world

      {

      public static void main(String[] args)
      {
      System.out.println("Hello World!");
      }

      }

    1. Then compile and run hello_world.java
    2. orangepi@orangepi:~$ javac hello_world.java

      orangepi@orangepi:~$ java hello_world

      Hello World!

QT installation method

  1. Use the following script to install QT5 and QT Creator

orangepi@orangepi:~$ install_qt.sh

  1. The QT version number will be automatically printed after installation

    1. Ubuntu20.04 comes with QT version 5.12.8
    2. orangepi@orangepi:~$ install_qt.sh

      ......

      QMake version 3.1

      Using Qt version 5.12.8 in /usr/lib/aarch64-linux-gnu

    1. Ubuntu22.04 comes with QT version 5.15.3
    2. orangepi@orangepi:~$ install_qt.sh

      ......

      QMake version 3.1

      Using Qt version 5.15.3 in /usr/lib/aarch64-linux-gnu

    1. Debian11 comes with QT version 5.15.2
    2. orangepi@orangepi:~$ install_qt.sh

      ......

      QMake version 3.1

      Using Qt version 5.15.2 in /usr/lib/aarch64-linux-gnu

    1. Debian12 comes with QT version 5.15.8
    2. orangepi@orangepi:~$ install_qt.sh

      ......

      QMake version 3.1

      Using Qt version 5.15.8 in /usr/lib/aarch64-linux-gnu

  1. Then you can see the QT Creator launch icon in Applications
  2. Pi3b-img327.png

    QT Creator can also be opened using the following command

    orangepi@orangepi:~$ qtcreator

    During the startup of QT and QT applications, if the following error is displayed, ignore it. This error has no impact on application running.


    libGL error: failed to create dri screen

    libGL error: failed to load driver: rockchip

    libGL error: failed to create dri screen

    libGL error: failed to load driver: rockchip

  1. The interface after QT Creator is opened is as follows
  2. Pi3b-img328.png

  1. The QT Creator version is shown below

    1. The default version of QT Creator in Ubuntu20.04 is as follows
    2. Pi3b-img329.png

    1. The default version of QT Creator in Ubuntu22.04 is as follows
    2. Pi3b-img330.png

    1. The default version of QT Creator in Debian11 is as follows
    2. Pi3b-img331.png

    1. The default version of QT Creator in Debian12 is as follows
    2. Pi3b-img332.png

  1. Then set QT

    1. First open Help->About Plugins...
    2. Pi3b-img333.png

    1. Then remove the check box for ClangCodeModel
    2. Pi3b-img334.png

    1. Restart QT Creator after the Settings are complete

    2. Then make sure that QT Creator uses the GCC compiler, if the default is Clang, change it to GCC

    3. Debian12 Please skip this step.

      Pi3b-img335.png

      Pi3b-img336.png

  1. You can then open a sample code
  2. Pi3b-img337.png

  1. Clicking on the example code will automatically open the corresponding instruction document, you can carefully read the instructions
  2. Pi3b-img338.png

  1. Then click Configure Project
  2. Pi3b-img339.png

  1. Then click the green triangle in the lower left corner to compile and run the sample code
  2. Pi3b-img340.png

  1. After waiting for a period of time, the interface shown in the following figure will pop up, which indicates that QT can compile and run normally
  2. Pi3b-img341.png

  1. Reference documents
  2. https://wiki.qt.io/Install_Qt_5_on_Ubuntu

    https://download.qt.io/archive/qtcreator

    https://download.qt.io/archive/qt

ROS Installation Method

How to install ROS 1 Noetic on Ubuntu 20.04

  1. The current active version of ROS 1 is as follows, the recommended version is Noetic Ninjemys
Pi3b-img342.png
Pi3b-img343.png

http://docs.ros.org

https://wiki.ros.org/Distributions

  1. The official installation document link of ROS 1 Noetic Ninjemys is as follows:
  2. http://wiki.ros.org/noetic/Installation/Ubuntu

  1. In the official installation document of ROS Noetic Ninjemys, Ubuntu recommends using Ubuntu20.04, so please make sure that the system used by the development board is Ubuntu20.04 desktop system
  2. http://wiki.ros.org/noetic/Installation

    Pi3b-img344.png

  1. Then use the script below to install ros1
  2. orangepi@orangepi3b:~$ install_ros.sh ros1

  1. 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
  2. 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.


    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://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml

    ERROR: error loading sources list:

    The read operation timed out

    orangepi@orangepi:~$ source /opt/ros/noetic/setup.bash

    orangepi@orangepi:~$ sudo rosdep init

    Wrote /etc/ros/rosdep/sources.list.d/20-default.list

    Recommended: please run


    rosdep update

    orangepi@orangepi:~$ rosdep update

    reading in sources list data from /etc/ros/rosdep/sources.list.d

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml

    Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml

    Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml

    Skip end-of-life distro "ardent"

    Skip end-of-life distro "bouncy"

    Skip end-of-life distro "crystal"

    Skip end-of-life distro "dashing"

    Skip end-of-life distro "eloquent"

    Add distro "foxy"

    Add distro "galactic"

    Skip end-of-life distro "groovy"

    Add distro "humble"

    Skip end-of-life distro "hydro"

    Skip end-of-life distro "indigo"

    Skip end-of-life distro "jade"

    Skip end-of-life distro "kinetic"

    Skip end-of-life distro "lunar"

    Add distro "melodic"

    Add distro "noetic"

    Add distro "rolling"

    updated cache in /home/orangepi/.ros/rosdep/sources.cache

  1. 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 normally

  2. orangepi@orangepi:~$ test_ros.sh

  3. After running the test_ros.sh script, a little turtle as shown in the figure below will pop up

  4. Pi3b-img345.png

  1. Then please keep the terminal window just opened at the top
  2. Pi3b-img346.png

  1. At this time, press the direction keys on the keyboard to control the little turtle to move up, down, left, and right
  2. Pi3b-img347.png

How to install ROS 2 Galactic on Ubuntu 20.04

  1. The current active version of ROS 2 is as follows, the recommended version is Galactic Geochelone
Pi3b-img348.png
Pi3b-img349.png

http://docs.ros.org

http://docs.ros.org/en/galactic/Releases.html

  1. The link to the official ROS 2 Galactic Geochelone installation documentation is as follows:
  2. docs.ros.org/en/galactic/Installation.html

    http://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html

  1. It is recommended to use Ubuntu20.04 in the official installation document of ROS 2 Galactic Geochelone, so please ensure that the system used by the development board is Ubuntu20.04 desktop version. There are several ways to install ROS 2. The following shows how to install ROS 2 Galactic Geochelone using Debian packages

  2. Use the install_ros.sh script to install ros2

  3. orangepi@orangepi:~$ install_ros.sh ros2

  1. 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
  2. usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...


    ros2 is an extensible command-line tool for ROS 2.


    optional arguments:

    -h, --help show this help message and exit


    Commands:

    action Various action related sub-commands
    bag Various rosbag related sub-commands
    component Various component related sub-commands
    daemon Various daemon related sub-commands
    doctor Check ROS setup and other potential issues
    interface Show information about ROS interfaces
    launch Run a launch file
    lifecycle Various lifecycle related sub-commands
    multicast Various multicast related sub-commands
    node Various node related sub-commands
    param Various param related sub-commands
    pkg Various package related sub-commands
    run Run a package specific executable
    security Various security related sub-commands
    service Various service related sub-commands
    topic Various topic related sub-commands
    wtf Use `wtf` as alias to `doctor`


    Call `ros2 <command> -h` for more detailed usage.
  1. 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
  2. orangepi@orangepi3b:~$ test_ros.sh

    [INFO] [1671174101.200091527] [talker]: Publishing: 'Hello World: 1'

    [INFO] [1671174101.235661048] [listener]: I heard: [Hello World: 1]

    [INFO] [1671174102.199572327] [talker]: Publishing: 'Hello World: 2'

    [INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]

    [INFO] [1671174103.199580322] [talker]: Publishing: 'Hello World: 3'

    [INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]

  1. Run the following command to open rviz2
  2. orangepi@orangepi:~$ source /opt/ros/galactic/setup.bash

    orangepi@orangepi:~$ ros2 run rviz2 rviz2

    Pi3b-img350.png

  1. For the usage of ROS, please refer to the documentation of ROS 2
  2. http://docs.ros.org/en/galactic/Tutorials.html

How to install ROS 2 Humble on Ubuntu 22.04

  1. Use the install_ros.sh script to install ros2

orangepi@orangepi:~$ install_ros.sh ros2

  1. 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
  2. usage: ros2 [-h] Call `ros2 <command> -h` for more detailed usage. ...


    ros2 is an extensible command-line tool for ROS 2.


    optional arguments:

    -h, --help show this help message and exit


    Commands:

    action Various action related sub-commands
    bag Various rosbag related sub-commands
    component Various component related sub-commands
    daemon Various daemon related sub-commands
    doctor Check ROS setup and other potential issues
    interface Show information about ROS interfaces
    launch Run a launch file
    lifecycle Various lifecycle related sub-commands
    multicast Various multicast related sub-commands
    node Various node related sub-commands
    param Various param related sub-commands
    pkg Various package related sub-commands
    run Run a package specific executable
    security Various security related sub-commands
    service Various service related sub-commands
    topic Various topic related sub-commands
    wtf Use `wtf` as alias to `doctor`


    Call `ros2 <command> -h` for more detailed usage.
  1. 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
  2. orangepi@orangepi3b:~$ test_ros.sh

    [INFO] [1671174101.200091527] [talker]: Publishing: 'Hello World: 1'

    [INFO] [1671174101.235661048] [listener]: I heard: [Hello World: 1]

    [INFO] [1671174102.199572327] [talker]: Publishing: 'Hello World: 2'

    [INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]

    [INFO] [1671174103.199580322] [talker]: Publishing: 'Hello World: 3'

    [INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]

  1. Run the following command to open rviz2
  2. orangepi@orangepi:~$ source /opt/ros/humble/setup.bash

    orangepi@orangepi:~$ ros2 run rviz2 rviz2

    Pi3b-img351.png

  1. Reference documents
  2. http://docs.ros.org/en/humble/index.html

    http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html

How to install kernel header files

  1. 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:~$ ls /opt/linux-headers*

/opt/linux-headers-legacy-rockchip-rk356x_x.x.x_arm64.deb

  1. Use the following command to install the deb package of the kernel header file
  2. 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

  1. After installation, you can see the folder where the kernel header files are located under /usr/src
  2. orangepi@orangepi:~$ ls /usr/src

    linux-headers-5.10.160-rockchip-rk356x

  1. Then you can write a hello kernel module to test the kernel header file

    1. First write the code of the hello kernel module, as follows:
    2. orangepi@orangepi:~$ vim hello.c

      #include <linux/init.h>

      #include <linux/module.h>


      static int hello_init(void)

      {

      printk("Hello Orange Pi -- init\n");


      return 0;

      }

      static void hello_exit(void)

      {

      printk("Hello Orange Pi -- exit\n");


      return;

      }


      module_init(hello_init);

      module_exit(hello_exit);


      MODULE_LICENSE("GPL");

    1. Then write the Makefile for compiling the hello kernel module, as follows:
    2. orangepi@orangepi:~$ vim Makefile

      ifneq ($(KERNELRELEASE),)

      obj-m:=hello.o

      else

      KDIR :=/lib/modules/$(shell uname -r)/build

      PWD :=$(shell pwd)

      all:

      make -C $(KDIR) M=$(PWD) modules

      clean:

      rm -f *.ko *.o *.mod.o *.mod *.symvers *.cmd *.mod.c *.order

      endif

    1. Then use the make command to compile the hello kernel module. The output of the compilation process is as follows:
    2. 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.

      Pi3b-img352.png

      orangepi@orangepi:~$ make

      make -C /lib/modules/5.10.160-rockchip-35xx/build M=/home/orangepi modules

      make[1]: Entering directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'

      CC [M] /home/orangepi/hello.o
      MODPOST /home/orangepi/Module.symvers
      CC [M] /home/orangepi/hello.mod.o
      LD [M] /home/orangepi/hello.ko

      make[1]: Leaving directory '/usr/src/linux-headers-5.10.160-rockchip-rk35xx'

    1. After compiling, the hello.ko kernel module will be generated
    2. orangepi@orangepi:~$ ls *.ko

      hello.ko

    1. Use the insmod command to insert the hello.ko kernel module into the kernel
    2. orangepi@orangepi:~$ sudo insmod hello.ko

    1. 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.
    2. orangepi@orangepi:~$ dmesg | grep "Hello"

      [ 2871.893988] Hello Orange Pi -- init

    1. Use the rmmod command to uninstall the hello.ko kernel module
    2. orangepi@orangepi:~$ sudo rmmod hello

      orangepi@orangepi:~$ dmesg | grep "Hello"

      [ 2871.893988] Hello Orange Pi -- init

      [ 3173.800892] Hello Orange Pi -- exit

Use of the Raspberry PI's 5-inch screen

Assembly method of Raspberry PI 5-inch screen

  1. First prepare the required accessories

    1. Raspberry PI 5-inch MIPI LCD display + touch screen
    2. Pi3b-img353.png

    1. 15pin MIPI cable
    2. Pi3b-img354.png

  1. 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)
  2. Pi3b-img355.png

  1. Finally connect to the LCD interface of the Orange Pi 3B development board
  2. Pi3b-img356.png

Open the Raspberry PI 5-inch screen configuration method

  1. The Linux image does not open the 5-inch screen of the Raspberry PI by default. If you need to use the 5-inch screen of the Raspberry PI, you need to open it manually.

  2. The steps to open the mipi lcd configuration are as follows:

    1. First run orangepi-config, ordinary users remember to add sudo permission
    2. orangepi@orangepi:~$ sudo orangepi-config

    1. Then select System
    2. Pi3b-img357.png

    1. Then select Hardware
    2. Pi3b-img358.png

    1. Then use the arrow keys on the keyboard to locate the Rasp-7inch-touchscreen, and then use the space button to check
    2. Pi3b-img359.png

    1. Then select <Save> to save
    2. Pi3b-img360.png

    1. Then select <Back>
    2. Pi3b-img361.png

    1. Then select <Reboot> to restart the system for the configuration to take effect
    2. Pi3b-img362.png

      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-touchscreen is also possible.


      orangepi@orangepi:~$ cat /boot/orangepiEnv.txt | grep "raspi"

      overlays=raspi-7inch-touchscreen #Sample configuration

  1. After startup, you can see the lcd screen display as follows:
  2. Pi3b-img363.png

The method of server version image rotation display direction

  1. Add extraargs=fbcon=rotate:the direction to rotate in /boot/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:

    1. 0: normal screen (default is landscape)

    2. 1: Turn clockwise 90 degrees

    3. 2: Flip 180 degrees

    4. 3: Turn clockwise 270 degrees

    5. orangepi@orangepi:~$ sudo vim /boot/orangepiEnv.txt

      overlays=lcd1

      extraargs=cma=64M fbcon=rotate:3

      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).

  1. Then restart the Linux system and you can see that the direction displayed on the LCD screen has been rotated

Method of rotating display and touch direction of desktop version image

  1. First open Display Settings in Linux
Pi3b-img364.png
  1. Then select the direction you want to rotate in Rotation

    1. None: no rotation

    2. Left: rotate left 90 degrees

    3. Inverted: Flip up and down, which is equivalent to rotating 180 degrees

    4. Right: rotate right 90 degrees

    5. Pi3b-img365.png

  1. Then click Apply
  2. Pi3b-img366.png

  1. Then select Keep this configuration
  2. Pi3b-img367.png

  1. At this point, the screen display has been rotated, and then close the Display program

  2. 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.

    1. None: no rotation
    2. orangepi@orangepi:~$ set_lcd_rotate.sh none

    1. Left: rotate left 90 degrees
    2. orangepi@orangepi:~$ set_lcd_rotate.sh left

    1. Inverted: Flip up and down, which is equivalent to rotating 180 degrees
    2. orangepi@orangepi:~$ set_lcd_rotate.sh inverted

    1. Right: rotate right 90 degrees
    2. orangepi@orangepi:~$ set_lcd_rotate.sh right

      The set_lcd_rotate.sh script mainly does four things:


      1. Rotate the direction displayed by the framebuffer

      2. Rotate the direction of the touch

      3. Turn off the boot logo

      4. Restart the system


      Rotating the touch direction is achieved by adding the line Option "TransformationMatrix" "x x x x x x x x x" to /usr/share/X11/xorg.conf.d/40-libinput.conf Where "x x x x x x x x x" is configured differently for different directions.

  1. Touch rotation reference
  2. https://wiki.ubuntu.com/X/InputCoordinateTransformation

  1. By default, the switch logo will only be displayed in the desktop version of the system
  2. Set the bootlogo variable to false in /boot/orangepiEnv.txt to turn off the switch logo

orangepi@orangepi:~$ vim /boot/orangepiEnv.txt

verbosity=1

bootlogo=false

  1. Set the bootlogo variable to true in /boot/orangepiEnv.txt to enable the switch logo
  2. orangepi@orangepi:~$ vim /boot/orangepiEnv.txt

    verbosity=1

    bootlogo=true

  1. The location of the boot logo image in the Linux system is
  2. /usr/share/plymouth/themes/orangepi/watermark.png

  1. After replacing the boot logo picture, you need to run the following command to take effect
  2. orangepi@orangepi:~$ sudo update-initramfs -u

How to use the ZFS file system

The latest version of Ubuntu20.04, Ubuntu22.04, Debian11 and Debian12 desktop version systems 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.

The pre-installed zfs version in Debian11 and Debian12 desktop systems is 2.1.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.

orangepi@orangepi:~$ lsmod | grep "zfs"

zfs                     2801664     0

zunicode             327680     1   zfs

zzstd                  471040     1   zfs

zlua                    139264     1   zfs

zcommon             69632     1   zfs

znvpair                 61440     2   zfs,zcommon

zavl                      16384     1   zfs

icp                     221184     1   zfs

spl                       77824     6   zfs,icp,zzstd,znvpair,zcommon,zavl

How to install ZFS

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.

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 section on the method of installing the kernel header file.

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.

To solve this problem, we provide a zfs deb package that can be installed normally, which can be downloaded from the official tool of the development board. Open the official tool, and enter the zfs-related deb package folders used by Ubuntu and Debian systems. You can see three types of deb packages: Ubuntu20.04, Ubuntu22.04 and Debian11. Please download the required version.

Pi3b-img368.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 the description in the section of the method of uploading files to the Linux system of the development board.

After 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.

orangepi@orangepi:~$ sudo apt install ./*.deb

After the installation is complete, use the following command to see the zfs-related kernel modules:

orangepi@orangepi:~$ ls /lib/modules/5.10.160-rockchip-rk356x/updates/dkms/

icp.ko spl.ko zavl.ko zcommon.ko zfs.ko zlua.ko znvpair.ko zunicode.ko zzstd.ko

Then restart the Linux system to see that the zfs kernel module will be automatically loaded:

orangepi@orangepi:~$ lsmod | grep "zfs"

zfs                     2801664     0

zunicode             327680     1   zfs

zzstd                  471040     1   zfs

zlua                    139264     1   zfs

zcommon             69632     1   zfs

znvpair                 61440     2   zfs,zcommon

zavl                      16384     1   zfs

icp                     221184     1   zfs

spl                       77824     6   zfs,icp,zzstd,znvpair,zcommon,zavl

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.

orangepi@orangepi:~$ sudo apt install -y zfsutils-linux zfs-dkms

Methods of creating ZFS pools

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.

  1. 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-img369.png
  1. Then enter the following command to create a ZFS pool, including two storage devices, NVMe SSD and U disk
  2. orangepi@orangepi:~$ sudo zpool create -f pool1 /dev/nvme0n1 /dev/sda

  1. 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
  2. Pi3b-img370.png

  1. Then execute df -h to see that pool1 is mounted to the /pool1 directory
  2. orangepi@orangepi:~$ df -h

    Filesystem                 Size     Used Avail Use% Mounted on

    tmpfs                    1.6G     18M 1.6G 2% /run

    /dev/mmcblk0p2     29G     6.0G 22G 22% /

    tmpfs                    7.7G     46M 7.7G 1% /dev/shm

    tmpfs                    5.0M     4.0K 5.0M 1% /run/lock

    tmpfs                    7.7G     944K 7.7G 1% /tmp

    /dev/mmcblk0p1     1022M     115M 908M 12% /boot

    /dev/zram1                 188M     4.5M 169M 3% /var/log

    tmpfs                    1.6G     80K 1.6G 1% /run/user/1000

    pool1                    489G     9.3M 489G 1% /pool1

  1. Use the following command to see that the file system type of pool1 is zfs
  2. orangepi@orangepi:~$ mount | grep pool1

    pool1 on /pool1 type zfs (rw,xattr,noacl)

  1. Then we can test copying a file to the ZFS pool
  2. orangepi@orangepi:~$ sudo cp -v /usr/local/test.mp4 /pool1/

    '/usr/local/test.mp4' -> '/pool1/test.mp4'

Test the data deduplication function of ZFS

  1. 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

  1. Then do a simple test, first enter pool1, and then execute the following command to generate a random file with a size of 1G
  2. orangepi@orangepi:~$ cd /pool1/

    root@orangepi:/pool1$ sudo dd if=/dev/urandom of=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 MB/s

  1. Then use the following command to copy 1000 random files of size 1G
  2. root@orangepi:/pool1$ for ((i=0; i<1000; i++)); do sudo cp test.1g $i.test.1g; done

  1. 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
  2. root@orangepi:/pool1$ du -lh

    1002G

  1. Then use the zpool list command to see that only 1.01G is actually occupied, because these 1001 files are all duplicates, indicating that the data deduplication function is effective.
  2. Pi3b-img371.png

Test the data compression function of ZFS

  1. 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

orangepi@orangepi:~$ cd /pool1/

root@orangepi:/pool1$ sudo tar -cf text.tar /var/log/ /etc/

  1. Then the file size that can be seen through the ls -lh command and the space occupied in the ZFS pool are both 27M
  2. Pi3b-img372.png

  1. Then we enable compression in the ZFS pool pool1
  2. root@orangepi:/pool1$ sudo zfs set compression=lz4 pool1

  1. Then execute the following command again to package the /var/log/ and /etc/ directories into a tar package
  2. root@orangepi:/pool1$ sudo tar -cf text.tar /var/log/ /etc/

  1. At this time, you can see that the size of the text.tar file is still 27M, but it only occupies 9.47M in the ZFS pool, indicating that the file is compressed
  2. Pi3b-img373.png

How to shut down and restart the development board

  1. During the running of the Linux system, if the Type-C power supply is directly unplugged, some data may be lost or damaged 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.

orangepi@orangepi:~$ sudo poweroff

  1. 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.
  2. Pi3b-img374.png

    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.

    Pi3b-img375.png
  1. Short press the switch button on the development board after shutting down to start up.
  2. Pi3b-img374.png

  1. The command to restart the Linux system is
  2. orangepi@orangepi:~$ sudo reboot

Linux SDK——orangepi-build instructions

Compilation system requirements

We can cross-compile the Linux image of the development board on the x64 computer, or compile the Linux image of the development board on the Ubuntu22.04 system of the development board, please choose one according to your preference.


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.

Compile with the Ubuntu22.04 system of the development board

  1. The Linux SDK, namely 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.

orangepi@orangepi:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 22.04.1 LTS

Release: 22.04

Codename: jammy

  1. 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.

Compile with x64 Ubuntu22.04 computer

  1. 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 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.

test@test:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 22.04 LTS

Release: 22.04

Codename: jammy

  1. 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.

  2. The download address of the installation image of Ubuntu 22.04 amd64 version is:

  3. https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.iso

    Or

    https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.iso

  1. 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

    1. For the method of replacing Tsinghua source, please refer to the instructions on this web page
    2. https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

    1. Note that the Ubuntu version needs to be switched to 22.04
    2. Pi3b-img376.png

    1. The content of the /etc/apt/sources.list file that needs to be replaced is
    2. test@test:~$ sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

      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 necessary

      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse

      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse

      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse


      # Pre-release software source, not recommended to enable

      # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

      # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

    1. After the replacement, you need to update the package information and make sure there is no error
    2. test@test:~$ sudo apt update

    1. 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.

Get the source code of Linux sdk

Download orangepi-build from github

  1. 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.

Pi3b-img377.png

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.

  1. The u-boot and Linux kernel versions currently used by the development board are as follows
  2. 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.

  1. orangepi-build will contain the following files and folders after downloading

    1. build.sh: Compile the startup script

    2. external: Contains the configuration files needed to compile the image, specific scripts, and the source code of some programs, etc.

    3. LICENSE: GPL 2 license file

    4. README.md: orangepi-build documentation

    5. scripts: General script for compiling Linux images

    6. 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.

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.

  1. 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.
Pi3b-img378.png
  1. The image URL of the cross-compilation toolchain in China is the open source software image site of Tsinghua University
  2. https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/

  1. After toolchains is downloaded, it will contain multiple versions of cross-compilation toolchains, and the development board will only use two of them
  2. 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.2-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.5.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

  1. The cross-compilation toolchain used to compile the Linux kernel source code is

    1. Linux5.10
    2. gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu

  1. The cross-compilation tool chain used to compile the u-boot source code is

    1. v2017.09
    2. gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu

orangepi-build complete directory structure description

  1. 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

    1. The git repository where the Linux kernel source code is stored is as follows:
    2. https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-5.10-rk35xx

    1. The git warehouse where the b.u-boot source code is stored is as follows:
    2. https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2017.09-rk3588

  1. 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:

    a. build.sh: compile startup script

    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

    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

    d. LICENSE: GPL 2 license file

    e. README.md: orangepi-build documentation

    f. output: Store compiled deb packages such as u-boot and Linux, compilation logs, and compiled images and other files

    g. scripts: general scripts for compiling Linux images

    h. toolchains: store cross-compilation toolchain

    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

    j. userpatches: Store configuration files needed to compile scripts

  2. test@test:~/orangepi-build$ ls

    build.sh     external     kernel     LICENSE     output     README.md     scripts     toolchains     u-boot     userpatches

Compile u-boot

  1. Run the build.sh script, remember to add sudo permission

test@test:~/orangepi-build$ sudo ./build.sh

  1. Select U-boot package, then enter
  2. Pi3b-img379.png

  1. Then select the model of the development board
  2. Pi3b-img380.png

  1. Then it will start to compile u-boot, and some information prompted during compilation is explained as follows

    1. u-boot source code version
    2. [ o.k. ] Compiling u-boot [ v2017.09 ]

    1. The version of the cross-compilation toolchain
    2. [ o.k. ] Compiler version [ aarch64-linux-gnu-gcc 7.4.1 ]

    1. Path to the generated u-boot deb package
    2. [ o.k. ] Target directory [ orangepi-build/output/debs/u-boot ]

    1. The package name of the generated u-boot deb package
    2. [ o.k. ] File name [ linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb ]

    1. Compilation time
    2. [ o.k. ] Runtime [ 1 min ]

    1. Repeat the command to compile u-boot, use the following command to start compiling u-boot directly without selecting through the graphical interface
    2. [ o.k. ] Repeat Build Options [ sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=u-boot KERNEL_CONFIGURE=no ]

  1. View the u-boot deb package generated by compilation
  2. test@test:~/orangepi-build$ ls output/debs/u-boot/

    linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb

  1. The files contained in the generated u-boot deb package are as follows

    1. Use the following command to decompress the deb package
    2. 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 "." 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

    1. The decompressed file is as follows
    2. 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

  1. 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:
  2. Set the IGNORE_UPDATES variable in userpatches/config-default.conf to "yes"

    test@test:~/orangepi-build$ vim userpatches/config-default.conf

    IGNORE_UPDATES="yes"

  1. When debugging u-boot code, you can use the following method to update u-boot in the Linux image for testing

    1. Upload the compiled u-boot deb package to the Linux system of the development board
    2. 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 root@192.168.1.xxx:/root

    1. Then log in to the development board and uninstall the deb package of u-boot installed
    2. root@orangepi:~# apt purge -y linux-u-boot-orangepi3b-legacy

    1. Install the new u-boot deb package just uploaded
    2. root@orangepi:~# dpkg -i linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb

    1. Then run the nand-sata-install script
    2. root@orangepi:~# nand-sata-install

    1. 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
    2. Pi3b-img381.png

    1. After pressing the Enter key, a Warning will pop up first
    2. Pi3b-img382.png

    1. Press the Enter key again to start updating u-boot, and the following information will be displayed after the update is completed
    2. Pi3b-img383.png

    1. Then you can restart the development board to test whether the modification of u-boot takes effect
  1. Other useful information

    1. In the u-boot 2017.09 source code, the defconfig configuration file used by the development board is
    2. orangepi-build/u-boot/v2017.09-rk3588/configs/orangepi-3b-rk3566_defconfig

    1. In the u-boot 2017.09 source code, the dts file used by the development board is
    2. orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3566-orangepi-3b.dts

Compile the Linux kernel

  1. Run the build.sh script, remember to add sudo permission

test@test:~/orangepi-build$ sudo ./build.sh

  1. Select Kernel package, then enter
  2. Pi3b-img384.png

  1. Then select the model of the development board
  2. Pi3b-img380.png

  1. 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.
  2. Pi3b-img385.png

  1. 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
  2. Pi3b-img386.png

    1. 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
    2. test@test:~/orangepi-build$ sudo ./build.sh KERNEL_CONFIGURE=no

    1. You can also set KERNEL_CONFIGURE=no in the orangepi-build/userpatches/config-default.conf configuration file, which can permanently disable this function

    2. 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

    3. Pi3b-img387.png

  1. Part of the information prompted when compiling the kernel source code is as follows

    1. The version of the Linux kernel source code
    2. [ o.k. ] Compiling current kernel [ 5.10.160 ]

    1. The version of the cross-compilation toolchain used
    2. [ o.k. ] Compiler version [ aarch64-none-linux-gnu-gcc 11.2.1 ]

    1. The configuration file used by the kernel by default and the path where it is stored
    2. [ o.k. ] Using kernel config file [ config/kernel/linux-rockchip-rk356x-legacy.config ]

    1. The path of the deb package related to the kernel generated by compiling
    2. [ o.k. ] Target directory [ orangepi-build/output/debs/ ]

    1. The package name of the compiled kernel image deb package
    2. [ o.k. ] File name [ linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb ]

    1. The time used for compilation
    2. [ o.k. ] Runtime [ 5 min ]

    1. 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
    2. [ o.k. ] Repeat Build Options [ sudo ./build.sh BOARD=orangepi3b BRANCH=legacy BUILD_OPT=kernel KERNEL_CONFIGURE=no ]

  1. View the deb package related to the kernel generated by compilation

    1. linux-dtb-legacy-rockchip-rk356x_1.0.0_arm64.deb Contains dtb files used by the kernel

    2. linux-headers-legacy-rockchip-rk356x_1.0.0_arm64.deb Include kernel header files

    3. linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb Contains kernel images and kernel modules

    4. 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

  1. The files contained in the generated Linux-image deb package are as follows

    1. Use the following command to decompress the deb package
    2. 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

    1. The decompressed file is as follows
    2. 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
  1. 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:
  2. Set the IGNORE_UPDATES variable in userpatches/config-default.conf to "yes"

    test@test:~/orangepi-build$ vim userpatches/config-default.conf

    IGNORE_UPDATES="yes"

  1. 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

    1. Upload the deb package of the compiled Linux kernel to the Linux system of the development board
    2. 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

    1. Then log in to the development board and uninstall the deb package of the installed Linux kernel
    2. root@orangepi:~# apt purge -y linux-image-legacy-rockchip-rk356x

    1. Install the deb package of the new Linux kernel just uploaded
    2. root@orangepi:~# dpkg -i linux-image-legacy-rockchip-rk356x_1.0.0_arm64.deb

    1. Then restart the development board, and then check whether the kernel-related modifications have taken effect
    2. root@orangepi:~# reboot

  1. Other useful information

    1. 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
    2. orangepi-build/external/config/kernel/linux-rockchip-rk356x-legacy.config

    1. The location of the dts file used by the development board is
    2. orangepi-build/kernel/orange-pi-5.10-rk35xx/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts

Compile rootfs

  1. Run the build.sh script, remember to add sudo permission

test@test:~/orangepi-build$ sudo ./build.sh

  1. Select Rootfs and all deb packages, then enter
  2. Pi3b-img388.png

  1. Then select the model of the development board
  2. Pi3b-img380.png

  1. Then select the type of rootfs
  2. Pi3b-img389.png

  1. Then select the type of image

    1. Image with console interface (server) Indicates the image of the server version, which is relatively small

    2. Image with desktop environment Indicates a image with a desktop, which is relatively large

    3. Pi3b-img390.png

  1. 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)
  2. Pi3b-img391.png

  1. 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
  2. Pi3b-img392.png

    Pi3b-img393.png

    You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.

    Pi3b-img394.png

  1. Then it will start to compile rootfs, and some of the information prompted during compilation are as follows

    1. The type of rootfs
    2. [ o.k. ] local not found [ Creating new rootfs cache for jammy]

    1. The storage path of the compiled rootfs compressed package
    2. [ o.k. ] Target directory [ external/cache/rootfs ]

    1. The name of the rootfs compressed package generated by compilation
    2. [ o.k. ] File name [ jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4 ]

    1. The time used for compilation
    2. [ o.k. ] Runtime [ 13 min ]

  1. View the rootfs compressed package generated by compilation

    1. jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4 is the rootfs compressed package, the meaning of each field of the name is

      1. a) jammy indicates the type of Linux distribution of rootfs

      2. b) xfce means rootfs is the type of desktop version, if it is cli, it means the type of server version

      3. c) arm64 represents the architecture type of rootfs

      4. 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

    2. jammy-xfce-arm64.f930ff6ebbac1a72108a2e100762b18f.tar.lz4.list lists the package names of all packages installed by rootfs

    3. 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

  1. 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.

Compile Linux image

  1. Run the build.sh script, remember to add sudo permission

test@test:~/orangepi-build$ sudo ./build.sh

  1. Select Full OS image for flashing, then enter
  2. Pi3b-img395.png

  1. Then select the model of the development board
  2. Pi3b-img380.png

  1. Then select the type of rootfs
  2. Pi3b-img389.png

  1. Then select the type of image

    1. Image with console interface (server) Indicates the image of the server version, which is relatively small

    2. Image with desktop environment Indicates a image with a desktop, which is relatively large

    3. Pi3b-img390.png

  1. 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)
  2. Pi3b-img391.png

  1. 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
  2. Pi3b-img392.png

    Pi3b-img393.png

    You can then select additional packages that need to be installed. Please press the Enter key to skip directly here.

    Pi3b-img394.png

  1. Then it will start to compile the Linux image. The general process of compilation is as follows

    1. Initialize the compilation environment of Ubuntu PC and install the software packages required for the compilation process

    2. Download the source code of u-boot and Linux kernel (if cached, only update the code)

    3. Compile u-boot source code and generate u-boot deb package

    4. Compile the Linux source code and generate Linux-related deb packages

    5. Make the deb package of Linux firmware

    6. Make the deb package of the orangepi-config tool

    7. Create a deb package supported by the board

    8. If you are compiling the desktop image, you will also create desktop-related deb packages

    9. Check whether the rootfs has been cached, if not, recreate the rootfs, if it has been cached, directly decompress and use

    10. Install the previously generated deb package into rootfs

    11. Make some specific settings for different development boards and different types of images, such as pre-installing additional software packages, modifying system configuration, etc.

    12. Then make an image file and format the partition, the default type is ext4

    13. Then copy the configured rootfs to the mirrored partition

    14. Then update initramfs

    15. Finally, write the bin file of u-boot into the image through the dd command

  2. After compiling the image, the following information will be prompted

    1. The storage path of the compiled image
    2. [ 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 ]

    1. Compilation time
    2. [ o.k. ] Runtime [ 19 min ]

    1. Repeat the command to compile the image, and use the following command to start compiling the image directly without selecting through the graphical interface
    2. [ 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 ]

Android 11 operating system instructions

Supported Android versions

Android version Kernel version
Android 11 Linux4.19

Android Function Adaptation

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

WIFI connection test method

  1. First click enter Setting
Pi3b-img396.png
  1. Then select Network & internet
  2. Pi3b-img397.png

  1. Then select Wi-Fi
  2. Pi3b-img398.png

  1. Then turn on the Wi-Fi switch
  2. Pi3b-img399.png

  1. After turning on Wi-Fi, if everything is normal, you can scan for nearby Wi-Fi hotspots
  2. Pi3b-img400.png

  1. Then select the Wi-Fi you want to connect to, and the password input interface shown in the figure below will pop up
  2. Pi3b-img401.png

  1. 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
  2. Pi3b-img402.png

  1. After the Wi-Fi connection is successful, the display is as shown in the figure below:
  2. Pi3b-img403.png

How to use Wi-Fi hotspot

  1. First, please make sure that the Ethernet port is connected to the network cable and can access the Internet normally
  2. Then select Settings
Pi3b-img396.png
  1. Then select Network & internet
  2. Pi3b-img397.png

  1. Then select Hotspot & tethering
  2. Pi3b-img404.png

  1. Then select Wi-Fi hotspot
  2. Pi3b-img405.png

  1. 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)
  2. Pi3b-img406.png

  1. 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
  2. Pi3b-img407.png

  1. 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.
  2. Pi3b-img408.png

Bluetooth test method

  1. First click enter Setting
Pi3b-img396.png
  1. Then select Connected devices
  2. Pi3b-img409.png

  1. Then click Pair new device to turn on Bluetooth and start scanning the surrounding Bluetooth devices
  2. Pi3b-img410.png

  1. The searched Bluetooth devices will be displayed under Available devices
  2. Pi3b-img411.png

  1. 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
  2. Pi3b-img412.png

  1. 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
  2. Pi3b-img413.png

  1. After the pairing is completed, you can see the paired Bluetooth device as shown in the figure below
  2. Pi3b-img414.png

  1. 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.
  2. Pi3b-img415.png

  1. You can open the Download directory in the file manager to view the pictures received by the Android system Bluetooth of the development board
  2. Pi3b-img416.png

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

  1. The screen needs to be assembled first, please refer to the assembly method of the Raspberry Pi 5-inch screen
  2. 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
Pi3b-img417.png

40pin interface GPIO, UART, SPI and PWM test

40pin GPIO port test

  1. First click on the wiringOP icon to open the wiringOP APP
Pi3b-img418.png
  1. 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
  2. Pi3b-img419.png

  1. 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
  2. Pi3b-img420.png

  1. Then click the GPIO READALL button, the output information is as shown in the figure below:
  2. Pi3b-img421.png

  1. 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
  2. Pi3b-img422.png

  1. Then click the GPIO READALL button, you can see that the current pin 7 mode is OUT, and the pin level is high
  2. Pi3b-img423.png

  1. 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.
  2. Pi3b-img424.png

  1. Then click the GPIO READALL button, you can see that the current pin 7 mode is OUT, and the pin level is low
  2. Pi3b-img425.png

40pin UART test

  1. 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
Pi3b-img269.png
  1. First click on the wiringOP icon to open the wiringOP APP
  2. Pi3b-img418.png

  1. 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
  2. Pi3b-img426.png

  1. The serial port test interface of the APP is shown in the figure below
  2. Pi3b-img427.png

  1. 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
  2. Pi3b-img428.png

  1. Then use Dupont wire to short the RXD and TXD pins of uart7
  2. Pi3b-img429.png

  1. Then you can enter a character in the send edit box below, and click the SEND button to start sending
  2. Pi3b-img430.png

  1. If everything is normal, the received string will be displayed in the receiving box
  2. Pi3b-img431.png

40pin SPI test

  1. According to the schematic diagram of the 40pin interface, the spi available for Orange Pi 3B is spi3
Pi3b-img264.png
  1. Here, the SPI interface is tested through the w25q64 module. First, the w25q64 device is connected to the SPI3 interface
  2. Pi3b-img432.png

  1. Then click the wiringOP icon to open the wiringOP APP
  2. Pi3b-img418.png

  1. 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
  2. Pi3b-img433.png

  1. Then click the OPEN button to initialize the SPI
  2. Pi3b-img434.png

  1. 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
  2. Pi3b-img435.png

  1. Finally, the APP will display the read ID information
  2. Pi3b-img436.png

  1. 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)
  2. Pi3b-img437.png

40pin PWM test

  1. Android enables PWM11 by default, and the corresponding pin is located at 40pin as shown in the figure below
Pi3b-img438.png
  1. First click on the wiringOP icon to open the wiringOP APP
  2. Pi3b-img418.png

  1. Then click the PWM_TEST button on the main interface of wiringOP to enter the PWM test interface
  2. Pi3b-img439.png

  1. 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
  2. Pi3b-img440.png

  1. When the drop-down option selects pwmchip3, the corresponding base address of PWM11 is fe6f0030 on the right
  2. Pi3b-img441.png

  1. 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
  2. Pi3b-img442.png

  1. Then drag the drag bar below to change the PWM duty cycle, and then check Enable to output the PWM waveform
  2. Pi3b-img443.png

  1. Then use an oscilloscope to measure the No. 32 pin in the 40pin of the development board, and you can see the following waveform
  2. Pi3b-img444.png

How to use ADB

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.

  1. Make sure that the service.adb.tcp.port of the Android system is set to port number 5555

console:/ # getprop | grep "adb.tcp"

[service.adb.tcp.port]: [5555]

  1. If service.adb.tcp.port is not set, you can use the following command to set the port number of network adb
  2. console:/ # setprop service.adb.tcp.port 5555

    console:/ # stop adbd

    console:/ # start adbd

  1. Install adb tool on Ubuntu PC
  2. test@test:~$ sudo apt update

    test@test:~$ sudo apt install -y adb

  1. Then connect network adb on Ubuntu PC
  2. 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

  1. Then you can log in to the android system through the adb shell on the Ubuntu PC
  2. test@test:~$ adb shell

    console:/ #

Appendix

User Manual Update History

Version

Date

Update Notes

v0.1

2023-07-19

initial version

Image Update History

Date

Update Notes

2023-07-19

Orangepi3b_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z

Orangepi3b_1.0.0_ubuntu_jammy_desktop_xfce_linux5.10.160.7z

Orangepi3b_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_spi-nvme_v1.0.0.tar.gz

OrangePi3B_RK3566_Android11_lcd_spi-nvme_v1.0.0.tar.gz


* initial version