Difference between revisions of "Template:RockchipBootPriority"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
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>
 
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>
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>
+
Refer to rockchip official document [http://opensource.rock-chips.com/wiki_Boot_option], there are two types of loader program:<br>
 
1) U-Boot TPL/SPL (i.e. upsream U-Boot, also called mainline 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>
 
Things to note: <br>
 
Things to note: <br>
1) All ROMs released by FriendlyELEC adopt the second type, namely Rockchip MiniLoader<br>
+
1) FriendlyELEC's image uses Rockchip MiniLoader<br>
2) The third-party firmware usually uses the first type, namely U-Boot TPL/SPL<br>
+
2) The third-party image usually uses U-Boot TPL/SPL<br>
 
<br>
 
<br>
 
The following situations will always start from eMMC:<br>
 
The following situations will always start from eMMC:<br>
Line 15: Line 15:
 
'''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>
 
'''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/mmcblk2 bs=8M count=1
 
</syntaxhighlight>
 
</syntaxhighlight>
'''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>
+
'''Method 2''': Insert the TF card, Press Maskrom Key (or 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>
 
The summary is as follows:<br>
 
The summary is as follows:<br>

Latest revision as of 11:06, 2 June 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;

Refer to rockchip official document [1], there are two types of loader program:
1) U-Boot TPL/SPL (i.e. upsream U-Boot, also called mainline U-Boot)
2) Rockchip MiniLoader

Things to note:
1) FriendlyELEC's image uses Rockchip MiniLoader
2) The third-party image usually uses 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/mmcblk2 bs=8M count=1

Method 2: Insert the TF card, Press Maskrom Key (or 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