From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/12] da850: add NOR boot mode support
Date: Wed, 10 Aug 2011 12:50:51 +0200 [thread overview]
Message-ID: <m2pqkdpmk4.fsf@ohwell.denx.de> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024DE31ED9@dbde02.ent.ti.com> (Nagabhushana Netagunte's message of "Tue, 9 Aug 2011 19:33:30 +0530")
Hi Nag,
[...]
>> > +#define CONFIG_SYS_FLASH_SECT_SZ (128 << 10) /* 128KB */
>> > +#define CONFIG_ENV_OFFSET (CONFIG_SYS_FLASH_SECT_SZ * 3)
>> > +#define CONFIG_ENV_SIZE (128 << 10)
>>
>> Are you absolutely sure that you need 128 KiB of environment data?
>> Keep in mind that such a big environment will _considerably_ slow
>> down booting - and in all practical situations I have seen so far
>> the actual environment size was in the order of a few KiB only - I
>> don;t even remember any board with more than 10 KiB.
>>
>
> I agree with you that 128 KiB is huge. It is 128KiB because sector size for
> NOR flash is 128KiB. So, decision was to reserve one complete sector for ENV
> Data.
It's pretty common to have such large sectors. So using one sector for
the environment is of course pretty common. From the sector size
however we use only a fraction for the _actual_ data, as the environment
functions have a runtime dependency on the size of the environment
_data_ (think about calculating the CRC). So if you simply reduce the
environment (data) size, you will get faster runtime practically for
free. So keep the flash layout but reduce the environment size.
Cheers
Detlev
--
The GNU GPL makes sense in terms of its purpose: freedom and social
solidarity. Trying to understand it in terms of the goals and values of
open source is like trying understand a CD drive's retractable drawer as
a cupholder. You can use it for that, but that is not what it was
designed for. -- Richard Stallman
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2011-08-10 10:50 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-02 15:43 [U-Boot] [PATCH 00/12] feature additions and fixes for da850 nagabhushana.netagunte at ti.com
2011-08-02 15:43 ` [U-Boot] [PATCH 01/12] da850: indicate cache usage disable in config file nagabhushana.netagunte at ti.com
2011-08-02 16:06 ` Wolfgang Denk
2011-08-02 19:37 ` Laurence Withers
2011-08-09 13:44 ` Netagunte, Nagabhushana
2011-08-09 13:54 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 02/12] da8xx: add support for multiple PLL controllers nagabhushana.netagunte at ti.com
2011-08-02 15:43 ` [U-Boot] [PATCH 03/12] da850: add NOR boot mode support nagabhushana.netagunte at ti.com
2011-08-02 16:12 ` Wolfgang Denk
2011-08-09 14:03 ` Netagunte, Nagabhushana
2011-08-10 10:50 ` Detlev Zundel [this message]
2011-08-17 12:43 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 04/12] da850: modify the U-Boot prompt string nagabhushana.netagunte at ti.com
2011-08-02 15:43 ` [U-Boot] [PATCH 05/12] da850: add support to read mac address from spi flash nagabhushana.netagunte at ti.com
2011-08-02 16:20 ` Wolfgang Denk
2011-08-09 14:05 ` Netagunte, Nagabhushana
2011-08-02 16:23 ` Wolfgang Denk
2011-08-09 14:08 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 06/12] da850: add support to wake up DSP during board init nagabhushana.netagunte at ti.com
2011-08-02 16:25 ` Wolfgang Denk
2011-08-09 14:10 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 07/12] da850: add support for Spectrum Digital AM18xx EVM nagabhushana.netagunte at ti.com
2011-08-02 15:43 ` [U-Boot] [PATCH 08/12] da850: pass board revision info to kernel nagabhushana.netagunte at ti.com
2011-08-02 16:27 ` Wolfgang Denk
2011-08-09 13:52 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 09/12] da850: read MAC address from I2C EEPROM on AM18xx EVM nagabhushana.netagunte at ti.com
2011-08-02 16:30 ` Wolfgang Denk
2011-08-09 13:47 ` Netagunte, Nagabhushana
2011-09-15 10:50 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 10/12] da850: fix the channel number for EMAC teardown init nagabhushana.netagunte at ti.com
2011-08-02 15:43 ` [U-Boot] [PATCH 11/12] da850: modifications for Logic PD Rev.3 AM18xx EVM nagabhushana.netagunte at ti.com
2011-08-02 16:32 ` Wolfgang Denk
2011-08-09 13:45 ` Netagunte, Nagabhushana
2011-08-02 15:43 ` [U-Boot] [PATCH 12/12] da850: print DDR frequency from u-boot nagabhushana.netagunte at ti.com
2011-08-02 16:33 ` Wolfgang Denk
2011-08-09 13:40 ` Netagunte, Nagabhushana
2011-08-10 10:47 ` Detlev Zundel
2011-08-17 12:47 ` Netagunte, Nagabhushana
2011-08-17 15:37 ` Stefano Babic
2011-08-17 15:48 ` Detlev Zundel
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=m2pqkdpmk4.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--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