diff mbox series

ramips: use Sercomm parser for R6800 and clones

Message ID 20220724113920.381889-1-foss@volatilesystems.org
State Superseded, archived
Headers show
Series ramips: use Sercomm parser for R6800 and clones | expand

Commit Message

Stijn Segers July 24, 2022, 11:39 a.m. UTC
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@volatilesystems.org>
---
 target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Stijn Segers July 24, 2022, 11:45 a.m. UTC | #1
Hi,

Op zondag 24 juli 2022 om 13:39:20 +02:00:00 schreef Stijn Segers 
<foss@volatilesystems.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 <foss@volatilesystems.org>


Should have put this in the patch message probably, but I wanted to 
point out I have no bad blocks AFAIK on my R6800 (so I can't testify as 
to the functionality). I can confirm the device still works as before 
though.

I'm not sure how eager people are to backport the bad block parser to 
22.03 still at this stage, along with this patch. But it would be neat.

Cheers

Stijn

> ---
>  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;
>  		};
>  	};
> --
> 2.36.1
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

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;
 		};
 	};