From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 29 Apr 2011 11:02:55 +0200 Subject: [U-Boot] fw_setenv usage for multiple copies of U-Boot Environment Variables In-Reply-To: (Amarendra Reddy's message of "Thu, 28 Apr 2011 10:51:11 +0000") References: <20110428102809.A5208D5270A@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Amarendra, > Hi Wolfgang Denk, > > Thank you for the reply. Yes I am talking about "redundant environment". > > If we have four "redundant environment" copies in the same > partition(mtd1)... Does the below fw_env.config configuration hold > good ? U-Boot cannot cope with more than two redundant copies. > #################################################### > # File: fw_env.config > # Configuration file for fw_(printenv/saveenv) utility. > # Up to two entries are valid, in this case the redundand > # environment sector is assumed present. Read the text carefully: "Up to two entries are valid".... > > # MTD device name Device offset Env. size Flash sector size > /dev/mtd1 0x00000 0x02000 0x20000 > /dev/mtd1 0x20000 0x02000 0x20000 > /dev/mtd1 0x40000 0x02000 0x20000 > /dev/mtd1 0x60000 0x02000 0x20000 > #################################################### On the other hand why exactly do you need four redundant environments? The idea behind redundant environments is that a powercut _while_ updating one copy can be handled by having a backup copy. It is _not_ meant to handle faulting devices in any way. Cheers Detlev -- I have always observed that the pretensions of all people are in exact inverse ratio to their merits; this is one of the axioms of morals. -- Joseph Lagrange -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de