Error in building imx-boot image for iMX93 11x11 EVK using imx-mkimage

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

Error in building imx-boot image for iMX93 11x11 EVK using imx-mkimage

Jump to solution
1,967 Views
Bob_NXP_user
Contributor III

Hello everyone,

I'm tryng to build the imx-boot image by using imx-mkimage, following the steps I found for i.MX 93 A1 in Linux Users Guide (from 39/166 to 40/166):

https://www.nxp.com/doc/IMX_LINUX_USERS_GUIDE

I succesfully build u-boot.bin and u-boot-spl.bin (GitHub - nxp-imx/uboot-imx at lf_v2023.04) and I and I copied them in imx-mkimage/iMX93 (source: GitHub - nxp-imx/imx-mkimage: i.MX Mkimage Bootloader Tool 6.6.3_1.0.0).

In the same folder I put bl31.bin, generated from  GitHub - nxp-imx/imx-atf: i.MX ARM Trusted firmware together with mx93a1-ahab-container.img (u-boot/doc/board/nxp/imx93_11x11_evk.rst at master · u-boot/u-boot · GitHub) . So the final content of the folder is this:

immagine (2).jpg

When it comes to run the command:

make SOC=iMX93 flash_singleboot

The output gives the following error:

immagine (3).jpg

Can anyone help me with this issue? I can't figure out what is going on.

Thanks, in advance,

Bob

 

 

0 Kudos
Reply
1 Solution
1,838 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

This is another issue missing DDR firmware.

Follow the steps as below.

wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.23.bin

chmod +x firmware-imx-8.23.bin

./firmware-imx-8.23.bin

copy missing ddr firmware from -> firmware-imx-8.23/firmware/ddr/synopsys/

 

Regards

Harvey

 

View solution in original post

0 Kudos
Reply
6 Replies
1,925 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @Bob_NXP_user 

It seems that the commit number has not been generated. please make sure your download. Have a run "git rev-parse --short=8 HEAD >> src/build_info.h" to see what it is.

 

Regards

Harvey

0 Kudos
Reply
1,904 Views
Bob_NXP_user
Contributor III

Hello @Harvey021 ,

Thanks for responding,

I tried the command you suggested and this is the output:

 

immagine (4).jpg

Can you tell me what I have to do next?

Thanks,

Bob

0 Kudos
Reply
1,869 Views
Harvey021
NXP TechSupport
NXP TechSupport

This seems to be a problem with your git.

or did you download the imx-mkimage in git clone?

 

Regards

Harvey

0 Kudos
Reply
1,852 Views
Bob_NXP_user
Contributor III

Hello,

I tried to do the gitclone command as you suggested:

git clone https://github.com/nxp-imx/imx-mkimage.git

immagine (5).jpg

The download terminated succesfully, then I moved all the necessary files into iMX93 folder. Then I execute: 

make SOC=iMX93 flash_singleboot

this command returns:

immagine (6).jpg

How can i go ahead?

Regards,

Bob

0 Kudos
Reply
1,839 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

This is another issue missing DDR firmware.

Follow the steps as below.

wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.23.bin

chmod +x firmware-imx-8.23.bin

./firmware-imx-8.23.bin

copy missing ddr firmware from -> firmware-imx-8.23/firmware/ddr/synopsys/

 

Regards

Harvey

 

0 Kudos
Reply
1,817 Views
Bob_NXP_user
Contributor III

Thank you, now it works!

Regards,

Bob

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2058655%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EError%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2058655%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3EI'm%20tryng%20to%20build%20the%20imx-boot%20image%20by%20using%20imx-mkimage%2C%20following%20the%20steps%20I%20found%20for%20i.MX%2093%20A1%20in%20Linux%20Users%20Guide%20(from%2039%2F166%20to%2040%2F166)%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdoc%2FIMX_LINUX_USERS_GUIDE%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdoc%2FIMX_LINUX_USERS_GUIDE%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20succesfully%20build%26nbsp%3B%3CSPAN%3Eu-boot.bin%20and%20u-boot-spl.bin%20(%3CA%20title%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%2Ftree%2Flf_v2023.04%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%2Ftree%2Flf_v2023.04%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%22%3EGitHub%20-%20nxp-imx%2Fuboot-imx%20at%20lf_v2023.04%3C%2FA%3E)%20and%20I%20and%20I%20copied%20them%20in%20imx-mkimage%2FiMX93%26nbsp%3B(source%3A%20%3CA%20title%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%22%3EGitHub%20-%20nxp-imx%2Fimx-mkimage%3A%20i.MX%20Mkimage%20Bootloader%20Tool%3C%2FA%3E%206.6.3_1.0.0).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20the%20same%20folder%20I%20put%20bl31.bin%2C%20generated%20from%26nbsp%3B%20%3CA%20title%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-atf%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-atf%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%22%3EGitHub%20-%20nxp-imx%2Fimx-atf%3A%20i.MX%20ARM%20Trusted%20firmware%3C%2FA%3E%26nbsp%3Btogether%20with%26nbsp%3Bmx93a1-ahab-container.img%20(%3CA%20title%3D%22https%3A%2F%2Fgithub.com%2Fu-boot%2Fu-boot%2Fblob%2Fmaster%2Fdoc%2Fboard%2Fnxp%2Fimx93_11x11_evk.rst%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fu-boot%2Fu-boot%2Fblob%2Fmaster%2Fdoc%2Fboard%2Fnxp%2Fimx93_11x11_evk.rst%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%22%3Eu-boot%2Fdoc%2Fboard%2Fnxp%2Fimx93_11x11_evk.rst%20at%20master%20%C2%B7%20u-boot%2Fu-boot%20%C2%B7%20GitHub%3C%2FA%3E)%20.%20So%20the%20final%20content%20of%20the%20folder%20is%20this%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22immagine%20(2).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22immagine%20(2).jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327342iA147664F8CA04798%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22immagine%20(2).jpg%22%20alt%3D%22immagine%20(2).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20it%20comes%20to%20run%20the%20command%3A%3C%2FP%3E%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%3CSPAN%3Emake%20SOC%3DiMX93%20flash_singleboot%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20output%20gives%20the%20following%20error%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22immagine%20(3).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22immagine%20(3).jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327343i5547213FCFB203E8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22immagine%20(3).jpg%22%20alt%3D%22immagine%20(3).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECan%20anyone%20help%20me%20with%20this%20issue%3F%20I%20can't%20figure%20out%20what%20is%20going%20on.%3C%2FP%3E%3CP%3EThanks%2C%20in%20advance%2C%3C%2FP%3E%3CP%3EBob%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2063910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%2C%20now%20it%20works!%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EBob%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2063359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EThis%20is%20another%20issue%20missing%20DDR%20firmware.%3C%2FP%3E%0A%3CP%3EFollow%20the%20steps%20as%20below.%3C%2FP%3E%0A%3CP%3Ewget%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Flgfiles%2FNMG%2FMAD%2FYOCTO%2Ffirmware-imx-8.23.bin%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Flgfiles%2FNMG%2FMAD%2FYOCTO%2Ffirmware-imx-8.23.bin%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Echmod%20%2Bx%26nbsp%3Bfirmware-imx-8.23.bin%3C%2FP%3E%0A%3CP%3E.%2Ffirmware-imx-8.23.bin%3C%2FP%3E%0A%3CP%3Ecopy%20missing%20ddr%20firmware%20from%20-%26gt%3B%26nbsp%3Bfirmware-imx-8.23%2Ffirmware%2Fddr%2Fsynopsys%2F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2062969%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062969%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20tried%20to%20do%20the%20gitclone%20command%20as%20you%20suggested%3A%3C%2FP%3E%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%3CSPAN%3Egit%20clone%20%3CA%20title%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage.git%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage.git%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage.git%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22immagine%20(5).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22immagine%20(5).jpg%22%20style%3D%22width%3A%20665px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328412i297DCE0B96D3F64D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22immagine%20(5).jpg%22%20alt%3D%22immagine%20(5).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20download%20terminated%20succesfully%2C%20then%20I%20moved%20all%20the%20necessary%20files%20into%20iMX93%20folder.%20Then%20I%20execute%3A%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%3CSPAN%3Emake%20SOC%3DiMX93%20flash_singleboot%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22lia-align-left%22%20style%3D%22text-align%20%3A%20left%3B%22%20style%3D%22text-align%20%3A%20left%3B%22%3E%3CSPAN%3Ethis%20command%20returns%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22immagine%20(6).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22immagine%20(6).jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328413i68A3B036DC50B088%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22immagine%20(6).jpg%22%20alt%3D%22immagine%20(6).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHow%20can%20i%20go%20ahead%3F%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EBob%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2062627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EThis%20seems%20to%20be%20a%20problem%20with%20your%20git.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eor%20did%20you%20download%20the%20imx-mkimage%20in%20git%20clone%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3ERegards%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHarvey%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2062162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F192970%22%20target%3D%22_blank%22%3E%40Harvey021%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThanks%20for%20responding%2C%3C%2FP%3E%3CP%3EI%20tried%20the%20command%20you%20suggested%20and%20this%20is%20the%20output%3A%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22immagine%20(4).jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22immagine%20(4).jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328178iF88ED41E0A57AB0B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22immagine%20(4).jpg%22%20alt%3D%22immagine%20(4).jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECan%20you%20tell%20me%20what%20I%20have%20to%20do%20next%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBob%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2060009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Error%20in%20building%20imx-boot%20image%20for%20iMX93%2011x11%20EVK%20using%20imx-mkimage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2060009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234070%22%20target%3D%22_blank%22%3E%40Bob_NXP_user%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20that%20the%20commit%20number%20has%20not%20been%20generated.%20please%20make%20sure%20your%20download.%20Have%20a%20run%20%22git%20rev-parse%20--short%3D8%20HEAD%20%26gt%3B%26gt%3B%20src%2Fbuild_info.h%22%20to%20see%20what%20it%20is.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E