mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] imd: Increase expected file size
@ 2025-06-17  9:50 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2025-06-17  9:50 UTC (permalink / raw)
  To: Barebox List

barebox images can become quite big and on AM62lx the barebox image
has a size over 2MiB due to multiple firmware files included to it.
Increase the maximum size of the barebox image to be read to 4MiB.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/imd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/imd.c b/common/imd.c
index 1100e6878a..6af5bac576 100644
--- a/common/imd.c
+++ b/common/imd.c
@@ -25,7 +25,7 @@ static inline void read_file_2_free(void *buf)
 static int imd_read_file(const char *filename, size_t *size, void **outbuf,
 			 bool allow_mmap)
 {
-	return read_file_2(filename, size, outbuf, 0x100000);
+	return read_file_2(filename, size, outbuf, 0x400000);
 }
 #endif
 
-- 
2.39.5




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

only message in thread, other threads:[~2025-06-17 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-17  9:50 [PATCH] imd: Increase expected file size Sascha Hauer

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