SPI flash on MCIMX28EVK

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

SPI flash on MCIMX28EVK

Jump to solution
1,901 Views
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

Labels (2)
1 Solution
1,120 Views
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

View solution in original post

0 Kudos
8 Replies
1,120 Views
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)

1,120 Views
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 Kudos
1,120 Views
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.

1,120 Views
pt
Senior Contributor I

Hi Qiang_FSL

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

0 Kudos
1,120 Views
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

1,120 Views
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 Kudos
1,120 Views
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 Kudos
1,121 Views
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 Kudos