From: Alice Guo <alice....@nxp.com> Using this patch, a bootable flash.bin can be generated. It contains seco container image, scfw image, u-boot-spl.bin, atf and u-boot.bin.
Signed-off-by: Alice Guo <alice....@nxp.com> --- arch/arm/dts/imx8qxp-u-boot.dtsi | 40 ++++++------------------- board/freescale/imx8qxp_mek/imximage.cfg | 1 + board/freescale/imx8qxp_mek/uboot-container.cfg | 2 +- configs/imx8qxp_mek_defconfig | 1 + 4 files changed, 12 insertions(+), 32 deletions(-) diff --git a/arch/arm/dts/imx8qxp-u-boot.dtsi b/arch/arm/dts/imx8qxp-u-boot.dtsi index 8058caae9ba..06b697cd732 100644 --- a/arch/arm/dts/imx8qxp-u-boot.dtsi +++ b/arch/arm/dts/imx8qxp-u-boot.dtsi @@ -10,32 +10,6 @@ }; &binman { -#ifdef CONFIG_XPL_BUILD - u-boot-spl-ddr { - align = <4>; - align-size = <4>; - filename = "u-boot-spl-ddr.bin"; - pad-byte = <0xff>; - - u-boot-spl { - align-end = <4>; - filename = "u-boot-spl.bin"; - }; - }; - - spl { - filename = "spl.bin"; - - mkimage { - args = "-n spl/u-boot-spl.cfgout -T imx8image -e 0x100000"; - - blob { - filename = "u-boot-spl-ddr.bin"; - }; - }; - }; -#endif - itb { filename = "u-boot.itb"; @@ -120,16 +94,20 @@ }; }; -#ifdef CONFIG_XPL_BUILD imx-boot { filename = "flash.bin"; pad-byte = <0x00>; spl { - filename = "spl.bin"; - offset = <0x0>; - type = "blob-ext"; + align = <0x400>; + align-size = <0x400>; + type = "mkimage"; + args = "-n spl/u-boot-spl.cfgout -T imx8image"; + }; + + u-boot { + type = "mkimage"; + args = "-n u-boot-dtb.cfgout -T imx8image"; }; }; -#endif }; diff --git a/board/freescale/imx8qxp_mek/imximage.cfg b/board/freescale/imx8qxp_mek/imximage.cfg index 88d6955a9ef..cc21a8c3491 100644 --- a/board/freescale/imx8qxp_mek/imximage.cfg +++ b/board/freescale/imx8qxp_mek/imximage.cfg @@ -8,6 +8,7 @@ BOOT_FROM sd +DCD_SKIP true /* SoC type IMX8QX */ SOC_TYPE IMX8QX /* Append seco container image */ diff --git a/board/freescale/imx8qxp_mek/uboot-container.cfg b/board/freescale/imx8qxp_mek/uboot-container.cfg index b481c98f929..9e550a99e9e 100644 --- a/board/freescale/imx8qxp_mek/uboot-container.cfg +++ b/board/freescale/imx8qxp_mek/uboot-container.cfg @@ -9,4 +9,4 @@ BOOT_FROM SD 0x400 SOC_TYPE IMX8QX CONTAINER IMAGE A35 bl31.bin 0x80000000 -IMAGE A35 u-boot.bin CONFIG_TEXT_BASE +IMAGE A35 u-boot.bin 0x80020000 diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig index fa36b7b77a1..1120bac752c 100644 --- a/configs/imx8qxp_mek_defconfig +++ b/configs/imx8qxp_mek_defconfig @@ -43,6 +43,7 @@ CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set # CONFIG_SPL_LEGACY_IMAGE_FORMAT is not set CONFIG_SPL_LOAD_IMX_CONTAINER=y +CONFIG_IMX_CONFIG="board/freescale/imx8qxp_mek/imximage.cfg" CONFIG_IMX_CONTAINER_CFG="board/freescale/imx8qxp_mek/uboot-container.cfg" CONFIG_SPL_SYS_MALLOC_SIMPLE=y # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set -- 2.43.0