summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Moch <smoch@web.de>2019-01-05 11:31:17 +0300
committerStefano Babic <sbabic@denx.de>2019-01-09 18:55:42 +0300
commitb82c7c32efcba76164c966733002c7c8528b005d (patch)
tree1b75857e0c3442d253d020b94d9ee63ac593548c
parente3bc7c668f424848c18acb664ef8b077b553697b (diff)
downloadu-boot-b82c7c32efcba76164c966733002c7c8528b005d.tar.xz
board: tbs2910: Add u-boot.imx size limit check
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>
-rw-r--r--include/configs/tbs2910.h2
1 files changed, 2 insertions, 0 deletions
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@60 " \