From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert P. J. Day Date: Wed, 14 Sep 2016 09:04:39 -0400 (EDT) Subject: [U-Boot] recommended place to add some custom settings to u-boot environment? In-Reply-To: <20160914125839.C998A100BA3@atlas.denx.de> References: <20160914091718.73124100BD9@atlas.denx.de> <20160914125839.C998A100BA3@atlas.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 14 Sep 2016, Wolfgang Denk wrote: > Dear Robert, > > In message you wrote: > > > > > Why not simply putting this as text (or wrapped with an uImage > > > header) into some storage (or even a file) and then use "env import" > > > to load it? > > > > the problem is that that additional "environment" info is on the > > target board because of a legacy non-linux OS -- it's at a > > well-known address in flash, and we have no freedom to change it, > > we can only read it, make some adjustments, then incorporate it > > into the current environment. > > Which format is used? Can it not be made to work with "env import" > using this well-known address? I mean, if it's plain text, it > should just work. If it's some other, more exotic format, you could > probably implement a custom import format? it needs to be done programatically, and i *believe* himport_r() can handle it, as the string is space-separated and null-terminated, so i'm about to test that. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================