Hello:
I am trying to build a flash.bin binary with imx-mkimage got from GitHub - Freescale/imx-mkimage: FSLC Community fork of i.MX MkImage (original code in https://source... but have the following error:
$ make SOC=iMX8M flash_spl_uboot
Compiling mkimage_imx8
./mkimage_fit_atf.sh fsl-imx8mq-evk.dtb > u-boot.its
bl31.bin size:
37137
u-boot-nodtb.bin size:
584160
fsl-imx8mq-evk.dtb size:
22239
./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot-lpddr4.itb
make[1]: ./mkimage_uboot: Command not found
make[1]: *** [soc.mak:57: u-boot-lpddr4.itb] Error 127
make: *** [Makefile:20: flash_spl_uboot] Error 2
mkimage_uboot command/script does not exist in the system.
Could someone help me?
Thanks in advance.
Solved! Go to Solution.
Hello,
I recommend looking into the official Linux User Guide https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf page 41 / 111. There you have detailed steps for building uboot with imx-mkimage for i.MX 8M EVK. ( the first step is:
1. Copy and rename mkimage from u-boot/tools/mkimage to imx-mkimage/iMX8M/mkimage_uboot
and I think that answers your question).
The official repo for imx-mkimage -> https://source.codeaurora.org/external/imx/imx-mkimage/?h=lf-5.10.72_2.2.0
with additional inormation on where to find/build the necessary files: https://source.codeaurora.org/external/imx/imx-mkimage/tree/iMX8M/README?h=lf-5.10.72_2.2.0
Let me know if further information is needed.
Best regards,
Diana
Problem solved.
Thank you very much.
Hello,
Please follow up the recommendation from Diana.
Also, I think that you haven't probably compiled the U-boot according to below:
2. u-boot and SPL images (Mandatory, used for all targets) Files: u-boot.bin and u-boot-spl.bin Git: ssh://git@sw-stash.freescale.net/imx/uboot-imx.git Directory: ./u-boot.bin and spl/u-boot-spl.bin Build command: make imx8mq_evk_defconfig; make
So then the binary mkimage_uboot missed.
Best regards
Harvey
Hello,
I recommend looking into the official Linux User Guide https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf page 41 / 111. There you have detailed steps for building uboot with imx-mkimage for i.MX 8M EVK. ( the first step is:
1. Copy and rename mkimage from u-boot/tools/mkimage to imx-mkimage/iMX8M/mkimage_uboot
and I think that answers your question).
The official repo for imx-mkimage -> https://source.codeaurora.org/external/imx/imx-mkimage/?h=lf-5.10.72_2.2.0
with additional inormation on where to find/build the necessary files: https://source.codeaurora.org/external/imx/imx-mkimage/tree/iMX8M/README?h=lf-5.10.72_2.2.0
Let me know if further information is needed.
Best regards,
Diana