public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v7 0/2] add command env erase
@ 2019-06-29  9:36 Frank Wunderlich
  2019-06-29  9:36 ` [U-Boot] [PATCH v7 1/2] env: register erase command Frank Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Frank Wunderlich @ 2019-06-29  9:36 UTC (permalink / raw)
  To: u-boot

sometimes it is needed to erase the non-volatile environment
e.g. for boot-up with builtin-environment or after resizing env

this series add basic functionality for erasing environment from
storage as a first storage-driver mmc is introduced, other needs to be added
later

changes since v6:
 - fix whitespace around errmsg

changes since v5:
 - don't use the CMD_RET_ macros in erase_env
 - remove mmc-checks (!mmc + mmc_getwp) and add init_mmc_for_env

changes since v4:
 - rebased to 2019.07-rc4
 - changed handling with CONFIG_ENV_OFFSET_REDUND (more similar to saveenv)
 - quashed last 2 commits to get 2-parts patchset

Frank Wunderlich (2):
  env: register erase command
  env: mmc: add erase-function

 cmd/Kconfig           |  8 +++++++
 cmd/nvedit.c          | 20 +++++++++++++++++
 env/env.c             | 30 +++++++++++++++++++++++++
 env/mmc.c             | 51 +++++++++++++++++++++++++++++++++++++++++++
 include/environment.h | 17 +++++++++++++++
 5 files changed, 126 insertions(+)

--
2.17.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-07-18 23:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-29  9:36 [U-Boot] [PATCH v7 0/2] add command env erase Frank Wunderlich
2019-06-29  9:36 ` [U-Boot] [PATCH v7 1/2] env: register erase command Frank Wunderlich
2019-07-09 19:26   ` Simon Goldschmidt
2019-07-18 23:57   ` Tom Rini
2019-06-29  9:36 ` [U-Boot] [PATCH v7 2/2] env: mmc: add erase-function Frank Wunderlich
2019-07-09 19:26   ` Simon Goldschmidt
2019-07-18 23:57   ` Tom Rini
2019-07-07 18:40 ` [U-Boot] [PATCH v7 0/2] add command env erase Frank Wunderlich
2019-07-09 19:23   ` Simon Goldschmidt
2019-07-09 19:48     ` Frank Wunderlich
2019-07-09 19:52       ` Simon Goldschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox