[U-Boot] [RFC 3/4] env: Create an environment transition method
Wolfgang Denk
wd at denx.de
Wed Oct 25 15:26:46 UTC 2017
Dear Maxime,
In message <20171025122601.28224-4-maxime.ripard at free-electrons.com> you wrote:
> The current environment has been hardcoded to an offset that starts to be
> an issue given the current size of our main U-Boot binary.
>
> Introduce an environment method from storing the environment raw in the MMC
> to a file in a FAT partition. Eventually, and hopefully before we reach
> that limit again, we will have most of our users using that setup, and
> we'll be able to retire the raw environment, and gain more room for the
> U-Boot binary.
>
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
> ---
> cmd/nvedit.c | 1 +
> env/Kconfig | 12 ++++++---
> env/Makefile | 1 +
> env/sunxi-transition.c | 59 ++++++++++++++++++++++++++++++++++++++++++
> include/configs/sunxi-common.h | 2 +-
> include/environment.h | 1 +
> 6 files changed, 72 insertions(+), 4 deletions(-)
> create mode 100644 env/sunxi-transition.c
I wonder why you need such a lot of code, and especiallay many
changes in global files for a feature which is probably of no use to
anybody else.
Can the same not be acchieved by a little scripting and clever use of
"env export", file write, and "env import" commands?
Such scripting would have a lot of benefits: no need to touch any
code (especially not global code), and you don't need a new
version of U-Boot to "fix" all existing systems.
I guess I must be missing some key requirement but I can't see it?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In any group of employed individuals the only naturally early riser
is _always_ the office manager, who will _always_ leave reproachful
little notes ... on the desks of their subordinates.
- Terry Pratchett, _Lords and Ladies_
More information about the U-Boot
mailing list