How to access spi nor flash from rootfs

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

How to access spi nor flash from rootfs

3,209 次查看
chaitanyaraju
Contributor I

HI,

I have imx6 solo custom board. It boots from spi nor flash (m25p80). In uboot i can read/write and erase the flash. But i'm not sure how to access the nor flash after booting from rootfs. 

I have enabled m25p80 driver in the dts. But i dont see any device node created in the /dev to access this. 

Is there any sysfs entries to access this or do i need to create  a device node for the same. if creating device node. what would be the major & minor number for this

When i check /proc/mtd , it seems to be blank. 

标签 (1)
0 项奖励
回复
1 回复

2,404 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Chaitanya

please check Chapter 31 SPI NOR Flash Memory Technology Device (MTD)
Driver attached Linux Manual and

Boot flash access from Linux - Boundary Devices 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复