-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LittleFS] SPIFFS support will be removed from ESP32 #4826
Comments
If I'm not wrong the support of SPIFFS will be removed and we will use LittleFS. Thanks. |
There is LittleFS support for ESP8266, but right now I don't know if this will ever be a true replacement for SPIFFS on that platform. For ESP32 it's a different story. Right now I don't really know how we can migrate from SPIFFS to LittleFS as ESP32 does use partitions. Ton is also working on adding Tar support for ESPEasy. So lots of ideas. I do think I will (at some point) no longer include the factory bin files for ESP32 SPIFFS builds on the web flash tool as those flashes are done via serial anyway. Very likely the next build will include a warning next to the update firmware button about the deprecation status of SPIFFS. |
Hi @TD-er. |
Yep, only very recently I managed to get the |
Great! |
How can I make a test migration with an esp32 normal image? |
|
In PR #4777 I've added a Backup & Restore feature using a single TAR archive, but that hasn't been merged yet. |
Updated |
It is not only download all files. Flash LittleFS and upload the files with reboot? Why a factory reset at first? |
NOT do a factory reset, as per my previous message verify that all the check boxes are enabled. |
Yes, you must before update the LittleFS firmware (board auto reboot) and after you must upload all files you downloaded before in order to recover configurations. |
I have done the procedure on 4 ESP32 boards with no issues. |
After uploading |
Is there an upload order for the files ? |
I'd suggest to restore My TAR backup/restore PR restores the files in the order they are in the .tar file, but that's a nearly atomic operation, with the same explicit requirement to reboot afterward. I'll update that PR, so we can do more tests with that. I expect some merge conflicts, but haven't looked at it yet. |
I restored files without any specific order and it worked. |
Just make sure that after uploading the config.dat file you do not change any settings but just reboot to make sure the new file is loaded. |
We use the ESP32 platform package which is maintained by @Jason2866
He just told me that from now on in newer platform packages the support for SPIFFS has been removed.
As I have ignored the upcoming deprecation status of SPIFFS for a bit too long, this announcement came a bit as a surprise to me. (or wake-up call)
So this means we need to move along or else we cannot use the newer upcoming IDF 5.x needed for lots of bug fixes and support of newer platforms like the ESP32-C2/C6 etc.
For now we can still use the platform builds upto this one, which is based on Core 2.0.13 and is still newer than what we currently use in ESPEasy.
Also Jason offered to me to help out on a special platform build if there will be an important bug fix and we're still not done migrating away from SPIFFS.
Meaning this transition doesn't have to be immediate, but it must be done before support for other ESP32 nodes can be added.
There is a number of options to make such a transition easier for the user:
That last option is probably the best one as it can also be used for (mass)provisioning of nodes and as a backup tool.
If there are other ideas, please let me know.
I'm also thinking about simply removing SPIFFS support for the recently added platforms like ESP32-C3/S3 as it is probably not used a lot right now.
Or at least for the next build add LittleFS builds for those and add a huge warning.
The text was updated successfully, but these errors were encountered: