How to add spi nor flash in uboot

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

How to add spi nor flash in uboot

6,985 次查看
赵振业
Contributor I

Hi there: 

            Our board is desiged a qspi nor flash  to hold uboot, is there any porting guide or introduces about how to add spi nor flash on imx6q sabre auto board? 

标签 (3)
0 项奖励
回复
3 回复数

4,733 次查看
joanxie
NXP TechSupport
NXP TechSupport

I got reply as below:

"

The linux kernel uses the following software layers when interacting with a spi-nor memory device: mtd / spi-nor framework, spi bus driver / qspi, spi-nor chip. This set of drivers is used when interacting with a m25p32.

 

To find other spi-nor memories that should have the same interface, you can look at the id table used by the spi-nor framework (implemented in drivers/mtd/spi-nor/spi-nor.c, the table contains the name, vendor id and device id). You can also look at the id table defined in drivers/mtd/devices/m25p80.c (many flash devices are bound to this driver since many of them are compatible).

 

The fact that the linux kernel uses the same drivers with two devices is a good indication that the two devices may have the same interface. This can be used as a starting point.

"

0 项奖励
回复

4,733 次查看
赵振业
Contributor I

Dear Joan:

      Thanks for your reply,

In U-Boot 2015.04-14526, I want to use GIGADEVICE GD25Q16B SPI NORFLASH.

What I had done is:

         1,add chip config in uboot/drviers/mtd/spi/sf_params.c 

         2, set SYS_BOOT_SPINOR  in uboot/configs/mx6sabreautoandroid_defconfig

         3,choose spi chip 、cspi0 and cs0 in config files

         4,setup spi iomux in mx6qsabreauto.c 

    But it still does't  work, I also do boot from sd card,By got 000 with command "sf probe" 

  Any other steps should I do?   

  Does ECSPI0 clock requires configured in setup_spinor?

   I don't know the process to develop spinor....

0 项奖励
回复

4,733 次查看
joanxie
NXP TechSupport
NXP TechSupport

one can refer to the document as below, this is use nor flash on  ESCPI-5 CS-0

https://community.nxp.com/thread/383701 

0 项奖励
回复