Commit 84035fccbe54af1d0513e6288e08a45885ee872c
Committed by
Stefan Roese
1 parent
3789b3dd15
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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 <judge.packham@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
include/configs/sheevaplug.h
... | ... | @@ -44,6 +44,11 @@ |
44 | 44 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
45 | 45 | #define CONFIG_ENV_ADDR 0x80000 |
46 | 46 | #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ |
47 | +/* | |
48 | + * Environment is right behind U-Boot in flash. Make sure U-Boot | |
49 | + * doesn't grow into the environment area. | |
50 | + */ | |
51 | +#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET | |
47 | 52 | |
48 | 53 | /* |
49 | 54 | * Default environment variables |