ramips: add support for actiontec web7200
[openwrt/staging/nbd.git] / target / linux / ramips / mt7621 / base-files / lib / upgrade / platform.sh
index 85e97b4f839a0521315cc7ed438172a7c621ed72..d223ae92e5a4f1833bd71914a7f9967594a065a1 100755 (executable)
@@ -33,6 +33,11 @@ platform_do_upgrade() {
                        fw_setenv --lock / bootImage 0 || exit 1
                fi
                ;;
+       iptime,ax2004m)
+               if [ "$(fw_printenv -n boot_from 2>/dev/null)" != "firmware1" ]; then
+                       fw_setenv boot_from firmware1 || exit 1
+               fi
+               ;;
        mikrotik,ltap-2hnd|\
        mikrotik,routerboard-750gr3|\
        mikrotik,routerboard-760igs|\
@@ -50,6 +55,7 @@ platform_do_upgrade() {
        esac
 
        case "$board" in
+       actiontec,web7200|\
        ampedwireless,ally-00x19k|\
        ampedwireless,ally-r1900k|\
        arcadyan,we420223-99|\
@@ -63,6 +69,7 @@ platform_do_upgrade() {
        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|\
@@ -70,6 +77,7 @@ platform_do_upgrade() {
        dlink,dir-3060-a1|\
        dlink,dir-853-a3|\
        etisalat,s3|\
+       dlink,dir-x1860|\
        h3c,tx1800-plus|\
        h3c,tx1801-plus|\
        h3c,tx1806|\
@@ -103,6 +111,7 @@ platform_do_upgrade() {
        netgear,wax202|\
        netis,wf2881|\
        raisecom,msg1500-x-00|\
+       rostelecom,rt-fe-1a|\
        rostelecom,rt-sf-1|\
        sercomm,na502|\
        sercomm,na502s|\
@@ -117,6 +126,7 @@ platform_do_upgrade() {
        xiaomi,mi-router-cr6608|\
        xiaomi,mi-router-cr6609|\
        xiaomi,redmi-router-ac2100|\
+       z-router,zr-2660|\
        zyxel,nwa50ax|\
        zyxel,nwa55axe)
                nand_do_upgrade "$1"
@@ -129,6 +139,10 @@ platform_do_upgrade() {
                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_set_flag "debugflag" "factory" "0x1fe75" "0,1" "1"
                iodata_mstc_set_flag "bootnum" "persist" "0x4" "1,2" "1"
@@ -145,6 +159,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