|
|
|
|
|
by hdgr
925 days ago
|
|
We use littlefs in Flipper Zero's firmware[1] for storage in leftover flash space after the main firmware image. Flipper implements a virtual FS, where both external SD card and internal storage have own mount points. SD card is used for storing apps and user-created data, and internal littlefs contains persistent data like BLE pairing, system services' configs and such. LFS has neat features like wear leveling and optimizations for storing tiny files directly in their parent directory's data structures[2]. We never had any issues with littlefs - however, it cannot be easily resized when amount of available leftover space changes with firmware updates. So on installing an update, it gets fully backed up to SD card, reformatted and later restored. [1] - https://github.com/flipperdevices/flipperzero-firmware/blob/... [2] - https://github.com/littlefs-project/littlefs/blob/master/DES... |
|