[U-Boot] [PATCH] mmc: add eraseenv command

Stefano Babic sbabic at denx.de
Sun Apr 7 15:58:52 UTC 2019


Hi Frank,

On 07/04/19 17:20, Frank Wunderlich wrote:
> Hi Stefano,
> 
> I agree a global env erase which calls device-specific function is better than current implementation. I havn't figured out how i can implement it. Is there a simple example for this?
> 

IMHO the U_BOOT_ENV_LOCATION should be extended to add a new function
pointer, and the generic command calls it.

Regards,
Stefano

> Regards Frank
> 
> Am 7. April 2019 14:55:42 MESZ schrieb Stefano Babic <sbabic at denx.de>:
>> Hi Frank,
>>
>> On 06/04/19 20:12, Frank Wunderlich wrote:
>>> "mmc eraseenv" allows to erase the section on mmc where env is stored
>>>
>>
>> Why do we need a specific command for MMC ? If we need such a command,
>> should it not unaware of the storage ? That is a "env eraseenv", and
>> this calls the corresponding function for SPI /MMC / NAND /.. ?

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list