Skip to content

[HELP] What is the recommended Flash filesystem should be used with NAND (MTD)? #19357

Description

@wangtao13

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

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions