-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Unable to mount SPIFFS partition. Porting from 3.8 to current. #2547
Comments
You can find an overview of the Storage management changes in https://sming.readthedocs.io/en/latest/upgrading/4.2-4.3.html. First and most important the hardware config needs to match your expectations. Setting You might like to edit the partition layout graphically using The default SPIFFS partition is called
Thanks for advising about the outdated example, will update that information. |
@MayaPosch Sorry, posted prematurely, have updated. |
Thank you. I have added the ota.hw file from the Basic_Ota example, and am using it along with the Ota component as in the example. Unfortunately, despite using the same code to find and mount the SPIFFS as in the Basic_Ota example, no partition is found. After adapting the code to fit the code that you gave (searching for 'spiffs0'), still no partition is found. Partitions.bin is flashed at 0x0000 2000, which I presume is correct. At this point I'm not sure what else may be wrong. Here's the current revision of the project: https://github.com/MayaPosch/BMaC/tree/master/esp8266 |
I've created a PR with a few changes, should get things going! |
Thank you. I have merged and tested the changes. Unfortunately the behaviour persists: no partition called 'spiffs0' is ever found. Does this have to be defined explicitly in the partition layout as well? |
Have you run |
Probably was apparently the old build files that did not get cleaned with Before,
After
I suspect it will work now. I'll report back with my findings. |
I can confirm that the firmware can now mount the SPIFFS partition and successfully read configuration files from it. Closing this issue now as it's been resolved. Thank you very much for the assistance, @mikee47 :) |
Description:
I have an existing project that I am updating to the current development branch. So far I have updated all of the APIs, but I'm finding that it's not clear how to change the mounting of SPIFFS. This project uses an rBoot setup, targeting 4 MB ESP8266 boards, with two 1 MB firmware slots, each with an accompanying 1 MB Flash storage as SPIFFS.
Previously I would mount this SPIFFS section using
spiffs_mount_manual
, as described in issue #1009, to work around issues with SPIFFS mount while using rBoot.This firmware worked without issues for years.Issues:
I had hoped to find an easy description of how to convert from this setup, but between Basic_Storage, IFS and other new features I'm not sure how all of that relates, and what is relevant for a basic SPIFFS configuration to just read and write some configuration files and SSL certificates.
There is the rBoot and OTA updates page: https://sming.readthedocs.io/en/latest/information/rboot-ota.html
It lists a SPIFFS mounting example:
However, when I try to use this, I get a compile error. Adding the missing
Storage::
scope specifier I get another compile error, about the PartitionTable constructor requiring a parameter. This example seems defunct.I have added
HWCONFIG += spiffs
to the project's component.mk.Question:
What is the right way to port the old style
spiffs_mount_manual
code to the current style, without rewriting everything FS-related in the code?The text was updated successfully, but these errors were encountered: