libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

Could tuya-convert flash libretuya-based firmwares?

Open felipecrs opened this issue 3 years ago • 3 comments

Your initiative with this project is simply amazing.

I'm not so experienced in it, so I wonder if the same approach used by tuya-convert could also be used to flash libretuya-based firmwares.

felipecrs avatar Jul 13 '22 02:07 felipecrs

Not really. Tuya-convert works only for ESP8266 and ESP32 chips AFAIK.

There is a great project that works for BK7231 chips, which should make it usable with LT firmwares: https://github.com/tuya-cloudcutter/tuya-cloudcutter

Currently, LT does not export an image for "stock" OTA flashing, so you'd have to fiddle a bit with Beken OTA packaging tools (available in Tuya SDK packages). I'm planning to provide a universal firmware image (board-independent), which would be available as an OTA file, and provide a WiFi hotspot to flash whichever version of LT you want.

kuba2k2 avatar Jul 13 '22 08:07 kuba2k2

Very cool. I hope the vulnerability won't get patched before we can flash LT. The article mentions its been fixed in new stock since their disclosure Feb 12th 2022, but I don't if it has been patched in running (old) devices.

nx10 avatar Jul 13 '22 11:07 nx10

That's very cool indeed! Feel free to close the issue if you would like.

felipecrs avatar Jul 13 '22 12:07 felipecrs

Hi all, I forgot to mention: LibreTuya now exports an "UG" image, which is suitable for Cloudcutter flashing. I tested it once with a Cloudcutter-enabled device and ESPHome firmware, and it worked flawlessly :tada:

kuba2k2 avatar Sep 03 '22 19:09 kuba2k2

This is awesome! :D

felipecrs avatar Sep 03 '22 22:09 felipecrs

I think this means this was resolved so. Thanks a lot!

felipecrs avatar Sep 05 '22 03:09 felipecrs