All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] board: tbs2910: Add u-boot.imx size limit check
@ 2019-01-05  8:31 Soeren Moch
  2019-01-05  8:31 ` [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size Soeren Moch
  0 siblings, 1 reply; 29+ messages in thread
From: Soeren Moch @ 2019-01-05  8:31 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2019-01-11 14:44 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-05  8:31 [U-Boot] [PATCH 1/2] board: tbs2910: Add u-boot.imx size limit check Soeren Moch
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.