]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: kirkwood: Enforce size limit for sheevaplug
authorChris Packham <judge.packham@gmail.com>
Mon, 4 Jun 2018 07:51:49 +0000 (19:51 +1200)
committerStefan Roese <sr@denx.de>
Tue, 5 Jun 2018 05:29:09 +0000 (07:29 +0200)
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 <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/sheevaplug.h

index 23dd5ceb7cb97600e61e752a865a3d853d1353dc..dc6375841ed882f51ed1f0312e77bfaeef7730d4 100644 (file)
 #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