From 81ce3a79ff0d828f8eafc1395851ae535dd151d4 Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Sun, 10 Mar 2013 14:11:10 +0100 Subject: [PATCH] mkbootimg: support 8192/16384 pagesizes By now these sizes are very common, so make sure we support them. Change-Id: Ib1963fbabc4ec0b4623f2045a3cbeedffbad7ee8 Signed-off-by: Ithamar R. Adema --- mkbootimg/mkbootimg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mkbootimg/mkbootimg.c b/mkbootimg/mkbootimg.c index 2c32ce35b..34a879b5a 100644 --- a/mkbootimg/mkbootimg.c +++ b/mkbootimg/mkbootimg.c @@ -72,7 +72,7 @@ int usage(void) -static unsigned char padding[4096] = { 0, }; +static unsigned char padding[16384] = { 0, }; int write_padding(int fd, unsigned pagesize, unsigned itemsize) { @@ -152,7 +152,8 @@ int main(int argc, char **argv) board = val; } else if(!strcmp(arg,"--pagesize")) { pagesize = strtoul(val, 0, 10); - if ((pagesize != 2048) && (pagesize != 4096)) { + if ((pagesize != 2048) && (pagesize != 4096) + && (pagesize != 8192) && (pagesize != 16384)) { fprintf(stderr,"error: unsupported page size %d\n", pagesize); return -1; }