From patchwork Sat Feb 27 22:05:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Segers X-Patchwork-Id: 1445210 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=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=TOFrpUt3; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=volatilesystems.org header.i=@volatilesystems.org header.a=rsa-sha256 header.s=mail header.b=NoAHpD+Q; dkim=fail reason="signature verification failed" (1024-bit key) header.d=volatilesystems.org header.i=@volatilesystems.org header.a=rsa-sha256 header.s=mail header.b=InUM9hqm; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4Dp1145Rpqz9sCD for ; Sun, 28 Feb 2021 09:10:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: 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=3qXT2aJcqScgwG4A8Cwfhx2yo/B87/eT28BR/JL8yWw=; b=TOFrpUt3tKhx32Y4WJdrUiBmRg UbDrsp+NwEdDNQ8Qb08EkypmCkJxtH0/bwezmUGadVd1QQ0L3VlKqnJd5zv1c41k2OpWWYytF4JHp EAbKTgZ7CBP6/HurMpTSdu+o4VdTuypHOG+g5uavJfGEnvMm+Eb1VzoYKYtcRS6ysnVVBTD6rcMN3 Uwu2Y00Mz+Er/j/5V0ZH6gsyTT9bTohEvyFn8yx6PMBBTAsTHIpTA6Cmbj7X2sQ7IfUgCJYpXBZaC dCi//oytOAOybNQHI/QNZdS0MyXnH2kV2jnKLstXC2eDnWWuH0T2qBkHccWYvwVmkfEvAODxePm/n t46uZLUA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lG7kO-0000EI-44; Sat, 27 Feb 2021 22:07:36 +0000 Received: from volatilesystems.org ([51.91.248.52]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lG7kM-0000Do-B5 for openwrt-devel@lists.openwrt.org; Sat, 27 Feb 2021 22:07:35 +0000 Received: by volatilesystems.org (Postfix, from userid 112) id 2B399FBD75; Sat, 27 Feb 2021 23:07:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=volatilesystems.org; s=mail; t=1614463650; bh=Un9yylEetQWzQrwYkq0OY3rD/jVm2aeub2xh2353Des=; h=From:To:Cc:Subject:Date:From; b=NoAHpD+QWz70KY22QLrbIBnnfRdyQjYHWk/qmxT7eVq56A85oQVqoYRKvUUtxWZhV 1pcG/HgPH7R4K7mec5DhVB7ADjIcGbD8FhkWFn84DF95+tV91bcqRYTNvAiadIWXyq FZ3lYddJGgLMxDLYdPJzPcA/Rnt2JqoXPXlQoLAM= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on atalanta X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from okeanos.lan (94.105.96.226.dyn.edpnet.net [94.105.96.226]) by volatilesystems.org (Postfix) with ESMTPSA id 2C916FBD71; Sat, 27 Feb 2021 23:07:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=volatilesystems.org; s=mail; t=1614463649; bh=Un9yylEetQWzQrwYkq0OY3rD/jVm2aeub2xh2353Des=; h=From:To:Cc:Subject:Date:From; b=InUM9hqmEzL4nL0Endq6roprIAe2LlLGo0ishAS7EygPaUWW+1rag2F62pwrihbn6 noWJ9Mtp3Kq5WbTyVrHxrmk2ZDJo/YZiAHzUXZ7fM+NwNPYzhEgc8aJFQJU8O/6h9y Phr42Ke1dOAdisQLmjAZQ7yELdnTdkyBN4sk8m1U= From: Stijn Segers To: openwrt-devel@lists.openwrt.org Subject: [PATCH] uboot-envtools: add support for GS108T v3 & GS110TPP v1 Date: Sat, 27 Feb 2021 23:05:14 +0100 Message-Id: <20210227220514.2544592-1-foss@volatilesystems.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at atalanta X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210227_170734_581217_D999180E X-CRM114-Status: GOOD ( 11.35 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -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 -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 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sander@svanheule.net Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The Netgear GS108T v3 and its GS110TPP v1 sibling apparently label their u-boot environment parition 'bdinfo' instead of 'u-boot-env'. Signed-off-by: Stijn Segers --- package/boot/uboot-envtools/files/realtek | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/boot/uboot-envtools/files/realtek b/package/boot/uboot-envtools/files/realtek index 9573e8944f..966c8509c8 100644 --- a/package/boot/uboot-envtools/files/realtek +++ b/package/boot/uboot-envtools/files/realtek @@ -18,6 +18,12 @@ zyxel,gs1900-10hp) [ -n "$idx" ] && \ ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000" ;; +netgear,gs108t-v3|\ +netgear,gs110tpp-v1) + idx="$(find_mtd_index bdinfo)" + [ -n "$idx" ] && \ + ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" + ;; *) idx="$(find_mtd_index u-boot-env)" [ -n "$idx" ] && \