Skip to content

Add LittleFS and FFat filesystem support #570

@maxgerhardt

Description

@maxgerhardt

Right now the only support filesystem builder tool is SPIFFS via mkspiffs

MKSPIFFSTOOL="mkspiffs_${PIOPLATFORM}_" + ("espidf" if "espidf" in env.subst(
"$PIOFRAMEWORK") else "${PIOFRAMEWORK}"),

DataToBin=Builder(
action=env.VerboseAction(" ".join([
'"$MKSPIFFSTOOL"',
"-c", "$SOURCES",
"-p", "$SPIFFS_PAGE",
"-b", "$SPIFFS_BLOCK",
"-s", "$SPIFFS_SIZE",
"$TARGET"
]), "Building SPIFFS image from '$SOURCES' directory to $TARGET"),
emitter=__fetch_spiffs_size,
source_factory=env.Dir,
suffix=".bin"
)

this should be expanded so that, as for the ESP8266 other filesystems are supported. Per https://github.com/lorol/arduino-esp32fs-plugin and Arduino-ESP32, SPIFFS, LittleFS and FFat filesystems are supported.

For generation of the image, analogue to mkspiffs and mklittlefs, the tool mkfatfs may be usable. The version used in the Arduino IDE is at https://github.com/lorol/arduino-esp32fatfs-plugin/tree/master/extra (refer package for mkfatfs)

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