kernel: bump 4.9 to 4.9.168
[openwrt/openwrt.git] / scripts / om-fwupgradecfg-gen.sh
index 38e8e3ff3fc538fcdbaec1601b9bfb458b3f5f43..4a7094055ff67aab83e796fc30f9913ae2c30fe2 100755 (executable)
@@ -7,7 +7,7 @@
 #
 
 usage() {
-       echo "Usage: $0 <OM2P|OM5P|OM5PAC|MR600|MR900|MR1750|A60|A42> <out file path> <kernel path> <rootfs path>"
+       echo "Usage: $0 <OM2P|OM5P|OM5PAC|MR600|MR900|MR1750|A60|A42|A62> <out file path> <kernel path> <rootfs path>"
        rm -f $CFG_OUT
        exit 1
 }
@@ -24,7 +24,7 @@ case $CE_TYPE in
                MAX_PART_SIZE=7168
                KERNEL_FLASH_ADDR=0x1c0000
                FLASH_BS=262144
-               MD5_SKIP_BLOCKS=1
+               MD5_SKIP_BLOCKS=4
                SIZE_FACTOR=1
                SIZE_FORMAT="%d"
                ;;
@@ -44,6 +44,14 @@ case $CE_TYPE in
                SIZE_FACTOR=1024
                SIZE_FORMAT="0x%08x"
                ;;
+       A62)
+               MAX_PART_SIZE=15552
+               KERNEL_FLASH_ADDR=0x1a0000
+               FLASH_BS=65536
+               MD5_SKIP_BLOCKS=4
+               SIZE_FACTOR=1024
+               SIZE_FORMAT="0x%08x"
+               ;;
        *)
                echo "Error - unsupported ce type: $CE_TYPE"
                exit 1