[PATCH 5/5] ARM: phyCORE-AM335x: Update partition table

Alexander Aring alex.aring at gmail.com
Thu Sep 4 00:13:00 PDT 2014


Hi Teresa,

On Thu, Sep 04, 2014 at 08:50:40AM +0200, Teresa Gámez wrote:
> Added device tree partition and made rootfs partition
> variable size depending on nand flash size.
> 
> Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
> ---
>  arch/arm/dts/am335x-phytec-phycore.dts |   22 ++++++++++++++++++----
>  1 files changed, 18 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/dts/am335x-phytec-phycore.dts b/arch/arm/dts/am335x-phytec-phycore.dts
> index 16febd3..047dc15 100644
> --- a/arch/arm/dts/am335x-phytec-phycore.dts
> +++ b/arch/arm/dts/am335x-phytec-phycore.dts
> @@ -194,8 +194,13 @@
>  		};
>  
>  		partition at 3 {
> +			label = "oftree";
> +			reg = <0xc0000 0x20000>;
> +		};
> +
> +		partition at 4 {
>  			label = "kernel";
> -			reg = <0xc0000 0x400000>;
> +			reg = <0xe0000 0x400000>;
>  		};
>  	};
>  };
> @@ -305,13 +310,22 @@
>  		};
>  
>  		partition at 6 {
> -			label = "kernel";
> -			reg = <0x120000 0x800000>;
> +			label = "oftree";
> +			reg = <0x120000 0x20000>;
>  		};
>  
>  		partition at 7 {
> +			label = "kernel";
> +			reg = <0x140000 0x800000>;
> +		};
> +
> +		partition at 8 {
>  			label = "root";
> -			reg = <0x920000 0x1f6e0000>;
> +			/*
> +			 * Size 0x0 extends partition to
> +			 * end of nand flash.
> +			 */
> +			reg = <0x920000 0x0>;

I think this should be 0x940000 insead 0x920000.

>From partition7 7 "kernel" you have 0x140000 + 0x800000 = 0x940000.

I simple use the gnome-calculator in hex mode to check it.

- Alex



More information about the barebox mailing list