How to access spi nor flash from rootfs

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

How to access spi nor flash from rootfs

2,843 Views
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. 

Labels (1)
0 Kudos
1 Reply

2,038 Views
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 Kudos