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

2019-04-07 Thread Simon Goldschmidt
Am 07.04.2019 um 19:32 schrieb Frank Wunderlich: started to include erase in the global scope...hope i'm right. https://github.com/frank-w/u-boot/commits/eraseenv_new Yes, that looks like the correct approach. where is the env-command (i need to add erase too) defined? i found no cmd/env*.

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

2019-04-07 Thread Frank Wunderlich
started to include erase in the global scope...hope i'm right. https://github.com/frank-w/u-boot/commits/eraseenv_new where is the env-command (i need to add erase too) defined? i found no cmd/env*.[ch]... regards Frank > Gesendet: Sonntag, 07. April 2019 um 17:58 Uhr > Von: "Stefano Babic"

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

2019-04-07 Thread Stefano Babic
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 sho

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

2019-04-07 Thread Frank Wunderlich
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? Regards Frank Am 7. April 2019 14:55:42 MESZ schrieb Stefano Babic : >Hi Frank, > >On 06/04/19 20:

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

2019-04-07 Thread Stefano Babic
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

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

2019-04-06 Thread Frank Wunderlich
"mmc eraseenv" allows to erase the section on mmc where env is stored Signed-off-by: Frank Wunderlich --- cmd/mmc.c | 33 + 1 file changed, 33 insertions(+) diff --git a/cmd/mmc.c b/cmd/mmc.c index 8bc3648193..b8e2c353b4 100644 --- a/cmd/mmc.c +++ b/cmd/mmc.c @@