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 flashing with new Sonoff DIY mode #16

Open pimoon opened 5 years ago

pimoon commented 5 years ago

Hello,

It would be great to add the support by flashing the firmware with the new DIY mode. Tasmota firmware are already compatible with DIY flashing mode. It is hard to solder pin on the new Sonoff mini so it can be very useful to flash without soldering.

Thank you

HomeACcessoryKid commented 5 years ago

I have already looked into this and it is not so easy. The eWe concept uses the boot process that is the same as the tasmota one and which works with user1.1024.new.1.bin and user2.1024.new.2.bin files... But esp-open-rtos is using rboot. And the OTA code of eWe makes assumptions of certain layout. In the experiments I did, it mixes up the first two sectors and this makes it impossible to get it working in a straightforward way.

Which is a pity, but it is the way it is…

Something additional is that because the two region approach eWe uses, it might end up sometimes in the wrong way around.

The only way out is to write one or two helper programs written in arduino code which then remove these issues one at a time. Personally I am not interested enough to make all that effort, but anyone who does make the effort will receive my advice about how LCM works.

And finally, I have a steady hand and consider this soldering still easy-peasy, I’ve done harder… But it is 40 years experience talking here

On 30 Oct 2019, at 14:18, pimoon notifications@github.com wrote:

Hello,

It would be great to add the support by flashing the firmware with the new DIY mode. Tasmota firmware are already compatible with DIY flashing mode. It is hard to solder pin on the new Sonoff mini so it can be very useful to flash without soldering.

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HomeACcessoryKid/life-cycle-manager/issues/16?email_source=notifications&email_token=AFOQOQQJKA3B3UZKTONWYRLQRGCSPA5CNFSM4JGZFEB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HVND7AQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOQOQV3GJPPUTKGWNESNBTQRGCSPANCNFSM4JGZFEBQ.