[U-Boot] [RFC/PATCH] Makefile: allow boards to check file size limits

Vaibhav Bedia vaibhav.bedia at gmail.com
Wed Oct 20 06:38:08 CEST 2010


Hi,

The size of other sections like the bss section also need to be accounted
for when doing a size check.

Insufficient space for bss when doing something like a MMC read which
requires large buffers causes system hangs for no apparent reason.

Regards,
Vaibhav

On Wed, Oct 20, 2010 at 2:59 AM, Wolfgang Denk <wd at denx.de> wrote:

> Dear Mike Frysinger,
>
> In message <1287025103-26681-1-git-send-email-vapier at gentoo.org> you
> wrote:
> > Boards often have a reserved size limit on the flash where they're
> stored.
> > Sometimes during upgrades or config changes, those limits are exceeded,
> > but no one notices until they try to upgrade and the limit screws things
> > up.  Either not enough of U-Boot is written to flash (and so the reboot
> > fails), or too much is written (and so things after it get clobbered).
> >
> > So allow boards to declare a size limit (in bytes) and have the build
> > system check it while building.
> >
> > Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> > ---
> >  Makefile |   17 +++++++++++++++++
> >  1 files changed, 17 insertions(+), 0 deletions(-)
>
> Applied, thanks.
>
> 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
> A memorandum is written not to inform the reader, but to protect  the
> writer.                                               -- Dean Acheson
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>



-- 
Regards,
Vaibhav


More information about the U-Boot mailing list