From: Wolfgang Denk Date: Wed, 25 Oct 2017 17:26:46 +0200 Subject: [U-Boot] [RFC 3/4] env: Create an environment transition method In-Reply-To: <20171025122601.28224-4-maxime.ripard@free-electrons.com> References: <20171025122601.28224-1-maxime.ripard@free-electrons.com> <20171025122601.28224-4-maxime.ripard@free-electrons.com> Message-ID: <20171025152646.307F41204FC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Maxime, In message <20171025122601.28224-4-maxime.ripard@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 > --- > 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_