X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=45e141de02be257807007810f7f31f9ebafceb93;hb=14951e8f8e09ba6e2cff140769189a66155a5345;hp=e0a260216d510e7954f2b4e4afe9af374d7d4443;hpb=f12a32630ff52b5e13397f64e9fb31708e97fb60;p=openwrt%2Fstaging%2Fblogic.git diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index e0a260216d51..45e141de02be 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -16,6 +16,7 @@ platform_check_image() { a5-v11|\ ai-br100|\ air3gii|\ + alfa-network,ac1200rm|\ all0239-3g|\ all0256n-4M|\ all0256n-8M|\ @@ -27,9 +28,9 @@ platform_check_image() { awapn2403|\ awm002-evb-4M|\ awm002-evb-8M|\ - awm003-evb|\ bc2|\ broadway|\ + c108|\ carambola|\ cf-wr800n|\ cs-qr10|\ @@ -59,6 +60,7 @@ platform_check_image() { firewrt|\ fonera20n|\ freestation5|\ + gb-pc1|\ gl-mt300a|\ gl-mt300n|\ gl-mt750|\ @@ -74,12 +76,12 @@ platform_check_image() { jhr-n805r|\ jhr-n825r|\ jhr-n926r|\ + k2p|\ kn|\ kn_rc|\ kn_rf|\ kng_rc|\ linkits7688|\ - linkits7688d|\ m2m|\ m3|\ m4-4M|\ @@ -106,6 +108,7 @@ platform_check_image() { nbg-419n|\ nbg-419n2|\ newifi-d1|\ + d-team,newifi-d2|\ nixcore-x1-8M|\ nixcore-x1-16M|\ nw718|\ @@ -128,6 +131,7 @@ platform_check_image() { rt-ac51u|\ rt-g32-b1|\ rt-n10-plus|\ + rt-n12p|\ rt-n13u|\ rt-n14u|\ rt-n15|\ @@ -142,12 +146,17 @@ platform_check_image() { tew-714tru|\ timecloud|\ tiny-ac|\ + u25awf-h1|\ + u7621-06-256M-16M|\ + u7628-01-128M-16M|\ ur-326n4g|\ ur-336un|\ v22rw-2x2|\ + vonets,var11n-300|\ vocore-8M|\ vocore-16M|\ vocore2|\ + vocore2lite|\ vr500|\ w150m|\ w2914nsv2|\ @@ -158,7 +167,8 @@ platform_check_image() { whr-300hp2|\ whr-600d|\ whr-g300n|\ - widora-neo|\ + widora,neo-16m|\ + widora,neo-32m|\ witi|\ wizfi630a|\ wl-330n|\ @@ -168,6 +178,7 @@ platform_check_image() { wl-wn575a3|\ wli-tx4-ag300n|\ wlr-6000|\ + wmdr-143n|\ wmr-300|\ wn3000rpv3|\ wnce2001|\ @@ -189,11 +200,14 @@ platform_check_image() { x8|\ y1|\ y1s|\ + we1026-5g-16m|\ zbt-ape522ii|\ zbt-cpe102|\ zbt-wa05|\ + zbtlink,zbt-we1226|\ zbt-we1326|\ zbt-we2026|\ + zbtlink,zbt-we3526|\ zbt-we826-16M|\ zbt-we826-32M|\ zbt-wg2626|\ @@ -228,7 +242,12 @@ platform_check_image() { c20i|\ c50|\ mr200|\ + tplink,c20-v1|\ + tplink,c20-v4|\ + tplink,c50-v3|\ + tplink,tl-mr3420-v5|\ tl-wr840n-v4|\ + tl-wr840n-v5|\ tl-wr841n-v13) [ "$magic" != "03000000" ] && { echo "Invalid image type." @@ -248,15 +267,20 @@ platform_check_image() { return 0 ;; hc5962|\ - r6220) - # these boards use metadata images - return 0 - ;; + mir3g|\ + r6220|\ ubnt-erx|\ ubnt-erx-sfp) nand_do_platform_check "$board" "$1" return $?; ;; + re350-v1) + [ "$magic" != "01000000" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; wcr-1166ds|\ wsr-1166) [ "$magic" != "48445230" ] && { @@ -287,6 +311,7 @@ platform_do_upgrade() { case "$board" in hc5962|\ + mir3g|\ r6220|\ ubnt-erx|\ ubnt-erx-sfp)