On Wed, Dec 17, 2025 at 09:12:33PM +0100, Marek Vasut wrote: > Add support for converting single-copy environment to redundant environment. > In case CRC checks on both redundant environment copies fail, try one more > CRC check on the primary environment copy and treat it as single environment. > If that check does pass, rewrite the single-copy environment into redundant > environment format, indicate the environment is valid, and import that as > usual primary copy of redundant environment. Follow up 'env save' will then > store two environment copies and the system will continue to operate as > regular redundant environment system. > > Add test which validates this upgrade path. The test starts with spi.bin > which is pre-populated as single-copy environment and then upgrades that > environment to dual-copy environment. > > Signed-off-by: Marek Vasut <[email protected]> > --- > Cc: Heinrich Schuchardt <[email protected]> > Cc: Jerome Forissier <[email protected]> > Cc: Simon Glass <[email protected]> > Cc: Tom Rini <[email protected]> > Cc: [email protected]
For merging, a cover letter makes things so much easier, please add one for v2. And, I think this needs a Kconfig option. I'm sure you added this because someone has a valid use case but it's going to grow too many platforms where that feature isn't likely desired. Thanks. -- Tom
signature.asc
Description: PGP signature

