public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: sbabic at denx.de <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] mx51evk: Fix U-Boot corruption after saving the environment
Date: Sat, 28 Dec 2019 11:48:18 +0100 (CET)	[thread overview]
Message-ID: <20191228104818.46E47816BA@phobos.denx.de> (raw)
In-Reply-To: <20191219165239.4279-1-festevam@gmail.com>

> U-Boot binary has grown in such a way that it goes beyond the reserved
> area for the environment variables.
> Running "saveenv" followed by a "reset" causes U-Boot to hang because
> of this overlap.
> Fix this problem by increasing the CONFIG_ENV_OFFSET size.
> Also, in order to prevent this same problem to happen in the future,
> use CONFIG_BOARD_SIZE_LIMIT, which will detect the overlap in build-time.
> CONFIG_BOARD_SIZE_LIMIT does not accept math expressions, so declare
> CONFIG_ENV_OFFSET with its direct value instead.
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      reply	other threads:[~2019-12-28 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19 16:52 [PATCH] mx51evk: Fix U-Boot corruption after saving the environment Fabio Estevam
2019-12-28 10:48 ` sbabic at denx.de [this message]

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=20191228104818.46E47816BA@phobos.denx.de \
    --to=sbabic@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