From: Soeren Moch <smoch@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] board: tbs2910: Add u-boot.imx size limit check
Date: Sat, 5 Jan 2019 09:31:17 +0100 [thread overview]
Message-ID: <20190105083118.13491-1-smoch@web.de> (raw)
Check the size of the generated u-boot.imx file. Report an error
if it would be too big and overwrite the u-boot environment.
Signed-off-by: Soeren Moch <smoch@web.de>
---
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: u-boot at lists.denx.de
---
include/configs/tbs2910.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index a60223c623..2d4b9c9bfe 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -122,6 +122,8 @@
#define CONFIG_ENV_OFFSET (384 * 1024)
#define CONFIG_ENV_OVERWRITE
+#define CONFIG_BOARD_SIZE_LIMIT 392192 /* (CONFIG_ENV_OFFSET - 1024) */
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs_mmc1=console=ttymxc0,115200 di0_primary console=tty1\0" \
"bootargs_mmc2=video=mxcfb0:dev=hdmi,1920x1080M at 60 " \
--
2.17.1
next reply other threads:[~2019-01-05 8:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-05 8:31 Soeren Moch [this message]
2019-01-05 8:31 ` [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size Soeren Moch
2019-01-08 10:14 ` Soeren Moch
2019-01-08 10:24 ` Stefano Babic
2019-01-08 11:03 ` Soeren Moch
2019-01-09 16:01 ` Stefano Babic
2019-01-09 22:39 ` Tom Rini
2019-01-10 1:28 ` Soeren Moch
2019-01-10 2:30 ` Tom Rini
2019-01-10 14:03 ` Soeren Moch
2019-01-10 15:06 ` Tom Rini
2019-01-11 13:11 ` Soeren Moch
2019-01-11 14:32 ` Tom Rini
2019-01-10 8:00 ` Stefano Babic
2019-01-10 8:11 ` Simon Goldschmidt
2019-01-10 15:56 ` Tom Rini
2019-01-10 16:36 ` Simon Goldschmidt
2019-01-10 16:54 ` Tom Rini
2019-01-11 6:43 ` Simon Goldschmidt
2019-01-11 7:22 ` Simon Goldschmidt
2019-01-11 14:44 ` Tom Rini
2019-01-10 14:44 ` Tom Rini
2019-01-10 14:51 ` Stefano Babic
2019-01-10 15:12 ` Tom Rini
2019-01-10 22:46 ` Stefano Babic
2019-01-11 6:27 ` Simon Goldschmidt
2019-01-10 15:53 ` Tom Rini
2019-01-11 13:11 ` Sören Moch
2019-01-10 8:09 ` Joakim Tjernlund
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=20190105083118.13491-1-smoch@web.de \
--to=smoch@web.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