From patchwork Tue Oct 22 20:44:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Ziegler X-Patchwork-Id: 1181663 X-Patchwork-Delegate: mail@david-bauer.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=andreas-ziegler.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ESUpet0B"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=andreas-ziegler.de header.i=@andreas-ziegler.de header.b="hs+Cjetn"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46yQW82vk0z9sP6 for ; Wed, 23 Oct 2019 07:45:18 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date: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=RKL1gAMfbObqNYwoBQe2xhn1+v7T7UtGFUT0f5mpAN8=; b=ESUpet0B9AArk3 BuTDvQeEHlT8ou6aROYKDopzXrGAwvKkdhq4Z4nkDTisDFXKwCi7bj6FsuDwXMt3jdssQrV34pyn0 0hUNMsELqFWhHanHcKAGaY48PV/o/n+to4CCCwtPxd/cHRXh+IlHtYKoRWoxisQraWR4ll6ShsKsM U7fNdQdhB58a2QO3soXlykLqv74XHkNAVIxJd1YBwmdyZ9MJlEi0fRn7lW5fkSpVK6Mghb4sYfcHL Wl0JyyqkVP39hW08nbaFgVUHRQQMCkfdrkrskCkJuMLwkqNXulTzk4W/bjYgIZdYOn3ZiG9+fb13y Zxp9lSxHmfXC0aWHqt6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iN11Y-0004DR-G8; Tue, 22 Oct 2019 20:45:00 +0000 Received: from l5m.de ([2001:1608:34:1001::160]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iN11U-0004Cl-C7 for openwrt-devel@lists.openwrt.org; Tue, 22 Oct 2019 20:44:58 +0000 Received: from localhost (localhost [127.0.0.1]) by l5m.de (Postfix) with ESMTP id C6A2E10808C for ; Tue, 22 Oct 2019 22:44:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= andreas-ziegler.de; h=content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=default; t=1571777089; bh=qp7FtFfRzyH2QyCY S4LpHD7BtwrVQmvLUIKRGGu1ktA=; b=hs+Cjetn6zWqwZGhpQE944J4nQ1ebyiH x0aeCZMtbrGzMTh+hY7uOyoSf7x8mOaNPw2p9tvR3LCQrZ3LykUb5etfxamAIx0A TTYJoyABitHpwRz65/fq6mR+Ko+og87H2LgLxNDEph7HU8s6QRDe6404IuJvXDeE VDOQLsUbeYY= X-Virus-Scanned: Debian amavisd-new at l5m.de Received: from l5m.de ([127.0.0.1]) by localhost (l5m.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rQjw_f2TFC8X for ; Tue, 22 Oct 2019 22:44:49 +0200 (CEST) Received: from localhost.localdomain (unknown [IPv6:2a01:c23:c046:9100:e100:1ba4:940e:ef6e]) by l5m.de (Postfix) with ESMTPSA id C5FF310808A for ; Tue, 22 Oct 2019 22:44:49 +0200 (CEST) From: Andreas Ziegler To: openwrt-devel@lists.openwrt.org Date: Tue, 22 Oct 2019 22:44:29 +0200 Message-Id: <20191022204429.608380-1-dev@andreas-ziegler.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191022_134456_694860_DC450165 X-CRM114-Status: UNSURE ( 6.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [OpenWrt-Devel] [PATCH] ar71xx: add model detection for UniFi AC-LR X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This commit adds correct model detection for UniFi AC-LR. Previously, said device was incorrectly detected as UniFi-AC-LITE/MESH. The Information about the device is stored at 0xC in the EEPROM partition. It corresponds to the sysid in /etc/board.info of the Ubiquiti stock firmware. Signed-off-by: Andreas Ziegler --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/image/generic-ubnt.mk | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 03dfbcebf9..044ef4eae5 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -111,6 +111,9 @@ ubnt_unifi_ac_board_detect() { "e517") model="Ubiquiti UniFi-AC-LITE" ;; + "e527") + model="Ubiquiti UniFi-AC-LR" + ;; "e537") model="Ubiquiti UniFi-AC-PRO" ;; diff --git a/target/linux/ar71xx/image/generic-ubnt.mk b/target/linux/ar71xx/image/generic-ubnt.mk index 5a4517f81f..6bfe041b80 100644 --- a/target/linux/ar71xx/image/generic-ubnt.mk +++ b/target/linux/ar71xx/image/generic-ubnt.mk @@ -138,6 +138,12 @@ define Device/ubnt-unifiac-lite endef TARGET_DEVICES += ubnt-unifiac-lite +define Device/ubnt_unifiac-lr + $(Device/ubnt-unifiac-lite) + DEVICE_TITLE := Ubiquiti UniFi AC-LR +endef +TARGET_DEVICES += ubnt_unifiac-lr + define Device/ubnt-unifiac-mesh $(Device/ubnt-unifiac-lite) DEVICE_TITLE := Ubiquiti UniFi AC-Mesh