Hello
We are working on iMX8QXP processor and using Yocto with L5.4.24_2.1.0. We are able to communicate to micron flash(mt35xu512aba) present on the MEK board.
Our target is to make a user application or a kernel module to test flash memory.
What I have tried:
1. Created a test module inside /drivers/spi/, made necessary changes in Kconfig, Makefile and it was up and running. I then included spi-mem.h to use "spi_mem_exec_op" function to communicate to flash chip but I am facing issues while inserting this module.
2. I created an external module in my recipe which does the same thing but faced same errors
The error I am facing is related to struct spi_nor/struct spi_mem which I need to pass as an argument in all spi-mem functions.
I know that we can use sysfs to access GPIOs but I did not find any examples related to SPI flash memories access usign sysfs.
Is there any way I can create a user application or a kernel module to communicate to flash using different commands supported by that flash?
Any examples related to this would be much helpful.
Thank you
Priyank