From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 14 Sep 2016 11:17:18 +0200 Subject: [U-Boot] recommended place to add some custom settings to u-boot environment? In-Reply-To: References: Message-ID: <20160914091718.73124100BD9@atlas.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 Robert, In message you wrote: > > on my target board, there is some non-linux environment info in > "var=val" form that i want to drag into the current environment > whenever u-boot starts up. my plan is just to import that content into > a (new) hash table, then tweak it a bit before further adding it to > "env_htab". the logistics seem pretty straightforward, i'm just > curious as to where the *right*(?) place is to do this. Sounds complicated... > does that make sense? at that point, all of the normal environment > will have been initialized, and i'll have access to "env_htab". > thoughts? is there a better place to "adjust" the u-boot environment > once u-boot has done its normal work? thanks. 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? 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 Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke