Hi all, I'm using a flash with the top sectors smaller then the others. The flash has got four 32kb sector and 255 sectors of 128kb. I'd like to use the small sectors to deploy there the environment. I've got a doubt about the configuration, is it possible to have CFG_ENV_SIZE bigger then CFG_ENV_SECT_SIZE? I'd like to have the last sector splitted in two little partition of 64kb, so I think I should set:
#define CFG_ENV_IS_IN_FLASH #define CFG_ENV_SECT_SIZE (0x00008000) /* 32kb */ #define CFG_ENV_SIZE (0x00010000) /* 64kb */ #define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_FLASH_SIZE - (CFG_ENV_SECT_SIZE*4)) #define CFG_ENV_ADDR_REDUND (CFG_FLASH_BASE + CFG_FLASH_SIZE - (CFG_ENV_SECT_SIZE*2)) #define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE) is it right? I'd like to use 64kb+64kb instead of 32kb+32kb for the environment so as not to waste 64kb of flash. Thanks. Regards, Marco ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users