Difference between revisions of "Template:RockchipUnbrick"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
===How to Unbrick===
+
== 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.<br>
 +
===Windows Users===
 +
==== Download Required Files ====
 +
* '''Get the necessary tools''': Visit [https://dl.friendlyelec.com/{{{1}}} here], find '''RKDevTool_v3.19_for_window.zip''' and '''DriverAssitant_v5.12.zip''' in the '''05_Tools''' directory, and download them to your local machine.
 +
* '''Install Rockchip USB driver and RKDevTool''': Extract '''DriverAssitant_v5.12.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 [http://112.124.9.243/dvdfiles/ here], enter the tools directory corresponding to your CPU model, and download '''MiniLoaderAll.bin'''.
 +
==== 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:
 +
[[File:Rkdevtool_found_one_maskrom_device.png|frameless|600px]]
 +
* 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.
 +
[[File:Rkdevtool_erase_emmc.png|frameless|600px]]
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
| NanoPi-R4SE
+
| NanoPi-R5S
| NanoPi-R6S
+
| CM3588
+
| NanoPi-R5C
+
| NanoPi-R6C
+
| NanoPC-T4
+
 
  | NanoPi-R2C-Plus
 
  | NanoPi-R2C-Plus
| NanoPi-R2S-Plus
+
| CM3588
| SOM-RK3399 =
+
| NanoPC-T6 =
If the ROM wasn’t installed correctly and the device becomes bricked.
+
* '''(Optional)''': If your {{{1}}} has SPI Nor Flash, select '''SPINOR''', click '''Switch Storage''', then click the '''EraseAll''' button to erase the SPI Nor Flash.
 +
[[File:Rkdevtool_erase_spinorflash.png|frameless|600px]]
 +
}}
 +
* At this point, {{{1}}} is restored to its initial state and can be normally booted via SD card or eMMC.
 +
===Linux/Mac Users===
 +
====Download the Required Files====
 +
* '''Get the necessary tools''': Visit [https://dl.friendlyelec.com/{{{1}}} here] and find '''upgrade_tool_v2.30_for_linux.tgz''' (or for Mac users, select '''upgrade_tool_v2.25_for_mac.tgz''') in the '''05_Tools''' directory and download it locally.
 +
* '''Get the loader''': Visit [http://112.124.9.243/dvdfiles/ here], enter the tools directory corresponding to your CPU model, and download '''MiniLoaderAll.bin'''.
 +
====Installation for upgrade_tool====
 +
The following commands are for Linux, with only slight differences in file and directory names for Mac users:
 +
<syntaxhighlight lang="bash">
 +
tar xzf upgrade_tool_v2.30_for_linux.tgz
 +
cd upgrade_tool_v2.30_for_linux
 +
sudo cp upgrade_tool /usr/local/sbin/
 +
sudo chmod 755 /usr/local/sbin/upgrade_tool
 +
</syntaxhighlight>
 +
====Enter Maskrom Mode to Erase the Storage Device====
 +
* Connect {{{1}}} to the computer using a USB data cable.
 +
* Disconnect the power from {{{1}}}, hold down the '''MASK''' button, connect the power, and release the button after 4 seconds.
 +
* Check the connection with the following command:
 +
<syntaxhighlight lang="bash">
 +
upgrade_tool LD
 +
</syntaxhighlight>
 +
A result similar to "DevNo=1 Vid=0x2207,Pid=0x350b,LocationID=13 Mode=Maskrom SerialNo=" indicates that the device has been detected.
 +
* Erase the eMMC with the following command:
 +
<syntaxhighlight lang="bash">
 +
upgrade_tool EF MiniLoaderAll.bin
 +
</syntaxhighlight>
 +
{{#switch: {{{1}}}
 +
| NanoPi-R5S
 +
| NanoPi-R2C-Plus
 +
| CM3588
 
  | NanoPC-T6 =
 
  | NanoPC-T6 =
If the ROM wasn’t installed correctly and the device becomes bricked.
+
* '''(Optional)''': If your {{{1}}} has SPI Nor Flash, erase the SPI Nor Flash with the following commands:
| #default =
+
<syntaxhighlight lang="bash">
 +
upgrade_tool DB MiniLoaderAll.bin
 +
upgrade_tool SSD  # Select 5, SPINOR
 +
dd if=/dev/zero of=zero.img bs=1M count=16  # For 16M NOR FLASH
 +
upgrade_tool WL 0 zero.img
 +
</syntaxhighlight>
 
}}
 
}}
 +
* At this point, {{{1}}} has been restored to its initial state and can boot the system normally via SD card or eMMC.

Latest revision as of 12:03, 11 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.

1.1 Windows Users

1.1.1 Download Required Files

  • Get the necessary tools: Visit here, find RKDevTool_v3.19_for_window.zip and DriverAssitant_v5.12.zip in the 05_Tools directory, and download them to your local machine.
  • Install Rockchip USB driver and RKDevTool: Extract DriverAssitant_v5.12.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.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.

1.2 Linux/Mac Users

1.2.1 Download the Required Files

  • Get the necessary tools: Visit here and find upgrade_tool_v2.30_for_linux.tgz (or for Mac users, select upgrade_tool_v2.25_for_mac.tgz) in the 05_Tools directory and download it locally.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.2.2 Installation for upgrade_tool

The following commands are for Linux, with only slight differences in file and directory names for Mac users:

tar xzf upgrade_tool_v2.30_for_linux.tgz
cd upgrade_tool_v2.30_for_linux
sudo cp upgrade_tool /usr/local/sbin/
sudo chmod 755 /usr/local/sbin/upgrade_tool

1.2.3 Enter Maskrom Mode to Erase the Storage Device

  • Connect {{{1}}} to the computer using a USB data cable.
  • Disconnect the power from {{{1}}}, hold down the MASK button, connect the power, and release the button after 4 seconds.
  • Check the connection with the following command:
upgrade_tool LD

A result similar to "DevNo=1 Vid=0x2207,Pid=0x350b,LocationID=13 Mode=Maskrom SerialNo=" indicates that the device has been detected.

  • Erase the eMMC with the following command:
upgrade_tool EF MiniLoaderAll.bin
  • At this point, {{{1}}} has been restored to its initial state and can boot the system normally via SD card or eMMC.