mediatek: filogic: bpi-r3-mini: fix NAND flash layout
authorDaniel Golle <daniel@makrotopia.org>
Fri, 16 Feb 2024 05:38:07 +0000 (05:38 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 16 Feb 2024 05:40:14 +0000 (05:40 +0000)
Fix NAND flash layout which was out-of-sync with the definition in
ARM TrustedFirmware-A which expects UBI to start at 0x200000.

Fixes: b03d3644cf ("mediatek: filogic: add BananaPi BPi-R3 mini")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-mediatek/patches/442-add-bpi-r3-mini.patch
target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts

index 5df81ae7a178352e3dd48e2f85ad02a557287558..5a7e0c4daf6c78acb7900dd7e780bf6905184d62 100644 (file)
 +
 +                      partition@0 {
 +                              label = "bl2";
-+                              reg = <0x0 0x80000>;
++                              reg = <0x0 0x200000>;
 +                      };
 +
-+                      partition@80000 {
++                      partition@200000 {
 +                              label = "ubi";
-+                              reg = <0x80000 0x7f80000>;
++                              reg = <0x200000 0x7e00000>;
 +                      };
 +              };
 +      };
index cbd742f7c0c9c12056840143dd5f94608a3c35dc..b83ebecf1540797f607768c9dff347bf392ffa63 100644 (file)
 
                        partition@0 {
                                label = "bl2";
-                               reg = <0x00000 0x100000>;
+                               reg = <0x0 0x200000>;
                                read-only;
                        };
 
-                       partition@100000 {
+                       partition@200000 {
                                label = "ubi";
-                               reg = <0x100000 0x7f00000>;
+                               reg = <0x200000 0x7e00000>;
                                compatible = "linux,ubi";
 
                                volumes {