SPI flash on MCIMX28EVK

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

SPI flash on MCIMX28EVK

跳至解决方案
5,379 次查看
pt
Senior Contributor I

Hi Qiang_FSL, PeterChan , igorpadykov, FabioEstevam

I am using Micron Serial NOR Flash Memory (N25Q128A) on MCIMX28EVK. How can I load my image to flash? Is it possible to boot from sd card and then loading the linux image to flash?

How can I achieve it? How to configure SPI in kernel?

Linux Kernel version: 2.6.35

Regards

Parvathy

Message was edited by: Pt A R

标签 (2)
标记 (2)
1 解答
4,598 次查看
pt
Senior Contributor I

The spi mode for n25q128 is 3. I have changed the spi mode to 3

=> sf probe

SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB

在原帖中查看解决方案

0 项奖励
回复
8 回复数
4,598 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

You can reference to the followed document:

https://community.freescale.com/docs/DOC-93632

How to enable SPI NOR boot for i.MX28 (Spansion s25fl256s)

4,598 次查看
pt
Senior Contributor I

Can I follow that steps for MIcron SPI flash?

I am using L2.6.35_1.1.0_130130_source.But the patch listed in that thread is for 11.09.01 BSP.

0 项奖励
回复
4,598 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

You shoul reference to that patch and add the support for your Micron SPI NOR support, the access method for different vendor 's SPI NOR is difference.

4,598 次查看
pt
Senior Contributor I

Hi Qiang_FSL

sf command is missing in u-boot. I am using u-boot-2009.08 source.

0 项奖励
回复
4,598 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

Please make sure the followed setting had been included in Uboot config file "mex28_evk.h":

/*
* SPI Driver
*/
#define CONFIG_CMD_SPI
#define CONFIG_CMD_SF

#ifdef CONFIG_CMD_SPI
#define CONFIG_MXS_SPI
#define CONFIG_DEFAULT_SPI_BUS  2
#define CONFIG_DEFAULT_SPI_MODE  SPI_MODE_3
#define CONFIG_SF_DEFAULT_SPEED  20000000
#define CONFIG_SPI_FLASH
#define CONFIG_SPI_FLASH_SPANSION
#define CONFIG_SPI_FLASH_CS 0
#endif

4,598 次查看
pt
Senior Contributor I

Hi Qiang_FSL

sf probe 2:0

SF: Unsupported flash IDs: manuf ff, jedec ffff, ext_jedec ffff

Failed to initialize SPI flash at 2:0

I have define #defined CONFIG_SPI_FLASH_STMICRO. But still getting the  error.

Regards

Pt

0 项奖励
回复
4,598 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

I think you should check the SPI signal, did you used correct CS pin? Is there SPI waveform to your SPI NOR.

It seems you are not the techinical people, do you have software engineer which can help you to implement such porting tasks?

0 项奖励
回复
4,599 次查看
pt
Senior Contributor I

The spi mode for n25q128 is 3. I have changed the spi mode to 3

=> sf probe

SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB

0 项奖励
回复