Flashing eMMC on iMX93

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

Flashing eMMC on iMX93

Jump to solution
4,621 Views
vbal
Contributor I


Hello !

I am currently working on a system that would be based on the i.MX93, I work with the i.MX 93 Evaluation Kit for now, and I have two questions :

  •  I can build the uboot bootloader and the .wic image with Yocto, flashing the wic on an SD card will work just fine, but if I flash the eMMC with dd , I will get several errors on dmesg, and the error fsl-se-fw se-fw2: Command Id[205], Response Failure = 0x29 continuously.
    With UUU I don't get those issues, but my board will not have USB and only SD card for updates/maintenance. Is there a way to flash through SD card easily ?
  • On the Yocto side, I could build an image with only the Open Embedded meta, and meta-freescale.
    Is meta-imx needed ? 

Thanks a lot !

Labels (1)
0 Kudos
Reply
1 Solution
4,500 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

meta-imx is need, you better use or modify based on yocto project NXP release.

I don't see same log when i use dd to flash mmc.

Best Regards
Zhiming

View solution in original post

0 Kudos
Reply
7 Replies
4,068 Views

Hello,

 

My answer arrives late but I just had the same error messages.

I solved it by unmounting mmcblk0 and 1 before using dd

 

Regards

 

 

0 Kudos
Reply
4,569 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @vbal 

How do you flash emmc with dd? boot into rootfs with SD card?

 

 

0 Kudos
Reply
4,556 Views
vbal
Contributor I
Hi ! Thanks for your reply.

Yes I boot with the SD card, then I just run a command like :
dd if=/mount/MyWicFile.wic of=/dev/mmcblk0

When I make a binary dump to verify mmcblk0 it seems to be the same structure as the SD card, SPL starts at 0x8000 and FAT partition at 0x800000
0 Kudos
Reply
4,501 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

meta-imx is need, you better use or modify based on yocto project NXP release.

I don't see same log when i use dd to flash mmc.

Best Regards
Zhiming

0 Kudos
Reply
4,419 Views
vbal
Contributor I
Thanks for your help !

I followed the procedure in the Linux guide, but the image was too big and I wanted to start from scratch with only linux-fscl.
I will give a try with meta-imx so, did you use the guide procedure and then dd the .wic into the eMMC ?

Interestingly, I tried buildroot and the kernel 6.6 creates the same issues with linux-imx as source, while 6.1 does not.

Thanks a lot again
0 Kudos
Reply
4,369 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @vbal 

did you use the guide procedure and then dd the .wic into the eMMC ?

-->Yes, dd the imx-image-core-xxx.wic file from SD card.


Best Regards
Zhiming

0 Kudos
Reply
4,335 Views
vbal
Contributor I
I tested with the IMX_YOCTO_PROJECT_USERS_GUIDE procedure, and indeed it seems to work all fine.

With only the meta-freescale layer, I used Poky as a distro, while I used fsl-imx-wayland here. Probably something is needed in the distro that I did not have before.

I will start from there so, thanks a lot !
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1967411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFlashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1967411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CBR%20%2F%3EHello%20!%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20on%20a%20system%20that%20would%20be%20based%20on%20the%20i.MX93%2C%20I%20work%20with%20the%26nbsp%3Bi.MX%2093%20Evaluation%20Kit%20for%20now%2C%20and%20I%20have%20two%20questions%20%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%26nbsp%3BI%20can%20build%20the%20uboot%20bootloader%20and%20the%20.wic%20image%20with%20Yocto%2C%20flashing%20the%20wic%20on%20an%20SD%20card%20will%20work%20just%20fine%2C%20but%20if%20I%20flash%20the%20eMMC%20with%20dd%20%2C%20I%20will%20get%20several%20errors%20on%20dmesg%2C%20and%20the%20error%26nbsp%3B%3CSTRONG%3Efsl-se-fw%20se-fw2%3A%20Command%20Id%5B205%5D%2C%20Response%20Failure%20%3D%200x29%26nbsp%3B%3C%2FSTRONG%3Econtinuously.%3CBR%20%2F%3EWith%20UUU%20I%20don't%20get%20those%20issues%2C%20but%20my%20board%20will%20not%20have%20USB%20and%20only%20SD%20card%20for%20updates%2Fmaintenance.%20Is%20there%20a%20way%20to%20flash%20through%20SD%20card%20easily%20%3F%3C%2FLI%3E%3CLI%3EOn%20the%20Yocto%20side%2C%20I%20could%20build%20an%20image%20with%20only%20the%20Open%20Embedded%20meta%2C%20and%20meta-freescale.%3CBR%20%2F%3EIs%20meta-imx%20needed%20%3F%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThanks%20a%20lot%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1967411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2008243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2008243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMy%20answer%20arrives%20late%20but%20I%20just%20had%20the%20same%20error%20messages.%3C%2FP%3E%3CP%3EI%20solved%20it%20by%20unmounting%20mmcblk0%20and%201%20before%20using%20dd%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ERegards%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20tested%20with%20the%20IMX_YOCTO_PROJECT_USERS_GUIDE%20procedure%2C%20and%20indeed%20it%20seems%20to%20work%20all%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20only%20the%20meta-freescale%20layer%2C%20I%20used%20Poky%20as%20a%20distro%2C%20while%20I%20used%20fsl-imx-wayland%20here.%20Probably%20something%20is%20needed%20in%20the%20distro%20that%20I%20did%20not%20have%20before.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20will%20start%20from%20there%20so%2C%20thanks%20a%20lot%20!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978875%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978875%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%2F241541%22%20target%3D%22_blank%22%3E%40vbal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Edid%20you%20use%20the%20guide%20procedure%20and%20then%20dd%20the%20.wic%20into%20the%20eMMC%20%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E--%26gt%3BYes%2C%20dd%20the%20imx-image-core-xxx.wic%20file%20from%20SD%20card.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1977483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThanks%20for%20your%20help%20!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20followed%20the%20procedure%20in%20the%20Linux%20guide%2C%20but%20the%20image%20was%20too%20big%20and%20I%20wanted%20to%20start%20from%20scratch%20with%20only%20linux-fscl.%3CBR%20%2F%3EI%20will%20give%20a%20try%20with%20meta-imx%20so%2C%20did%20you%20use%20the%20guide%20procedure%20and%20then%20dd%20the%20.wic%20into%20the%20eMMC%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3EInterestingly%2C%20I%20tried%20buildroot%20and%20the%20kernel%206.6%20creates%20the%20same%20issues%20with%20linux-imx%20as%20source%2C%20while%206.1%20does%20not.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20a%20lot%20again%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1971121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3C%2FP%3E%0A%3CP%3Emeta-imx%20is%20need%2C%20you%20better%20use%20or%20modify%20based%20on%20yocto%20project%20NXP%20release.%3C%2FP%3E%0A%3CP%3EI%20don't%20see%20same%20log%20when%20i%20use%20dd%20to%20flash%20mmc.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1968550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1968550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20!%20Thanks%20for%20your%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3EYes%20I%20boot%20with%20the%20SD%20card%2C%20then%20I%20just%20run%20a%20command%20like%20%3A%3CBR%20%2F%3Edd%20if%3D%2Fmount%2FMyWicFile.wic%20of%3D%2Fdev%2Fmmcblk0%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20I%20make%20a%20binary%20dump%20to%20verify%20mmcblk0%20it%20seems%20to%20be%20the%20same%20structure%20as%20the%20SD%20card%2C%20SPL%20starts%20at%200x8000%20and%20FAT%20partition%20at%200x800000%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1968282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Flashing%20eMMC%20on%20iMX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1968282%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%2F241541%22%20target%3D%22_blank%22%3E%40vbal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20do%20you%20flash%20emmc%20with%20dd%3F%20boot%20into%20rootfs%20with%20SD%20card%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E