mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] openrisc: bump reserved size to 1M
Date: Wed, 14 Jan 2026 11:12:20 +0100	[thread overview]
Message-ID: <20260114101245.109763-1-a.fatoum@pengutronix.de> (raw)

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




                 reply	other threads:[~2026-01-14 10:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260114101245.109763-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox