imx8mm-lpddr4 ECSPI2 boot

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

imx8mm-lpddr4 ECSPI2 boot

533 Views
vignesh-baskaran
Contributor III

Hi @AldoG , 

 

We were trying to boot from NOR memory through ECSPI2.  We flashed eFUSED, which is perfect and confirmed on another post.

We tried porting ECSPI2 to  via using the following command.
 
We added mtdparts=spi1.0:3072k(uboot),8k(env),128k(dtb),-(kernel)' at the kernel boot log and copied the image using dd.
dd if=imx-boot-imx8mm-lpddr4-evk-sd.bin-flash_evk of=/dev/mtdblock1 bs=1k seek=1 conv=fsync.
 
 
We getting an Unsupported boot device .
console-sd.png
We connected LA check. please refer below image.
 
without-off-mtdpart-mtdblock1.jpeg

We also tried /dev/mtd1 instead of /dev/mtdblock1. but we were unable to see output on the MISO line.

 

And also we tried with fspi image. We didnt see any console message.

please refer below.

fspi-mtdblock1-withoffset.jpeg

 

SPL is failing for us on both cases.

We also referring the following link for reference.
 
Can you please clarify on this one please?

 
0 Kudos
Reply
3 Replies

488 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @vignesh-baskaran 

I hope you are doing well.

for "Can't find PMIC:PCA9450" issue one can reffer below link
https://community.nxp.com/t5/i-MX-Processors/Can-t-find-PMIC-PCA9450/m-p/1153798#M161879

Please refer to this 4.4.1.4 Flashing U-Boot on SPI-NOR from U-Boot
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

Thanks & Regards

Sanket Parekh

0 Kudos
Reply

469 Views
vignesh-baskaran
Contributor III

Hi @Sanket_Parekh ,

1) if We can't use SD image, can you suggest alternative image which can work ECSPI2?

 

2) We tried to build Spinor image using the following command. but the build fails.

DISTRO=fsl-imx-wayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b <build folder>
echo "UBOOT_CONFIG = \"spinor\"" >> conf/local.conf
bitbake core-image-minimal

| cp: cannot stat '/home/vignesh/imx-yocto-bsp/spinor/tmp/deploy/images/imx8mm-lpddr4-evk/u-boot-spl.bin-imx8mm-lpddr4-evk-spinor': No such file or directory
| WARNING: exit code 1 from a shell command

3) Can you please let know is there prebuild image we can test with ECSPI2 memory?

0 Kudos
Reply

414 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @vignesh-baskaran ,

I hope you are doing well.

->The SPI-NOR flash memory can be configured using the Linux kernel command line.
mtdparts=spi32766.0:768k(uboot),8k(env),128k(dtb),-(kernel)

->U-Boot should be loaded at the 1 KB offset of the SPI-NOR memory so that the device can boot from it. The default configuration is that on boot up, U-Boot loads the kernel, DTB, and root file system from the SD/MMC card into DDRAM.

->Please make sure to follow the procedure as mentioned in the docs.
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

->To flash U-Boot on SPINOR, follow section 4.4.1.4 Flashing U-Boot on SPI-NOR from U-Boot.

->Please make sure to check Interface allocation during boot.
For that refer to Datasheet for more details.
https://www.nxp.com/docs/en/data-sheet/IMX8MMCEC.pdf

There is no prebuild image one has to flash the image itself on spi-nor.
https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

->One can also flash the image through eMMC as well as if not from an SD card.
For that refer to section 4.4.1.3 Using eMMC

Please make sure to follow the above suggestions.

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply