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
Hello,
is probably that you have to burn again your yocto please check this guidelines rules: