Flashing eMMC on iMX93

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Flashing eMMC on iMX93

跳至解决方案
4,860 次查看
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 !

标签 (1)
0 项奖励
回复
1 解答
4,739 次查看
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 项奖励
回复
7 回复数
4,307 次查看
Frederic_Thierry_Adlink
Contributor I

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 项奖励
回复
4,808 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @vbal 

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

 

 

0 项奖励
回复
4,795 次查看
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 项奖励
回复
4,740 次查看
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 项奖励
回复
4,658 次查看
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 项奖励
回复
4,608 次查看
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 项奖励
回复
4,574 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1967411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8%20iMX93%20%E4%B8%8A%E5%88%B7%E5%86%99%20eMMC%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%3E%E4%BD%A0%E5%A5%BD%20%EF%BC%81%3C%2FP%3E%3CP%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E5%BC%80%E5%8F%91%E4%B8%80%E4%B8%AA%E5%9F%BA%E4%BA%8E%20i.MX93%20%E7%9A%84%E7%B3%BB%E7%BB%9F%EF%BC%8C%E7%9B%AE%E5%89%8D%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%20i.MX%2093%20%E8%AF%84%E4%BC%B0%E5%A5%97%E4%BB%B6%EF%BC%8C%E6%88%91%E6%9C%89%E4%B8%A4%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%3CUL%3E%3CLI%3E%E6%88%91%E5%8F%AF%E4%BB%A5%E6%9E%84%E5%BB%BA%20uboot%20%E5%BC%95%E5%AF%BC%E7%A8%8B%E5%BA%8F%E5%92%8C%20.wic%E4%BD%BF%E7%94%A8%20Yocto%20%E7%9A%84%E5%9B%BE%E5%83%8F%EF%BC%8C%E5%9C%A8%20SD%20%E5%8D%A1%E4%B8%8A%E5%88%B7%E6%96%B0%20wic%20%E5%B0%B1%E5%8F%AF%E4%BB%A5%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%EF%BC%8C%E4%BD%86%E5%A6%82%E6%9E%9C%E6%88%91%E4%BD%BF%E7%94%A8%20dd%20%E5%88%B7%E6%96%B0%20eMMC%EF%BC%8C%E6%88%91%E4%BC%9A%E5%9C%A8%20dmesg%20%E4%B8%8A%E6%94%B6%E5%88%B0%E5%87%A0%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%8C%E5%B9%B6%E4%B8%94%E4%BC%9A%E8%BF%9E%E7%BB%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%3CSTRONG%3Efsl-se-fw%20se-fw2%3A%20Command%20Id%5B205%5D%2C%20Response%20Failure%20%3D%200x29%3C%2FSTRONG%3E%20%E3%80%82%3CBR%20%2F%3E%E4%BD%BF%E7%94%A8%20UUU%20%E6%88%91%E4%B8%8D%E4%BC%9A%E9%81%87%E5%88%B0%E8%BF%99%E4%BA%9B%E9%97%AE%E9%A2%98%EF%BC%8C%E4%BD%86%E6%88%91%E7%9A%84%E4%B8%BB%E6%9D%BF%E6%B2%A1%E6%9C%89%20USB%EF%BC%8C%E5%8F%AA%E6%9C%89%E7%94%A8%E4%BA%8E%E6%9B%B4%E6%96%B0%2F%E7%BB%B4%E6%8A%A4%E7%9A%84%20SD%20%E5%8D%A1%E3%80%82%E6%9C%89%E6%B2%A1%E6%9C%89%E5%8A%9E%E6%B3%95%E8%BD%BB%E6%9D%BE%E5%9C%B0%E5%88%B7%E6%96%B0%20SD%20%E5%8D%A1%EF%BC%9F%3C%2FLI%3E%3CLI%3E%E5%9C%A8%20Yocto%20%E6%96%B9%E9%9D%A2%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E4%BB%85%E4%BD%BF%E7%94%A8%20Open%20Embedded%20meta%20%E5%92%8C%20meta-freescale%20%E6%9D%A5%E6%9E%84%E5%BB%BA%E5%9B%BE%E5%83%8F%E3%80%82%3CBR%20%2F%3E%E9%9C%80%E8%A6%81%20meta-imx%20%E5%90%97%EF%BC%9F%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%E5%A4%9A%E8%B0%A2%20%EF%BC%81%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-1980748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8%20iMX93%20%E4%B8%8A%E5%88%B7%E6%96%B0%20eMMC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E4%BD%BF%E7%94%A8%20IMX_YOCTO_PROJECT_USERS_GUIDE%20%E7%A8%8B%E5%BA%8F%E8%BF%9B%E8%A1%8C%E4%BA%86%E6%B5%8B%E8%AF%95%EF%BC%8C%E7%A1%AE%E5%AE%9E%E4%B8%80%E5%88%87%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E7%94%B1%E4%BA%8E%E5%8F%AA%E6%9C%89%20meta-freescale%20%E5%B1%82%EF%BC%8C%E6%88%91%E4%BD%BF%E7%94%A8%20Poky%20%E4%BD%9C%E4%B8%BA%E5%8F%91%E8%A1%8C%E7%89%88%EF%BC%8C%E8%80%8C%E5%9C%A8%E8%BF%99%E9%87%8C%E6%88%91%E4%BD%BF%E7%94%A8%E4%BA%86%20fsl-imx-wayland%E3%80%82%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%AD%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E4%B8%80%E4%BA%9B%E6%88%91%E4%BB%A5%E5%89%8D%E6%B2%A1%E6%9C%89%E7%9A%84%E4%B8%9C%E8%A5%BF%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E5%B0%86%E4%BB%8E%E9%82%A3%E9%87%8C%E5%BC%80%E5%A7%8B%EF%BC%8C%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%EF%BC%81%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1977483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8%20iMX93%20%E4%B8%8A%E5%88%B7%E6%96%B0%20eMMC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%AE%E5%8A%A9%20%EF%BC%81%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E6%8C%89%E7%85%A7%20Linux%20%E6%8C%87%E5%8D%97%E4%B8%AD%E7%9A%84%E6%AD%A5%E9%AA%A4%E8%BF%9B%E8%A1%8C%E6%93%8D%E4%BD%9C%EF%BC%8C%E4%BD%86%E6%98%AF%E5%9B%BE%E5%83%8F%E5%A4%AA%E5%A4%A7%EF%BC%8C%E6%88%91%E5%8F%AA%E6%83%B3%E4%BB%8E%20linux-fscl%20%E4%BB%8E%E5%A4%B4%E5%BC%80%E5%A7%8B%E3%80%82%3CBR%20%2F%3E%E6%88%91%E4%BC%9A%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20meta-imx%EF%BC%8C%E9%82%A3%E4%B9%88%EF%BC%8C%E6%82%A8%E6%98%AF%E5%90%A6%E4%BD%BF%E7%94%A8%E4%BA%86%E6%8C%87%E5%8D%97%E7%A8%8B%E5%BA%8F%EF%BC%8C%E7%84%B6%E5%90%8E%E6%B7%BB%E5%8A%A0%E4%BA%86%20.wic%E8%BF%9B%E5%85%A5%20eMMC%EF%BC%9F%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%9C%89%E8%B6%A3%E7%9A%84%E6%98%AF%EF%BC%8C%E6%88%91%E5%B0%9D%E8%AF%95%E4%BA%86%20buildroot%EF%BC%8C%E5%86%85%E6%A0%B8%206.6%20%E4%B8%8E%20linux-imx%20%E4%BD%9C%E4%B8%BA%E6%BA%90%E4%BA%A7%E7%94%9F%E4%BA%86%E5%90%8C%E6%A0%B7%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%8C%E8%80%8C%206.1%20%E5%8D%B4%E6%B2%A1%E6%9C%89%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%86%8D%E6%AC%A1%E6%84%9F%E8%B0%A2%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1968550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8%20iMX93%20%E4%B8%8A%E5%88%B7%E6%96%B0%20eMMC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1968550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%A0%E5%A5%BD%20%EF%BC%81%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%98%AF%E7%9A%84%EF%BC%8C%E6%88%91%E4%BD%BF%E7%94%A8%20SD%20%E5%8D%A1%E5%90%AF%E5%8A%A8%EF%BC%8C%E7%84%B6%E5%90%8E%E6%88%91%E5%8F%AA%E9%9C%80%E8%BF%90%E8%A1%8C%E5%A6%82%E4%B8%8B%E5%91%BD%E4%BB%A4%EF%BC%9A%3CBR%20%2F%3E%20dd%20if%3D%2Fmount%2FMyWicFile.wic%20of%3D%2Fdev%2Fmmcblk0%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%BD%93%E6%88%91%E8%BF%9B%E8%A1%8C%E4%BA%8C%E8%BF%9B%E5%88%B6%E8%BD%AC%E5%82%A8%E4%BB%A5%E9%AA%8C%E8%AF%81%20mmcblk0%20%E6%97%B6%EF%BC%8C%E5%AE%83%E4%BC%BC%E4%B9%8E%E4%B8%8E%20SD%20%E5%8D%A1%E7%9A%84%E7%BB%93%E6%9E%84%E7%9B%B8%E5%90%8C%EF%BC%8CSPL%20%E4%BB%8E%200x8000%20%E5%BC%80%E5%A7%8B%EF%BC%8CFAT%20%E5%88%86%E5%8C%BA%E4%BB%8E%200x800000%20%E5%BC%80%E5%A7%8B%3C%2FLINGO-BODY%3E