HomeACcessoryKid / life-cycle-manager

Initial install, WiFi settings and over the air firmware upgrades for any esp-open-rtos repository on GitHub
Apache License 2.0
60 stars 11 forks source link

support upgrade from the local web server? #33

Closed GWan1234 closed 2 years ago

GWan1234 commented 2 years ago

Does it support upgrading main.bin from the local web server, because I can't access the file through github normally. I built a local web server using nginx.

HomeACcessoryKid commented 2 years ago

yes and no

It supports loading a new copy of otaboot.bin and only that. After that you should be able to load main.bin in the regular way.

see the section New feature version 2 in the readme.

trigger 12 times, and provide the directory where otaboot.bin and otaboot.bin.sig are located in your webserver.

In the flow diagram, it is where the dotted line is for the emergency mode.

GWan1234 commented 2 years ago

Thanks for your answer. If I understand correctly, otaboot.bin supports local upgrade , But what I need to upgrade is main.bin, I don't want to use github api to upgrade, because the network is not always accessible for me.

HomeACcessoryKid commented 2 years ago

My instantiation of LCM does not support standalone operation.

And the phrase would have to be "local upgrade supports otaboot.bin", not the other way around.

However, you can fork LCM, change which server is used, potentially remove the checksum parts and tweak otherwise and it could work for you. But all that work is on you.

GWan1234 commented 2 years ago

OK,I will try.