This is an old revision of the document!
This document mainly introduces the method of clearing eMMC. You will learn about 3 methods to clear eMMC.
The operation of VIM1, VIM2 and VIM3 is almost the same, so this document will take VIM1 as an example.
store init 3
on the terminal of u-boot, and wait for the erasure process to complete.Reset
button.kvim# store init 3 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 [mmc_startup] mmc refix success [mmc_init] mmc init success switch to partitions #0, OK mmc1(part 0) is current device Device: SDIO Port C Manufacturer ID: 15 OEM: 100 Name: 8WPD3 Tran Speed: 52000000 Rd Block Len: 512 MMC version 5.0 High Capacity: Yes Capacity: 7.3 GiB mmc clock: 40000000 Bus Width: 8-bit DDR [store]amlmmc erase 1emmckey_is_protected : protect start = 0,end = 57343 Caution! Your devices Erase group is 0x400 The erase range would be change to 0x36000~0xe8ffff start = 221184,end = 15269886 kvim# reboot
This approach is suitable for all products that use the Amlogic SoC:
This approach is suitable for a VIM that has Linux installed:
Power on and boot up.
Open a terminal, and run dd
to fill your bootloader partition with zeros:
root@Khadas:~# dd if=/dev/zero of=/dev/bootloader dd: writing to '/dev/bootloader': No space left on device 8193+0 records in 8192+0 records out 4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.1226 s, 3.7 MB/s root@Khadas:~# reboot