From patchwork Fri Jun 17 13:24:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 637059 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 3rWMYM5p5Lz9t1y for ; Sat, 18 Jun 2016 00:08:39 +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=phWNoX6M; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 966A6B92042; Fri, 17 Jun 2016 16:01:37 +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, 17 Jun 2016 16:01:37 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2D5E2B91545 for ; Fri, 17 Jun 2016 15:25:09 +0200 (CEST) X-policyd-weight: using cached result; rate: -7 Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 17 Jun 2016 15:25:09 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id v199so230246008wmv.0 for ; Fri, 17 Jun 2016 06:25: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=iNxnqGbpJ/SCYGcf4pVlArwp9vfJt1R14qIAi3ZAGuM=; b=phWNoX6M15+6SvDnpltnZAKG/R2XJnzevWLzsDeAXJNWVI9OU0jWhOr65ei8LRjI9w O7c/E54ACrp/Cjrj9TJilZBLvvJseGFwSbdq6P73XO4HUuWgZlaT3hXix8lq1OnX/Juh R+GnOrUGM0e7P7gBMZGiYyFjV3YUBABPys8w5kDiwESunzquOoEzOIhqN9FjvNxJVgEp Q2zBda7SEQiDjsNB1SmW1hoqRkMEwRFqKejIttFpwOhjNJY177GwFuK9t9+Er/u5dRKP VZ9UKGW3RL2i6BaTQrz/P43r/gpdrz3GOWIDzrn9sS4HiheUmKSTNbHTLppkvP7G2Ymt vCyA== 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=iNxnqGbpJ/SCYGcf4pVlArwp9vfJt1R14qIAi3ZAGuM=; b=D+RtALnlchx73u2ZZGXwWmn0hqVK0eh9A3i3kuSwei4jj2euLPx1TLcl5npn7k2NNP QAwcjJ8C5rNZIOE1E8eGGgRw0uYSxod4yeCkOKxsQp6ETThU7N0hN2N1l7FaLXs0xQ/s zTVSkIlRqJzHt84+gWYSsUHYVQKl+UX5pMnDrpECj7QhDO4qbfFY7BOPhDCRSokoO3bG gdAvRoHLgmmYPvKY/wwy/cRUjY3uQm70BHyjIMDaeoJsY5VX6BWgsDDkbDMlSHWzDp2Q goe7JVtU7vrw0sYhMNQy2fYKcO8ashw5V5ObuiuUlcpt/h63948bnKZCCcZDi6PLfLx7 azxA== X-Gm-Message-State: ALyK8tKdijW2w4DZgL5xXpvv4agS/j1SEzrMWEPeCQzLmsJs912mlS2ZMq5vaalMKaE2nndY X-Received: by 10.194.200.164 with SMTP id jt4mr2405459wjc.18.1466169908626; Fri, 17 Jun 2016 06:25:08 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p2003007C6F7DD1FE04A0165FC0023ED9.dip0.t-ipconnect.de. [2003:7c:6f7d:d1fe:4a0:165f:c002:3ed9]) by smtp.gmail.com with ESMTPSA id ag3sm8176021wjc.39.2016.06.17.06.25.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jun 2016 06:25:08 -0700 (PDT) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Fri, 17 Jun 2016 15:24:48 +0200 Message-Id: <1466169893-29962-8-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1466169893-29962-1-git-send-email-sven.eckelmann@open-mesh.com> References: <1466169893-29962-1-git-send-email-sven.eckelmann@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH CC 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Sven Eckelmann --- Based on following CC backports from 2016-05-19: * https://patchwork.ozlabs.org/patch/624172/ * https://patchwork.ozlabs.org/patch/624173/ * https://patchwork.ozlabs.org/patch/624174/ * https://patchwork.ozlabs.org/patch/624175/ * https://patchwork.ozlabs.org/patch/624176/ * https://patchwork.ozlabs.org/patch/624177/ * https://patchwork.ozlabs.org/patch/624178/ * https://patchwork.ozlabs.org/patch/624179/ * https://patchwork.ozlabs.org/patch/624180/ * https://patchwork.ozlabs.org/patch/624181/ * https://patchwork.ozlabs.org/patch/624182/ * https://patchwork.ozlabs.org/patch/624183/ * https://patchwork.ozlabs.org/patch/624184/ * https://patchwork.ozlabs.org/patch/624185/ * https://patchwork.ozlabs.org/patch/624186/ * https://patchwork.ozlabs.org/patch/624187/ * https://patchwork.ozlabs.org/patch/624188/ * https://patchwork.ozlabs.org/patch/624189/ * https://patchwork.ozlabs.org/patch/624190/ * https://patchwork.ozlabs.org/patch/624191/ * https://patchwork.ozlabs.org/patch/624192/ * https://patchwork.ozlabs.org/patch/624193/ * https://patchwork.ozlabs.org/patch/624194/ * https://patchwork.ozlabs.org/patch/624195/ * https://patchwork.ozlabs.org/patch/624196/ * https://patchwork.ozlabs.org/patch/624197/ * https://patchwork.ozlabs.org/patch/624198/ * https://patchwork.ozlabs.org/patch/624199/ * https://patchwork.ozlabs.org/patch/624200/ * https://patchwork.ozlabs.org/patch/624201/ * https://patchwork.ozlabs.org/patch/624202/ * https://patchwork.ozlabs.org/patch/624203/ * https://patchwork.ozlabs.org/patch/624200/ * https://patchwork.ozlabs.org/patch/624205/ It is a backport of the patch for trunk from 2016-05-20 which waits to be accepted as well: * https://patchwork.ozlabs.org/patch/624543/ target/linux/ar71xx/base-files/etc/diag.sh | 3 ++- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 3 ++- target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 9a6b4cf..c5e39d0 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -143,7 +143,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/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index d297266..d7dc9a1 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -239,7 +239,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/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 49e491f..b2b182e 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -335,6 +335,7 @@ eap7660d |\ el-mini |\ loco-m-xw |\ mr1750 |\ +mr1750v2 |\ mr600 |\ mr600v2 |\ mr900 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 230df0b..2f4b112 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -521,6 +521,9 @@ ar71xx_board_detect() { *MR1750) name="mr1750" ;; + *MR1750v2) + name="mr1750v2" + ;; *MR600) name="mr600" ;;