From: Marco <firefox82@alice.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] CFG_ENV_SECT_SIZE doubt
Date: Sat, 15 Nov 2008 17:32:55 +0100 [thread overview]
Message-ID: <491EF9B7.7030104@alice.it> (raw)
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
reply other threads:[~2008-11-15 16:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=491EF9B7.7030104@alice.it \
--to=firefox82@alice.it \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox