ramips/rt305x: fix firmware partition size for some 4MB devices
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 15 Jul 2019 12:29:53 +0000 (14:29 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 25 Jul 2019 12:30:57 +0000 (14:30 +0200)
allnet_all0256n-4m, tenda_w150m and unbranded_wr512-3gn-4m have
their firmware partition set to reg = <0x50000 0x3c8000>.

However, based on the 4MB flash, the size should be 0x3b0000.

After some research in the target's history, it looks like the
changed size has been a mistake when transferring device
partitions from Makefile to DTS in 770b28f146f.

This patch changes the named three devices back to 0x3b0000.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts
target/linux/ramips/dts/rt3050_tenda_w150m.dts
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts

index 3c152040fa5cafc0bd39a4c7aa9d2bab8dd0d06a..4f1504befaa36e221b11fc3e888188d9f740f9eb 100644 (file)
@@ -41,7 +41,7 @@
                        partition@50000 {
                                compatible = "denx,uimage";
                                label = "firmware";
-                               reg = <0x50000 0x3c8000>;
+                               reg = <0x50000 0x3b0000>;
                        };
                };
        };
index e128580ec80b92435ce40e7d9c80999a8ccb711c..e6a2c4ab171d1a0db59f9fe10e4285fdd7863789 100644 (file)
@@ -48,7 +48,7 @@
                        partition@50000 {
                                compatible = "denx,uimage";
                                label = "firmware";
-                               reg = <0x50000 0x3c8000>;
+                               reg = <0x50000 0x3b0000>;
                        };
                };
        };
index 12476d238c0fa8cbf06e7f1b58cd889a4820daa7..ae8e6b8b45ee710e500348509f5a5edad469751f 100644 (file)
@@ -38,7 +38,7 @@
                        partition@50000 {
                                compatible = "denx,uimage";
                                label = "firmware";
-                               reg = <0x50000 0x3c8000>;
+                               reg = <0x50000 0x3b0000>;
                        };
                };
        };