Boot i.MX8M Mini from eCSPI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Boot i.MX8M Mini from eCSPI

528件の閲覧回数
baruchsiach
Contributor II

I am trying to bring-up eCSPI flash boot on i.MX8M Mini EVK. The flash chip is connected to ECSPI2 pins on the base board external connector.

I am using the same image that boots from SD card. Instead of SD card offset 33K, I write to SPI flash offset 1K (0x400). The image is built from mainline U-Boot v2021.07-rc3.

The serial console shows nothing when booting from SPI. But I was able to light the SOM LED using this code:

void *gpio_regs = (void *)0x30220000;

writel(0x30004, gpio_regs);
writel(0x10000, gpio_regs + 4);

 Changes in the clock_init() affect the LED light is seemingly random ways. It looks like misconfiguration of clock and/or power gate makes the code hang.

Is there any clear description of clock and power configuration differences between ECSPI boot and SD card boot? The information in the Reference Manual section 6.1.4 (Device initialization) is far from clear.

Thanks,

Baruch Siach

ラベル(1)
0 件の賞賛
1 返信

502件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Baruch

 

one can try nxp uboot/linux from source.codeaurora.org/external/imx/ repository

https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=imx_v2020.04_5.4.70_2.3.0

linux documentation:

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

also additional info was sent via mail.

 

Best regards
igor

0 件の賞賛