From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Smith Date: Wed, 26 Apr 2006 09:25:05 -0400 Subject: [U-Boot-Users] Redundant environment expected behavior vs current In-Reply-To: <20060426130518.40F58353DAC@atlas.denx.de> References: <20060426130518.40F58353DAC@atlas.denx.de> Message-ID: <444F74B1.8060909@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 <444F684A.8060406@imagemap.com> you wrote: > >> 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 >> > > Correct. All you need to do is call "saveenv" twice. [That's why I > can't see a real need for changing the code.] > > Best regards, > > Wolfgang Denk > Just my uninformed opinion...It seems to me that calling saveenv twice is misleading. What I mean is that I assume that I have a "golden" copy of my environment in the redundant area. I should be able to call saveenv as many times as I wish without touching the contents of the "golden" copy and that there should be another mechanism to update the "golden" copy. I had no idea that calling saveenv twice will overwrite the redundant area, but then again, I am in new to this. -Randy Smith