ramips: add support for Rostelecom RT-FE-1A
[openwrt/staging/wigyori.git] / target / linux / ramips / mt7621 / base-files / lib / upgrade / platform.sh
index 07c6b80d7b07c2fe7b20f7cafa9b12672a18cb80..40a2fb61dbb9c9eddc6c7b7a02119834643881ed 100755 (executable)
@@ -56,10 +56,14 @@ platform_do_upgrade() {
        asus,rt-ac65p|\
        asus,rt-ac85p|\
        asus,rt-ax53u|\
+       asus,rt-ax54|\
        beeline,smartbox-flash|\
        beeline,smartbox-giga|\
+       beeline,smartbox-pro|\
        beeline,smartbox-turbo|\
+       beeline,smartbox-turbo-plus|\
        belkin,rt1800|\
+       dlink,covr-x1860-a1|\
        dlink,dap-x1860-a1|\
        dlink,dir-1960-a1|\
        dlink,dir-2640-a1|\
@@ -85,6 +89,7 @@ platform_do_upgrade() {
        linksys,ea8100-v1|\
        linksys,ea8100-v2|\
        mts,wg430223|\
+       netgear,eax12|\
        netgear,r6220|\
        netgear,r6260|\
        netgear,r6350|\
@@ -99,11 +104,13 @@ platform_do_upgrade() {
        netgear,wax202|\
        netis,wf2881|\
        raisecom,msg1500-x-00|\
+       rostelecom,rt-fe-1a|\
        rostelecom,rt-sf-1|\
        sercomm,na502|\
        sercomm,na502s|\
        sim,simax1800t|\
        tplink,ec330-g5u-v1|\
+       wifire,s1500-nbn|\
        xiaomi,mi-router-3g|\
        xiaomi,mi-router-3-pro|\
        xiaomi,mi-router-4|\
@@ -120,11 +127,17 @@ platform_do_upgrade() {
        iodata,wn-ax2033gr|\
        iodata,wn-dx1167r|\
        iodata,wn-dx2033gr)
-               iodata_mstc_upgrade_prepare "0xfe75"
+               iodata_mstc_set_flag "debugflag" "factory" "0xfe75" "0,1" "1"
+               iodata_mstc_set_flag "bootnum" "persist" "0x4" "1,2" "1"
+               nand_do_upgrade "$1"
+               ;;
+       iodata,wn-deax1800gr)
+               iodata_mstc_set_flag "bootnum" "working" "0x4" "0,1" "0"
                nand_do_upgrade "$1"
                ;;
        iodata,wn-dx1200gr)
-               iodata_mstc_upgrade_prepare "0x1fe75"
+               iodata_mstc_set_flag "debugflag" "factory" "0x1fe75" "0,1" "1"
+               iodata_mstc_set_flag "bootnum" "persist" "0x4" "1,2" "1"
                nand_do_upgrade "$1"
                ;;
        tplink,er605-v2)
@@ -138,6 +151,7 @@ platform_do_upgrade() {
                platform_upgrade_ubnt_erx "$1"
                ;;
        zyxel,lte3301-plus|\
+       zyxel,lte5398-m904|\
        zyxel,nr7101)
                fw_setenv CheckBypass 0
                fw_setenv Image1Stable 0
@@ -154,6 +168,10 @@ platform_do_upgrade() {
                CI_KERNPART="Kernel"
                nand_do_upgrade "$1"
                ;;
+       zyxel,wsm20)
+               zyxel_mstc_upgrade_prepare
+               nand_do_upgrade "$1"
+               ;;
        *)
                default_do_upgrade "$1"
                ;;