mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
e3bc7c668f
commit
b82c7c32ef
1 changed files with 2 additions and 0 deletions
|
@ -122,6 +122,8 @@
|
||||||
#define CONFIG_ENV_OFFSET (384 * 1024)
|
#define CONFIG_ENV_OFFSET (384 * 1024)
|
||||||
#define CONFIG_ENV_OVERWRITE
|
#define CONFIG_ENV_OVERWRITE
|
||||||
|
|
||||||
|
#define CONFIG_BOARD_SIZE_LIMIT 392192 /* (CONFIG_ENV_OFFSET - 1024) */
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
"bootargs_mmc1=console=ttymxc0,115200 di0_primary console=tty1\0" \
|
"bootargs_mmc1=console=ttymxc0,115200 di0_primary console=tty1\0" \
|
||||||
"bootargs_mmc2=video=mxcfb0:dev=hdmi,1920x1080M@60 " \
|
"bootargs_mmc2=video=mxcfb0:dev=hdmi,1920x1080M@60 " \
|
||||||
|
|
Loading…
Reference in a new issue