summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIthamar R. Adema2013-03-10 08:11:10 -0500
committerIthamar R. Adema2013-03-10 08:11:10 -0500
commit81ce3a79ff0d828f8eafc1395851ae535dd151d4 (patch)
tree73de3268d123cfd812a8d363da92c9b1a0d84606 /mkbootimg
parentfd5c6b9f137940ce2d762c85dfdb4d2f1104f2bd (diff)
downloadplatform-system-core-81ce3a79ff0d828f8eafc1395851ae535dd151d4.tar.gz
platform-system-core-81ce3a79ff0d828f8eafc1395851ae535dd151d4.tar.xz
platform-system-core-81ce3a79ff0d828f8eafc1395851ae535dd151d4.zip
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 <ithamar@upgrade-android.com>
Diffstat (limited to 'mkbootimg')
-rw-r--r--mkbootimg/mkbootimg.c5
1 files 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)
72 72
73 73
74 74
75static unsigned char padding[4096] = { 0, }; 75static unsigned char padding[16384] = { 0, };
76 76
77int write_padding(int fd, unsigned pagesize, unsigned itemsize) 77int write_padding(int fd, unsigned pagesize, unsigned itemsize)
78{ 78{
@@ -152,7 +152,8 @@ int main(int argc, char **argv)
152 board = val; 152 board = val;
153 } else if(!strcmp(arg,"--pagesize")) { 153 } else if(!strcmp(arg,"--pagesize")) {
154 pagesize = strtoul(val, 0, 10); 154 pagesize = strtoul(val, 0, 10);
155 if ((pagesize != 2048) && (pagesize != 4096)) { 155 if ((pagesize != 2048) && (pagesize != 4096)
156 && (pagesize != 8192) && (pagesize != 16384)) {
156 fprintf(stderr,"error: unsupported page size %d\n", pagesize); 157 fprintf(stderr,"error: unsupported page size %d\n", pagesize);
157 return -1; 158 return -1;
158 } 159 }