How to use spi nor flash as block device in linux

Trying to use an N25Q spi nor flash as a storage device in linux.

Would like to mount it, copy files to read, read files from it, and unmount it.

Has anyone done this and if so, can you point me to instructions?

Note that I am not looking to boot from this device.


Built latest version of Linux.

Now bootlog shows cadence-qspi driver but it can’t find the N25Q00AA chip.

Does anyone have a working device tree configuration for this?


Got this working.

Had to set cdns, read-delay to 3.