duktape-esp32: SPIFFS problems
I can use mkspiffs
to build the SPIFFS filesystem image. esptool
can flash it. In other words, make flashdata
is successful, AFAICT.
However, upon mount, SPIFFS doesn’t recognize the filesystem; it raises SPIFFS_ERR_NOT_A_FS
:
D (354) duktape_spiffs: Loading SPIFFS at address 0x180000
E (364) duktape_spiffs: Error: rc from spiffs mount = -10025
I’m wondering if this could be a mismatch between the mkspiffs
version and the SPIFFS version. My mkspiffs
is v0.2.0; I have no idea what version is used in components/spiffs/
. I know there are some backwards-compat concerns with SPIFFS.
I may be able to work around this by modifying duktape_spiffs.c
to reformat, but that would necessarily remove all of the files in the image, and I’d have to upload them again manually (I think). Otherwise, I’ll try to update the spiffs
component, in case it’s old.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 20 (20 by maintainers)
The usage of the spiffs in this project pre-dates the availability of the ESP-IDF SPIFFs. An alternate version from elsewhere was used. What we probably want to do is replace any usage of spiffs processing in this project with the now official / formal ESP-IDF SPIFFS functions found in ESP-IDF.