[U-Boot] mmc erase fails from U-Boot command line

Fabio Estevam festevam at gmail.com
Mon Dec 7 01:21:44 CET 2015


Hi Eric,

On Fri, Dec 4, 2015 at 8:42 PM, Eric Nelson <eric at nelint.com> wrote:

> I've figured out a way to repeat this on my machine.
>
> If I write 0xff's to the eMMC blocks, then issue an erase for the same,
> I get the problem with each MMC_ERASE command.
>
> I've also found something that fixes the issue in my testing.
>
> Changing SECURE_ERASE to 0 from 0x80000000 in include/mmc.h allows
> things to function for me.
>
> Page 115 of the JEDEC eMMC 4.5 spec says that bit 31 is obsolete and
> should be zero:
>         http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdf
>
> Hector and Fabio, can you test that change?

Managed to get access to a revC2 board and tested your change.

I am happy to say that 'mmc erase' works now :-)

Good job, Eric!

When you send a formal patch then you can add:

Tested-by: Fabio Estevam <fabio.estevam at freescale.com>

Thanks!


More information about the U-Boot mailing list