From d4899b0f5ddf39de47bd952ca8484a14f03d00fe Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Mon, 4 Jun 2018 19:51:50 +1200 Subject: [PATCH] ARM: kirkwood: Enforce size limit for guruplug The u-boot binary sits in flash immediately before the environment. Don't allow the binary size to grow into the environment space. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Signed-off-by: Stefan Roese --- include/configs/guruplug.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h index 9e7ca60f11..04b7e944a4 100644 --- a/include/configs/guruplug.h +++ b/include/configs/guruplug.h @@ -39,6 +39,11 @@ */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */ +/* + * Environment is right behind U-Boot in flash. Make sure U-Boot + * doesn't grow into the environment area. + */ +#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET /* * Default environment variables -- 2.39.5