ramips: add support for HiWiFi HC5962
[openwrt/staging/yousong.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index c097cfa218052b1898f99fba4f659423d1808b3b..e5e5eb04870bb969f5119dd9466bb37be0589183 100755 (executable)
@@ -35,6 +35,7 @@ platform_check_image() {
        cf-wr800n|\
        cs-qr10|\
        d105|\
+       d240|\
        dap-1350|\
        db-wrt01|\
        dcs-930|\
@@ -61,6 +62,7 @@ platform_check_image() {
        gl-mt300n|\
        gl-mt750|\
        hc5*61|\
+       hc5661a|\
        hg255d|\
        hlk-rm04|\
        hpm|\
@@ -102,6 +104,8 @@ platform_check_image() {
        newifi-d1|\
        nixcore|\
        nw718|\
+       omega2|\
+       omega2p|\
        oy-0001|\
        pbr-d1|\
        pbr-m1|\
@@ -133,6 +137,7 @@ platform_check_image() {
        ur-336un|\
        v22rw-2x2|\
        vocore|\
+       vocore2|\
        vr500|\
        w150m|\
        w2914nsv2|\
@@ -154,6 +159,7 @@ platform_check_image() {
        wli-tx4-ag300n|\
        wlr-6000|\
        wmr-300|\
+       wn3000rpv3|\
        wnce2001|\
        wndr3700v5|\
        wr512-3gn|\
@@ -222,6 +228,15 @@ platform_check_image() {
                }
                return 0
                ;;
+       hc5962)
+               # 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 +244,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 +264,7 @@ platform_pre_upgrade() {
        local board=$(ramips_board_name)
 
        case "$board" in
+       hc5962|\
        ubnt-erx)
                nand_do_upgrade "$ARGV"
                ;;