From b9cf1f60811730a54c918d1118725e88e29e0950 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Mon, 15 Jul 2019 14:29:53 +0200 Subject: [PATCH] ramips/rt305x: fix firmware partition size for some 4MB devices 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 --- target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts | 2 +- target/linux/ramips/dts/rt3050_tenda_w150m.dts | 2 +- target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts b/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts index 3c152040fa5..4f1504befaa 100644 --- a/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts @@ -41,7 +41,7 @@ partition@50000 { compatible = "denx,uimage"; label = "firmware"; - reg = <0x50000 0x3c8000>; + reg = <0x50000 0x3b0000>; }; }; }; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts index e128580ec80..e6a2c4ab171 100644 --- a/target/linux/ramips/dts/rt3050_tenda_w150m.dts +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -48,7 +48,7 @@ partition@50000 { compatible = "denx,uimage"; label = "firmware"; - reg = <0x50000 0x3c8000>; + reg = <0x50000 0x3b0000>; }; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts index 12476d238c0..ae8e6b8b45e 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts @@ -38,7 +38,7 @@ partition@50000 { compatible = "denx,uimage"; label = "firmware"; - reg = <0x50000 0x3c8000>; + reg = <0x50000 0x3b0000>; }; }; }; -- 2.30.2