-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update from .tar.gz with an additional file - gzProcessTarBuffer failed reading #42
Comments
Hey @r-zlotorzynski thanks for your feedback In my opinion, bundling json+firmware+spiffs in a tar.gz file this is the most efficient way to bundle an update package. See This highlights a limitation of
Now there are probably some bugs involved here too, could you provide the debug log, along with a basic hello-world example of a .tar.gz file similar to what you've been using in this attempt so I can reproduce the issue? Here are the feature opportunities that come up with your issue:
Meanwhile here are some ideas:
|
Thank you for the quick reply. Soon I will get to know the information in more detail. At the moment I will only correct one piece of information (my mistake - sorry).
The update file .tar.gz is in a different partition (let's call it spiffs_2). However, only the "spiffs_1" partition is updated. And it works very well (but only without the package.json file). Greetings |
Hello
I'm using the TarGzUnpacker class and the tarGzStreamUpdater method.
The .tar.gz file that I store in SPIFFS contains the spiffs.bin update files, firmware.bin and additionally I have to include the package.json file (for my own purposes). Without a package.json file, the update works fine. However, if the file is attached, the firmware.bin batch is updated correctly. The spiffs.bin batch is skipped.
I tried to rename the "package.json" file to the name "zpackage.json" (to change the order of files in the package - but in the final version the file name MUST be package.json). This seems to solve the problem. However, there are errors and warnings in the debug.
I also tried to use the setTarIncludeFilter method, but that also did not improve.
Is there any other way to update in my case (i.e. with an additional package.json file)?
Thanks in advance for all the tips.
Greetings
The text was updated successfully, but these errors were encountered: