eMMC wipe

Ismael Rangel ismael.rangel at oracle.com
Wed Jan 15 20:34:33 CET 2020


Hi,

 

Current U-Boot repo supports eMMC erase command with argument 0x00000000 (MMC_ERASE_ARG). 

 

https://github.com/u-boot/u-boot/blob/master/drivers/mmc/mmc_write.c#L53

 

               cmd.cmdidx = MMC_CMD_ERASE;

               cmd.cmdarg = MMC_ERASE_ARG;

               cmd.resp_type = MMC_RSP_R1b;

 

Argument 0x80000000 (MMC_SECURE_ERASE_ARG) is also defined but is not used in any function.

 

Latest eMMC 5.1 devices support a few more data wipe and reorder features e.g. Trim, Discard and Sanitize. Is there any plan to add these features?

 

Thanks,

Ismael.





 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 250514 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200115/7b58bde4/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 190229 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200115/7b58bde4/attachment-0003.jpg>


More information about the U-Boot mailing list