Skip to content

env: sf: add support of command env erase

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3env: add ENV_ERASE_PTR macroenv/ext4.c env/mmc.c include/env_internal.h+3 -71 reply
2/3env: sf: update the use of macro ENV_SAVE_PTRenv/sf.c+1 -11 reply
3/3env: sf: add support of command env eraseenv/sf.c+34 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] env: sf: add support of command env erase

Hi,

I add support of env erase command for SPI flash backend (sf).

To erase the environment, this patch only invalidate the content at CONFIG_ENV_OFFSET and at CONFIG_ENV_OFFSET_REDUND (force a bad CRC).

The 2 first patchs of the serie are preliminary and clenaup steps.

Patrick

Patrick Delaunay (3):
env: add ENV_ERASE_PTR macro
env: sf: update the use of macro ENV_SAVE_PTR
env: sf: add support of command env erase

 env/ext4.c             |  3 +--
 env/mmc.c              |  6 +-----
 env/sf.c               | 36 +++++++++++++++++++++++++++++++++++-
 include/env_internal.h |  1 +
 4 files changed, 38 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1