[PATCH 19.07] bcm63xx: R5010UNv2: fix flash partitions for 16MB flash

Adrian Schmutzler mail at adrianschmutzler.de
Thu Feb 4 16:17:10 EST 2021


Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of Daniel González Cabanelas
> Sent: Donnerstag, 4. Februar 2021 20:29
> To: openwrt-devel at lists.openwrt.org
> Cc: noltari at gmail.com
> Subject: [PATCH 19.07] 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: 474cde6 ("brcm63xx: probe SPI flash through DT")
> 
> Backport: cef9e5a49f "bcm63xx: R5010UNv2: fix flash partitions...."
> 
> Signed-off-by: Daniel González Cabanelas <dgcbueu at gmail.com>

Please use "git cherry-pick -x" next time for backporting commits.

I will take care of this one myself.

Thanks

Adrian

> ---
>  target/linux/brcm63xx/dts/r5010unv2.dts | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/target/linux/brcm63xx/dts/r5010unv2.dts
> b/target/linux/brcm63xx/dts/r5010unv2.dts
> index a782126..38478fc 100644
> --- a/target/linux/brcm63xx/dts/r5010unv2.dts
> +++ b/target/linux/brcm63xx/dts/r5010unv2.dts
> @@ -88,20 +88,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";
>  			};
>  		};
> --
> 2.30.0
> 
> 
> 
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210204/9657cffc/attachment.sig>


More information about the openwrt-devel mailing list