From patchwork Thu May 19 18:21:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 624194 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r9fjP6YG2z9sdg for ; Fri, 20 May 2016 04:29:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=open-mesh-com.20150623.gappssmtp.com header.i=@open-mesh-com.20150623.gappssmtp.com header.b=F/Gxrl29; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 87C65B920BB; Thu, 19 May 2016 20:23:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Thu, 19 May 2016 20:23:08 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4D9B7B91FF3 for ; Thu, 19 May 2016 20:22:09 +0200 (CEST) X-policyd-weight: using cached result; rate: -7 Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 19 May 2016 20:22:09 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id n129so48261246wmn.1 for ; Thu, 19 May 2016 11:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=srKEHbLTOkD54J83xzy3R4+XZ2I4avg7AvLU0T1rcn4=; b=F/Gxrl29lY+ygh6acoXGv2UyRxodN2ECryoeCNmBKQ0K9t7uxJNbZ3EYB5+MUDSkcM OzkZD7fmNMcHa1DeSDgreoMuZSMRGVgsylaDb8H//T07eYDeDQE6neSexi+LBEZ0A8fW rPHahPcfCr1iCFKfuTfLV2JuqGuciLbEa7A7ZFgA7X5Wch+b3rfO3nrxKRO1lH4c50pl lRH5RvwO911ZU74+B/A3367TYbpzqkHkF/aE+INNGseXvKTXRDCmyB17u2J4GOW4MER8 exjbvTk43ijbLxCsHdnPoee/s06NBd9LhjPxClaWbOdH6tNbB5EHUJi8OzCsWIClnq2U NBOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=srKEHbLTOkD54J83xzy3R4+XZ2I4avg7AvLU0T1rcn4=; b=ibwIqZmNhgTYoQHtlFszkJUmE6ZFu5b6zKR6B+4VesVzW4rgZ0yfY102eYD3oF4tW1 a+loAyXREZYlB9OV1f5ZTvW+jDqoQ97lwK4pe0b3IuS4RtjRby3sJxBE+uFc2GSnL8/6 Wa9qk/HIFkkxiQ3v3F+pzEg56GIQgPeKTEAnuqb/dtk9Vi80/KN/Op2PJHJFKn0dwnbV ErSN7+UaWKNM58R0Jf1EgAWuNu4cUQr2vEpy0UJu1iPhQDdkPjAVAcPntAEWmjbpWXEf 9VokBmWFkdRkJfQVzlPrn6bxDxiC7vKhPEurh+An+tMP6fP2Mq6LCirUmb+29EX+x+hk pl3g== X-Gm-Message-State: AOPr4FWMJBCv1gwJLnZmyowELgBrP+Q0XaVKZL4X1KHxElKW1rdq1MjjibK8bic7NO15EdXR X-Received: by 10.194.89.168 with SMTP id bp8mr15903212wjb.57.1463682128820; Thu, 19 May 2016 11:22:08 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201]) by smtp.gmail.com with ESMTPSA id m20sm471875wma.23.2016.05.19.11.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 11:22:08 -0700 (PDT) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Thu, 19 May 2016 20:21:06 +0200 Message-Id: <1463682077-19339-23-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com> References: <1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH CC 23/34] ar71xx: enable sysupgrade for the OpenMesh OM5P-AC X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Sven Eckelmann Backport of r49144 --- target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 7 ++++++- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh index 9ca0f5b..1cfead9 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 ;; + OM5PAC) + [ "$board" = "om5p-ac" ] && break + 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" @@ -162,7 +167,7 @@ platform_do_upgrade_openmesh() kernel_start_addr1=0x9f1c0000 kernel_start_addr2=0x9f8c0000 ;; - OM5P|MR600|MR900|MR1750) + OM5P|OM5PAC|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 5053cec..eb5c01e 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -301,7 +301,8 @@ platform_check_image() { om2p-hsv2 | \ om2p-lc | \ om5p | \ - om5p-an) + om5p-an | \ + om5p-ac) platform_check_image_openmesh "$magic_long" "$1" && return 0 return 1 ;; @@ -530,7 +531,8 @@ platform_do_upgrade() { om2p-hsv2 | \ om2p-lc | \ om5p | \ - om5p-an) + om5p-an | \ + om5p-ac) platform_do_upgrade_openmesh "$ARGV" ;; unifi-outdoor-plus | \