* [U-Boot] CFG_ENV_SECT_SIZE doubt
@ 2008-11-15 16:32 Marco
0 siblings, 0 replies; only message in thread
From: Marco @ 2008-11-15 16:32 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-15 16:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 16:32 [U-Boot] CFG_ENV_SECT_SIZE doubt Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox