From patchwork Tue Apr 5 15:17:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 606511 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 3qfXdY4Yk4z9t5n for ; Wed, 6 Apr 2016 01:21:53 +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=IAf7arFA; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id B42A6B9175B; Tue, 5 Apr 2016 17:18:43 +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=2.4 required=5.0 tests=RDNS_NONE,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Tue, 5 Apr 2016 17:18:43 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id AABEEB9174E for ; Tue, 5 Apr 2016 17:18:41 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .open-mesh. - helo: .mail-wm0-f53.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=1; rate: -4 Received: from mail-wm0-f53.google.com (unknown [74.125.82.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 5 Apr 2016 17:18:33 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id l6so28263773wml.1 for ; Tue, 05 Apr 2016 08:18:33 -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=hPw4bAcjx/4oqMhOvIpnxHnaxL4/m3jcIJOWM4sEfPE=; b=IAf7arFABV2P1XFKDkpVhYxyABTMDofthZBZWB5NERIfNJNKjizYpjvgNUYdJTBhnd wouJyBoer3EoS2dJ6JcZopd/Q8Yewn9lRGqUheRqEQBBxnfK/bqDNPanN4fFKFVakf6z Tr/wbb6lIc5lKI1rzLt7oYxfj2AWOIH87gzKIZRvGujy8ehbF9vcOdgF8A0ExIROzBjj IZzjtM0KEVoCl6wvnGHFchCGrJ94Vxbsly/ikpy0AP3Hs3JanUjfYH8NTBZ10VOz6Fii YqAw3aaQxxcCqRDOHP5Xd6Qcr/wLb5An3mH39S7jSBaF+vi7BGb4zehxmE8LktBSJZju 1avw== 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=hPw4bAcjx/4oqMhOvIpnxHnaxL4/m3jcIJOWM4sEfPE=; b=cm57euVMtyeAXpDsal84rz1tRZtrmXSCYLbZnoQgTrr5zVZ2KAGNLauKgXqswiHY4o OCt+0ipqeYPjheQn9ix9bYQjF/K1zL4GvFIku36we1zoGupfZHG3LgItFLAiPs0aCW1K MVHjZOVxt6i44gB+MNwKljCVSozqzAu5zflJICQ9ytNoEat+rDwhw1rTu861pf8klRDC gO7Od9Lw6WRbtocu7MzYHCFgWE1u3XnJXiUEJmV71M8t2Hx8qfU+k3V1gUQJkCCkCEHO ixPdpp6cTNFLv9UuKzjcTTmuLoRLC8LLkuSRias5me+auK2i0+6erYu7W06Xdi3CXXU3 S3ig== X-Gm-Message-State: AD7BkJJwPkVyArqVeXm7xjq77vcKju52LIw6rCKwV5DLzzwn6Xz1oTSoIWjvjUvQwduyzlu2 X-Received: by 10.28.195.9 with SMTP id t9mr19250857wmf.0.1459869512717; Tue, 05 Apr 2016 08:18:32 -0700 (PDT) Received: from sven-desktop.home.narfation.org (x5d84b455.dyn.telefonica.de. [93.132.180.85]) by smtp.gmail.com with ESMTPSA id c190sm18943978wmd.10.2016.04.05.08.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 08:18:32 -0700 (PDT) From: Sven Eckelmann X-Google-Original-From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Tue, 5 Apr 2016 17:17:50 +0200 Message-Id: <1459869481-29376-5-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 2.8.0.rc3 In-Reply-To: <1459869481-29376-1-git-send-email-sven@open-mesh.com> References: <1459869481-29376-1-git-send-email-sven@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH 05/16] 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" From: Sven Eckelmann Signed-off-by: Sven Eckelmann --- 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 923e02b..fee9d63 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -322,7 +322,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 ;; @@ -575,7 +576,8 @@ platform_do_upgrade() { om2p-hsv2 | \ om2p-lc | \ om5p | \ - om5p-an) + om5p-an | \ + om5p-ac) platform_do_upgrade_openmesh "$ARGV" ;; unifi-outdoor-plus | \