ECSPI2 boot image for i.MX8MM

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

ECSPI2 boot image for i.MX8MM

2,714 次查看
ssnprod
Contributor I

Hi Community,

We are trying to boot iMX8mm board from ECSPI2 spi nor flash. 

We have burnt efuse for ECSPI2 and it was programmed correctly.

We are using SD pre-built image for ECSPI2 boot.

Boot flow stops at SPL; error message says that 

SPL: "Unsupported boot device" 

SPL : "Failed to boot from all boot devices"

We tried with all prebuilt binaries and custom uboot images in which SPL SPI-NOR interface is enabled in configurations. 

But "EXCEPT SD PRE-BUILT BINARY, NO OTHER IMAGE IS SHOWING CONSOLE PRINTS" 

So, I would like to understand:

 1) Why any other image is not even able to load SPL? 

 2) What is SPL expecting here? 

3) How can I let SPL know that it has to look at ECSPI2 interface for the uboot main app binary? (we tried customize uboot from wayland distro and standalone uboot but nothing shows up on console except SD prebuilt image) 

 

Best

Lakshmi

0 项奖励
回复
6 回复数

2,696 次查看
emmafrost1
Contributor I

It sounds like you are having trouble booting your iMX8mm board from the ECSPI2 SPI NOR flash. You have burned the efuse for ECSPI2 correctly, but the boot flow stops at SPL and tutuapp you are getting an "Unsupported boot device" error message. You have tried using pre-built binaries and custom u-boot images with SPL SPI-NOR interface enabled in configurations, but none of them are working except kodi the SD pre-built binary.

To answer your questions:

  1. It's unclear why the other images are not able to load SPL. It could be a configuration issue or a problem with the image itself.

  2. SPL is expecting to find the u-boot image on a boot device that it supports. In your case, it seems that it is not recognizing the ECSPI2 SPI NOR flash as a valid boot device.

  3. To let SPL know that it should look for the u-boot image on the ECSPI2 interface, you will need to modify the SPL source code and configure it accordingly. This is typically done by setting the appropriate boot device parameters in the board-specific configuration files. Without more information about your setup and the specific image you are using, it's difficult to provide more detailed guidance.

0 项奖励
回复

2,607 次查看
ssnprod
Contributor I

Hi community,

Anyone can help on this issue? We are struggling to boot the board from ECSPI2 from long since without success.

No clear documentation provided anywhere about ECSPI booting by NXP.  We have reached critical stage of our project now and we still got stuck at boot process. 

 

Any help by anybody is highly appreciated. 

 

Best

Lakshmi

0 项奖励
回复

2,650 次查看
ssnprod
Contributor I

Hi @emmafrost1 

Did you get chance to look into it. Please update ASAP. As said,the project is in critical stage.

 

Best

Lakshmi

0 项奖励
回复

2,682 次查看
ssnprod
Contributor I

Hi @emmafrost1

Thanks for your response. 

We are using imx8mm-lpddr4-evk board for our prototyping. 

We would like to use ECSPI2 interface for booting Linux. 

We interfaced MT25QL02GCBB8E12-0SIT part on ECSPI2. ANd have the eFuse programmed for ECSPI2 boot.

For testing  ECSPI2 interface We have enabled it in Linux (booted from SD card) and able to program with mtdparts and dd commands with boot image. 

We would like have uboot and Linux on ECSPI flash. 

Main agenda is to keep SD,eMMC NAND flash interfaces free for other application usage. 

Problem is we got stuck at bootloader, As the SPL fails to find boot device. (attached is the screenshot for your reference) 

Would you please provide yocto and/or standalone uboot and linux configuration for our EVK(imx8mm-lpddr4-evk) to make SPL boot from ECSPI2? 

Our project is in very time critical phase, we have our custom board ready. If we cannot prove ECSPI2 boot on EVK it will be a major setback to our project.  

Any immediate help would be highly appreciated. 

Thanks in advance. 

 

Best

Lakshmi

  

 

0 项奖励
回复

2,616 次查看
ssnprod
Contributor I

Hi @emmafrost1 

Would you please look into it? 

We are in critical situation now. 

Best

Lakshmi

0 项奖励
回复

2,580 次查看
ssnprod
Contributor I

hi @emmafrost1 

any update on this?

 

Best

Lakshmi

0 项奖励
回复