Comments (14)
Flashing custom firmware already works, just the instructions are missing. Will add that soon (a PR is most welcome too!)
But really, it's not very different from the run_detach
flow.
All you have to do is compile your firmware and copy the UG file to the custom-firmware
directory, then use the run_flash.sh [optional wifi interface name]
script which should take you through the prompts to select a profile for the device then the desired firmware file to OTA.
On the Node-Red part, I'm not following. What do you mean by that?
from tuya-cloudcutter.
I think you are not understanding. This exploit ONLY works on BK7231 chips. It doesn't matter if you have a firmware dump from the ESP, you would not be able to use this exploit.
from tuya-cloudcutter.
ref NR, I'm very comfortable with hacking around in that, and much less with Python :).
Ref instructions, maybe enable the wiki here, and make it publicly editable, then we may get some people contributing docs which could later become more formal?
Also a good place to document devices & experiences?
I'll dig out my RPi3 and give it a go. I have a 'dev' device which is all serialled up, and original firmware dumps which I can put back into it.... plus then a device which is has not yet got serial (but I have a dump) to try a 'real deal' on.
from tuya-cloudcutter.
Good catch and agreed re: an open wiki. I've added the default homepage for now, pending these instructions and some reorganization :)
from tuya-cloudcutter.
Huh, odd, I thought I added instructions for custom flashing when we implemented it a week ago. Thanks for the quick recap @KhaledNassar
from tuya-cloudcutter.
Flashing custom firmware already works, just the instructions are missing. Will add that soon (a PR is most welcome too!)
But really, it's not very different from the
run_detach
flow.All you have to do is compile your firmware and copy the UG file to the
custom-firmware
directory, then use therun_flash.sh [optional wifi interface name]
script which should take you through the prompts to select a profile for the device then the desired firmware file to OTA.
HI, trying out custom firmware flashing with run_flash script but it looks like it got stuck or just not giving any update after some time
Tested on raspian-buster, UA firmware (v1.0.4), device= A-60 (generic tuya)
Thoughts?
from tuya-cloudcutter.
Flashing custom firmware already works, just the instructions are missing. Will add that soon (a PR is most welcome too!)
But really, it's not very different from therun_detach
flow.
All you have to do is compile your firmware and copy the UG file to thecustom-firmware
directory, then use therun_flash.sh [optional wifi interface name]
script which should take you through the prompts to select a profile for the device then the desired firmware file to OTA.HI, trying out custom firmware flashing with run_flash script but it looks like it got stuck or just not giving any update after some time
Tested on raspian-buster, UA firmware (v1.0.4), device= A-60 (generic tuya) Thoughts?
@ferbulous You're actually very close! You need to use the OpenBK7231T_UG_1.0.4.bin file instead of the UA file and that's hopefully it.
Why? The UA file is formatted for direct flashing via serial or SPI, so it has the so-called RBL header at the end and is littered with CRC16 checksums every 32-byte blocks. Meanwhile the UG file is a tuya-wrapped RBL file, which the stock firmware unpacks after stripping the tuya header and the beken bootloader will load after a reset.
from tuya-cloudcutter.
I grabbed tasmota.bin out of tuya-convert and run_detach
informed me it is not a valid UG file so it must have been using another process, or converting on the fly? I have almost 10 TYWE3S TreatLife devices I'm waiting to flash with Tasmota and would be more than happy to test this capability, but I'm not sure of a way to obtain/convert/compile a UG binary.
from tuya-cloudcutter.
tasmota is for esp8266/esp32 chipset devices, not beken bk7231 chipset devices. The only third party open source firmware available for the beken chips right now is openshw https://github.com/openshwprojects/OpenBK7231T_App
from tuya-cloudcutter.
Thanks — yes, TYWE3S is esp8266-based and my DS01c switches are confirmed to have this chip, but they are notoriously hard to flash because the tx/rx pins are used for Tuya MCU (I've seen the suggestions to use an external power supply, but thought this method might be a worth trying first). I only realized after my comment that there's no 'dump' yet for this dimmer. I understand if the focus here is bk7231 chips, but there may be a use case for tasmota as well.
from tuya-cloudcutter.
You're right, I didn't see that explicitly noted anywhere in the documentation. Thanks for clarifying.
from tuya-cloudcutter.
that ds01c should be super easy to flash, just ground the mcu (as in "nvreset->gnd") so it gets stuck in a boot loop then you can talk rx/tx to the esp. i recommend reading a tutorial like https://www.digiblur.com/2020/07/the-tasmota-fan-controller-ive-been.html - a ds03, but probably similar board design.
from tuya-cloudcutter.
I was looking for the info on how to flash, and still didn't see it. I have a BUNCH of SL10 bulbs which I've love to toss the custom firmware on them.
I saw this: https://newreleases.io/project/github/openshwprojects/OpenBK7231T_App/release/1.12.34 has the custom firmware, but haven't seen the instructions. Also, not entirely sure which version to use for a WB9P chip.
I've tried to desolder method, and really was unable to do anything with the it. Sadly. Even though I've done similar with ESP chips.
from tuya-cloudcutter.
Brief instructions on how to flash custom firmware were added a while back: https://github.com/tuya-cloudcutter/tuya-cloudcutter/blob/main/INSTRUCTIONS.md#flashing-custom-firmware, so I'm closing this issue. If anything's unclear, please reach out in a new issue. Thanks!
from tuya-cloudcutter.
Related Issues (20)
- I used wrong profile, can i flash with another Firmware HOT 1
- Arlec EL450HA Batten Light HOT 1
- Smart Switch Voltage & Energy Monitor | Earth Leakage | 63A HOT 1
- QS-WIFI-S10-C04 Curtain module available on CBLC9 HOT 8
- Curtain module QS-WIFI-C01 HOT 2
- XS-A18 Smart Plug dump HOT 1
- Feit OM60/RGBW/CA/AG/3 v1.5.10 HOT 1
- Mirabella Genio - Downlight - I004544 Downlight Dump HOT 1
- Device Dump - NOVOSTELLA Permanent Outdoor Lights, Smart RainbowColor RGB IC Light, 100ft (50x2) with 80 LED HOT 10
- Profile update needed For two different feit electric 2019 smart bulbs. HOT 12
- Device Dump - Arlec PC191HA Series 2 with BK7231N HOT 1
- Flashing doesn't continue after "failed to open pidfile /src/dnsmasq.pid: Permission denied" error HOT 2
- Device Dump - Arlec Grid Connect LED Globe 830lm E27 (GLD322HA) HOT 1
- [!] The profile you selected did not result in a successful exploit EARU EAWCBT-P HOT 1
- TAXNELE-TVPS1-63T HOT 1
- RTNETLINK answers: Operation not permitted HOT 1
- Device Dump HOT 2
- Using Tuya cloud cutter for 1.3.16 firmware version? HOT 2
- Need update for Z2-N-V1.1 module running v1.0.4 HOT 1
- New Device PD Surge Protector (Power Strip) 16A Model SM-306U-PA85 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 tuya-cloudcutter.