Difference between revisions of "Template:RockchipBootPriority"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 1: Line 1:
===eMMC与TF卡的启动优先级===
+
===The Boot order between eMMC and SD card===
默认情况下, 会优先从 TF卡启动系统, 但并不是所有条件下都是这样, 本节内容将详细说明所有情况; <br>
+
By default, the system will be booted from the TF card first, but this is not the case under all conditions. This section will explain all situations in detail; <br>
 
<br>
 
<br>
引用Rockchip官方文档[http://opensource.rock-chips.com/wiki_Boot_option]的描述,系统引导程序(Loader)分为以下2种:<br>
+
Quoting the description of Rockchip official document [http://opensource.rock-chips.com/wiki_Boot_option], the system boot program (Loader) is divided into the following 2 types:<br>
1) U-Boot TPL/SPL (即upsream U-Boot, 也叫主线U-Boot)<br>
+
1) U-Boot TPL/SPL (i.e. upsream U-Boot, also called mainline U-Boot)<br>
 
2) Rockchip MiniLoader<br>
 
2) Rockchip MiniLoader<br>
 
<br>
 
<br>
需要留意的是: <br>
+
Things to note: <br>
1) FriendlyELEC发布的所有Rom均采用的都是第2种,即Rockchip MiniLoader<br>
+
1) All ROMs released by FriendlyELEC adopt the second type, namely Rockchip MiniLoader<br>
2) 第三方固件通常采用的是第1种, 即  U-Boot TPL/SPL<br>
+
2) The third-party firmware usually uses the first type, namely U-Boot TPL/SPL<br>
 
<br>
 
<br>
以下情况将总是从 eMMC 启动 (意味着无法通过TF卡烧写系统了):<br>
+
The following situations will always start from eMMC:<br>
如果eMMC里的系统, 或者TF卡里的系统是采用第一种Loader类型U-Boot TPL/SPL的, 上电将总是从 eMMC启动;<br>
+
If the system in the eMMC, or the system in the TF card uses the first Loader type U-Boot TPL/SPL, it will always boot from the eMMC;<br>
这时, 要想从TF卡启动, 有如下方法:<br>
+
If you want to boot from the TF card, there are the following methods:<br>
'''方法1''': 清除eMMC上的 Loader, 清除方法如下, 从eMMC启动后, 在命令行输入以下命令清除eMMC上的 Loader: <br>
+
'''Method 1''': Clear the Loader on the eMMC, the clearing method is as follows, after starting from the eMMC, enter the following command on the command line to clear the Loader on the eMMC: <br>
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
dd if=/dev/zero of=/dev/mmcblk0 bs=8M count=1
 
dd if=/dev/zero of=/dev/mmcblk0 bs=8M count=1
 
</syntaxhighlight>
 
</syntaxhighlight>
'''方法2''': 插入TF卡, 短接Maskrom触点再上电开机 (需保持短接3秒左右), 将会从TF卡启动<br>
+
'''Method 2''': Insert the TF card, short-circuit the Maskrom contacts and then power on (need to keep the short-circuit for about 3 seconds), it will start from the TF card<br>
 
<br>
 
<br>
总结如下:<br>
+
The summary is as follows:<br>
{| class="wikitable"  
+
{| class="wikitable"
 
|-
 
|-
! eMMC当前系统
+
! eMMC current system
! TF卡当前系统
+
! TF card current system
! 启动优先级
+
! Boot priority
 
|-
 
|-
| 无系统
+
| No system
| 任意固件
+
| Any image
| TF卡
+
| TF card
 
|-
 
|-
| FriendlyELEC的固件
+
| FriendlyELEC's image
| FriendlyELEC的固件
+
| FriendlyELEC's image
| TF卡
+
| TF card
 
|-
 
|-
| FriendlyELEC的固件
+
| FriendlyELEC's image
| 采用主线U-boot的固件
+
| Image with Mainline U-boot
 
| eMMC
 
| eMMC
 
|-
 
|-
| 采用主线U-boot的固件
+
| Image with Mainline U-boot
| FriendlyELEC的固件
+
| FriendlyELEC's image
 
| eMMC
 
| eMMC
 
|-
 
|-
| 采用主线U-boot的固件
+
| Image with Mainline U-boot
| 采用主线U-boot的固件
+
| Image with Mainline U-boot
 
| eMMC
 
| eMMC
 
|}
 
|}

Revision as of 08:23, 7 January 2022

The Boot order between eMMC and SD card

By default, the system will be booted from the TF card first, but this is not the case under all conditions. This section will explain all situations in detail;

Quoting the description of Rockchip official document [1], the system boot program (Loader) is divided into the following 2 types:
1) U-Boot TPL/SPL (i.e. upsream U-Boot, also called mainline U-Boot)
2) Rockchip MiniLoader

Things to note:
1) All ROMs released by FriendlyELEC adopt the second type, namely Rockchip MiniLoader
2) The third-party firmware usually uses the first type, namely U-Boot TPL/SPL

The following situations will always start from eMMC:
If the system in the eMMC, or the system in the TF card uses the first Loader type U-Boot TPL/SPL, it will always boot from the eMMC;
If you want to boot from the TF card, there are the following methods:
Method 1: Clear the Loader on the eMMC, the clearing method is as follows, after starting from the eMMC, enter the following command on the command line to clear the Loader on the eMMC:

dd if=/dev/zero of=/dev/mmcblk0 bs=8M count=1

Method 2: Insert the TF card, short-circuit the Maskrom contacts and then power on (need to keep the short-circuit for about 3 seconds), it will start from the TF card

The summary is as follows:

eMMC current system TF card current system Boot priority
No system Any image TF card
FriendlyELEC's image FriendlyELEC's image TF card
FriendlyELEC's image Image with Mainline U-boot eMMC
Image with Mainline U-boot FriendlyELEC's image eMMC
Image with Mainline U-boot Image with Mainline U-boot eMMC