Giter Club home page Giter Club logo

Comments (6)

kuba2k2 avatar kuba2k2 commented on May 29, 2024 1

There is a 32-bit counter which indicates which firmware (1/2) to use. It's 0xFFFFFFFF by default, and each OTA attempt clears one bit from the number. Just like I thought, the mechanism of OTA switching is broken and doesn't know what to do when the counter reaches 0.

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 29, 2024

In order for me to check what's wrong, do this:

  • make a full dump of the device in a state of "broken" OTA updating
  • -> install ltchiptool and run ltchiptool flash read ambz dump_file.bin
  • post the dump here, along with an UF2 file causing that failure

from libretiny.

mihsu81 avatar mihsu81 commented on May 29, 2024

The archive contains a dump and the first uf2 which failed. The last working uf2 is not available because it was overwritten by the compilation process.
libretuya.zip
This issue has always happened on this device, independent of compiling on my workstation or the Libretuya ESPhome HA Add-on.

from libretiny.

mihsu81 avatar mihsu81 commented on May 29, 2024

I forgot to mention that I also have to flash a dump of the original ezviz firmware before OTA updates start working again.
I'm attaching again the 3 dumps I have. I'm usually flashing "dump_ezviz_3.bin".
ezviz dumps.zip

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 29, 2024

@mihsu81
Should be fixed in 4b25ef7 🎉
(note that you need to upload the fix first, after that OTA will work correctly)

from libretiny.

mihsu81 avatar mihsu81 commented on May 29, 2024

@kuba2k2 Flashed the original dump after which I flashed my latest uf2 for that device over UART.
I've also did a couple of OTA updates which went well.
Now only time will tell if the issue is fixed. I'll reopen the issue if something goes wrong.

Thank you again for your help.

from libretiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.