Browse Source

spl_tool: Increase spl buffer size

After uboot joins the vout module, the file uboot-spl.bin.normal.out
increases. So, increase the buffer size.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Samin Guo 1 year ago
parent
commit
8c5acc4e5e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      spl_tool/spl_tool.c

+ 2 - 2
spl_tool/spl_tool.c

@@ -44,7 +44,7 @@ static struct ubootsplhdr ubsplhdr;
 static struct ubootsplhdr imghdr;
 static struct hdr_conf_t g_hdr_conf;
 
-static char ubootspl[131072-sizeof(struct ubootsplhdr)+1];
+static char ubootspl[181072-sizeof(struct ubootsplhdr)+1];
 static char outpath[PATH_MAX];
 
 #define DEFVERSID 0x01010101
@@ -181,7 +181,7 @@ int spl_creat_hdr(struct hdr_conf_t *conf)
 	sz = (size_t)read(fd, ubootspl, sizeof(ubootspl));
 	if (sz == NOSIZE) xerror(errno, conf->name);
 	if (sz >= (sizeof(ubootspl)))
-		xerror(0, "File too large! Please rebuild your SPL with -Os. Maximum allowed size is 130048 bytes.");
+		xerror(0, "File too large! Please rebuild your SPL with -Os. Maximum allowed size is 180048 bytes.");
 	v = htole32((uint32_t)sz);
 	ubsplhdr.fsiz = v;