From patchwork Mon Jan 28 02:52:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeff Kletsky X-Patchwork-Id: 1031665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=allycomm.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u6ICr+uh"; 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 43nvMM2WZCz9sBQ for ; Mon, 28 Jan 2019 13:53:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Date:Message-ID:From:To: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xXLWZWmWpvrLDRjwb/Eo3EmNzWko+cspJ8iBzAxld3c=; b=u6ICr+uh1n5SxmV8v25+hr23AU VhaZ8aakUKC+TNbXN3zyr9GqBBaLuAupF4LbWOmIaPXLT9qqD5vQI4pqUFU4jNm6ikfNLzHXt8M45 hOk36I0NuYsNRhAwxZuilhQyHVG2aLcv5wjy0KVZ4GCg/OKOT3FN/kBnUPnNiu/mBBqgjaDuM+52v nbwo2KbnsC/oeUpim6eacNC+ty2wr4Bbmh5qrzKEJKoqptk7cfDh3b8pijbRpqXCwBxWvUyKcasjP L93KCbf7A65QOlHkrZRWTA+ZWzezZo14HbUk3X5Th1nnp2cHRIAJORrkGiOVK22S7L0MUuy/Ke4FG C2fMRq4w==; 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 1gnx2n-0001Jk-Ev; Mon, 28 Jan 2019 02:53:05 +0000 Received: from mx.allycomm.com ([138.68.30.55]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gnx2k-0001JR-02 for openwrt-devel@lists.openwrt.org; Mon, 28 Jan 2019 02:53:03 +0000 Received: from ubuntu.pn.wagsky.com (c-69-181-42-248.hsd1.ca.comcast.net [69.181.42.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.allycomm.com (Postfix) with ESMTPSA id B9226381AE; Sun, 27 Jan 2019 18:52:59 -0800 (PST) To: openwrt-devel@lists.openwrt.org From: Jeff Kletsky Message-ID: Date: Sun, 27 Jan 2019 18:52:59 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.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-20190127_185302_042851_D78498DD X-CRM114-Status: GOOD ( 13.84 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [OpenWrt-Devel] [PATCH 1/2] ath79: Add GL.iNet AR-300M-Lite X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathias Kresin Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Resend as per M. Kreskin From 2e3b968813e3862c5319c6c360781b0921d4b413 Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Sun, 20 Jan 2019 14:07:30 -0800 Subject: [PATCH 1/2] ath79: Add GL.iNet AR-300M-Lite AR300M-Lite is single-Ethernet variant of the AR300M series Its eth0 would otherwise be assigned to the WAN interface making it unreachable firstboot or failsafe. Installation instructions from OEM (OpenWrt variant): * Install sysupgrade.bin using OEM's "Advanced" GUI (LuCI),   * Do not preserve settings * Access rebooted device via Ethernet at OpenWrt default address Runtime-tested:  GL.iNet AR300M-Lite Signed-off-by: Jeff Kletsky Signed-off-by: Jeff Kletsky ---  target/linux/ath79/base-files/etc/board.d/02_network     |  1 +  target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts |  8 ++++++++  target/linux/ath79/image/generic.mk                      | 14 ++++++++++++--  3 files changed, 21 insertions(+), 2 deletions(-)  create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 3eb0e413f3..fa947203f8 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -13,6 +13,7 @@ ath79_setup_interfaces()      devolo,dvl1200i|\      devolo,dvl1750c|\      devolo,dvl1750i|\ +    glinet,ar300m-lite|\      ocedo,koala|\      ocedo,raccoon|\      pcs,cap324|\ diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts new file mode 100644 index 0000000000..b14d1a47a9 --- /dev/null +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +#include "qca9531_glinet_gl-ar300m-nor.dts" + +/ { +    compatible = "glinet,gl-ar300m-lite", "qca,qca9531"; +    model = "GL.iNet GL-AR300M-Lite"; +}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 22ba5305b1..2021d83471 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -296,13 +296,23 @@ define Device/glinet_gl-ar150  endef  TARGET_DEVICES += glinet_gl-ar150 -define Device/glinet_gl-ar300m-nor +define Device/glinet_gl-ar300m-common-nor    ATH_SOC := qca9531 -  DEVICE_TITLE := GL.iNet GL-AR300M    DEVICE_PACKAGES := kmod-usb-core kmod-usb2    IMAGE_SIZE := 16000k    SUPPORTED_DEVICES += gl-ar300m  endef + +define Device/glinet_gl-ar300m-lite +  $(Device/glinet_gl-ar300m-common-nor) +  DEVICE_TITLE := GL.iNet GL-AR300M-Lite +endef +TARGET_DEVICES += glinet_gl-ar300m-lite + +define Device/glinet_gl-ar300m-nor +  $(Device/glinet_gl-ar300m-common-nor) +  DEVICE_TITLE := GL.iNet GL-AR300M +endef  TARGET_DEVICES += glinet_gl-ar300m-nor  define Device/glinet_gl-ar750s