NEW - Der Feed des Merlin Images jetzt bei BoxPirates - NEW

NEW - BoxPirates Plugin Feed - NEW
Unsere Plugins direkt über den Plugin Browser eure Box installierbar

Flashen des ESP8266 mit esptool.py auf der Box

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Flashen des ESP8266 mit esptool.py auf der Box

      Ein Python-basiertes, plattformunabhängiges Open Source-Dienstprogramm zur Kommunikation mit dem ROM-Bootloader in Espressif ESP8266- und ESP32-Chips.
      esptool.py Infos und Source

      esptool.py Release Installation:
      Mit der Konsole (z.B. Putty) verbinden telnet oder SSH.
      Hat man noch kein python-pip installiert dann erst Punkt 1. aus dem folgenden Quellcode ausführen sonst mit Punkt 2. fortfahren.

      Quellcode

      1. apt-get install python-pip
      2. pip install esptool
      ESP mit USB an die Box anschließen.

      Verwenden Sie esptool.py -h um eine Zusammenfassung aller verfügbaren Befehle und Befehlszeilenoptionen anzuzeigen.
      Dieser Spoiler ist nur für Mitglieder sichtbar! - Um den Spoiler nutzen zu können Loggen Sie sich bitte ein oder Registrieren Sie sich.


      WLED Release Binary passend zum verwendetet Stripe herunterladen nach /tmp hochladen.

      Quellcode

      1. [00:09 root@dreamone tmp] > cd /tmp
      2. [00:10 root@dreamone tmp] > esptool.py write_flash 0x0 ./WLED_0.9.1_ESP8266.bin
      3. esptool.py v2.8
      4. Found 1 serial ports
      5. Serial port /dev/ttyUSB0
      6. Connecting....
      7. Detecting chip type... ESP8266
      8. Chip is ESP8266EX
      9. Features: WiFi
      10. Crystal is 26MHz
      11. MAC: bc:dd:c2:b6:20:85
      12. Uploading stub...
      13. Running stub...
      14. Stub running...
      15. Configuring flash size...
      16. Auto-detected Flash size: 4MB
      17. Compressed 547776 bytes to 375649...
      18. Wrote 547776 bytes (375649 compressed) at 0x00000000 in 33.4 seconds (effective 131.2 kbit/s)...
      19. Hash of data verified.
      20. Leaving...
      21. Hard resetting via RTS pin...
      Alles anzeigen
      Fertig, schon hat man den ESP mit der aktuellen WLED Software geflasht.
      Einfacher gehts nimmer. :D
      Jetzt kann man den ESP einstellen.

      gruß pclin
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever

      Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von pclin ()


    • Flashen mit der DM900.

      /tmp/WLED_0.9.1_ESP8266.bin hochgeladen.
      Und esptool.py diesmal mit Pfad Angabe zur WLED_0.9.1_ESP8266.bin gestartet.

      So spart man sich das cd /tmp und viele User wissen ja nicht was das ./ bewirkt.
      ./ bedeutet das sich die Datei im gleichen Verzeichnis befindet in dem sich grade befindet.

      Quellcode

      1. [19:23 root@dm900 ~] > pip install esptool
      2. Collecting esptool
      3. Downloading https://files.pythonhosted.org/packages/68/91/08c182f66fa3f12a96e754ae8ec7762abb2d778429834638f5746f81977a/esptool-2.8.tar.gz (84kB)
      4. 100% |████████████████████████████████| 92kB 271kB/s
      5. Collecting pyserial>=3.0 (from esptool)
      6. Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)
      7. 100% |████████████████████████████████| 194kB 209kB/s
      8. Collecting pyaes (from esptool)
      9. Downloading https://files.pythonhosted.org/packages/44/66/2c17bae31c906613795711fc78045c285048168919ace2220daa372c7d72/pyaes-1.6.1.tar.gz
      10. Collecting ecdsa (from esptool)
      11. Downloading https://files.pythonhosted.org/packages/b8/11/4b4d30e4746584684c758d8f1ddc1fa5ab1470b6bf70bce4d9b235965e99/ecdsa-0.15-py2.py3-none-any.whl (100kB)
      12. 100% |████████████████████████████████| 102kB 222kB/s
      13. Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in /usr/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from ecdsa->esptool)
      14. Installing collected packages: pyserial, pyaes, ecdsa, esptool
      15. Running setup.py install for pyaes ... done
      16. Running setup.py install for esptool ... done
      17. Successfully installed ecdsa-0.15 esptool-2.8 pyaes-1.6.1 pyserial-3.4
      18. You are using pip version 8.1.1, however version 20.0.2 is available.
      19. You should consider upgrading via the 'pip install --upgrade pip' command.
      20. [19:31 root@dm900 /] > esptool.py write_flash 0x0 /tmp/WLED_0.9.1_ESP8266.bin
      21. esptool.py v2.8
      22. Found 1 serial ports
      23. Serial port /dev/ttyUSB0
      24. Connecting....
      25. Detecting chip type... ESP8266
      26. Chip is ESP8266EX
      27. Features: WiFi
      28. Crystal is 26MHz
      29. MAC: bc:dd:c2:b6:20:85
      30. Uploading stub...
      31. Running stub...
      32. Stub running...
      33. Configuring flash size...
      34. Auto-detected Flash size: 4MB
      35. Compressed 547776 bytes to 375649...
      36. Wrote 547776 bytes (375649 compressed) at 0x00000000 in 33.4 seconds (effective 131.3 kbit/s)...
      37. Hash of data verified.
      38. Leaving...
      39. Hard resetting via RTS pin...
      Alles anzeigen
      gruß pclin
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever

    • Verwende die Pakete dann funktioniert es, mit pip musst du nichts installieren.

      gruß pclin
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever

    • pclin schrieb:

      ...mit pip musst du nichts installieren.
      wenn ich dann mit "esptool.py -h" weiter mache, kommt der Fehler, dass das Kommando nicht gefunden werden kann:

      root@dm920:~$ pip install --upgrade pip
      Collecting pip
      Using cached files.pythonhosted.org/packages/da/f6/c83229dcc3635cdeb51
      874184241a9508ada15d8baa337a41093fab58011/pip-21.3.1.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-fxHF9b/pip/setup.py", line 7
      def read(rel_path: str) -> str:
      ^
      SyntaxError: invalid syntax


      ----------------------------------------
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fx
      HF9b/pip/
      You are using pip version 8.1.2, however version 21.3.1 is available.
      You should consider upgrading via the 'pip install --upgrade pip' command.
      root@dm920:~$ esptool.py -h
      -bash: esptool.py: command not found
      root@dm920:~$
      BoxMan

    • Wenn du esptool installiert hast muss es /usr/bin/esptool.py geben!
      Da scheint etwas nicht zu stimmen.

      Was und warum du pip install --upgrade pip ausführen möchtest verstehe ich nicht.
      Wenn du alles richtig installiert hast verwendest du das Plugin WLED Flash Tool und das verwendet die esptool.py.
      Einfacher geht es nicht. ;)

      gruß pclin
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever

    • die Datei esptool.py existiert nicht unter /usr/bin.
      Ich bin so vorgegangen:
      apt-get install python-pip (lief ohne Probleme durch)
      pip install esptool (dann kommt erwähnter Fehler)

      Nachtrag:
      ich habe noch einmal versucht, esptool_2.8-r0.0_armhf.deb zu installieren.
      Es gab keine Fehlermeldung, habe die DM920 neu gestartet, aber unter /usr/bin finde ich nichts.

      Nachtrag2: oki, nachdem ich danach noch einmal "pip install esptool" und "esptool.py -h" ausgeführt habe, scheint es weiter zu gehen. :thumbup:
      Dateien
      • Unbenannt3.PNG

        (70,24 kB, 5 mal heruntergeladen, zuletzt: )
      BoxMan

      Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von BoxMan-real ()


    • liest du auch manchmal? Mach doch bitte alles wie in post1

      sorry
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup:

    • mach ein backup . Oder alles neu, installiere das WLED Flash Tool, verbinde den ESP und flash

      Flashtool
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup:

    • Würde ich machen . Vielleicht hast du da was falsch installiert. In Post4 hat pclin dir geschrieben wie du vorgehen sollst. Und bitte nicht alle Pakete auf einmal installieren sondern eins nach dem anderen (meine Erfahrung).

      LG
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup:

    • sieht doch gut aus, port wurde gefunden, hast du den ESP an die Box per Kabel angeschlossen?
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup:

    • welchen ESP nutzt du gerade? Bist du im Plugin WLED flashtool? Screenshot bitte
      Dateien
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup:

    • wenn du einen ESP8266 hast ist das so richtig
      LG-TV/ PICCAP/Hyperion(NG)/ ESP8266 / 2x 230 LED SK6812NW

      :thumbsup: AMBILIGHT-FAN :thumbsup: