Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

759 bytes added, 17:55, 10 July 2023
Onboard LED Light Test Instructions
# There are two LED lights on the development board, one is green and the other is red. When the system starts, the default display of the LED lights is as follows:
::{| class="wikitable" style="width:800px;"
|-
|
|}
::{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The two LED lights on the development board are controlled by software.'''
'''When you get the development board, you may find that even if the TF card with the system programmed is not inserted into the development board, the two LED lights will be on after the development board is connected to the power supply. This is because the 16MB on the development board SPI Flash will burn a miniature linux system by default when leaving the factory. This system will light up the red light during the u-boot startup phase. After entering the kernel, it will turn off the red light and set the green light to flash.'''
'''If the linux system in the SPI Flash is cleared, then the two LED lights on the development board will not light up after the power is turned on without inserting the TF card with the system programmed'''</big>|}
<ol start="2" style="list-style-type: decimal;">
<li>The method of setting the green light on and off and flashing is as follows:</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the following operations should be performed under the root user.'''</big>|}
<ol style="list-style-type: lower-alpha;">
<li>First enter the setting directory of the green light</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:~# '''cd /sys/class/leds/green_led'''
|}</ol>
<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>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/green_led# '''echo none &gt; trigger'''
|}</ol>
<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>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/green_led# '''echo default-on &gt; trigger'''
|}</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>The command to set the green light to flash is as follows</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/green_led# '''echo heartbeat &gt; trigger'''
|}</ol></ol>
<ol start="3" style="list-style-type: decimal;">
<li>The method of setting the red light on and off and flashing is as follows:</li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note that the following operations should be performed under the root user.'''</big>|}
<ol style="list-style-type: lower-alpha;">
<li>First enter the setting directory of the red light</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:~# '''cd /sys/class/leds/red_led'''
|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>The command to set the red light to be on is as follows</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/red_led# '''echo default-on &gt; trigger'''
|}</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>The command to set the flashing red light is as follows</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/red_led# '''echo heartbeat &gt; trigger'''
|}</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>The command to set the red light to stop flashing is as follows</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:/sys/class/leds/red_led# '''echo none &gt; trigger'''
|}</ol></ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>If you do not need the LED light to flash after booting, you can use the following method to turn off the green light flashing</p>
<ol style="list-style-type: lower-alpha;">
<li>First run '''orangepi-config''', common users remember to add '''sudo''' permission</li></ol></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''sudo orangepi-config'''
|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select '''System'''</li></ol>
[[File:media/image85.png|398x194px]]
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then select '''Hardware'''</li></ol>
[[File:media/image86.png|393x202px]]
</ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>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 '''disable-leds'''</li></ol>
[[File:media/image87.png|397x35px]]
</ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then selec '''&lt;Save&gt;'''</li></ol>
[[File:media/image88.png|397x92px]]
</ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Back&gt;'''</li></ol>
[[File:media/image89.png|395x91px]]
</ol>
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then select '''&lt;Reboot&gt;'''to restart the system for the configuration to take effect</li></ol>
[[File:media/image90.png|374x187px]]
</ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>After restarting and fully entering the system, you can see that the two LED lights on the development board will not light up</li></ol>
</li></ol>
<span id="instructions-for-operating-the-rootfs-partition-capacity-of-the-linux-system-in-the-tf-card"></span>
<span id="instructions-for-operating-the-rootfs-partition-capacity-of-the-linux-system-in-the-tf-card"></span>
== Instructions for operating the rootfs partition capacity of the linux system in the TF card ==