Skip to content

[request] add support for LittleFS (and maybe other flash based filesystems) #179

@atesin

Description

@atesin

hi... Lua can be installed on embedded devices with NO operating system

many of these embedded devices have internal flash memories with a filesystem inside, often with LittleFS, SPIFFS, FAT or another similar ... for example an arduino with SD card shield, an ESP8266/32, a Raspberry Pi pico, a network router, a tv-box, or whatever other similar device .. there are actually many appliances that inlcude lua by default like OpenWRT

i am trying to embed Lua in an esp8266 with LittleFS to load script files locally and do basic filesystem manipulation... like a retro PC with basic+msdos but with Lua+luafilesystem instead

i am using esp8266-arduino library that is compatible with the arduino API, here is the embedded LittleFS documentation for current release = https://arduino-esp8266.readthedocs.io/en/3.1.2/filesystem.html ... but i think the direct official LittleFS homepage is this = https://github.com/littlefs-project/littlefs

i am days pulling my hair trying to make luafilesystem work with with LittleFS but finally it exceeds my knowledge :( ... i am using this project as starting point for testings = https://github.com/sfranzyshen/ESP-Arduino-Lua

...

P.S.: SPIFFS is still popular, is simpler and faster than LittleFS... but is not fault tolerant, lacks features (i.e. directories), and is retired, more info here = https://arduino-esp8266.readthedocs.io/en/3.1.2/filesystem.html#spiffs-deprecation-warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions