Description
I have done a device driver of SPI FLASH Controller in the SOC. I did NOT use the mtd_nand.c or nand_raw interface, all the functions (FLASH chip probing, reading/writing/erasing) are self-contained in the driver. And I also created 4 MTD partitions in the testing codes, so that I can see /dev/mtd[0-3].
I can hexdump /dev/mtd2 count=2048 to read the FLASH, it worked well.
I tried littlefs, it could be mounted, and by hexdump /dev/mtd2 count=1024 I can see littlefs in FLASH. But it failed to cp /proc/version /mnt/littlefs/, I don't know why and still trouble shooting.
I then enabled smartfs, and change the size of /dev/mtd2 to 1MB, it failed with nx_mount with return code of -25.
So I have NO filesystem working with my MTD NAND.
Here comes my question: Currently, the MTD partitions have created, what (the recommended) FLASH filesystem should I use? And what are the steps to verify the filesystem ?
Verification
Description
I have done a device driver of SPI FLASH Controller in the SOC. I did NOT use the
mtd_nand.cornand_rawinterface, all the functions (FLASH chip probing, reading/writing/erasing) are self-contained in the driver. And I also created 4 MTD partitions in the testing codes, so that I can see /dev/mtd[0-3].I can
hexdump /dev/mtd2 count=2048to read the FLASH, it worked well.I tried
littlefs, it could be mounted, and byhexdump /dev/mtd2 count=1024I can seelittlefsin FLASH. But it failed tocp /proc/version /mnt/littlefs/, I don't know why and still trouble shooting.I then enabled
smartfs, and change the size of/dev/mtd2to 1MB, it failed withnx_mountwith return code of-25.So I have NO filesystem working with my
MTD NAND.Here comes my question: Currently, the MTD partitions have created, what (
the recommended) FLASH filesystem should I use? And what are the steps to verify the filesystem ?Verification