From patchwork Wed Aug 19 13:54:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 508741 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B16AF140788 for ; Wed, 19 Aug 2015 23:58:38 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 133C528BBDE; Wed, 19 Aug 2015 15:56:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 98F8B28A675 for ; Wed, 19 Aug 2015 15:55:14 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 19 Aug 2015 15:55:14 +0200 (CEST) Received: from sven-desktop.home.narfation.org (x4d05f1fb.dyn.telefonica.de [77.5.241.251]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 1DEAD1100A5; Wed, 19 Aug 2015 15:56:01 +0200 (CEST) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Wed, 19 Aug 2015 15:54:57 +0200 Message-Id: <1439992501-9123-4-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1439992501-9123-1-git-send-email-sven@open-mesh.com> References: <1439992501-9123-1-git-send-email-sven@open-mesh.com> Cc: Sven Eckelmann Subject: [OpenWrt-Devel] [PATCH 4/8] ar71xx: enable sysupgrade for the OpenMesh MR1750 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Sven Eckelmann --- target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 7 ++++++- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh index 547116e6d49c..9ca0f5be4d7f 100644 --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh @@ -72,6 +72,11 @@ platform_check_image_openmesh() echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform" return 1 ;; + MR1750) + [ "$board" = "mr1750" ] && break + echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform" + return 1 + ;; MR600) [ "$board" = "mr600" ] && break [ "$board" = "mr600v2" ] && break @@ -157,7 +162,7 @@ platform_do_upgrade_openmesh() kernel_start_addr1=0x9f1c0000 kernel_start_addr2=0x9f8c0000 ;; - OM5P|MR600|MR900) + OM5P|MR600|MR900|MR1750) block_size=$((64 * 1024)) total_size=7995392 kernel_start_addr1=0x9f0b0000 diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index c1962e4e9fdb..76d2877a3634 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -291,6 +291,7 @@ platform_check_image() { return 0; ;; + mr1750 | \ mr600 | \ mr600v2 | \ mr900 | \ @@ -517,6 +518,7 @@ platform_do_upgrade() { tew-673gru) platform_do_upgrade_dir825b "$ARGV" ;; + mr1750 | \ mr600 | \ mr600v2 | \ mr900 | \