This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:development:erase-emmc [2022/07/05 08:12] frank Add erase eMMC |
products:sbc:common:development:erase-emmc [2024/04/24 03:23] (current) ivan [Serial Mode (For developers)] |
||
---|---|---|---|
Line 4: | Line 4: | ||
This document mainly introduces the method of clearing eMMC. You will learn about 3 methods to clear eMMC. | This document mainly introduces the method of clearing eMMC. You will learn about 3 methods to clear eMMC. | ||
+ | |||
+ | <WRAP important > | ||
+ | The operation of VIM1, VIM2 and VIM3 is almost the same, so this document will take VIM3L as an example. | ||
+ | |||
+ | </ | ||
===== Erase Method ===== | ===== Erase Method ===== | ||
Line 10: | Line 15: | ||
<tabbox Serial Mode (For developers)> | <tabbox Serial Mode (For developers)> | ||
- | * Refer to this [[/products/sbc/common/development/ | + | * Refer to this [[products:sbc:common:development: |
* Once again, ensure you’ve done the correct connections and setup. | * Once again, ensure you’ve done the correct connections and setup. | ||
* Hit any keys at the moment of bootup to stop autoboot. This step will make your VIM enter into u-boot mode. | * Hit any keys at the moment of bootup to stop autoboot. This step will make your VIM enter into u-boot mode. | ||
- | * Type '' | + | * Type '' |
* Type reboot or press the '' | * Type reboot or press the '' | ||
* Use the following as a reference: | * Use the following as a reference: | ||
- | ```sh | + | ```shell |
- | kvim# store init 3 | + | kvim3#store init 3 |
- | emmc/sd response timeout, cmd8, status=0x1ff2800 | + | XXXXXXX======enter EMMC boot======XXXXXX |
- | emmc/sd response timeout, cmd55, status=0x1ff2800 | + | co-phase 0x1, tx-dly 0, clock 40000000 |
- | [mmc_startup] mmc refix success | + | co-phase 0x1, tx-dly 0, clock 40000000 |
+ | co-phase 0x3, tx-dly 0, clock 400000 | ||
+ | emmc/sd response timeout, cmd8, cmd-> | ||
+ | emmc/sd response timeout, cmd55, cmd-> | ||
+ | co-phase 0x3, tx-dly 0, clock 400000 | ||
+ | co-phase 0x1, tx-dly 0, clock 40000000 | ||
+ | [set_emmc_calc_fixed_adj][860]find fixed adj_delay=20 | ||
+ | init_part() 297: PART_TYPE_AML | ||
[mmc_init] mmc init success | [mmc_init] mmc init success | ||
switch to partitions #0, OK | switch to partitions #0, OK | ||
Line 28: | Line 40: | ||
Manufacturer ID: 15 | Manufacturer ID: 15 | ||
OEM: 100 | OEM: 100 | ||
- | Name: 8WPD3 | + | Name: AJTD4 |
Tran Speed: 52000000 | Tran Speed: 52000000 | ||
Rd Block Len: 512 | Rd Block Len: 512 | ||
- | MMC version 5.0 | + | MMC version 5.1 |
High Capacity: Yes | High Capacity: Yes | ||
- | Capacity: | + | Capacity: |
mmc clock: 40000000 | mmc clock: 40000000 | ||
- | Bus Width: 8-bit DDR | + | Bus Width: 8-bit |
- | [store]amlmmc erase 1emmckey_is_protected : protect | + | [store]amlmmc erase 1emmckey_is_protected(): protect |
- | start = 0,end = 57343 | + | bootloader partition is erased: |
- | + | reserved | |
- | + | env partition is erased: start = 0x36000,end = 0x39fff | |
- | Caution! Your devices Erase group is 0x400 | + | rootfs |
- | The erase range would be change | + | Erasing blocks 0 to 8192 @ boot0 |
- | + | start = 0x0,end = 0x1fff | |
- | start = 221184,end = 15269886 | + | Erasing blocks 0 to 8192 @ boot1 |
- | kvim# reboot | + | start = 0x0,end = 0x1fff |
``` | ``` | ||
<tabbox Interrupt Mode> | <tabbox Interrupt Mode> | ||
Line 50: | Line 62: | ||
This approach is suitable for all products that use the Amlogic SoC: | This approach is suitable for all products that use the Amlogic SoC: | ||
- | * Carry out normal upgrading via [[|USB-C Cable]] or [[/ | + | * Carry out normal upgrading via [[start|USB-C Cable]] or [[/ |
* Manually interrupt the upgrading process (forcefully disconnect after 15% is recommended). For example, unplug the USB-C cable or the TF card. | * Manually interrupt the upgrading process (forcefully disconnect after 15% is recommended). For example, unplug the USB-C cable or the TF card. | ||
* Power on your VIM again, and you’ll find that all the data on the eMMC has been erased. | * Power on your VIM again, and you’ll find that all the data on the eMMC has been erased. | ||
Line 60: | Line 72: | ||
Power on and boot up. | Power on and boot up. | ||
Open a terminal, and run '' | Open a terminal, and run '' | ||
- | ```sh | + | ```shell |
root@Khadas: | root@Khadas: | ||
dd: writing to '/ | dd: writing to '/ |