[PATCH] imd: Increase expected file size
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 17 02:50:36 PDT 2025
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 at 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
More information about the barebox
mailing list