From patchwork Sun Jul 24 11:39:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Segers X-Patchwork-Id: 1660075 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=KCr2baws; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=volatilesystems.org header.i=@volatilesystems.org header.a=rsa-sha256 header.s=mail header.b=CgOmJDpr; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LrLq72KQTz9s1l for ; Sun, 24 Jul 2022 21:41:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=Uk103jx7YfNz19VIwdYibJMnO8RcnZayBCApebwC9fI=; b=KCr2bawsXcOO32 NNJPuJvyZpYd29gClKtr9iUjQWNQ96zfV+F5XYKcJyzwccSVCE+FU5Dy+c5CCmCLa2p/YG9r5t8rn 2GmJzTGoZSYSLkaStRFuVJpAtgldtqQT2pQf22S2o8c1l/8/20yHvkjjmLot+AmogKZk9U3dyfXcJ 4pmLvEUvYc181mYTAmJWIb8LI8SmK/vub73AzJS8OlQ7uyeDhBRgvx/SdVgdRRnPQlqlTHw2sAeKU dJJWDjN/BNP+ZHpNyrQf6RWLnA1M8DtAmTUNJ3TehOLXluNcxlf1aiwATHPFznYfMZDgXyGGa5m7T FuUtjmge1jm15WKZ99tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFZxK-005Y92-21; Sun, 24 Jul 2022 11:39:30 +0000 Received: from volatilesystems.org ([2a02:c207:2056:9933::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFZxG-005Y2Q-D3 for openwrt-devel@lists.openwrt.org; Sun, 24 Jul 2022 11:39:27 +0000 Received: from okeanos.lan. (unknown [IPv6:2a02:578:859b:f00::10]) by volatilesystems.org (Postfix) with ESMTPSA id 1942D3C0525 for ; Sun, 24 Jul 2022 13:39:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=volatilesystems.org; s=mail; t=1658662761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qCAxS3F1ly3gGu8TooxYH+wau7WtmbVf56cNKs22aSM=; b=CgOmJDprF2fynHSONvhV/2JYcsBmvebj/RnybVzeHtpjc8aY+bou7lqtEBNU7naTcDVtWo ehS4lDQBVKSrb3QJjlhNp4Zn7bNf1j1QM/7yz7bw9rvKVrhe8dG1t7T+iDcNUgS7ZnzTyD CVD6QOL8dkQTFNaQ0SmCiDPdKgQ+J/oOvKZy1QCWMfcU+2n8JIWayyawkCJLOiPtZ+1JF/ FIvWp8OH1yjv3wl2t+qsIC6C/rP7vm3JToteK5AHHS2Mmk5SkB0TbzjU3Oo2RsJ8OFOzvy 5ecBA5UoXzGqDj6MdqjUYtNXUHgcRvd4JxkoriBuoH89D9UgyRo3DGG9AeP7Yg== From: Stijn Segers To: openwrt-devel@lists.openwrt.org Subject: [PATCH] ramips: use Sercomm parser for R6800 and clones Date: Sun, 24 Jul 2022 13:39:20 +0200 Message-Id: <20220724113920.381889-1-foss@volatilesystems.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at atalanta X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220724_043926_670662_5249AAFC X-CRM114-Status: UNSURE ( 6.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Use the bad block parser introduced in 77692d6112 for the NETGEAR R6800 and its clones: R6700 v2, R6900 v2, R7200 and R7450. Tested on a R6800. Signed-off-by: Stijn Segers --- target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) Content analysis details: (-0.2 points, 5.0 required) 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_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -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.34 Precedence: list List-Id: OpenWrt Development List 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 Use the bad block parser introduced in 77692d6112 for the NETGEAR R6800 and its clones: R6700 v2, R6900 v2, R7200 and R7450. Tested on a R6800. Signed-off-by: Stijn Segers --- target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi index 2be3f87869..87b4872d33 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi @@ -215,47 +215,54 @@ status = "okay"; partitions { - compatible = "fixed-partitions"; + compatible = "sercomm,sc-partitions", "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "u-boot"; reg = <0x0 0x100000>; + sercomm,scpart-id = <0>; read-only; }; partition@100000 { label = "SC PART_MAP"; reg = <0x100000 0x100000>; + sercomm,scpart-id = <1>; read-only; }; partition@200000 { label = "kernel"; reg = <0x200000 0x400000>; + sercomm,scpart-id = <2>; }; partition@600000 { label = "ubi"; reg = <0x600000 0x2800000>; + sercomm,scpart-id = <3>; }; partition@2e00000 { label = "reserved0"; reg = <0x2e00000 0x1800000>; + sercomm,scpart-id = <4>; read-only; }; factory: partition@4600000 { label = "factory"; reg = <0x4600000 0x200000>; + sercomm,scpart-id = <5>; read-only; }; partition@4800000 { label = "reserved1"; reg = <0x4800000 0x3800000>; + sercomm,scpart-id = <6>; read-only; }; };