How to erase whole eMMC?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to erase whole eMMC?

13,223件の閲覧回数
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,173件の閲覧回数
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