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
opps! defined DEVICE2_OFFSET as
#define DEVICE2_OFFSET??? DEVICE1_OFFSET+ENV1_SIZE
Thanks
S
________________________________
From: Sridhar Addagada <[email protected]>
To: "u-boot at lists.denx.de" <[email protected]>
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
Dear Sridhar Addagada,
Quoted 3 lines · In message <[email protected]> you…
When enabling
HAVE_REDUNDin 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
Signature · 5 lines
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_