ramips: split Phicomm PSG1218 and PSG1218K2C
[openwrt/staging/noltari.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 2151cf945c8bbee8af0c7175d148e388ef70484e..827109b59efa2906ed041859d6fd77e5d288771a 100755 (executable)
@@ -35,6 +35,7 @@ platform_check_image() {
        cf-wr800n|\
        cs-qr10|\
        d105|\
+       d240|\
        dap-1350|\
        db-wrt01|\
        dcs-930|\
@@ -43,7 +44,6 @@ platform_check_image() {
        dir-300-b7|\
        dir-320-b1|\
        dir-600-b1|\
-       dir-600-b2|\
        dir-615-d|\
        dir-615-h1|\
        dir-620-a1|\
@@ -53,7 +53,9 @@ platform_check_image() {
        dwr-512-b|\
        e1700|\
        esr-9753|\
+       ew1200|\
        ex2700|\
+       ex3700|\
        f7c027|\
        firewrt|\
        fonera20n|\
@@ -62,6 +64,7 @@ platform_check_image() {
        gl-mt300n|\
        gl-mt750|\
        hc5*61|\
+       hc5661a|\
        hg255d|\
        hlk-rm04|\
        hpm|\
@@ -103,11 +106,14 @@ platform_check_image() {
        newifi-d1|\
        nixcore|\
        nw718|\
+       omega2|\
+       omega2p|\
        oy-0001|\
        pbr-d1|\
        pbr-m1|\
        psg1208|\
        psg1218|\
+       psg1218k2c|\
        psr-680w|\
        px-4885|\
        rb750gr3|\
@@ -134,6 +140,7 @@ platform_check_image() {
        ur-336un|\
        v22rw-2x2|\
        vocore|\
+       vocore2|\
        vr500|\
        w150m|\
        w2914nsv2|\
@@ -155,6 +162,7 @@ platform_check_image() {
        wli-tx4-ag300n|\
        wlr-6000|\
        wmr-300|\
+       wn3000rpv3|\
        wnce2001|\
        wndr3700v5|\
        wr512-3gn|\
@@ -174,6 +182,7 @@ platform_check_image() {
        zbt-ape522ii|\
        zbt-cpe102|\
        zbt-wa05|\
+       zbt-we2026|\
        zbt-we826|\
        zbt-wg2626|\
        zbt-wg3526|\
@@ -204,7 +213,8 @@ platform_check_image() {
                return 0
                ;;
        c20i|\
-       c50)
+       c50|\
+       mr200)
                [ "$magic" != "03000000" ] && {
                        echo "Invalid image type."
                        return 1
@@ -222,6 +232,16 @@ platform_check_image() {
                }
                return 0
                ;;
+       hc5962|\
+       r6220)
+               # these boards use metadata images
+               return 0
+               ;;
+       ubnt-erx)
+               nand_do_platform_check "$board" "$1"
+               return $?;
+               ;;
+       wcr-1166ds|\
        wsr-1166)
                [ "$magic" != "48445230" ] && {
                        echo "Invalid image type."
@@ -229,10 +249,6 @@ platform_check_image() {
                }
                return 0
                ;;
-       ubnt-erx)
-               nand_do_platform_check "$board" "$1"
-               return $?;
-               ;;
        esac
 
        echo "Sysupgrade is not yet supported on $board."
@@ -253,6 +269,8 @@ platform_pre_upgrade() {
        local board=$(ramips_board_name)
 
        case "$board" in
+       hc5962|\
+       r6220|\
        ubnt-erx)
                nand_do_upgrade "$ARGV"
                ;;