]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board: tbs2910: Add u-boot.imx size limit check
authorSoeren Moch <smoch@web.de>
Sat, 5 Jan 2019 08:31:17 +0000 (09:31 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jan 2019 15:55:42 +0000 (16:55 +0100)
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>
include/configs/tbs2910.h

index a60223c62354a28769ebaa9edbd72119ea0f5d3c..2d4b9c9bfe8a56ad27e8e9ee0e771f55315d6d9f 100644 (file)
 #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 " \