How to erase whole eMMC?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to erase whole eMMC?

13,204 次查看
tdoering
Contributor II

Hi,

we are using the iMX8M Mini EVK and successfully flashed the eMMC using uuu.

Now: How to we completely erase the eMMC again. On u-boot we can do mmc erase 0 <block-count>. This however does only seem to delete the actual linux kernel and images but not the u-boot itself (since its still booting).

Where is that booted u-boot is stored and how to erase it?

Greetings,

Thomas

标签 (1)
0 项奖励
回复
1 回复

13,154 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Thomas,

Open a terminal, and run dd to fill your bootloader partition with zeros:

root:~# dd if=/dev/zero of=/dev/"where is the eMMC"
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
Khadas:~# reboot

Regards