Comments (6)
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.
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 runltchiptool flash read ambz dump_file.bin
- post the dump here, along with an UF2 file causing that failure
from libretiny.
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.
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.
@mihsu81
Should be fixed in 4b25ef7 🎉
(note that you need to upload the fix first, after that OTA will work correctly)
from libretiny.
@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)
- Reset to default
- RTL87xx chips don't support CHANGE interrupts HOT 2
- BK7231N : Save user data HOT 2
- LT 1.5.0 crashes with "RTL8195A Hard Fault Error" after WiFi scan HOT 4
- Error while compiling in HA HOT 1
- restore_mode ALWAYS_OFF not working on generic-bk7231n-qfn32-tuya HOT 1
- support for BK7231M(CB2S) HOT 19
- PlatformIO is Broken with "KeyError: \"Invalid board option 'build.family'\"" HOT 4
- Support for bk7238 HOT 3
- Wifi chip from Smart Plug reports as Rtl8710c How to flash or dump it? HOT 4
- [RTL8710BX] [T102_V1.1] [BL0937] pin change interrupts / Getting BL0937 to work with rtl87xx
- BK7231N : The compiled Firmware file size exceeds the flash memory HOT 3
- instructions contradictory in ltchiptool? HOT 6
- Further clarification to what 1.5M baud rate refers to HOT 2
- Problems when configuring wifi for devices using the BK7231N chip and connecting the device to the App HOT 2
- MOES WS-B-US 2 Button Smart Switch did not create other components such as binary_sensor, light, etc. in HA? HOT 2
- LibreTiny refactor HOT 3
- unable to write to BK7231M on CB2S HOT 7
- Intermittent connection issues with bk72xx ESPHome devices HOT 25
- Feature Request : Maintain constant state through reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libretiny.