Re: [PATCH 19/22] ARM: dts: phycard-i.MX27: Add environment and NAND partitioning

Alexander Shiyan shc_work at mail.ru
Fri Jan 17 11:20:33 EST 2014


Пятница, 17 января 2014, 16:03 +01:00 от Sascha Hauer <s.hauer at pengutronix.de>:
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/dts/imx27-phytec-phycard-s-som.dts | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/arch/arm/dts/imx27-phytec-phycard-s-som.dts b/arch/arm/dts/imx27-phytec-phycard-s-som.dts
> index c0341da..eba6240 100644
> --- a/arch/arm/dts/imx27-phytec-phycard-s-som.dts
> +++ b/arch/arm/dts/imx27-phytec-phycard-s-som.dts
> @@ -19,6 +19,11 @@
>  
>  	chosen {
>  		linux,stdout-path = &uart1;
> +
> +		environment at 0 {
> +			compatible = "barebox,environment";
> +			device-path = &nfc, "partname:barebox-environment";
> +		};
>  	};
>  
>  	memory {
> @@ -74,4 +79,24 @@
>  	nand-ecc-mode = "hw";
>  	nand-on-flash-bbt;
>  	status = "okay";
> +
> +	partition at 0 {
> +		label = "barebox";
> +		reg = <0x0 0x80000>;
> +	};
> +
> +	partition at 1 {
> +		label = "barebox-environment";
> +		reg = <0x80000 0x80000>;
> +	};

I would suggest names "boot" and "env".
This will be transparent to other bootloaders and will
not cause criticism if the change will go into the kernel.

---


More information about the barebox mailing list