ARM: kirkwood: Enforce size limit for sheevaplug
PATCH 1/2 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.
---
This will actually result in a build failure. Which is what we want, at least until https://lists.denx.de/pipermail/u-boot/2018-June/330467.html
is merged.
include/configs/sheevaplug.h | 5 +++++ 1 file changed, 5 insertions(+)
include/configs/sheevaplug.h +5 -0
@@ -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
Signature · 1 line
2.17.0
PATCH 2/2 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.
---
include/configs/guruplug.h | 5 +++++ 1 file changed, 5 insertions(+)
include/configs/guruplug.h +5 -0
@@ -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
Signature · 1 line
2.17.0
PATCH 2/2 ARM: kirkwood: Enforce size limit for guruplug
Quoted 8 lines · Chris Packham
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 <[email protected]>---
include/configs/guruplug.h | 5 +++++ 1 file changed, 5 insertions(+)
Thanks,
Stefan
PATCH 2/2 ARM: kirkwood: Enforce size limit for guruplug
In reply to Chris PackhamQuoted 4 lines · Chris Packham
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 <[email protected]>
Applied to u-boot-marvell/master.
Thanks,
Stefan
PATCH 1/2 ARM: kirkwood: Enforce size limit for sheevaplug
In reply to Chris PackhamQuoted 11 lines · Chris Packham
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 <[email protected]>---
This will actually result in a build failure. Which is what we want, at least until https://lists.denx.de/pipermail/u-boot/2018-June/330467.html
is merged.include/configs/sheevaplug.h | 5 +++++ 1 file changed, 5 insertions(+)
Thanks,
Stefan
PATCH 1/2 ARM: kirkwood: Enforce size limit for sheevaplug
In reply to Chris PackhamQuoted 4 lines · Chris Packham
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 <[email protected]>
Applied to u-boot-marvell/master.
Thanks,
Stefan