[U-Boot] [PATCH 1/1] mx51evk: savenv or env save command does not work
Wolfgang Denk
wd at denx.de
Wed Nov 17 08:03:22 CET 2010
Dear Jason Liu,
In message <AANLkTikB6NYTdz=4cMr_RDuhVXQjTa9zUKaed+vW4C+s at mail.gmail.com> you wrote:
>
> I set it according to the following reason,
>
> - Keep the same setting as the original when you commit the mx51
> support patch. Why you select 128KB? :)
Copying settings without reflecting if they make sense for your own
system is not really a good idea.
> - As I looked through other platform such as OMAP4 for MMC ENV
> setting, it's also set for 128KB
Ditto. Please keep in mind that the environment is CRC protected;
that means the larger the environment area, the more time will be
needed for the CRC calculation when the system boots. And quick
booting is definitely a topic these days, so please reconsider.
> - Leave much room for the user to store customer env.
Come on. Do you know how much text can be saved in 128 KiB? I have
seen some really kinky environment settings before, where a "printenv"
would scroll trough thousands of lines (well, hundrets at least) so it
was next to impossible to find anything, and they needed something
around 10 KiB or so. 16 KiB is more than enough for 99.9% of the
users.
> > Can we save some time by saving or reading the environment reducing its
> > size ? Or do you plan to save something more in this area ?
>
> It's always the trade-off, set to 512B or less will save some time
> according to 128KB, but it will face much risk to change the code
> frequently to meet the increasing env size requirement.
> what's the size do you think is suitable?
16 KiB.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Consistency requires you to be as ignorant today as you were a year
ago." - Bernard Berenson
More information about the U-Boot
mailing list