imx-mkimage in yocto: generate_ivt_for_fit error: not a FIT file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-mkimage in yocto: generate_ivt_for_fit error: not a FIT file

157 Views
CrazyDeveloper
Contributor II

Hi! I am trying to create a flash.bin in Yocto using imx-mkimage. First, I build manually in my Host Machine following the below steps and it worked fine.

cp ../uboot-imx/spl/u-boot-spl.bin iMX8M/
cp ../uboot-imx/u-boot-nodtb.bin iMX8M/
cp ../uboot-imx/arch/arm/dts/fsl-imx8mm-evk.dtb iMX8M/

cp ../imx-atf/build/imx8mm/release/bl31.bin iMX8M/

cp ../firmware-imx/firmware-imx-8.5/firmware/ddr/synopsys/lpddr4_pmu_train_* iMX8M/

cp ../uboot-imx/tools/mkimage iMX8M/mkimage_uboot

and

make SOC=iMX8MM flash_evk

Using these steps in host machine, flash.bin created successfully and it worked on Hardware too. Ho

 

So, I tried to replicate the same procedure in yocto creating a imx-mkimage_%.bbappend file given below

S = "${WORKDIR}/git"
inherit devicetree
DEPENDS += "u-boot-tools"
DEPENDS += "u-boot-mkimage-native"

do_configure:append() {
# copy comptrol DDR binaries to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/lpddr4_pmu_train_1d_dmem.bin ${S}/iMX8M
cp ${DEPLOY_DIR_IMAGE}/lpddr4_pmu_train_1d_imem.bin ${S}/iMX8M
cp ${DEPLOY_DIR_IMAGE}/lpddr4_pmu_train_2d_dmem.bin ${S}/iMX8M
cp ${DEPLOY_DIR_IMAGE}/lpddr4_pmu_train_2d_imem.bin ${S}/iMX8M

# copy u-boot binary to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/u-boot-nodtb.bin ${S}/iMX8M

# copy SPL binary to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin ${S}/iMX8M

# copy U-boot Device Tree to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.dtb ${S}/iMX8M/fsl-imx8mm-evk.dtb

# copy U-boot itb file to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/u-boot.itb ${S}/iMX8M/u-boot.itb

# copy ATF binary binary to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/bl31-imx8mm.bin ${S}/iMX8M/bl31.bin

# copy mkimage_uboot binary to WORKDIR
cp ${DEPLOY_DIR_IMAGE}/mkimage_uboot ${S}/iMX8M/mkimage_uboot
}

EXTRA_OEMAKE = "SOC=iMX8MM flash_evk"


But in yocto, I am getting the following error

generate_ivt_for_fit error: not a FIT file
make[1]: *** [soc.mak:277: flash_evk_no_hdmi] Error 1
make: *** [Makefile:23: flash_evk] Error 2

 

0 Kudos
2 Replies

98 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

is probably that you have to burn again your yocto please check this guidelines rules:

one can refer to section 5.3 Building an image from i.MX Yocto Project User's Guide to build the image using Yocto.
 
Regards
0 Kudos

96 Views
CrazyDeveloper
Contributor II
Hi!
I removed the following patch from meta-freescale (file://0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch) and run the following recipe again by adding make clean in the recipe and it worked
do_compile() {
cd ${S}
make clean
make SOC=iMX8MM flash_evk
}

However, I can't add the package in my core-image-sato as it was using many native packages and can't be included in the image. So, now I have moved to imx-boot recipe