From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Smith Date: Wed, 26 Apr 2006 08:32:10 -0400 Subject: [U-Boot-Users] Redundant environment expected behavior vs current In-Reply-To: <20060426075331.C04C8353AC4@atlas.denx.de> References: <20060426075331.C04C8353AC4@atlas.denx.de> Message-ID: <444F684A.8060406@imagemap.com> 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 <444EC5F1.10205@orkun.us> you wrote: > >> time U-Boot will switch to the second copy but second copy does not have >> the latest stuff we put/modified because we did not sync them. >> > > If theis is your concern, then sync it. Nothing prevents you from > doing this. > > >>>> environment after one copy is written might not save us in certain >>>> situations. >>>> >>> Which are? >>> >>> >> Say, I am booting one of the two kernels/initrd in flash. Or NFS booting >> from a different IP etc. Supplying a different kernel command line. >> > > How would this corrupt an already stored and write protected > environment sector? > I am new to this but it seems that once we successfully write the environment and protect it, how does (should) one go about writing that same environment to the redundant sector? Is it done with saveenv if the redundant environment is enabled? I guess I need to go look at the code. -Randy Smith