Error assembling flash.bin with imx-mkimage: mkimage_uboot command missing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error assembling flash.bin with imx-mkimage: mkimage_uboot command missing

ソリューションへジャンプ
1,938件の閲覧回数
Dial
Contributor I

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.

0 件の賞賛
返信
1 解決策
1,932件の閲覧回数
dianapredescu
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

3 返答(返信)
1,911件の閲覧回数
Dial
Contributor I

Problem solved.

Thank you very much.

0 件の賞賛
返信
1,921件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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

1,933件の閲覧回数
dianapredescu
NXP Employee
NXP Employee

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