public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Redundant Env
@ 2012-08-14 17:39 Sridhar Addagada
  2012-08-14 18:32 ` Sridhar Addagada
  2012-09-02 12:37 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Sridhar Addagada @ 2012-08-14 17:39 UTC (permalink / raw)
  To: u-boot

When enabling HAVE_REDUND in uboot-tools, will it work if i have the redundant partition in the same sector

#define DEVICE1_NAME????? "/dev/mtd1"
#define DEVICE2_NAME????? "/dev/mtd1"

#define DEVICE1_OFFSET??? 0x00000
#define ENV1_SIZE???????? 0x10000
#define DEVICE1_ESIZE???? 0x20000
#define DEVICE1_ENVSECTORS???? 1
#define DEVICE2_OFFSET??? 0x00000
#define ENV2_SIZE???????? 0x10000
#define DEVICE2_ESIZE???? 0x20000 // erase size is 128K
#define DEVICE2_ENVSECTORS???? 1


Thanks
Sridhar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Redundant Env
  2012-08-14 17:39 [U-Boot] Redundant Env Sridhar Addagada
@ 2012-08-14 18:32 ` Sridhar Addagada
  2012-09-02 12:37 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Sridhar Addagada @ 2012-08-14 18:32 UTC (permalink / raw)
  To: u-boot

opps! defined DEVICE2_OFFSET as

#define DEVICE2_OFFSET??? DEVICE1_OFFSET+ENV1_SIZE


Thanks
S


________________________________
 From: Sridhar Addagada <sridhar_a@yahoo.com>
To: "u-boot at lists.denx.de" <u-boot@lists.denx.de> 
Sent: Tuesday, August 14, 2012 11:09 PM
Subject: Redundant Env
 

When enabling HAVE_REDUND in uboot-tools, will it work if i have the redundant partition in the same sector

#define DEVICE1_NAME????? "/dev/mtd1"
#define DEVICE2_NAME????? "/dev/mtd1"

#define DEVICE1_OFFSET??? 0x00000
#define ENV1_SIZE???????? 0x10000
#define DEVICE1_ESIZE???? 0x20000
#define DEVICE1_ENVSECTORS???? 1
#define DEVICE2_OFFSET??? 0x00000
#define ENV2_SIZE???????? 0x10000
#define DEVICE2_ESIZE???? 0x20000 // erase size is 128K
#define DEVICE2_ENVSECTORS????
 1


Thanks
Sridhar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Redundant Env
  2012-08-14 17:39 [U-Boot] Redundant Env Sridhar Addagada
  2012-08-14 18:32 ` Sridhar Addagada
@ 2012-09-02 12:37 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2012-09-02 12:37 UTC (permalink / raw)
  To: u-boot

Dear Sridhar Addagada,

In message <1344965990.70017.YahooMailNeo@web162902.mail.bf1.yahoo.com> you wrote:
>
> When enabling HAVE_REDUND in uboot-tools, will it work if i have the
> redundant partition in the same sector

No, it will not, as the whole purpose of having a redundant
environment is to have a persistent copy left for the time when you
erase the sector holding the env - when you put both copies in the
same sector, both will be gone at the same time.

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
In my experience the best way to get something done  is to give it to
someone who is busy.               - Terry Pratchett, _Going_Postal_

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-02 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 17:39 [U-Boot] Redundant Env Sridhar Addagada
2012-08-14 18:32 ` Sridhar Addagada
2012-09-02 12:37 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox