Browse Source

Merge branch 'CR_3702_spl_tool_515_samin.guo' into 'jh7110-devel'

CR3702: spl_tool: Increase spl buffer size

See merge request sdk/soft_3rdpart!30
andy.hu 1 year ago
parent
commit
679d3bd545
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;