[U-Boot] 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 sridhar_a@yahoo.com To: "u-boot@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

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
participants (2)
-
Sridhar Addagada
-
Wolfgang Denk