[U-Boot] [RFC PATCH] u-boot: remove driver lookup loop from env_save()

Maxime Ripard maxime.ripard at bootlin.com
Wed Jul 11 13:47:35 UTC 2018


On Wed, Jul 11, 2018 at 12:49:50PM +0200, Wolfgang Denk wrote:
> Dear Maxime,
> 
> In message <20180711094838.zyczks6iksp772ir at flea> you wrote:
> > 
> > I don't really see a use-case for overriding wherever the environment
> > at the user-level actually. At the board level, for redundancy or
> > transition, yes, definitely, but we can already do that.
> 
> If the feature is available, use cases will spring into mind.
> 
> Assume you have a eMMC based system which can also boot from other
> storage (say, SDCard), and you want to write the current content of
> the eMMC environment to the alternative boot device.
> 
> Yes, there are usually alternative approaches to perform similar
> actions, but an easy way to save lsewhere might be handy, especially
> if it comes at low cost.

Right, but that would bring a much more significant rework as to how
the environments are handled than just the changes that are being
discussed here. At the moment, the environment can only be stored on
one device for each "types" (one raw MMC, one MTD partition, etc). The
redundancy allows you to duplicate it, but you won't be able to store
on just one instance of your choosing at the moment.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180711/67b7e1f8/attachment.sig>


More information about the U-Boot mailing list