How to erase whole eMMC?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to erase whole eMMC?

8,210 Views
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

Labels (1)
0 Kudos
1 Reply

8,161 Views
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