Does the LS1021a SDK support add QSPI MTD partition?

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

Does the LS1021a SDK support add QSPI MTD partition?

682件の閲覧回数
yuqianli
Contributor I

We have a LS1021a-IOT gateway and SDK IoT-gateway-platform-Release-V0.1-20170120, The kernel recognized QSPI device S70FL01GS as an s25fl512s, and that is fine as we only need 32M space for our application. but when we trying to do the partition on it and added the partition definition in the dts file. But never got it works, only shows one partition like below

------

dev: size erasesize name
mtd0: 04000000 00040000 "1550000.quadspi" 

-------

Then we digging into the source codes, we found the kernel-source/drivers/mtd/spi-nor/fsl-quadspi.c file isn't try to register the partition as below

-----

ret = mtd_device_register(mtd, NULL, 0);

-----

it didn't put the partition struct "mtd_partition" to mtd_device_register, it passed a NULL. 

So, is this mean the driver of ls1021a qspi not support MTD device do the partition, we only can have one partition for our s25fl512s? If so, is there a solution to fix it?

Thank you

Yuqian

ラベル(1)
タグ(1)
0 件の賞賛
1 返信

529件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yuqian Li,

Please try whether the attached patch can be used to resolve this problem.


Have a great day,
TIC

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

0 件の賞賛