[U-Boot] [PATCH 03/22] imx8m: add image cfg for i.MX8MM lpddr4

Schrempf Frieder frieder.schrempf at kontron.de
Wed Aug 14 07:59:18 UTC 2019


On 09.08.19 06:14, Peng Fan wrote:
> There is no HDMI on i.MX8MM, so we need to remove HDMI entry, then
> we could not reuse imximage.cfg, so create a new one.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>   arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 16 ++++++++++++++++
>   1 file changed, 16 insertions(+)
>   create mode 100644 arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg
> 
> diff --git a/arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg b/arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg
> new file mode 100644
> index 0000000000..1a2e43e671
> --- /dev/null
> +++ b/arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg
> @@ -0,0 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * Copyright 2019 NXP
> + */
> +
> +#define __ASSEMBLY__
> +
> +FIT
> +BOOT_FROM	sd
> +LOADER		spl/u-boot-spl-ddr.bin	0x7E1000
> +SECOND_LOADER	u-boot.itb		0x40200000 0x60000

What's the reason behind putting the u-boot.itb inside the imx image? I 
think it would be better to have an imx image that contains only the SPL 
and can be put on MMC, flash or loaded via serial loader. The raw 
u-boot.itb can easily be put to the correct location in MMC, flash or 
RAM by itself, without being included in the imx image.

My current implementation for my custom board uses a custom imximage.cfg 
with the SECOND_LOADER entry removed to achieve this.

> +
> +DDR_FW lpddr4_pmu_train_1d_imem.bin
> +DDR_FW lpddr4_pmu_train_1d_dmem.bin
> +DDR_FW lpddr4_pmu_train_2d_imem.bin
> +DDR_FW lpddr4_pmu_train_2d_dmem.bin

What's the reason for specifying the firmware files here? As far as I 
can see, the DDR_FW entries are not handled by imx8mimage.c in any way.


More information about the U-Boot mailing list