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
Solved! Go to Solution.
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
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)
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.
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.
Hi Qiang_FSL
sf command is missing in u-boot. I am using u-boot-2009.08 source.
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
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
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?
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