how to add spi flash driver?

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

how to add spi flash driver?

7,064件の閲覧回数
youyong
Contributor I

the cpu is imx6dl,and we need add a driver of AT45DB021E spi flash.but it is not succeed.because it is also nor flash,so i add it like m25p80.c.but the result is as follows images.I can not see it in the "/dev".why?

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

6,471件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi youyong

please check struct spi_device_id spi_nor_ids in linux/drivers/mtd/devices/spi-nor/spi-nor.c

and add necessary model parameters. More details can be found in Chapter 31
SPI NOR Flash Memory Technology Device (MTD) Driver attached Linux Manual.

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

0 件の賞賛
返信

6,471件の閲覧回数
youyong
Contributor I

How do I know if this drive is successful? For example, there are specific flags in the “/dev” directory.

0 件の賞賛
返信

6,471件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

having sources, one can debug it using AN4553 Using Open Source Debugging

Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

~igor

0 件の賞賛
返信