From patchwork Fri May 20 16:03:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 624543 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 3rBCW421Cmz9t70 for ; Sat, 21 May 2016 02:07:12 +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=J6Go9pVm; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 94998B92362; Fri, 20 May 2016 18:04:34 +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; Fri, 20 May 2016 18:04:34 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D1F89B9232D for ; Fri, 20 May 2016 18:04:15 +0200 (CEST) X-policyd-weight: using cached result; rate: -7 Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 20 May 2016 18:04:15 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a17so11779366wme.0 for ; Fri, 20 May 2016 09:04:15 -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=2Nj7U4bNK0W2KsV3TFoUQ+AtLw77XmUjfQLxCFghcDo=; b=J6Go9pVmpi38jn/OtGufd4Q/CVD+CZ6IKzNtDEvPEEy4nhUyAgTgJpOBvhK4VIN3yn eilA3MBXChiUcUXzYKdpyvcO/C7QmPNbYdE66N50Dinr2GM58fbtp3716+RfxNG6zqWh +Os72tpILh2Styp3fEXlZWAHW4woJOjvF5OdHl4d4czcCNDb6xj9vLUSKLEvasTuJRAF cIO18Ht1dnnRlWy2vnwQ7QlpxiMtRoMXOjHMoknRGVbVZDtQRs2watGGM9aztlgU1xE8 DVfhatP5HFeZMvl8TWrnuGH1TbIgksFXAK3oXiJsivaE2P3vzuG1sCgUwHDIQm+XNdLz JPXA== 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=2Nj7U4bNK0W2KsV3TFoUQ+AtLw77XmUjfQLxCFghcDo=; b=jLqtFY7VY835wn4KNdJhSrWsthCCbICFcx692XZpUxzDhFw0jXdaorOjue8CFMJdap h6ikTzleNDhqc3iKOYR5yphT5ZaXCxeV2Iypb3IYmMjm9/WdiUm0f253WYvFHo5oCyQH w5u/9GmCrqJ7poyD1iFA4a2NTEhe9TtvvuvTaA08v4RrendVbz36w0F9UHJw+m5/Hu/N WRvnQQiaNIl9QsFlZtOytj9A0hlDzhw+ehTbOP9lC/iHFo9aBYmilOUXuAh4zuFnJib3 X7AIh6dSmFcf4D9YDnQAqq0mB8cZhHxNDph+t4kZERAsxnaQ8gW+rIpsXDEFsnQ+2XGh GNOA== X-Gm-Message-State: AOPr4FUDsIX/R0Up40RwKgyMdSpQlyRagxBazlyfeMvAOOENceJRPa1SNWQKgApYSE2UYBKU X-Received: by 10.28.186.195 with SMTP id k186mr4359019wmf.44.1463760255417; Fri, 20 May 2016 09:04:15 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p579E7469.dip0.t-ipconnect.de. [87.158.116.105]) by smtp.gmail.com with ESMTPSA id g197sm5241965wme.15.2016.05.20.09.04.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 May 2016 09:04:14 -0700 (PDT) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Fri, 20 May 2016 18:03:55 +0200 Message-Id: <1463760240-12418-8-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1463760240-12418-1-git-send-email-sven.eckelmann@open-mesh.com> References: <1463760240-12418-1-git-send-email-sven.eckelmann@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH 08/13] ar71xx: add user-space support for the OpenMesh MR1750v2 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 --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 3 ++- target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 ++- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index e003ebaa..66a031f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -322,7 +322,8 @@ mr600) ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt" ;; -mr1750) +mr1750 | \ +mr1750v2) ucidef_set_led_netdev "lan" "LAN" "mr1750:blue:wan" "eth0" ucidef_set_led_wlan "wlan58" "WLAN58" "mr1750:blue:wlan58" "phy0tpt" ucidef_set_led_wlan "wlan24" "WLAN24" "mr1750:blue:wlan24" "phy1tpt" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 67adf33..6a4cdaf 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -335,6 +335,7 @@ eap7660d |\ el-mini |\ loco-m-xw |\ mr1750 |\ +mr1750v2 |\ mr18 |\ mr600 |\ mr600v2 |\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index ec89470..e296b56 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -176,7 +176,8 @@ get_status_led() { mr600v2) status_led="mr600:blue:power" ;; - mr1750) + mr1750 | \ + mr1750v2) status_led="mr1750:blue:power" ;; mr900 | \ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index d00ef8e..12bc9e3 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -595,6 +595,9 @@ ar71xx_board_detect() { *MR1750) name="mr1750" ;; + *MR1750v2) + name="mr1750v2" + ;; *MR600) name="mr600" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh index 270ef40..87b6516 100644 --- a/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh @@ -65,6 +65,7 @@ platform_check_image_target_openmesh() ;; MR1750) [ "$board" = "mr1750" ] && return 0 + [ "$board" = "mr1750v2" ] && return 0 echo "Invalid image board target ($img_board_target) for this platform: $board. Use the correct image for this platform" return 1 ;;