AnsweredAssumed Answered

Does the LS1021a SDK support add QSPI MTD partition?

Question asked by Yuqian Li on Aug 23, 2017
Latest reply on Aug 31, 2017 by Yiping Wang

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