[U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug
Chris Packham
judge.packham at gmail.com
Mon Jun 4 07:51:50 UTC 2018
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 at gmail.com>
---
include/configs/guruplug.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h
index 9e7ca60f112f..04b7e944a461 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.17.0
More information about the U-Boot
mailing list