nodemcu / nodemcu-firmware

Lua based interactive firmware for ESP8266, ESP8285 and ESP32
https://nodemcu.readthedocs.io
MIT License
7.68k stars 3.13k forks source link

Increase LFS Capacity on ESP32 to Exceed 256kB Limit #3663

Open SerafimPlugfield opened 1 month ago

SerafimPlugfield commented 1 month ago

Missing feature

With the current LFS (Lua Flash Store) implementation, there is a 256kB limit. From reading other issues, I understand that this limitation is a hardware constraint for the ESP8266 (please correct me if I'm mistaken). However, would this also be the case for the ESP32? Given that the ESP32 has become the more popular choice for many projects, it might be worth exploring whether a higher LFS capacity could be supported for it.

Justification

The firmware we use is quite complex, and this limitation has made it increasingly difficult to add new features without significant refactoring or compromises. Increasing the LFS capacity could greatly ease firmware development and expand the possibilities for more advanced features in the future.

We would greatly appreciate any insight into this possibility. Thanks again for the amazing work and for supporting this fantastic project!

jmattsson commented 3 weeks ago

I'm not across the internals of LFS, but could you see whether the fix on this branch allows you to successfully build (and use) larger LFS images, please?

SerafimPlugfield commented 2 weeks ago

I'm traveling right now, but I'll test it as soon as I can. Thanks