X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Frb532%2Fimage%2Fgen_image.sh;fp=target%2Flinux%2Frb532%2Fimage%2Fgen_image.sh;h=a2d6f4012a1ea3f208e6f35babba6277ed64d436;hb=f21b4f4d83312b277e7f1ad4b49f61d557c68dc6;hp=8875834b9e7458eeb850bcad79d8a35d8602ef1c;hpb=5f4b4ac23220e33375e2bd6caa8b6f36fc84c051;p=openwrt%2Fsvn-archive%2Farchive.git 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))"