]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
apm821xx: meraki-mr24: fix ubootenv definitions
authorRosen Penev <rosenp@gmail.com>
Sun, 13 Jul 2025 18:19:10 +0000 (11:19 -0700)
committerRobert Marko <robimarko@gmail.com>
Sun, 8 Feb 2026 17:37:44 +0000 (18:37 +0100)
Per the comments, this is not uboot,env but the redundant forms.

Placed under fixed-partition nodes in order to add status = "disabled".
The roots are needed for u-boot envtools to use.

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-mr24.dts

index b056533184014bef647a1c62105bc4305726e32b..c2534c46335dbc70dc30639acdb5674d0ee21032 100644 (file)
                                 * blocks (64KiB) in order to have spares
                                 * around for bad block management
                                 */
+                               compatible = "fixed-partitions";
                                label = "u-boot-env";
                                reg = <0x00150000 0x00010000>;
-                               read-only;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               partition@0 {
+                                       reg = <0x0 0x10000>;
+                                       label = "u-boot-env-main";
+                                       status = "disabled";
 
-                               nvmem-layout {
-                                       compatible = "u-boot,env";
+                                       nvmem-layout {
+                                               compatible = "u-boot,env-redundant-count";
+                                       };
                                };
                        };
 
                                 * has to be kept it in sync with the
                                 * data in "u-boot-env".
                                 */
+                               compatible = "fixed-partitions";
                                label = "u-boot-env-redundant";
                                reg = <0x00160000 0x00010000>;
-                               read-only;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               partition@0 {
+                                       reg = <0x0 0x10000>;
+                                       label = "u-boot-env-redundant";
+                                       status = "disabled";
+
+                                       nvmem-layout {
+                                               compatible = "u-boot,env-redundant-count";
+                                       };
+                               };
                        };
 
                        partition@170000 {