Difference between revisions of "Zero/install/eMMC erase"
RadxaYuntian (Talk | contribs) |
RadxaYuntian (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{zero_header}} | {{zero_header}} | ||
{{Languages|zero/install/eMMC_erase}} | {{Languages|zero/install/eMMC_erase}} | ||
− | [[zero | Radxa Zero]] > [[zero/install | Installation]] > [[zero/install/eMMC_erase | Erase eMMC | + | [[zero | Radxa Zero]] > [[zero/install | Installation]] > [[zero/install/eMMC_erase | Erase eMMC]] |
− | === How to erase | + | === How to erase eMMC === |
This guide describes how to erase bootloader on Radxa Zero's eMMC. Unlike normal PC where they have a well established and documented way of booting, in embedded world it is a bit chaotic and everyone carries their own bootloader and boot sequence. To ensure Radxa Zero can boot with microSD the bootloader on eMMC need to be wiped so it won't interfere with the boot process. | This guide describes how to erase bootloader on Radxa Zero's eMMC. Unlike normal PC where they have a well established and documented way of booting, in embedded world it is a bit chaotic and everyone carries their own bootloader and boot sequence. To ensure Radxa Zero can boot with microSD the bootloader on eMMC need to be wiped so it won't interfere with the boot process. | ||
+ | |||
+ | Additionally, you can choose to erase the whole eMMC, in case you have some serious errors with the on disk format. | ||
== Requirement == | == Requirement == | ||
Line 31: | Line 33: | ||
Bus 001 Device 051: ID 18d1:0d02 Google Inc. Celkon A88 | Bus 001 Device 051: ID 18d1:0d02 Google Inc. Celkon A88 | ||
− | Now execute the following commands to wipe eMMC: | + | Now execute the following commands to wipe bootloader from eMMC: |
macOS: | macOS: | ||
Line 47: | Line 49: | ||
sudo fastboot erase bootloader-boot0 | sudo fastboot erase bootloader-boot0 | ||
sudo fastboot erase bootloader-boot1 | sudo fastboot erase bootloader-boot1 | ||
+ | sudo fastboot reboot | ||
+ | |||
+ | Some commands will fail and this is normal. | ||
+ | |||
+ | Additionally, if your eMMC is corrupted (for example, getting <code>** Invalid partition 1 **</code> error in U-Boot message), you can try erase the whole eMMC. You can run the following commands instead: | ||
+ | |||
+ | macOS: | ||
+ | fastboot flashing unlock_critical | ||
+ | fastboot flashing unlock | ||
+ | fastboot erase 0 | ||
+ | fastboot erase 1 | ||
+ | fastboot reboot | ||
+ | |||
+ | Linux: | ||
+ | sudo fastboot flashing unlock_critical | ||
+ | sudo fastboot flashing unlock | ||
+ | sudo fastboot erase 0 | ||
+ | sudo fastboot erase 1 | ||
sudo fastboot reboot | sudo fastboot reboot |
Revision as of 06:48, 13 December 2021
Radxa Zero > Installation > Erase eMMC
How to erase eMMC
This guide describes how to erase bootloader on Radxa Zero's eMMC. Unlike normal PC where they have a well established and documented way of booting, in embedded world it is a bit chaotic and everyone carries their own bootloader and boot sequence. To ensure Radxa Zero can boot with microSD the bootloader on eMMC need to be wiped so it won't interfere with the boot process.
Additionally, you can choose to erase the whole eMMC, in case you have some serious errors with the on disk format.
Requirement
- Radxa Zero
- A PC/laptop running Windows, Linux, or macOS
- USB A to C cable or C to C cable, depending on your host
Windows
First, follow maskrom guide to setup and load factory-loader.img:
You can then click Erase button to erase the eMMC.
Linux & macOS
First, follow maskrom guide to setup and load rz-fastboot-loader.bin.
You are now booted into fastboot mode. Check it by running lsusb:
Bus 001 Device 051: ID 18d1:0d02 Google Inc. Celkon A88
Now execute the following commands to wipe bootloader from eMMC:
macOS:
fastboot flashing unlock_critical fastboot flashing unlock fastboot erase bootloader fastboot erase bootloader-boot0 fastboot erase bootloader-boot1 fastboot reboot
Linux:
sudo fastboot flashing unlock_critical sudo fastboot flashing unlock sudo fastboot erase bootloader sudo fastboot erase bootloader-boot0 sudo fastboot erase bootloader-boot1 sudo fastboot reboot
Some commands will fail and this is normal.
Additionally, if your eMMC is corrupted (for example, getting ** Invalid partition 1 **
error in U-Boot message), you can try erase the whole eMMC. You can run the following commands instead:
macOS:
fastboot flashing unlock_critical fastboot flashing unlock fastboot erase 0 fastboot erase 1 fastboot reboot
Linux:
sudo fastboot flashing unlock_critical sudo fastboot flashing unlock sudo fastboot erase 0 sudo fastboot erase 1 sudo fastboot reboot