]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
apm821xx: meraki-mx60: fix ubootenv definitions
authorRosen Penev <rosenp@gmail.com>
Sat, 5 Oct 2024 22:33:51 +0000 (15:33 -0700)
committerRobert Marko <robimarko@gmail.com>
Sun, 8 Feb 2026 17:37:44 +0000 (18:37 +0100)
Needed to avoid probe errors.

There are two partitions from 0-20000 and 80000-100000.

This is redundant-count and not regular u-boot,env

Add status = "disabled" as the u-boot env driver can't handle redundant
environments properly. As a result, fw_printenv ends up not working
right.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16618
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/apm821xx/dts/meraki-mx60.dts

index dd0ac652ab33271de7ebda688984a637254c5cfa..0e7ec6be6d4b16164d97335f524f36a787cb0340 100644 (file)
                        };
 
                        partition@100000 {
-                               label = "u-boot-env";
+                               compatible = "fixed-partitions";
                                reg = <0x00100000 0x00100000>;
-                               read-only;
+                               label = "u-boot-env";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               partition@0 {
+                                       reg = <0x0 0x20000>;
+                                       label = "u-boot-env-main";
+                                       status = "disabled";
 
-                               nvmem-layout {
-                                       compatible = "u-boot,env";
+                                       nvmem-layout {
+                                               compatible = "u-boot,env-redundant-count";
+                                       };
+                               };
+
+                               partition@80000 {
+                                       reg = <0x80000 0x20000>;
+                                       label= "u-boot-env-redundant";
+                                       status = "disabled";
+
+                                       nvmem-layout {
+                                               compatible = "u-boot,env-redundant-count";
+                                       };
                                };
                        };