mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] openrisc: bump reserved size to 1M
@ 2026-01-14 10:12 Ahmad Fatoum
  0 siblings, 0 replies; only message in thread
From: Ahmad Fatoum @ 2026-01-14 10:12 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The macro used to be 256K back in 2011, and was bumped to 512K in 2014.
Now 11 years later, the image is about to grow beyond it.

As this limit seems to be arbitrary anyway, just double it again to 1M.

If a smaller size is indeed needed, it should be enforced over
BAREBOX_MAX_IMAGE_SIZE instead. For QEMU and testing in CI, 1M is fine
though and we need not bother with keeping generic_defconfig small.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/openrisc/include/asm/config.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/openrisc/include/asm/config.h b/arch/openrisc/include/asm/config.h
index 85d777db8f63..d50d696e24fb 100644
--- a/arch/openrisc/include/asm/config.h
+++ b/arch/openrisc/include/asm/config.h
@@ -2,6 +2,8 @@
 #ifndef _OPENRISC_ASM_CONFIG_H_
 #define _OPENRISC_ASM_CONFIG_H_
 
+#include <linux/sizes.h>
+
 #define CFG_SYS_CLK_FREQ		50000000
 
 #define OPENRISC_TIMER_FREQ		CFG_SYS_CLK_FREQ
@@ -9,7 +11,6 @@
 #define OPENRISC_SOPC_MEMORY_BASE	0x00000000
 #define OPENRISC_SOPC_MEMORY_SIZE	0x02000000
 
-/* We reserve 512K for barebox */
-#define BAREBOX_RESERVED_SIZE		0x80000
+#define BAREBOX_RESERVED_SIZE		SZ_1M
 
 #endif
-- 
2.47.3




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-14 10:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-14 10:12 [PATCH] openrisc: bump reserved size to 1M Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox