Difference between revisions of "Template:RockchipUnbrick"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===The Boot order between eMMC and SD card===
+
=== Unbricking Method ===
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>
+
If the ROM is not installed correctly, causing the development board to become bricked, and you might not have the opportunity to reinstall the ROM via an SD card, you need to enter Maskrom mode to unbrick it by erasing the storage device.<br>
<br>
+
The following steps are currently only applicable to Windows systems.<br>
Refer to rockchip official document [http://opensource.rock-chips.com/wiki_Boot_option], there are two types of loader program:<br>
+
==== Download Required Files ====
1) U-Boot TPL/SPL (i.e. upsream U-Boot, also called mainline U-Boot)<br>
+
* '''Get the necessary tools''': Visit [https://dl.friendlyelec.com/{{{1}}} here], find '''RKDevTool_v3.19_for_window.zip''' and '''DriverAssitant_v5.1.1.zip''' in the '''05_Tools''' directory, and download them to your local machine.
2) Rockchip MiniLoader<br>
+
* '''Install Rockchip USB driver and RKDevTool''': Extract '''DriverAssitant_v5.1.1.zip''' to install the Rockchip USB driver, and extract '''RKDevTool_v3.19_for_window.zip''' to obtain the Rockchip flashing tool '''RKDevTool'''.
<br>
+
* '''Get the loader''': Visit [http://112.124.9.243/dvdfiles/ here], enter the tools directory corresponding to your CPU model, and download '''MiniLoaderAll.bin'''.
Things to note: <br>
+
==== Enter Maskrom Mode to Erase the Storage Device ====
1) FriendlyELEC's image uses Rockchip MiniLoader<br>
+
* Connect {{{1}}} to your computer using a USB data cable.
2) The third-party image usually uses U-Boot TPL/SPL<br>
+
* Start '''RKDevTool''' on your computer.
<br>
+
* Disconnect the power from {{{1}}}, hold down the '''MASK''' button, connect the power, and release the button when you see '''Found One MASKROM Device''' displayed at the bottom of the interface, as shown below:
The following situations will always start from eMMC:<br>
+
[[File:Rkdevtool_found_one_maskrom_device.png|frameless|600px]]
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>
+
* Click the '''Advanced Function''' tab in the '''RKDevTool''' interface.
If you want to boot from the TF card, there are the following methods:<br>
+
* In the '''Boot''' text box, select '''MiniLoaderAll.bin''', then click the '''Download''' button.
'''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>
+
* Select '''EMMC''', click '''Switch Storage''', then click the '''EraseAll''' button to erase the eMMC.
<syntaxhighlight lang="bash">
+
[[File:Rkdevtool_erase_emmc.png|frameless|600px]]
dd if=/dev/zero of=/dev/mmcblk2 bs=8M count=1
+
{{#switch: {{{1}}}
</syntaxhighlight>
+
| NanoPi-R5S
'''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>
+
| CM3588
<br>
+
| NanoPC-T6 =
The summary is as follows:<br>
+
* '''(Optional)''': If your {{{1}}} has SPI Nor Flash, select '''SPINOR''', click '''Switch Storage''', then click the '''EraseAll''' button to erase the SPI Nor Flash.
{| class="wikitable"
+
[[File:Rkdevtool_erase_spinorflash.png|frameless|600px]]
|-
+
}}
! eMMC current system
+
* At this point, {{{1}}} is restored to its initial state and can be normally booted via SD card or eMMC.
! 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
+
|}
+

Revision as of 08:28, 4 June 2024

1 Unbricking Method

If the ROM is not installed correctly, causing the development board to become bricked, and you might not have the opportunity to reinstall the ROM via an SD card, you need to enter Maskrom mode to unbrick it by erasing the storage device.
The following steps are currently only applicable to Windows systems.

1.1 Download Required Files

  • Get the necessary tools: Visit here, find RKDevTool_v3.19_for_window.zip and DriverAssitant_v5.1.1.zip in the 05_Tools directory, and download them to your local machine.
  • Install Rockchip USB driver and RKDevTool: Extract DriverAssitant_v5.1.1.zip to install the Rockchip USB driver, and extract RKDevTool_v3.19_for_window.zip to obtain the Rockchip flashing tool RKDevTool.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.2 Enter Maskrom Mode to Erase the Storage Device

  • Connect {{{1}}} to your computer using a USB data cable.
  • Start RKDevTool on your computer.
  • Disconnect the power from {{{1}}}, hold down the MASK button, connect the power, and release the button when you see Found One MASKROM Device displayed at the bottom of the interface, as shown below:

Rkdevtool found one maskrom device.png

  • Click the Advanced Function tab in the RKDevTool interface.
  • In the Boot text box, select MiniLoaderAll.bin, then click the Download button.
  • Select EMMC, click Switch Storage, then click the EraseAll button to erase the eMMC.

Rkdevtool erase emmc.png

  • At this point, {{{1}}} is restored to its initial state and can be normally booted via SD card or eMMC.