pfeerick

tuya-convert updating a Medion S85225

Oct 3rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. pi@raspberrypi:~/tuya-convert $ date
  2. Thu 3 Oct 18:47:09 AEST 2019
  3. pi@raspberrypi:~/tuya-convert $ lsb_release -a
  4. No LSB modules are available.
  5. Distributor ID: Raspbian
  6. Description: Raspbian GNU/Linux 10 (buster)
  7. Release: 10
  8. Codename: buster
  9. pi@raspberrypi:~/tuya-convert $ ./start_flash.sh
  10. ~/tuya-convert/scripts ~/tuya-convert
  11. ======================================================
  12. TUYA-CONVERT
  13.  
  14. https://github.com/ct-Open-Source/tuya-convert
  15. TUYA-CONVERT was developed by Michael Steigerwald from the IT security company VTRUST (https://www.vtrust.de/) in collaboration with the techjournalists Merlin Schumacher, Pina Merkert, Andrijan Moecker and Jan Mahn at c't Magazine. (https://www.ct.de/)
  16.  
  17.  
  18. ======================================================
  19. PLEASE READ THIS CAREFULLY!
  20. ======================================================
  21. TUYA-CONVERT creates a fake update server environment for ESP8266/85 based tuya devices. It enables you to backup your devices firmware and upload an alternative one (e.g. ESPEasy, Tasmota, Espurna) without the need to open the device and solder a serial connection (OTA, Over-the-air).
  22. Please make sure that you understand the consequences of flashing an alternative firmware, since you might lose functionality!
  23.  
  24. Flashing an alternative firmware can cause unexpected device behavior and/or render the device unusable. Be aware that you do use this software at YOUR OWN RISK! Please acknowledge that VTRUST and c't Magazine (or Heise Medien GmbH & Co. KG) CAN NOT be held accountable for ANY DAMAGE or LOSS OF FUNCTIONALITY by typing yes + Enter
  25.  
  26. yes
  27. ======================================================
  28. Starting AP in a screen
  29. Stopping any apache web server
  30. Starting web server in a screen
  31. Starting Mosquitto in a screen
  32. Starting PSK frontend in a screen
  33.  
  34. ======================================================
  35.  
  36. IMPORTANT
  37. 1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
  38. The wpa-password is flashmeifyoucan
  39. This step is IMPORTANT otherwise the smartconfig will not work!
  40. 2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
  41. 3. Press ENTER to continue
  42.  
  43.  
  44. ======================================================
  45. Starting pairing procedure in screen
  46. RTNETLINK answers: File exists
  47. ~/tuya-convert
  48. Waiting for the upgraded device to appear
  49. If this does not work have a look at the '*.log'-files in the 'scripts' subfolder!
  50. ....................................................................
  51. IoT-device is online with ip 10.42.42.42
  52. Fetching firmware backup
  53. % Total % Received % Xferd Average Speed Time Time Time Current
  54. Dload Upload Total Spent Left Speed
  55. 100 1024k 100 1024k 0 0 30311 0 0:00:34 0:00:34 --:--:-- 28909
  56. curl: Saved to filename 'firmware-a6b657.bin'
  57. ======================================================
  58. Getting Info from IoT-device
  59. VTRUST-FLASH 1.1
  60. (c) VTRUST GMBH https://www.vtrust.de/35c3/
  61. READ FLASH: http://10.42.42.42/backup
  62. ChipID: a6b657
  63. MAC: C4:4F:33:A6:B6:57
  64. BootVersion: 7
  65. BootMode: normal
  66. FlashMode: 1M DOUT @ 40MHz
  67. FlashChipId: 144051
  68. FlashChipRealSize: 1024K
  69. Active Userspace: user2 0x81000
  70.  
  71. ======================================================
  72. Please make sure to note the correct SPI flash mode!
  73. Installing an alternative firmware with the wrong flash mode will leave the ESP unable to boot!
  74.  
  75. Next steps:
  76. 1. To go back to the orginal software
  77. # curl http://10.42.42.42/undo
  78.  
  79. 2. Be sure the conversion software runs in user2
  80. # curl http://10.42.42.42/flash2
  81.  
  82. 3. Flash a third party firmware to the device
  83. BE SURE THE FIRMWARE FITS THE DEVICE AND USES THE CORRECT FLASH MODE!
  84. MAXIMUM SIZE IS 512KB
  85. put or link it to ./files/thirdparty.bin
  86. A basic build of Sonoff-Tasmota v6.5.0 is already included in this repository.
  87. # curl http://10.42.42.42/flash3
  88. Alternatively let the device download and flash a file via HTTP:
  89. # curl http://10.42.42.42/flash3?url=http://10.42.42.1/files/thirdparty.bin
  90.  
  91. HAVE FUN!
  92. pi@raspberrypi:~/tuya-convert $ curl http://10.42.42.42/flash3
  93. Device should flash http://10.42.42.1/files/thirdparty.bin and restart
Add Comment
Please, Sign In to add comment