summaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/image/gen_image.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-27 21:22:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-27 21:22:17 +0000
commit2daa34da02d288f8f322ce2fb39bf872e2cce92f (patch)
tree6bca9f25863293f0f0ddf05aac12095411970f20 /target/linux/rb532/image/gen_image.sh
parentc2d1ad30e8396632dc2048557be1fb37792b3832 (diff)
downloadmaster-31e0f0ae-2daa34da02d288f8f322ce2fb39bf872e2cce92f.tar.gz
master-31e0f0ae-2daa34da02d288f8f322ce2fb39bf872e2cce92f.tar.bz2
master-31e0f0ae-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-xtarget/linux/rb532/image/gen_image.sh3
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))"