Open main menu

Wiki-Orange Pi β

Changes

Orange Pi CM4

443 bytes added, 14:44, 18 September 2023
Method of burning using balenaEtcher software
<li><p>Please ensure that the SPI Flash is affixed to the development board. The position of SPI Flash on the development board is shown in the figure below. No other Settings are required before burning</p>
<p>[[File:cm4-img74.png]]</p></li>
<li><p>Burning Linux image to SPIFlash+NVMe SSD requires TF card to complete, so first need to burn Linux image to TF card, and then use the TF card to start the development board into the Linux system. For the method of burning a Linux image to a TF card, see the two sections on '''[[\lOrange Pi CM4#Method of burning Linux image to TF card based on Windows PC|the method of burning a Linux image to a TF card based on a Windows PC]]''' and '''[[\lOrange Pi CM4#Method of burning Linux image to TF card based on Ubuntu PC|the method of burning a Linux image to a TF card based on an Ubuntu PC]].'''</p></li>
<li><p>After starting the Linux system in the TF card, please make sure that the NVMe SSD has been properly recognized by Linux on the development board. If the NVMe SSD is correctly identified, run the '''sudo fdisk -l''' command to view information about the '''nvme'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~/Desktop$ '''sudo fdisk -l | grep &quot;nvme0n1&quot;'''</p>
<p>Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors</p>
|}
<p>Use the '''lspci''' command to see an NVME-related PCI device</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~/Desktop$ '''lspci'''</p>
<p>00:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd Device 3566 (rev 01)</p>
<p>01:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5765 (rev 01)</p>|}</li><li><p>balenaEtcher has been pre-installed in the Linux image, and the opening method is as follows:</p></li></ol>
<div class="figure">
</div>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''If the balenaEtcher arm64 version is not pre-installed, for details about how to download and install the balenaEtcher arm64 version, see section [[\lOrange Pi CM4#How to download and install arm64 version balenaEtcher|How to Download and Install the balenaEtcher arm64 version]].'''</big>|}</li></ol>
<ol start="7" style="list-style-type: decimal;">
<li>The interface after balenaEtcher is opened is as follows:</li></ol>
<div class="figure">
[[File:cm4-img88.png]]
</div></ol>
<ol start="8" style="list-style-type: decimal;">
<li><p>The method of using balenaEtcher to burn u-boot to SPI Flash on the development board is as follows:</p>
<ol style="list-style-type: lower-alpha;">
<li>First click '''Flash from file'''</li></ol></li></ol>
<div class="figure">
[[File:cm4-img89.png]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Go to '''/usr/lib/linux-u-boot-legacy-orangepi3b_1.x.x_arm64''', &gt; select '''rkspi_loader.img''', and click '''Open'''</li></ol>
<div class="figure">
[[File:cm4-img90.png]]
</div></ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li><p>Open '''rkspi_loader.img'''. The following interface is displayed:</p>
<p>[[File:cm4-img91.png]]</p></li>
<li><p>Then click '''Select target'''</p></li></ol>
<div class="figure">
[[File:cm4-img92.png]]
</div></ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then click '''Show 2 hidden''' to open the option for more storage &gt; devices</li></ol>
<div class="figure">
[[File:cm4-img93.png]]
</div></ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then Select the SPI Flash device name '''/dev/mtdblock0''' and click &gt; '''Select'''</li></ol>
<div class="figure">
[[File:cm4-img94.png]]
</div></ol>
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click '''Flash'''</li></ol>
<div class="figure">
[[File:cm4-img95.png]]
</div></ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click '''Yes, I’m sure'''</li></ol>
<div class="figure">
[[File:cm4-img96.png]]
</div></ol>
<ol style="list-style-type: lower-roman;">
<li>Then enter the password '''orangepi''' of the development board Linux &gt; system, and the u-boot image will be burned to the SPI Flash</li></ol>
<div class="figure">
[[File:cm4-img97.png]]
</div></ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>The burning process is displayed as follows:</li></ol>
<div class="figure">
[[File:cm4-img98.png]]
</div></ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>The display after burning is as follows:</li></ol>
<div class="figure">
[[File:cm4-img99.png]]
</div></ol></li></ol>
<ol start="9" style="list-style-type: decimal;">
<li><p>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;">
<li>First click '''Clone drive'''</li></ol></li></ol>
<div class="figure">
[[File:cm4-img100.png]]
</div></ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then select the device name of the TF card '''/dev/mmcblk1'''</li></ol>
<div class="figure">
[[File:cm4-img101.png]]
</div></ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>The interface after opening the TF card is as follows:</li></ol>
<div class="figure">
[[File:cm4-img102.png]]
</div></ol>
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then click '''Select target'''</li></ol>
<div class="figure">
[[File:cm4-img92.png]]
</div></ol>
<ol start="5" style="list-style-type: lower-alpha;">
<li>Then click '''Show 2 hidden''' to open the option for more storage &gt; devices</li></ol>
<div class="figure">
[[File:cm4-img93.png]]
</div></ol>
<ol start="6" style="list-style-type: lower-alpha;">
<li>Then Select the device name for the NVMe SSD '''/dev/nvme0n1''' and &gt; click '''Select'''</li></ol>
[[File:cm4-img103.png]]
</ol>
<ol start="7" style="list-style-type: lower-alpha;">
<li>Then click '''Flash'''</li></ol>
<div class="figure">
[[File:cm4-img104.png]]
</div></ol>
<ol start="8" style="list-style-type: lower-alpha;">
<li>Then click '''Yes, I’m sure'''</li></ol>
<div class="figure">
[[File:cm4-img105.png]]
</div></ol>
<ol style="list-style-type: lower-roman;">
<li>Then enter the password orangepi for the development board Linux &gt; system and start burning the Linux image to the SSD</li></ol>
<div class="figure">
[[File:cm4-img106.png]]
</div></ol>
<ol start="10" style="list-style-type: lower-alpha;">
<li>The burning process is shown as follows:</li></ol>
[[File:cm4-img107.png]]
[[File:cm4-img108.png]]
</div></ol>
<ol start="11" style="list-style-type: lower-alpha;">
<li>The display after burning is as follows:</li></ol>
[[File:cm4-img109.png]]
</ol>
<ol start="12" style="list-style-type: lower-alpha;">
<li><p>To expand the capacity of the rootfs partition on the NVMe SSD, &gt; perform the following steps:</p>
<ol style="list-style-type: lower-alphanone;"><li><p>a) First, open '''GParted'''. If Gparted is not pre-installed, run &gt; apt command to install it</p>{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo apt-get install -y gparted'''</p></li></ol>|}</li></ol>
<div class="figure">
[[File:cm4-img110.png]]
</div></ol><ol start="2" style="list-style-type: lower-alphanone;"><li>b) Then enter the password orangepi for Linux and click &gt; '''Authenticate'''</li></ol>
[[File:cm4-img111.png]]
</ol><ol start="3" style="list-style-type: lower-alphanone;"><li><p>c) Then click '''Fix'''</p>
<p>[[File:cm4-img112.png]]</p></li>
<li><p>d) Then select NVMe SSD</p></li></ol>
<div class="figure">
[[File:cm4-img113.png]]
</div></ol><ol start="5" style="list-style-type: lower-alphanone;"><li>e) The following information is displayed after the NVMe SSD is &gt; selected:</li></ol>
<div class="figure">
[[File:cm4-img114.png]]
</div></ol><ol start="6" style="list-style-type: lower-alphanone;"><li>f) Then select the '''/dev/nvme0n1p2''' partition, right-click, and &gt; select '''Resize/Move'''</li></ol>
<div class="figure">
[[File:cm4-img115.png]]
</div></ol><ol start="7" style="list-style-type: lower-alphanone;"><li><p>g) Then drag the capacity to the maximum as shown in the image below</p>
<p>[[File:cm4-img116.png]]</p></li>
<li><p>h) Then click '''Resize/Move'''</p>
<p>[[File:cm4-img117.png]]</p></li>
<li><p>i) Then click on the green'''√''' in the picture below</p>
<p>[[File:cm4-img118.png]]</p></li>
<li><p>j) Then click '''Apply'''</p>
<p>[[File:cm4-img119.png]]</p></li>
<li><p>k) Then click '''Close''' to close it</p>
<p>[[File:cm4-img120.png]]</p></li></ol>
</li></ol>
<!-- -->
<ol start="13" style="list-style-type: lower-alpha;">
<li>At this point, you can shut it down using the '''sudo poweroff''' &gt; command. Then, pull out the TF card, press the power button again, &gt; and then start the Linux system in the SPIFlash+NVMe SSD.</li></ol>
</li></ol>
<!-- -->
<ol start="10" style="list-style-type: decimal;">
<li><p>The '''9)''' step 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 roughly say the following steps:</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Upload the Linux image file to the Linux operating system on the &gt; development board</p></li>