-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
[Request] OTA Update via URL #319
Comments
Tasmota uses safeboot to ensure OTA update via OTA URL does not break things. See OTA_URL and OtaUrl in
I do not know if we have enough space for app0 and app1 partitions to store two firmware images side-by-side ? |
@stefan123t It is a/b partitions, right? I know that the esp-idf has some flag for marking a partition as good. When you use this, it is initially marked as bad, so in case something crashes, the bootloader goes back to the old image. The code can do checks and when it thinks its valid (and maybe after 1 minute) and then mark the partition. |
@CommanderRedYT thanks for adding the ESP-IDF context. I thought that there is two boot environments provided by so called safeboot in Tasmota. But this explains the underlying working principle, Thanks! |
https://github.com/tbnobody/OpenDTU/blob/master/partitions_custom_4mb.csv I believe this is the partition table. I would propose the following. We have two options: a) Our chip is 4MB. We can easily allow for two app partitions, however things like more languages can be disabled and added via language packs at runtime. (Maybe be able to swap one language with another? Also maybe client side only?) b) Our chip is 8MB or larger. We can store all the information in a app partition so we do not need language packs. Both variants do not need this safeboot as the functionality is part of esp-idf. Safeboot is different to a/b partitions as it only uses one app partition (which therefore can be larger). With safeboot I see two problems:
FYI @tbnobody maybe this helps with deciding how to proceed |
Is your feature request related to a problem? Please describe.
I have a couple of neighbors that now also run OpenDTU.
They are not into self compiling (they are using the Olimex POE Variant).
I do compile binaries for them and make it available via a URL.
But they still have do the OTA Upload via WebIF.
What about OTA Update via URL? Like e.g. tasmota does.
Describe the solution you'd like
introduce a field to provide an OTA URL and an Update button.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: