From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 18 Apr 2021 08:45:50 -0400 Subject: [PATCH 3/3] env: sf: add support of command env erase In-Reply-To: <20210209114849.3.I10fb7cded95e008428ff08f4f1e6f785cefc4d0f@changeid> References: <20210209104852.1293-1-patrick.delaunay@foss.st.com> <20210209114849.3.I10fb7cded95e008428ff08f4f1e6f785cefc4d0f@changeid> Message-ID: <20210418124550.GQ1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Feb 09, 2021 at 11:48:52AM +0100, Patrick Delaunay wrote: > Add support of opts erase for env in SPI flash; > this opts is used by command 'env erase'. > > This command only fills the env offset by 0x0 (bit flip to 0) and > the saved environment becomes invalid (with bad CRC). > > It doesn't erase the sector here to avoid issue when the sector > is larger than the env (i.e. embedded when > CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE). > > The needed sector erase will be managed in the next "env save" command, > using the opt ".save", before to update the environment in SPI flash. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: