-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SPIFFS doesn't read Files when loaded with the tool . #3612
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
Comments
did you run get.py to update mkspiffs as well? If you are using old mkspiffs and new spiffs it will not work |
@ashiroji which OS are you running mkspiffs on? |
I'm using Ubuntu 16.04 |
Linking related mkspiffs ticket: igrr/mkspiffs#26 |
@me-no-dev No i didn't run get.py. If I understand this , the new lib is in a way incompatible with the old tool ? Thank you all for the quick answer |
I tried the latest tool 1.3 and did not create a readable image! |
@reaper7 can you please show the differences in hex format? and more than one if possible? maybe the bytes can make some sense of this. |
their offsets can also point to something... seems to happen at equal-ish intervals |
can you recommend some tool for this? |
you can see a pattern there :) I have downloaded the files and will have a look ;) surely we will figure it out! |
except first diff, next diffs cut 109 bytes every 0x7A01 |
can you try to upload the same files but add one that will be put before the bin, so we can see if the first offset will change. If so that would mean that something wrong is read from the file system. Also please point which config you are using (4M/3MB SPIFFS or something else) You could try different config maybe so it would change the block size. |
This is a great clue!!! I might have an idea! See this: pellepl/spiffs@f5e26c4 and this: pellepl/spiffs#165 this fix was released after we changed the version |
yup .. that's true .. |
will try to do all that tomorrow :) |
I am trying to fix it now and test the result I will override the SPIFFS src files with the new one in the esp8266 core I can edit that and compile it on my PC but I have no Idea how to export it .. |
just copy the binary to your esp8266-arduino folder :) we will do the release (@igrr) |
Oh, make sure you also update the spiffs files in the Arduino as well (cores/esp8266/spiffs/...) |
I am doing it right now .. |
I tested it multiple times with multiple files and I believe the fix works perfectly now .. |
someone can test ESP8266WebServer->FSBrowser example after latest changes on spiffs and mkspiffs tool (current master branch) ? |
Same problem here - after update my IDE, upload new sketch and then upload spiffs image, SPIFFS.begin() return true, but FSBrowser (SPIFFSEditor form AsyncWebServer actually) show empty volume. |
Not all updates are in, folks, sorry, i got distracted for a meeting :) |
Ok, no problem with that :-) I'll wait... |
I tested it originally with |
Tested with 35d5fab, looks okay on my side. |
yes :) |
LGTM! (4/1M, 4/3M). Thx. |
Basic Infos
Hardware
Hardware: ESP-12
Core Version: Commit : Update spiffs 0.3.7 to and mkspiffs 0.1.3 (6ac4812 )
Description
Updating my esp8266 repo to the latest git version causes the following issues 👍
-Ability to read/write SPIFFS through software (verified with ConfigFile example )
-Inability to read SPIFFS when files loaded via ESP8266 Sketch Data Upload tool (veirfied with the FS Browser example )
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
ConfigFile Example
Messages :
Config saved
Config loaded
FSBrowser
Messages :
File Not Found
The text was updated successfully, but these errors were encountered: