[U-Boot] Redundant Env

Sridhar Addagada sridhar_a at yahoo.com
Tue Aug 14 20:32:28 CEST 2012


opps! defined DEVICE2_OFFSET as

#define DEVICE2_OFFSET    DEVICE1_OFFSET+ENV1_SIZE


Thanks
S


________________________________
 From: Sridhar Addagada <sridhar_a at yahoo.com>
To: "u-boot at lists.denx.de" <u-boot at 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


More information about the U-Boot mailing list