8,367
edits
Changes
→Using the dd command to burn the Linux image into eMMC
<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 [[Orange Pi 5 Plus#The method of uploading files to the Linux system of the development board|'''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.</p></li>
<li><p>After uploading the image to the linux system of the development board, we enter the storage path of the image file in the command line of the linux system of the development board. For example, I store the linux image of the development board in the '''/home/orangepi/Desktop''' directory Download it, and then enter the /'''/home/orangepi/Desktop''' directory to see the uploaded image file.</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''cd /home/orangepi/Desktop'''
Orangepi5plus_x.x.x_debian_bullseye_desktop_xfce_linux5.10.110.img
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''How to enter the command line of the development board linux system?'''
# '''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.'''
# '''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.'''
# '''If a display screen such as HDMI or LCD is connected, you can open a command line terminal on the desktop.'''</big>|}</ol>
<!-- -->
<ol start="5" style="list-style-type: decimal;">
<li>Next, we first use the following command to confirm the device node of eMMC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~/Desktop$ '''ls /dev/mmcblk*boot0 | cut -c1-12'''
<span style="color:#FF0000">'''/dev/mmcblk1'''</span>|}</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Then we can use the dd command to clear the eMMC. Note that after the '''of=''' parameter, please fill in the output result of the above command</li></ol>
{| class="wikitable" style="width:800px;" |-|orangepi@orangepi:~/Desktop$ '''sudo dd bs=1M if=/dev/zero of=<span style="color:#FF0000">/dev/mmcblk1 </span> count=1000 status=progress'''
orangepi@orangepi:~/Desktop$ '''sudo sync'''
|}</ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>Then you can use the dd command to burn the linux image of the development board into the eMMC</p>
<ol style="list-style-type: lower-alpha;">
<li><p>In the following command, the '''if=''' parameter is followed by the full path where the linux image is stored + the name of the Linux image (such as '''the name of /home/orangepi/Desktop/Linux image'''). Because we have entered the path of the linux image above, we only need to fill in the name of the Linux image.</p></li>
<li><p>Please do not copy the linux image name in the following command, but replace it with the actual image name (because the version number of the image may be updated).</p></li></ol></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
'''sudo dd bs=1M if=Orangepi5plus_x.x.x_debian_bullseye_desktop_xfce_linux5.10.110.img of=/dev/mmcblk1 status=progress'''
'''sudo''' '''sync'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''<span style="color:#FF0000">Note, if you upload a <span style="color:blue">.7z or .xz </span> 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.</span>'''
'''The detailed description of all parameters of the dd command and more usage can be viewed by executing the man dd command in the linux system.'''</big>
|}
</ol>
</li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>After successfully burning the linux image of the development board to the eMMC, you can use the '''poweroff''' command to shut down. Then please pull out the TF card, and then short press the power button to turn on, and then the linux system in the eMMC will be started.</li></ol>