From patchwork Sun Apr 15 23:25:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Paterson X-Patchwork-Id: 898352 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZapmJSkm"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iW3y4LjM"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PSL45CJNz9s1l for ; Mon, 16 Apr 2018 09:25:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Date:Message-ID:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=B9ShKk1cVYhukG3aSbuaIl2/cFDn7+0X/5UuXxSIhXw=; b=ZapmJSkmoWpQo+ V3ZGeksSzX2ilaDFq7pLs7Eh7N+43El5Wz2EY58Wu/gQ3z1CofOaTRbElL2eSKhozqGwezV+PALLE KrMJMxTX+mGvtlEjDQs2vFRYr8hh6OqXXBvvvCQoePD+qrpMOXtQHMDFKgegyagHonsdXizVBtoHW BIIaFkP5gLJhnyeCnvtd/CjFHKljiQd+dMx5ZUxGzMjFzhbiFyt1DA/mnebHWyUebUvjqUNvwxVDY 4CTuA2RlvB51GKphHQm/eyhjsqLwBwdcPqC8cm15iHJHp/CPu6eKfU9LuHtx4Nsb8XX+E9BJWx2AY Or2JYnYkQOqGEfKeWBaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7r1S-0005Qy-NY; Sun, 15 Apr 2018 23:25:26 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7r1O-0005Ow-EL for lede-dev@lists.infradead.org; Sun, 15 Apr 2018 23:25:24 +0000 Received: by mail-pf0-x22f.google.com with SMTP id q9so9665011pff.1 for ; Sun, 15 Apr 2018 16:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=MwTKc3kEi5yEtBuX3PyVP8JJquWvOWJu4olHn0LDTsI=; b=iW3y4LjMYrIYT+gUfTkqlTJjsv5sSlD9R5zmxjGw9C5i5p7YxayI7FHRQDvuarxCje RNsHv82sPK/0t+E82tMvi/1Kma2VjnIf0QwG3j/AM7kqitBfOSeDnRXAqGXYdiGc0rBB H6zd78liH17Hdquk5OkQ0zqOvWaen4qvk0/IbQJXByd5u/HwKtmlDXweXyBnIA/639Ib S5TbQzIEWykPSl59H9JQHKIiPqjMqaMFRRSE5UiXN4un93syaE7pUkQxgNjjWE7lHTM2 S9gTnI05J5gYhu+yxu/GMBILJ4vw2ytJVnSaIFx/U3seswBe1/au/rpMPy4xKNt8MBWB Vjog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=MwTKc3kEi5yEtBuX3PyVP8JJquWvOWJu4olHn0LDTsI=; b=BoTqCInBj07VUSZSB+ITVkO5orYkkjXJCoedwZr11+iTHb3Euvb1sdlWrz8E84Ihnt 0eInmGdOUwPfBWgPLjtEADXQpWd69SelbBE3uixEWToGbCNRYssHd1Obl3JrkZduieMg m9A9iNxJyRj1kfAwUzNeZm182IXeKyk1uUf2GaRhY5TANoDFx2GNWaovjjwUtf/SLPMM dE4kWY77/AIg0m6NpXX14cepH69qxC8YoXQSs/XuFvEzjUipLVfIyQSI0/yBl5vY7EtS AZvePiyZueazYpcDho+ynmx6te1nSI/rL9B9qSeJjpLlLlIrCI08DWeB0b5b9sbVHEXH NE5A== X-Gm-Message-State: ALQs6tADUYPz8doyb9YYBg4OJkNepu0daf1taQxw/36KiNM5JRTfTdKc bLFY5TCL1TvvSQGbSa9JwvlFbw== X-Google-Smtp-Source: AIpwx49mWThUPmcgu3BKC2F63KeEwtihR9r0e/oArJXJ1lXikiUuxEWjy0tdxj/o7UZJlUQGEs4sKQ== X-Received: by 10.99.123.85 with SMTP id k21mr10722132pgn.99.1523834710922; Sun, 15 Apr 2018 16:25:10 -0700 (PDT) Received: from [10.224.0.84] ([43.243.60.92]) by smtp.googlemail.com with ESMTPSA id r75sm26746114pfb.98.2018.04.15.16.25.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 16:25:10 -0700 (PDT) From: Simon Paterson To: lede-dev@lists.infradead.org Message-ID: Date: Mon, 16 Apr 2018 11:25:10 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180415_162522_509788_3DF64DB2 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (simon.paterson.nz[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:22f listed in] [list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] ar71xx: Add userspace support for Mikrotik rb-2011iLS X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Kernel support already present. Patch adds userspace for the 'iLS' suffix model of the RB2011 family. Enables correct initial switch settings, sysupgrade, etc. https://mikrotik.com/product/RB2011iLS-IN Signed-off-by: Simon Paterson 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 cf24e465a3..906c4b715f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -616,6 +616,7 @@ rb-962uigs-5hact2hnt)      ucidef_set_led_timer "user" "USER/SFP" "rb:green:user" "1000" "1000"      ;;  rb-2011il|\ +rb-2011ils|\  rb-2011l|\  rb-2011uas|\  rb-2011uas-2hnd|\ 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 dfe97e8133..cbbcf53946 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -315,12 +315,14 @@ ar71xx_setup_interfaces()      ;;      db120|\      rb-2011il|\ +    rb-2011ils|\      rb-2011l|\      rb-2011uas|\      rb-2011uas-2hnd|\      rb-2011uias|\      rb-2011uias-2hnd)          case "$board" in +        rb-2011ils|\          rb-2011uas*|\          rb-2011uias|\          rb-2011uias-2hnd) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 797c30f8a5..19dd4c2a13 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -335,6 +335,7 @@ get_status_led() {          status_led="$board:green:wan"          ;;      rb-2011il|\ +    rb-2011ils|\      rb-2011l|\      rb-2011uas|\      rb-2011uas-2hnd) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration index 29fdde40a0..0388fb6dc9 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration @@ -86,6 +86,7 @@ rb-450)    db120|\  rb-2011il|\ +rb-2011ils|\  rb-2011l|\  rb-2011uas-2hnd)      migrate_switch_name "eth0" "switch0" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 7249cb6151..95314a2881 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -944,6 +944,9 @@ ar71xx_board_detect() {      *"RouterBOARD 2011iL")          name="rb-2011il"          ;; +    *"RouterBOARD 2011iLS") +        name="rb-2011ils" +        ;;      *"RouterBOARD 2011L")          name="rb-2011l"          ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 376984a14a..702d97a8ed 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -550,6 +550,7 @@ platform_check_image() {      rb-951ui-2hnd|\      rb-2011l|\      rb-2011il|\ +    rb-2011ils|\      rb-2011uas|\      rb-2011uas-2hnd|\      rb-2011uias|\ @@ -843,6 +844,7 @@ platform_do_upgrade() {      rb-951g-2hnd|\      rb-951ui-2hnd|\      rb-2011il|\ +    rb-2011ils|\      rb-2011l|\      rb-2011uas|\      rb-2011uas-2hnd|\