[PATCH] ramips: use Sercomm parser for R6800 and clones

Stijn Segers foss at volatilesystems.org
Sun Jul 24 04:39:20 PDT 2022


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 <foss at volatilesystems.org>
---
 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 at 0 {
 			label = "u-boot";
 			reg = <0x0 0x100000>;
+			sercomm,scpart-id = <0>;
 			read-only;
 		};
 
 		partition at 100000 {
 			label = "SC PART_MAP";
 			reg = <0x100000 0x100000>;
+			sercomm,scpart-id = <1>;
 			read-only;
 		};
 
 		partition at 200000 {
 			label = "kernel";
 			reg = <0x200000 0x400000>;
+			sercomm,scpart-id = <2>;
 		};
 
 		partition at 600000 {
 			label = "ubi";
 			reg = <0x600000 0x2800000>;
+			sercomm,scpart-id = <3>;
 		};
 
 		partition at 2e00000 {
 			label = "reserved0";
 			reg = <0x2e00000 0x1800000>;
+			sercomm,scpart-id = <4>;
 			read-only;
 		};
 
 		factory: partition at 4600000 {
 			label = "factory";
 			reg = <0x4600000 0x200000>;
+			sercomm,scpart-id = <5>;
 			read-only;
 		};
 
 		partition at 4800000 {
 			label = "reserved1";
 			reg = <0x4800000 0x3800000>;
+			sercomm,scpart-id = <6>;
 			read-only;
 		};
 	};
-- 
2.36.1




More information about the openwrt-devel mailing list