[PATCH] arm: mvebu: turris_omnia: Add CONFIG_BOARD_SIZE_LIMIT
Marek Behún
kabel at kernel.org
Fri Sep 16 18:02:02 CEST 2022
On Wed, 14 Sep 2022 15:06:46 +0200
Pali Rohár <pali at kernel.org> wrote:
> 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 at kernel.org>
> ---
> configs/turris_omnia_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig
> index ba635feb44b2..6698f2313550 100644
> --- a/configs/turris_omnia_defconfig
> +++ b/configs/turris_omnia_defconfig
> @@ -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
Reviewed-by: Marek Behún <kabel at kernel.org>
More information about the U-Boot
mailing list