Using littlefs2 by default in build #15470
-
I've been looking but I can't quite figure out where I can set the default filesystem format for the PYBv11 to be littlefs2 instead of FAT. I want it so that the factory reset also formats the flash sector to littlefs2. The only thing I've found so far is to manually create the filesystem, so any help in the right direction would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I thought the Flash already used littlefs2 - see this line. |
Beta Was this translation helpful? Give feedback.
-
Additionally, to achieve this, you can do something like
So the factory reset does the hybrid partitioning and then creates a new boot.py that will mount the lfs2 partition after reset. |
Beta Was this translation helpful? Give feedback.
After reading through the factoryreset.c it appears that only FAT is supported for a factory reset and if you disable FAT using
MICROPY_VFS_FAT = 0
, one needs to create the filesystem themselves...So either I'll need to come up with a different method to accomplish this, or I need to implement the factoryreset.c to also support LFS2.