From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessio Sangalli Date: Mon, 18 Jul 2011 09:22:28 -0700 Subject: [U-Boot] Environment "image" tool In-Reply-To: <4E2270CB.3060708@manoweb.com> References: <4E221C41.1080900@manoweb.com> <20110716233141.199A017E88C5@gemini.denx.de> <4E2270CB.3060708@manoweb.com> Message-ID: <4E245DC4.3080307@manoweb.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/16/2011 10:19 PM, Alessio Sangalli wrote: > I am writing a "flashing tool" for my NAND chip. > > Is the format that U-Boot uses to write the environment "stable" or it > could change? So I have written in my application some code that: 1) takes an area equivalent in size to ENV_SIZE and places a series of '\0' terminated strings 2) calculates the CRC32 and places it in the first 4 bytes This is written to the NAND and used by U-Boot, no problems at all. My application is GLP-3 and available at: https://gitorious.org/microflasher bye as