[openwrt/openwrt] bcm63xx: R5010UNv2: fix flash partitions for 16MB flash

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 11 09:55:11 EDT 2020


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cef9e5a49f496b64449fca6814fc1b66a45601c3

commit cef9e5a49f496b64449fca6814fc1b66a45601c3
Author: Daniel González Cabanelas <dgcbueu at gmail.com>
AuthorDate: Mon Jun 22 21:44:44 2020 +0200

    bcm63xx: R5010UNv2: fix flash partitions for 16MB flash
    
    The router Nucom R5010UN v2 has the partitions defined for a 8MB flash,
    but the flash chip is 16MB size. We are wasting half of the flash.
    
    Fix it and use generic names for partitions.
    
    Fixes: 474cde61234c ("brcm63xx: probe SPI flash through DT")
    
    Signed-off-by: Daniel González Cabanelas <dgcbueu at gmail.com>
---
 target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts b/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
index 639cef3a7e..365a4552f2 100644
--- a/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
@@ -94,20 +94,20 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			cfe at 0 {
+			partition at 0 {
 				reg = <0x000000 0x010000>;
 				label = "cfe";
 				read-only;
 			};
 
-			linux at 10000 {
-				reg = <0x010000 0x7e0000>;
+			partition at 10000 {
+				reg = <0x010000 0xfe0000>;
 				label = "linux";
 				compatible = "brcm,bcm963xx-imagetag";
 			};
 
-			nvram at 7f0000 {
-				reg = <0x7f0000 0x010000>;
+			partition at ff0000 {
+				reg = <0xff0000 0x010000>;
 				label = "nvram";
 			};
 		};



More information about the lede-commits mailing list