Difference between revisions of "Template:BurnLinuxToEMMC-Rockchip"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
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 on Web Page=====
Visit [http://download.friendlyelec.com/{{{1}}} download link] to download image files and utilities.<br />
+
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 (the name might start with “rk3328-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/>
 +
Note that if you are burning the FriendlyElec firmware, you need to use an image file with the "-sd-" file name, similar to the one below:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
   | colspan=2 | '''Image Files'''
+
   | rk3328-sd-friendlywrt-21.02-YYYYMMDD.img.gz
 
|-
 
|-
   | rk3328-eflasher-friendlycore-lite-focal-5.10-arm64-YYYYMMDD.img.zip
+
   | rk3328-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz
   | 64-bit FriendlyCore Lite image file based on Ubuntu core 20.04 64bit, kernel version 5.15.y
+
|}
 +
If the file is in 7z, zip or rar format, you will need to extract it first. If the file is too large to write, you can compress it into .gz format and try again.
 +
=====Option 2: Install OS via TF Card=====
 +
======Install OS to eMMC======
 +
* This method firstly boots a mini Linux from a TF card and then automatically runs an EFlasher utility to install the OS to eMMC.<br />
 +
* You can watch its progress by observing its LEDs as well.<br />
 +
Visit [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} download link] to download the needed utilities and image file:<br />
 +
{| class="wikitable"
 +
|-
 +
  | colspan=2 | '''Image File'''
 +
|-
 +
  | rk3328-eflasher-friendlywrt-21.02-YYYYMMDD.img.gz
 +
  | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
 +
|-
 +
  | rk3328-eflasher-friendlywrt-21.02-docker-YYYYMMDD.img.gz
 +
   | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Pre-installed Docker<br />Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
 
|-
 
|-
   | rk3328-eflasher-friendlywrt-YYYYMMDD.img.zip
+
   | rk3328-eflasher-friendlycore-lite-focal-5.15-arm64-YYYYMMDD.img.gz
   | [[How to Build FriendlyWrt|FriendlyWrt]] image file, based on OpenWrt 21.02, kernel version 5.15.y
+
   | '''FriendlyCore'''<br />Minimal system<br />Based on Ubuntu core 20.04<br />kernel version 5.15.y
 
|-
 
|-
 
   | colspan=2 | '''Flash Utility:'''
 
   | colspan=2 | '''Flash Utility:'''
Line 17: Line 36:
 
   | Windows utility. Under Linux users can use "dd"
 
   | Windows utility. Under Linux users can use "dd"
 
|}
 
|}
 
+
Here are the steps:<br />
Flash Image to eMMC with eflasher and SD card:<br />
+
* Get an SDHC card with a minimum capacity of 8G
* Get an 8G SDHC card and backup its data if necessary;
+
* Download a rk3328-eflasher-OSNAME-YYYYMMDD.img.gz image file and a win32diskimager;
* Download and extract the rk3328-eflasher-OSNAME-YYYYMMDD.img.zip and win32diskimager;
+
* Under Windows, run win32diskimager as administrator, select your SD card and extracted [[EFlasher/zh|EFlasher]] image file, and click on “Write” to write image file on the SD card; or under Linux, you use the dd command to write the rk3328-eflasher-OSNAME-YYYYMMDD.img file to the SD card
* 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;
+
* Eject your SD card and insert it to {{{1}}}’s microSD card slot.
* Take out the SD 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. You can observer the board’s LEDs to watch its installation progress  
* 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:
+
 
{| class="wikitable"  
 
{| class="wikitable"  
 
|-
 
|-
! Status
+
! Progress
! SYS LED (Red)
+
! SYS LED(Red)
 
! LAN LED(Green)
 
! LAN LED(Green)
 
! WAN LED(Green)
 
! WAN LED(Green)
 
|-
 
|-
| Power on
+
| Power On
| Long bright
+
| Solid On
 
| Off
 
| Off
 
| Off
 
| Off
 
|-
 
|-
| OS startup
+
| System Boot
| Slow blinking
+
| Slow Flashing
 
| Off
 
| Off
 
| Off
 
| Off
 
|-
 
|-
| Installing OS to eMMC
+
| Installation in Progress
| Fast blinking
+
| Fast Flashing
 
| Off
 
| Off
 
| Off
 
| Off
 
|-
 
|-
| Installation is complete
+
| Installation Done
| Slow blinking
+
| Slow Flashing
| Long bright
+
| Solid On
| Long bright
+
| Solid On
 
|}
 
|}
* 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;
+
* After installation is done, power off the board, eject the SD card from {{{1}}}, power on the board again, {{{1}}} will load the OS from its eMMC
 
+
======Install Flash Image File to eMMC======
====Burn Raw file (or third-party image) to eMMC====
+
* Auto Install (Default Behavior)
1) Download any firmware with the file name eflasher from the [http://download.friendlyelec.com/{{{1}}} netdisk], decompress it and burn it into the TF card;<br />
+
1) Download an “eflasher” firmware from [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive], extract it and install it to a TF card ;<br />
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 />
+
2) Eject and insert the TF card to your PC, after a “FriendlyARM” device shows up(Under Linux, it is a “FriendlyARM” directory), copy an .img or .gz file to the TF card.<br />
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 />
+
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 />
+
Anyone of the files that contain “-sd-” will work. Here is a list:
 +
{| class="wikitable"
 +
|-
 +
  | rk3328-sd-friendlywrt-21.02-YYYYMMDD.img.gz
 +
|-
 +
  | rk3328-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz
 +
|-
 +
  | rk3328-sd-friendlywrt-22.03-YYYYMMDD.img.gz
 +
|-
 +
  | rk3328-sd-friendlywrt-22.03-docker-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.<br />

Revision as of 16:41, 30 July 2022

1 Install OS to eMMC

1.1 Option 1: 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 (the name might start with “rk3328-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.
Note that if you are burning the FriendlyElec firmware, you need to use an image file with the "-sd-" file name, similar to the one below:

rk3328-sd-friendlywrt-21.02-YYYYMMDD.img.gz
rk3328-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz

If the file is in 7z, zip or rar format, you will need to extract it first. If the file is too large to write, you can compress it into .gz format and try again.

1.2 Option 2: Install OS via TF Card
1.2.1 Install OS to eMMC
  • 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 watch its progress by observing its LEDs as well.

Visit download link to download the needed utilities and image file:

Image File
rk3328-eflasher-friendlywrt-21.02-YYYYMMDD.img.gz FriendlyWrt
Based on OpenWrt 21.02.3
Kernel version 5.15.y
rk3328-eflasher-friendlywrt-21.02-docker-YYYYMMDD.img.gz FriendlyWrt
Pre-installed Docker
Based on OpenWrt 21.02.3
Kernel version 5.15.y
rk3328-eflasher-friendlycore-lite-focal-5.15-arm64-YYYYMMDD.img.gz FriendlyCore
Minimal system
Based on Ubuntu core 20.04
kernel version 5.15.y
Flash Utility:
win32diskimager.rar Windows utility. Under Linux users can use "dd"

Here are the steps:

  • Get an SDHC card with a minimum capacity of 8G
  • Download a rk3328-eflasher-OSNAME-YYYYMMDD.img.gz image file and a win32diskimager;
  • Under Windows, run win32diskimager as administrator, select your SD card and extracted EFlasher image file, and click on “Write” to write image file on the SD card; or under Linux, you use the dd command to write the rk3328-eflasher-OSNAME-YYYYMMDD.img file to 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. You can observer the board’s LEDs to watch its installation progress
Progress SYS LED(Red) LAN LED(Green) WAN LED(Green)
Power On Solid On Off Off
System Boot Slow Flashing Off Off
Installation in Progress Fast Flashing Off Off
Installation Done Slow Flashing Solid On Solid On
  • After installation is done, power off the board, eject the SD card from {{{1}}}, power on the board again, {{{1}}} will load the OS from its eMMC
1.2.2 Install Flash Image File to eMMC
  • Auto Install (Default Behavior)

1) Download an “eflasher” firmware from network drive, 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 an .img or .gz file to the TF card.
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

Anyone of the files that contain “-sd-” will work. Here is a list:

rk3328-sd-friendlywrt-21.02-YYYYMMDD.img.gz
rk3328-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz
rk3328-sd-friendlywrt-22.03-YYYYMMDD.img.gz
rk3328-sd-friendlywrt-22.03-docker-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.