-
Notifications
You must be signed in to change notification settings - Fork 56
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
Assertion failed! and issues uploading image #11
Comments
I've never used the uploader you specified, but on the ES8266 the FS uploader just sends bits over so even if those bits weren't a FS it would happily write them. I would imagine that the uploader you're using would so the same, so I'd check that obvious things like the FS total bnary size matches your partitions, etc. Also, for the unpacker you need to pass in the same params as the packer. LittleFS doesn't store the settings used to create the FS inside the FS itself, so it's using defaults which were not the same that you used prior to make it. |
OK, -l and -u work if I provide the info. Still have the issue with uploading, I'll open a ticket over there with @lorol But there's definitely something going on - I can switch between mklittlefs releases and the behavior consistently follows. ESP32 uploaders compress the files they're sending, perhaps something isn't getting properly compressed or escaped. |
OK, this seems to be just between mklittlefs.exe and esptool.exe (2.6). Doesn't seem to involve @lorol I created two .bins of the same directory, like this
foo1.bin was created with 0.2.3-31-g295fe9b, foo2.bin created with 0.2.3-19-g1c43629. Then used pytool.exe to upload, like this:
Upload works with the bin created with the older rev of mklittlefs, fails at 32% with the current rev. |
Same with latest esptool.py (3.0):
|
If mklittlefs is generating an valid FS, then I really do have to believe it's an uploader issue. We're not having issues on the 8266 (LittleFS is the default FS now). What might be going on is that the FS is compressing too much, so that the expansion/writing of a single compressed chunk takes too long and the uploader times out waiting for it. Is there a "don't compress" option you could try? Then it would take much longer, but the writing times of individual chunks would take the same amount of time. |
Thanks, Earle. Tried with --no-compress, success. It seems to be an issue with esptool.py (they don't have a configurable timeout, either). @lorol , might want to use that option in your arduino-esp32fs-plugin. |
Thank you for the tests. I can add --no-compress by default if it doesn't affect the total time to upload. |
Working in current Arduino IDE, latest 3.0.0 release (although .exe reports " 0.2.3-31-g295fe9b") of mklittlefs.exe (x86_64-w64-mingw32-mklittlefs-295fe9b.zip).
Using with @lorol upload tool. Target is espressif WROVER-B w/16MB flash. When trying to upload an image, it consistently (5 times in a row) stops with an error at 32%.
Reverting to the previous release ( 2.5.1-2, .exe reports "0.2.3-19-g1c43629" - x86_64-w64-mingw32-mklittlefs-1c43629.zip) allows successful uploads.
In troubleshooting this, I also discovered this, with both releases, I think I'm doing it right...
(pack up a directory)
(processes without error, now try to unpack)
(shouldn't this work to unpack?, it doesn't and, simply trying to list (./mklittlefs.exe -d 5 -l ./foo.bin) gets the same error.)
The text was updated successfully, but these errors were encountered: