diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 21:22:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 21:22:17 +0000 |
commit | 2daa34da02d288f8f322ce2fb39bf872e2cce92f (patch) | |
tree | 6bca9f25863293f0f0ddf05aac12095411970f20 /target/linux/rb532/image/gen_image.sh | |
parent | c2d1ad30e8396632dc2048557be1fb37792b3832 (diff) | |
download | upstream-2daa34da02d288f8f322ce2fb39bf872e2cce92f.tar.gz upstream-2daa34da02d288f8f322ce2fb39bf872e2cce92f.tar.bz2 upstream-2daa34da02d288f8f322ce2fb39bf872e2cce92f.zip |
rb532: align partitions to 128KB
because block2mtd wants "erasesize must be a divisor of device size" since 3.15
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 45072
Diffstat (limited to 'target/linux/rb532/image/gen_image.sh')
-rwxr-xr-x | target/linux/rb532/image/gen_image.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/rb532/image/gen_image.sh b/target/linux/rb532/image/gen_image.sh index 8875834b9e..a2d6f4012a 100755 --- a/target/linux/rb532/image/gen_image.sh +++ b/target/linux/rb532/image/gen_image.sh @@ -4,11 +4,12 @@ KERNELSIZE="$2" KERNELIMAGE="$3" ROOTFSSIZE="$4" ROOTFSIMAGE="$5" +ALIGN="$6" rm -f "$OUTPUT" # create partition table -set `ptgen -o "$OUTPUT" -h 16 -s 32 -t 0x27 -p ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m` +set `ptgen -o "$OUTPUT" -h 16 -s 32 -l ${ALIGN} -t 0x27 -p ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m` KERNELOFFSET="$(($1 / 512))" ROOTFSOFFSET="$(($3 / 512))" |