[U-Boot] mmc erase command fails with DAT0 timeout on eMMC on iMX6 board

Lu Y.B. yangbo.lu at freescale.com
Fri Jun 5 08:35:58 CEST 2015


Hello Hector,

I am not familiar with iMX6 based board.
I only know the DAT0 checking was introduced in commit 7a5b80297bc6cef0c10e5f57ac0450678dc7bc5e

And different cards may have different secure erase timeout value.
This should be found in chip datasheet.

But I've never meet your issue...

> -----Original Message-----
> From: Palacios, Hector [mailto:Hector.Palacios at digi.com]
> Sent: Thursday, June 04, 2015 7:24 PM
> To: u-boot at lists.denx.de; Estevam Fabio-R49496; Lu Yangbo-B47093
> Cc: Engel, Mike
> Subject: mmc erase command fails with DAT0 timeout on eMMC on iMX6 board
> 
> Hello,
> 
> I can see the command 'mmc erase blk# cnt' fails with a DAT0 timeout on
> iMX6 boards when run over the eMMC.
> 
> => mmc dev 2
> => mmc erase 4000 1000
> MMC erase: dev # 2, block # 16384, count 4096 ... Timeout waiting for
> DAT0 to go high!
> mmc erase failed
> 0 blocks erase: ERROR
> 
> I reproduced it with the SabreSD board running upstream U-Boot v2015.04.
> The error does not happen using microSD card, though.
> 
> Does anybody else have the same problem on other iMX6 based boards?
> Thank you.
> 
> PS. Increasing the timeout value ad infinitum does not help.
> --
> Héctor Palacios
> 



More information about the U-Boot mailing list