]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: Add CONFIG_BOARD_SIZE_LIMIT
authorPali Rohár <pali@kernel.org>
Wed, 14 Sep 2022 13:06:46 +0000 (15:06 +0200)
committerStefan Roese <sr@denx.de>
Tue, 20 Sep 2022 04:39:43 +0000 (06:39 +0200)
Maximal size of u-boot kwb image binary is $CONFIG_ENV_OFFSET which is
0xF0000 = 983040 bytes. So add missing CONFIG_BOARD_SIZE_LIMIT definition
to ensure that u-boot binary does not overflow to the u-boot env storage.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
configs/turris_omnia_defconfig

index ba635feb44b2415341c7d79d2f3db1862036934a..6698f231355014eac32897f1568747d5f808bf7f 100644 (file)
@@ -28,6 +28,8 @@ CONFIG_SYS_MEMTEST_END=0x00ffffff
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
+CONFIG_HAS_BOARD_SIZE_LIMIT=y
+CONFIG_BOARD_SIZE_LIMIT=983040
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y