From patchwork Thu Apr 9 08:44:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ye Li X-Patchwork-Id: 237493 List-Id: U-Boot discussion From: ye.li at nxp.com (Ye Li) Date: Thu, 9 Apr 2020 01:44:43 -0700 Subject: [PATCH] imx: Fix imx8m FIT script issue Message-ID: <1586421883-21999-1-git-send-email-ye.li@nxp.com> The FIT config node has reversed ATF and u-boot: ATF is set to firmware but u-boot is set to loadable. This script can work previously because spl fit driver wrongly appends fdt to all loadable images. With the issue fixed, the u-boot in loadable does not have fdt appended and fails to work. So correct script by moving u-boot to firmware and ATF to loadable. Signed-off-by: Ye Li Reported-by: Matt Porter Tested-by: Matt Porter --- arch/arm/mach-imx/mkimage_fit_atf.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/mkimage_fit_atf.sh b/arch/arm/mach-imx/mkimage_fit_atf.sh index ad81d5e..dd1ca5a 100755 --- a/arch/arm/mach-imx/mkimage_fit_atf.sh +++ b/arch/arm/mach-imx/mkimage_fit_atf.sh @@ -116,8 +116,8 @@ if [ -f $BL32 ]; then cat << __CONF_SECTION_EOF config@$cnt { description = "$(basename $dtname .dtb)"; - firmware = "atf at 1"; - loadables = "uboot at 1", "tee at 1"; + firmware = "uboot at 1"; + loadables = "atf at 1", "tee at 1"; fdt = "fdt@$cnt"; }; __CONF_SECTION_EOF @@ -125,8 +125,8 @@ else cat << __CONF_SECTION1_EOF config@$cnt { description = "$(basename $dtname .dtb)"; - firmware = "atf at 1"; - loadables = "uboot at 1"; + firmware = "uboot at 1"; + loadables = "atf at 1"; fdt = "fdt@$cnt"; }; __CONF_SECTION1_EOF