From: Wolfgang Denk Date: Mon, 13 Apr 2009 14:26:57 +0200 Subject: [U-Boot] incremental environment updating In-Reply-To: <49E32C3C.8090404@ge.com> References: <200904130609.08060.vapier@gentoo.org> <20090413101524.27E4083420E8@gemini.denx.de> <200904130634.49617.vapier@gentoo.org> <49E32C3C.8090404@ge.com> Message-ID: <20090413122657.8C6FD83420E8@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 Jerry Van Baren, In message <49E32C3C.8090404@ge.com> you wrote: > > Since flash can change 1s to 0s, but cannot change them back, you could > redefine the env storage to be > [undefined] > (note the added at the start). By definition, the valid env's > == 0xFFFFFFFF. To write a new env, simply write the offset of > [undefined] into the location and then write a new env lump. I see problems with this: - it's incompatible with the current format, i. e. detection of existing old formats needs a special case which is something I always consider ugly. - it works only on NOR flash, not on any media that can be accessed only in blocks - handling of redundant environment becomes a lot more complicated BTW: what was the exact problem we were trying to solve? Saving the time it takes to erase one flash sector? If we have to pay for this with introducing a new, incomptible environment format, and probably having to handle NOR flash and other storage media differently, I doubt if this is worth the effort. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel 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 Imagination is more important than knowledge. -- Albert Einstein