Difference between revisions of "Template:BurnLinuxToEMMC-Rockchip"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
====Flash Image to eMMC====
+
====Install OS to eMMC====
{{{1}}} need to boot from SD card, use EFlasher tool to burn system to eMMC.<br />
+
=====Option 1: Install OS via TF Card=====
Visit [http://download.friendlyarm.com/{{{1}}} download link] to download image files and utilities.<br />
+
This method firstly boots a mini Linux from a TF card and then automatically runs an EFlasher utility to install the OS to eMMC. You can connect your system to an HDMI monitor and watch its progress. <br />
{| class="wikitable"
+
This is optional. You can watch its progress by observing its LEDs as well:
|-
+
{{#switch: {{{1}}}
  | colspan=2 | '''Image Files'''
+
| NanoPi-R6S
|-
+
| NanoPi-R6C =
  | rk3328-eflasher-friendlycore-lite-focal-5.10-arm64-YYYYMMDD.img.zip
+
<table style="border: 1px solid black; border-collapse: collapse;">
  | 64-bit FriendlyCore Lite image file based on Ubuntu core 20.04 64bit, kernel version 5.10.y
+
<tr style="border: 1px solid black; border-collapse: collapse;" class="header">
|-
+
<th style="border: 1px solid black; border-collapse: collapse;"><p>Progress</p></th>
  | rk3328-eflasher-friendlywrt-YYYYMMDD.img.zip
+
<th style="border: 1px solid black; border-collapse: collapse;"><p>SYS LED(Red)</p></th>
  | [[How to Build FriendlyWrt|FriendlyWrt]] image file, based on OpenWrt 21.02, kernel version 5.10.y
+
<th style="border: 1px solid black; border-collapse: collapse;"><p>LAN LED(Green)</p></th>
|-
+
<th style="border: 1px solid black; border-collapse: collapse;"><p>WAN LED(Green)</p></th>
  | colspan=2 | '''Flash Utility:'''
+
</tr>
|-
+
<tr style="border: 1px solid black; border-collapse: collapse;" class="odd">
  | win32diskimager.rar
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Power On</p></td>
  | Windows utility. Under Linux users can use "dd"
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
|}
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
Flash Image to eMMC with eflasher and SD card:<br />
+
</tr>
* Get an 8G SDHC card and backup its data if necessary;
+
<tr style="border: 1px solid black; border-collapse: collapse;" class="even">
* Download and extract the rk3328-eflasher-OSNAME-YYYYMMDD.img.zip and win32diskimager;
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>System Boot</p></td>
* Run the win32diskimager utility under Windows as administrator. On the utility's main window select your SD card's drive, the wanted image file [[EFlasher/zh|EFlasher]] and click on "write" to start flashing the SD card. Under Linux run "dd" to flash the rk3328-eflasher-OSNAME-YYYYMMDD.img file to your SD card;
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Slow Flashing</p></td>
* Take out the SD and insert it to {{{1}}}'s microSD card slot;
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
* Power on {{{1}}} and it will be booted from your SD card and the [[EFlasher/zh|EFlasher]] utility will be automatically launched, check the installation progress through the on-board LED lights:
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
{| class="wikitable"
+
</tr>
|-
+
<tr style="border: 1px solid black; border-collapse: collapse;" class="odd">
! Status
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Installation in Progress</p></td>
! SYS LED (Red)
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Fast Flashing</p></td>
! LAN LED(Green)
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
! WAN LED(Green)
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
|-
+
</tr>
| Power on
+
<tr style="border: 1px solid black; border-collapse: collapse;" class="even">
| Long bright
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Installation Done</p></td>
| Off
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Slow Flashing</p></td>
| Off
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
|-
+
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
| OS startup
+
</tr>
| Slow blinking
+
</table>
| Off
+
| NanoPi-Zero2
| Off
+
| NanoPC-T6 =
|-
+
<table style="border: 1px solid gray; border-collapse: collapse;">
| Installing OS to eMMC
+
<tr class="header" style="border: 1px solid gray; border-collapse: collapse;">
| Fast blinking
+
<th style="border: 1px solid gray; border-collapse: collapse;"><p>Progress</p></th>
| Off
+
<th style="border: 1px solid gray; border-collapse: collapse;"><p>SYS LED(Red)</p></th>
| Off
+
</tr>
|-
+
<tr class="odd" style="border: 1px solid gray; border-collapse: collapse;">
| Installation is complete
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Power On</p></td>
| Slow blinking
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Solid On</p></td>
| Long bright
+
</tr>
| Long bright
+
<tr class="even" style="border: 1px solid gray; border-collapse: collapse;">
|}
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>System Boot</p></td>
* After installation is done turn off the board and take out the SD card from {{{1}}}, power on the board and it will be booted from eMMC;
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Slow Flashing</p></td>
 
+
</tr>
====Burn Raw file (or third-party image) to eMMC====
+
<tr class="odd" style="border: 1px solid gray; border-collapse: collapse;">
1) Download any firmware with the file name eflasher from the [http://download.friendlyarm.com/{{{1}}} netdisk], decompress it and burn it into the TF card;<br />
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Installation in Progress</p></td>
2) Reinsert the TF card once, a disk named FriendlyARM will appear on the PC (Linux: FriendlyARM directory), copy the image file ending with .img or .gz into it;<br />
+
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Fast Flashing</p></td>
3) Edit the eflasher.conf configuration file on the TF card, change the value after autoStart= to specify the name of your image file, for example:<br />
+
</tr>
 +
<tr class="even" style="border: 1px solid gray; border-collapse: collapse;">
 +
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Installation Done</p></td>
 +
<td style="border: 1px solid gray; border-collapse: collapse;"><p>Slow Flashing</p></td>
 +
</tr>
 +
</table>
 +
| NanoPi-R5S
 +
| NanoPi-R3S
 +
| NanoPi-R5C =
 +
<table style="border: 1px solid black; border-collapse: collapse;">
 +
<tr style="border: 1px solid black; border-collapse: collapse;" class="header">
 +
<th style="border: 1px solid black; border-collapse: collapse;"><p>Progress</p></th>
 +
<th style="border: 1px solid black; border-collapse: collapse;"><p>SYS LED(Red)</p></th>
 +
<th style="border: 1px solid black; border-collapse: collapse;"><p>LAN LED(Green)</p></th>
 +
<th style="border: 1px solid black; border-collapse: collapse;"><p>WAN LED(Green)</p></th>
 +
</tr>
 +
<tr style="border: 1px solid black; border-collapse: collapse;" class="odd">
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Power On</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
</tr>
 +
<tr style="border: 1px solid black; border-collapse: collapse;" class="even">
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>System Boot</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Slow Flashing</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
</tr>
 +
<tr style="border: 1px solid black; border-collapse: collapse;" class="odd">
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Installation in Progress</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Fast Flashing</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Off</p></td>
 +
</tr>
 +
<tr style="border: 1px solid black; border-collapse: collapse;" class="even">
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Installation Done</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Slow Flashing</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
 +
<td style="border: 1px solid black; border-collapse: collapse;"><p>Solid On</p></td>
 +
</tr>
 +
</table>
 +
| #default =
 +
}}
 +
By default, flashing starts automatically upon power-up, so be sure to back up the data in eMMC. If you don't want it to start automatically, you can use image file with a filename containing the words 'multiple-os' and manually select the OS you want to flash on the interface.
 +
======Flash Official OS to eMMC======
 +
Follow the steps below:<br />
 +
* Get an SDHC card with a minimum capacity of 8G
 +
* Visit [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} download link]to download image files (in the "01_Official images/02_SD-to-eMMC images" directory) and win32diskimager tool (in the "05_Tools" directory);
 +
* Extract the .gz format compressed file to get the .img format image file;
 +
* Run the win32diskimager utility under Windows as administrator. On the utility's main window select your SD card's drive, the wanted image file and click on "write" to start flashing the SD card.  
 +
* Eject your SD card and insert it to {{{1}}}’s microSD card slot.
 +
* Turn on {{{1}}}, it will boot from the SD card and automatically run [[EFlasher/zh|EFlasher]] to install the OS to the board’s eMMC.
 +
* After flashing is complete, eject the SD card from {{{1}}}, {{{1}}} will automatically reboot and boot from eMMC.
 +
======Flash third party OS (Image file) to eMMC======
 +
* Auto Install (Default Behavior)
 +
1) Download an “eflasher” firmware from [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive](in the "01_Official images/02_SD-to-eMMC images" directory), extract it and install it to a TF card ;<br />
 +
2) Eject and insert the TF card to your PC, after a “FriendlyARM” device shows up(Under Linux, it is a “FriendlyARM” directory), copy the image file ending with .raw or .gz into the directory (Note: if your file is in .img format, please rename it to .raw format).<br />
 +
3) Open the eflasher.conf file on the TF card, set “autoStart=to the name of your image file, such as:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
autoStart=openwrt-rockchip-armv8_nanopi-ext4-sysupgrade.img.gz
 
autoStart=openwrt-rockchip-armv8_nanopi-ext4-sysupgrade.img.gz
 
</syntaxhighlight>
 
</syntaxhighlight>
4) Safely eject the TF card, place the TF card on the {{{1}}} and power it up, it will automatically burn your image file to emmc, the on-board LEDs will tell you the progress of the installation, refer to the previous section;<br />
+
In addition to third-party image, official image files which with the '-sd-' word in the filename are also supported, for example: rk3NNN-sd-friendlywrt-21.02-YYYYMMDD.img.gz<br />
 +
4) Eject the TF card, insert the TF card to {{{1}}}, power it on it will automatically install your firmware. You can watch the installation progress by observing the LEDs’ status.<br />
 +
=====Option 2: Install OS on Web Page=====
 +
Get a TF card which has been installed with FriendlyWrt, log in FriendlyWrt on the web page, click on “System” ->”eMMC Tools”. Click on “Select file” to select your wanted image file, either an official image (filename containing '-sd-') or a third party image. The file should be a “.gz” or “.img” file.<br/>
 +
After a file is selected, click on “Upload and Write” to start installing an OS.<br/>
 +
[[File:Friendlywrt-emmctools2-en.png|frameless|600px]]<br/>
 +
After installation is done, eject the SD card, the system will automatically reboot and load the OS from eMMC. After the OS begins to load, if the system LED is flashing and the network LED is on, it means the the OS has loaded successfully. If the OS is FriendlyWrt, you can click on “Go to Homepage” to enter the homepage. <br/>
 +
For official OS, you need select the file with the filename containing '-sd-', for example: rk3NNN-sd-friendlywrt-21.02-YYYYMMDD.img.gz, the compression file only supports the .gz format. If the file is too large, you can compress it into .gz format before uploading.
 +
=====Option 3: Install OS via USB=====
 +
======Step 1: Install USB Driver and Tools/Utilities======
 +
Download a driver file DriverAssitant_v5.12.zip under the “tools” directory from [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive], extract and install it. <br />
 +
Under the same directory, download a utility RKDevTool_Release_v2.84.zip and extract it. <br />
 +
======Step 2: Connect {{{1}}} to PC and Enter Installation Mode======
 +
{{#switch: {{{1}}}
 +
| NanoPi-R5C =
 +
1) Press and hold the “Mask” key, power on the board. After the status LED has been on for at least 3 seconds, release the Mask key;<br />
 +
2) Use a USB A-to-A cable, connect {{{1}}} to a PC as follows, connect to the USB port on the side near the TF card;<br />
 +
| NanoPi-R5S
 +
| NanoPi-R6S
 +
| NanoPi-R6C =
 +
1) Press and hold the “Mask” key, power on the board. After the status LED has been on for at least 3 seconds, release the Mask key;<br />
 +
2) Use a USB A-to-A cable, connect {{{1}}} to a PC as follows;<br />
 +
| NanoPC-T6
 +
| NanoPC-T6-LTS
 +
| CM3588 =
 +
1) Press and hold the “Mask” key, power on the board. After the status LED has been on for at least 3 seconds, release the Mask key;<br />
 +
2) Use a USB C-to-A cable, connect {{{1}}} to a PC;<br />
 +
| NanoPi-R3S
 +
| NanoPi-R2S-Plus =
 +
Press and hold the “Mask” key, Use a USB C-to-A cable, connect {{{1}}} to a PC,After the status LED has been on for at least 3 seconds, release the Mask key;<br />
 +
| SOM-RK3399 =
 +
Press and hold the "Recover" key, Use a USB C-to-A cable, connect {{{1}}} to a PC,After the status LED has been on for at least 3 seconds, release the "Recover" key;<br />
 +
| #default =
 +
Press and hold the “Mask” key, Use a USB cable, connect {{{1}}} to a PC,After the status LED has been on for at least 3 seconds, release the Mask key;<br />
 +
}}
 +
{{#switch: {{{1}}}
 +
| NanoPi-R6S =
 +
[[File:Nanopir6s-usba-to-usba2.jpg|frameless|400px]]<br />
 +
| NanoPi-M6 =
 +
[[File:Nanopim6-usba-to-usba2.jpg|frameless|400px]]<br />
 +
| NanoPi-R6C =
 +
[[File:Nanopir6c-usba-to-usba.jpg|frameless|400px]]<br />
 +
| NanoPi-R5S =
 +
[[File:Nanopir5s-usba-to-usba2.jpg|frameless|400px]]<br />
 +
| NanoPi-R5C =
 +
[[File:R5C-usbflash.jpg|frameless|400px]]<br />
 +
| NanoPi-R2S-Plus =
 +
[[File:R2SPLUS-usbflash.jpg|frameless|400px]]<br />
 +
| NanoPi-R3S =
 +
[[File:Xianshua-R3S.jpg|frameless|400px]]<br />
 +
| NanoPC-T6-LTS
 +
| NanoPC-T6 =
 +
[[File:T6LTS-usbflash.jpg|frameless|400px]]<br />
 +
| CM3588 =
 +
[[File:Cm3588-usbflash.jpg|frameless|400px]]<br />
 +
| NanoPi-Zero2 =
 +
[[File:Zero2-usbflash.jpg|frameless|400px]]<br />
 +
| #default =
 +
}}
 +
======Step 3: Install image to eMMC======
 +
A firmware in general is packaged in either of the two options: the first is an whole image (ie, update.img) which is often offered by third party developers, the second is that an image is packaged and placed in multiple partition images. FriendlyElec offers an image in the latter option.
 +
* Option 1: Install whole image (ie, update.img)<br />
 +
On a PC which has the extracted RKDevTool_Release_v2.84 utility, go to the RKDevTool_Release_v2.84 directory, run the RKDevTool.exe file. If everything works, you will see a “Found a new Maskrom device” message on the utility;<br />
 +
Go to “Upgrade Firmware(升级固件)”, click on “Firmware(固件)”, select your wanted image file, and click on “Upgrade(升级)” to install. After installation is done, your board will reboot automatically and load the system from eMMC;<br />
 +
* Option 2: Install OS that is packaged & placed in multiple partition images<br />
 +
Go to [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive] to download your needed package and extract it (in the "01_Official images/03_USB upgrade images).
 +
After it is extracted, you will see some utilities and a configuration file under the directory. double click on RKDevTool.exe, you will see a “Found a new Maskrom device” message on the utility. Click on the “Execute”, wait a moment and it will be installed. After installation is done your system will automatically reboot and load the system from eMMC.<br />

Latest revision as of 07:28, 6 September 2024

1 Install OS to eMMC

1.1 Option 1: Install OS via TF Card

This method firstly boots a mini Linux from a TF card and then automatically runs an EFlasher utility to install the OS to eMMC. You can connect your system to an HDMI monitor and watch its progress.
This is optional. You can watch its progress by observing its LEDs as well:

By default, flashing starts automatically upon power-up, so be sure to back up the data in eMMC. If you don't want it to start automatically, you can use image file with a filename containing the words 'multiple-os' and manually select the OS you want to flash on the interface.

1.1.1 Flash Official OS to eMMC

Follow the steps below:

  • Get an SDHC card with a minimum capacity of 8G
  • Visit download linkto download image files (in the "01_Official images/02_SD-to-eMMC images" directory) and win32diskimager tool (in the "05_Tools" directory);
  • Extract the .gz format compressed file to get the .img format image file;
  • Run the win32diskimager utility under Windows as administrator. On the utility's main window select your SD card's drive, the wanted image file and click on "write" to start flashing the SD card.
  • Eject your SD card and insert it to {{{1}}}’s microSD card slot.
  • Turn on {{{1}}}, it will boot from the SD card and automatically run EFlasher to install the OS to the board’s eMMC.
  • After flashing is complete, eject the SD card from {{{1}}}, {{{1}}} will automatically reboot and boot from eMMC.
1.1.2 Flash third party OS (Image file) to eMMC
  • Auto Install (Default Behavior)

1) Download an “eflasher” firmware from network drive(in the "01_Official images/02_SD-to-eMMC images" directory), extract it and install it to a TF card ;
2) Eject and insert the TF card to your PC, after a “FriendlyARM” device shows up(Under Linux, it is a “FriendlyARM” directory), copy the image file ending with .raw or .gz into the directory (Note: if your file is in .img format, please rename it to .raw format).
3) Open the eflasher.conf file on the TF card, set “autoStart=” to the name of your image file, such as:

autoStart=openwrt-rockchip-armv8_nanopi-ext4-sysupgrade.img.gz

In addition to third-party image, official image files which with the '-sd-' word in the filename are also supported, for example: rk3NNN-sd-friendlywrt-21.02-YYYYMMDD.img.gz
4) Eject the TF card, insert the TF card to {{{1}}}, power it on it will automatically install your firmware. You can watch the installation progress by observing the LEDs’ status.

1.2 Option 2: Install OS on Web Page

Get a TF card which has been installed with FriendlyWrt, log in FriendlyWrt on the web page, click on “System” ->”eMMC Tools”. Click on “Select file” to select your wanted image file, either an official image (filename containing '-sd-') or a third party image. The file should be a “.gz” or “.img” file.
After a file is selected, click on “Upload and Write” to start installing an OS.
Friendlywrt-emmctools2-en.png
After installation is done, eject the SD card, the system will automatically reboot and load the OS from eMMC. After the OS begins to load, if the system LED is flashing and the network LED is on, it means the the OS has loaded successfully. If the OS is FriendlyWrt, you can click on “Go to Homepage” to enter the homepage.
For official OS, you need select the file with the filename containing '-sd-', for example: rk3NNN-sd-friendlywrt-21.02-YYYYMMDD.img.gz, the compression file only supports the .gz format. If the file is too large, you can compress it into .gz format before uploading.

1.3 Option 3: Install OS via USB
1.3.1 Step 1: Install USB Driver and Tools/Utilities

Download a driver file DriverAssitant_v5.12.zip under the “tools” directory from network drive, extract and install it.
Under the same directory, download a utility RKDevTool_Release_v2.84.zip and extract it.

1.3.2 Step 2: Connect {{{1}}} to PC and Enter Installation Mode

Press and hold the “Mask” key, Use a USB cable, connect {{{1}}} to a PC,After the status LED has been on for at least 3 seconds, release the Mask key;

1.3.3 Step 3: Install image to eMMC

A firmware in general is packaged in either of the two options: the first is an whole image (ie, update.img) which is often offered by third party developers, the second is that an image is packaged and placed in multiple partition images. FriendlyElec offers an image in the latter option.

  • Option 1: Install whole image (ie, update.img)

On a PC which has the extracted RKDevTool_Release_v2.84 utility, go to the RKDevTool_Release_v2.84 directory, run the RKDevTool.exe file. If everything works, you will see a “Found a new Maskrom device” message on the utility;
Go to “Upgrade Firmware(升级固件)”, click on “Firmware(固件)”, select your wanted image file, and click on “Upgrade(升级)” to install. After installation is done, your board will reboot automatically and load the system from eMMC;

  • Option 2: Install OS that is packaged & placed in multiple partition images

Go to network drive to download your needed package and extract it (in the "01_Official images/03_USB upgrade images). After it is extracted, you will see some utilities and a configuration file under the directory. double click on RKDevTool.exe, you will see a “Found a new Maskrom device” message on the utility. Click on the “Execute”, wait a moment and it will be installed. After installation is done your system will automatically reboot and load the system from eMMC.