* [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug
@ 2018-06-04 7:51 Chris Packham
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Chris Packham @ 2018-06-04 7:51 UTC (permalink / raw)
To: u-boot
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>
---
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(+)
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index 23dd5ceb7cb9..dc6375841ed8 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
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug
2018-06-04 7:51 [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Chris Packham
@ 2018-06-04 7:51 ` Chris Packham
2018-06-04 8:06 ` Stefan Roese
2018-06-05 9:27 ` Stefan Roese
2018-06-04 8:05 ` [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Stefan Roese
2018-06-05 9:26 ` Stefan Roese
2 siblings, 2 replies; 6+ messages in thread
From: Chris Packham @ 2018-06-04 7:51 UTC (permalink / raw)
To: u-boot
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>
---
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug
2018-06-04 7:51 [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Chris Packham
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
@ 2018-06-04 8:05 ` Stefan Roese
2018-06-05 9:26 ` Stefan Roese
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2018-06-04 8:05 UTC (permalink / raw)
To: u-boot
On 04.06.2018 09:51, Chris Packham wrote:
> 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>
> ---
> 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(+)
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
@ 2018-06-04 8:06 ` Stefan Roese
2018-06-05 9:27 ` Stefan Roese
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2018-06-04 8:06 UTC (permalink / raw)
To: u-boot
On 04.06.2018 09:51, Chris Packham wrote:
> 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>
> ---
>
> include/configs/guruplug.h | 5 +++++
> 1 file changed, 5 insertions(+)
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug
2018-06-04 7:51 [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Chris Packham
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
2018-06-04 8:05 ` [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Stefan Roese
@ 2018-06-05 9:26 ` Stefan Roese
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2018-06-05 9:26 UTC (permalink / raw)
To: u-boot
On 04.06.2018 09:51, Chris Packham wrote:
> 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>
Applied to u-boot-marvell/master.
Thanks,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
2018-06-04 8:06 ` Stefan Roese
@ 2018-06-05 9:27 ` Stefan Roese
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2018-06-05 9:27 UTC (permalink / raw)
To: u-boot
On 04.06.2018 09:51, Chris Packham wrote:
> 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>
Applied to u-boot-marvell/master.
Thanks,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-05 9:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-04 7:51 [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Chris Packham
2018-06-04 7:51 ` [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug Chris Packham
2018-06-04 8:06 ` Stefan Roese
2018-06-05 9:27 ` Stefan Roese
2018-06-04 8:05 ` [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug Stefan Roese
2018-06-05 9:26 ` Stefan Roese
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.