How to access spi nor flash from rootfs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to access spi nor flash from rootfs

3,082件の閲覧回数
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,277件の閲覧回数
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 件の賞賛
返信