From: Chris Packham Date: Mon, 4 Jun 2018 07:51:49 +0000 (+1200) Subject: ARM: kirkwood: Enforce size limit for sheevaplug X-Git-Tag: v2018.07-rc2~99^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84035fccbe54af1d0513e6288e08a45885ee872c;p=u-boot ARM: kirkwood: Enforce size limit for sheevaplug 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 --- diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h index 23dd5ceb7c..dc6375841e 100644 --- a/include/configs/sheevaplug.h +++ b/include/configs/sheevaplug.h @@ -44,6 +44,11 @@ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_ADDR 0x80000 #define CONFIG_ENV_OFFSET 0x80000 /* 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