[RFC PATCH v1] dts: imx8mp-u-boot.dtsi align flash.bin

Peng Fan peng.fan at nxp.com
Mon Oct 14 08:29:05 CEST 2024


Hi Heiko,

With the two applied, with latest U-Boot, uuu works
well on i.MX8MP-EVK
https://lore.kernel.org/all/20241012093410.9069-1-peng.fan@oss.nxp.com/
https://lore.kernel.org/all/20241011105827.7729-1-peng.fan@oss.nxp.com/

Would you share your commit hash and boot log?

Regards,
Peng.

> Subject: [RFC PATCH v1] dts: imx8mp-u-boot.dtsi align flash.bin
> 
> trying to load current flash.bin with uuu tool leads in not booting U-
> Boot as missing some bytes.
> 
> Align flash.bin in this case to 0x800 bytes, to make uuu and ROM api
> happy.
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
> I am unsure about the value of 0x800 which is twice the value the code
> in spl_romapi_load_image_stream(), requests from romapi which in my
> case on imx8mp is 0x400...
> 
> May I oversee something?
> 
>  arch/arm/dts/imx8mp-u-boot.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-
> u-boot.dtsi index 56749ccacd..3c0bf8c4d6 100644
> --- a/arch/arm/dts/imx8mp-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mp-u-boot.dtsi
> @@ -85,6 +85,7 @@
>  	filename = "flash.bin";
>  	section {
>  		pad-byte = <0x00>;
> +		align-size = <0x800>;
> 
>  #ifdef CONFIG_IMX_HAB
>  		nxp-imx8mcst at 0 {
> --
> 2.20.1



More information about the U-Boot mailing list