From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Poole Date: Wed, 25 May 2005 15:31:15 +0100 Subject: [U-Boot-Users] tool to create environment on host? In-Reply-To: <20050525132543.9ADE1C1512@atlas.denx.de> References: <20050525132543.9ADE1C1512@atlas.denx.de> Message-ID: <42948C33.4010209@themalago.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > In message <4294507C.1050104@themalago.net> you wrote: > >>>>is there a tool to create a binary environment block from a text file on the >>>>host? > > ... > >>That would be *so* useful for our nightly builds... > > > Why so? If correctly configured, the environment is built automati- > cally with the U-Boot image anyway. > Our nightly build produces the full u-boot, kernel, rootfs for our products and wraps it up into a nice single firmware image ready for flashing onto the boards. The environment for a single board may vary slightly depending on the product it is going into (e.g. different mtdparts kernel bootarg). Our current procedure is to run u-boot on the board, setup the environment correctly, save a binary image of it and put that in the nightly build. Steven's idea means we can keep the environment in 'source' format and build the binary on the fly. I might have missed a trick though if this can be done as part of the normal u-boot build? Simon. -- Simon Poole www.appliancestudio.com