[PATCH u-boot-mvebu 1/2] ARM: dts: armada-385-turris-omnia: add `u-boot-env` NOR partition

Stefan Roese sr at denx.de
Mon Jul 19 09:04:14 CEST 2021


On 15.07.21 19:21, Marek Behún wrote:
> Specify a separate partition `u-boot-env` for U-Boot's env settings for
> the Turris Omnia board.
> 
> Do this only in U-Boot's specific DTS. We do not want to do this in
> Linux' official DTS, because Omnia's stock U-Boot stores env at a
> different address, and there are still boards with stock U-Boot.
> 
> In a subsequent patch will add board code that fixes Linux's DTB before
> booting Linux.
> 
> Signed-off-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi b/arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi
> index af0655daaa..3ff76c9462 100644
> --- a/arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi
> +++ b/arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi
> @@ -43,6 +43,17 @@
>   
>   	spi-nor at 0 {
>   		u-boot,dm-pre-reloc;
> +
> +		partitions {
> +			partition at 0 {
> +				reg = <0x0 CONFIG_ENV_OFFSET>;
> +			};
> +
> +			partition at f0000 {
> +				reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
> +				label = "u-boot-env";
> +			};
> +		};
>   	};
>   };
>   
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list