Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Anleitung - Zigbee-Firmware auf der Kommandozeile flashen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Anleitung - Zigbee-Firmware auf der Kommandozeile flashen

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bimmi @Thomas Braun last edited by

      @thomas-braun danke für die Anleitung. Kommt mir gerade recht 😬

      Allerdings kann mein debian das Paket python3-intelhex nicht finden.

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @bimmi last edited by

        @bimmi

        Welches Release?

        B 1 Reply Last reply Reply Quote 0
        • B
          bimmi @Thomas Braun last edited by

          @thomas-braun debian 9.13 stretch

          Thomas Braun J 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @bimmi last edited by

            @bimmi

            Kann sein. Stretch ist ja auch nicht mehr aktuell. Vermutlich wurde da noch python2 beigepackt. Hier wird mindestens Python 3.irgendwas benötigt.

            1 Reply Last reply Reply Quote 0
            • J
              Jan1 @bimmi last edited by

              @bimmi sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

              @thomas-braun debian 9.13 stretch

              Stretch drauf, aber über Kommandozeile flashen wollen, da hättest mal lieber das OS über Kommandozeile auf den aktuellen Stand gebracht. Der musste jetzt einfach raus, sorry.

              B 1 Reply Last reply Reply Quote 1
              • B
                bimmi @Jan1 last edited by

                @jan1 Debian 9 “Stretch” LTS July 6, 2020 to June 30, 2022 also ganz ruhig.

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jan1 @bimmi last edited by

                  @bimmi
                  Ich bin ruhig, da Bullseye am Start könnte also sogar per Befehl flashen 😉
                  Die Frage ist nur, warum willst das über Kommando Ebene machen, wenn der Aufwand für Dich mit Strech höher ist, als schnell den Stick an den PC zu klemmen?

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bimmi @Jan1 last edited by

                    @jan1 also es ist keineswegs aufwendig. Denke aber ein fehlgeschlagenes dist upgrade würde mich mehr Zeit kosten bei meinem produktivsystem als den stick upzudaten 😄 habe erst gedacht das ist das falsche python3 paket hinterlegt in der Anleitung.

                    Allerdings läuft auf einer anderen VM ein Deb10 und da ist das Paket verfügbar.

                    J Thomas Braun 2 Replies Last reply Reply Quote 0
                    • J
                      Jan1 @bimmi last edited by

                      @bimmi
                      Ok, wenn Du noch ein Debian mit Python3 laufen hast, dann kannst das natürlich tun.
                      Ich habe keine Panik mein Produktivsystem per Befehl hoch zu ziehen, da selbst wenn es in die Hose geht (was theoretisch möglich ist) das ganze eh schnell wieder eingerichtet ist und bei mir läuft nix in ner VM oder sonstiges. Am längsten dauert bei mir der DL da nur 16er Leitung 😉

                      1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @bimmi last edited by

                        @bimmi

                        Distributionen, die seit über einem Jahr ihr EOL erreicht haben, muss man auch nicht mehr in Anleitungen unterstützen. Höchste Zeit da umzusatteln.

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          bimmi @Thomas Braun last edited by

                          @thomas-braun aber ist doch erst Juli 22 EOL?

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @bimmi last edited by Thomas Braun

                            @bimmi

                            20796db9-318a-4cac-aea2-989384f61464-image.png

                            Stretch hat am 06. Juli 2020 sein End Of Life erreicht.
                            LTS ist nur noch im Koma halten, am 30. Juni 2022 werden die Maschinen abgestellt.

                            1 Reply Last reply Reply Quote 1
                            • C
                              chris299 @Thomas Braun last edited by

                              @thomas-braun vielen dank für diese Anleitung.
                              Eine Ergänzung aus mac User Sicht:
                              Ich habe die fehlenden Pakete per pip nachinstalliert, wobei man beachten muss dass die dann etwas anders heissen:
                              pyserial und python-magic und intelhex

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bimmi @chris299 last edited by

                                So. Habe jetzt erfolgreich den Zigbee Stick über die Kommandozeile geflasht 🙂 Danke für die Anleitung!

                                1 Reply Last reply Reply Quote 0
                                • RaspiUser
                                  RaspiUser last edited by

                                  @Thomas-Braun
                                  ... ich wollte die Firmware von meinen SONOFF Zigbee Dongle updaten ... leider funktioniert deine Anleitung unter BOOKWORM nicht (ebenso wie bei dieser Anleitung).

                                  Hast Du mal die Zeit deine Anleitung hier im Forum zu aktualisieren ?

                                  Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @RaspiUser last edited by Thomas Braun

                                    @raspiuser

                                    Was heißt 'funktioniert nicht' konkret?
                                    Zumal ich ja auch beim Sonoff auf
                                    https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html
                                    verweise.

                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @RaspiUser last edited by

                                      @raspiuser

                                      Hier funktioniert es wie ehedem... :

                                      echad@chet:~ $ mkdir zigbeefwflash
                                      echad@chet:~ $ cd zigbeefwflash/
                                      echad@chet:~/zigbeefwflash $ wget https://raw.githubusercontent.com/JelmerT/cc2538-bsl/master/cc2538-bsl.py
                                      --2024-01-11 18:38:19--  https://raw.githubusercontent.com/JelmerT/cc2538-bsl/master/cc2538-bsl.py
                                      Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
                                      Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
                                      HTTP request sent, awaiting response... 200 OK
                                      Length: 50812 (50K) [text/plain]
                                      Saving to: ‘cc2538-bsl.py’
                                      
                                      cc2538-bsl.py                                100%[==============================================================================================>]  49.62K  --.-KB/s    in 0.02s
                                      
                                      2024-01-11 18:38:19 (3.00 MB/s) - ‘cc2538-bsl.py’ saved [50812/50812]
                                      
                                      echad@chet:~/zigbeefwflash $ sudo apt update && sudo apt install python3-serial python3-intelhex python3-magic
                                      Hit:1 https://cli.github.com/packages stable InRelease
                                      Hit:2 http://deb.debian.org/debian testing InRelease
                                      Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
                                      Get:4 http://deb.debian.org/debian-security testing-security InRelease [43.5 kB]
                                      Hit:5 http://deb.debian.org/debian testing-updates InRelease
                                      Hit:6 http://phoscon.de/apt/deconz bookworm InRelease
                                      Hit:7 http://phoscon.de/apt/deconz bookworm-beta InRelease
                                      Hit:8 https://apt.grafana.com stable InRelease
                                      Hit:9 https://repos.influxdata.com/debian stable InRelease
                                      Hit:10 https://deb.nodesource.com/node_21.x nodistro InRelease
                                      Hit:11 https://deb.nodesource.com/node_18.x nodistro InRelease
                                      Get:12 https://pkgs.tailscale.com/stable/debian trixie InRelease
                                      Hit:13 https://packagecloud.io/ookla/speedtest-cli/debian trixie InRelease
                                      Fetched 50.0 kB in 3s (16.3 kB/s)
                                      Reading package lists... Done
                                      Building dependency tree... Done
                                      Reading state information... Done
                                      All packages are up to date.
                                      Reading package lists... Done
                                      Building dependency tree... Done
                                      Reading state information... Done
                                      Suggested packages:
                                        python3-wxgtk3.0 | python3-wxgtk
                                      The following NEW packages will be installed:
                                        python3-intelhex python3-magic python3-serial
                                      0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
                                      Need to get 153 kB of archives.
                                      After this operation, 741 kB of additional disk space will be used.
                                      Get:1 http://deb.debian.org/debian testing/main arm64 python3-intelhex all 2.3.0-2 [50.2 kB]
                                      Get:2 http://deb.debian.org/debian testing/main arm64 python3-magic all 2:0.4.27-2 [14.6 kB]
                                      Get:3 http://deb.debian.org/debian testing/main arm64 python3-serial all 3.5-2 [88.2 kB]
                                      Fetched 153 kB in 0s (510 kB/s)
                                      Selecting previously unselected package python3-intelhex.
                                      (Reading database ... 90202 files and directories currently installed.)
                                      Preparing to unpack .../python3-intelhex_2.3.0-2_all.deb ...
                                      Unpacking python3-intelhex (2.3.0-2) ...
                                      Selecting previously unselected package python3-magic.
                                      Preparing to unpack .../python3-magic_2%3a0.4.27-2_all.deb ...
                                      Unpacking python3-magic (2:0.4.27-2) ...
                                      Selecting previously unselected package python3-serial.
                                      Preparing to unpack .../python3-serial_3.5-2_all.deb ...
                                      Unpacking python3-serial (3.5-2) ...
                                      Setting up python3-intelhex (2.3.0-2) ...
                                      Setting up python3-serial (3.5-2) ...
                                      Setting up python3-magic (2:0.4.27-2) ...
                                      echad@chet:~/zigbeefwflash $ wget https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                                      --2024-01-11 18:40:31--  https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                                      Resolving github.com (github.com)... 140.82.121.3
                                      Connecting to github.com (github.com)|140.82.121.3|:443... connected.
                                      HTTP request sent, awaiting response... 302 Found
                                      Location: https://raw.githubusercontent.com/Koenkk/Z-Stack-firmware/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip [following]
                                      --2024-01-11 18:40:31--  https://raw.githubusercontent.com/Koenkk/Z-Stack-firmware/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                                      Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
                                      Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
                                      HTTP request sent, awaiting response... 200 OK
                                      Length: 217457 (212K) [application/zip]
                                      Saving to: ‘CC2652RB_coordinator_20230507.zip’
                                      
                                      CC2652RB_coordinator_20230507.zip            100%[==============================================================================================>] 212.36K  --.-KB/s    in 0.04s
                                      
                                      2024-01-11 18:40:31 (5.59 MB/s) - ‘CC2652RB_coordinator_20230507.zip’ saved [217457/217457]
                                      
                                      echad@chet:~/zigbeefwflash $ unzip CC2652RB_coordinator_20230507.zip
                                      Archive:  CC2652RB_coordinator_20230507.zip
                                        inflating: CC2652RB_coordinator_20230507.hex
                                      echad@chet:~/zigbeefwflash $ ls -l /dev/serial/by-id/
                                      total 0
                                      lrwxrwxrwx 1 root root 13 Jan  9 22:13 usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0 -> ../../ttyUSB0
                                      echad@chet:~/zigbeefwflash $ ls -la
                                      total 784
                                      drwxr-xr-x  2 echad echad   4096 Jan 11 18:40 .
                                      drwx------ 11 echad echad   4096 Jan 11 18:38 ..
                                      -rw-r--r--  1 echad echad  50812 Jan 11 18:38 cc2538-bsl.py
                                      -rw-r--r--  1 echad echad 516453 May  7  2023 CC2652RB_coordinator_20230507.hex
                                      -rw-r--r--  1 echad echad 217457 Jan 11 18:40 CC2652RB_coordinator_20230507.zip
                                      echad@chet:~/zigbeefwflash $ chmod +x cc2538-bsl.py
                                      echad@chet:~/zigbeefwflash $ ./cc2538-bsl.py -p /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0 -evw CC2652RB_coordinator_20230507.hex
                                      Opening port /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0, baud 500000
                                      Reading data from CC2652RB_coordinator_20230507.hex
                                      Firmware file: Intel Hex
                                      Connecting to target...
                                      CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
                                      Primary IEEE Address: 00:12:4B:00:23:93:2C:A8
                                          Performing mass erase
                                      Erasing all main bank flash sectors
                                          Erase done
                                      Writing 360448 bytes starting at address 0x00000000
                                      Write 104 bytes at 0x00057F988
                                          Write done
                                      Verifying by comparing CRC32 calculations.
                                          Verified (match: 0x2620b49e)
                                      echad@chet:~/zigbeefwflash $
                                      
                                      RaspiUser 1 Reply Last reply Reply Quote 0
                                      • RaspiUser
                                        RaspiUser @Thomas Braun last edited by RaspiUser

                                        @thomas-braun Was heißt 'funktioniert nicht' konkret?

                                        Sorry ... da kamen div. Fehlermeldungen (leider keine Screenshots) wie "pip funktioniert nicht" und das da irgendwas "external" und "virtual" benötigt wird .... uns da war ich total überfordert und habe entnervt aufgegeben ...

                                        Wenn Du schreibst, dass es deine Anleitung funktioniert probiere ich es nochmal gaaaaanz langsam ...

                                        Thomas Braun 3 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @RaspiUser last edited by

                                          @raspiuser

                                          Ich bin ganz Ohr.

                                          1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @RaspiUser last edited by Thomas Braun

                                            @raspiuser sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

                                            Wenn Du schreibst, dass es deine Anleitung funktioniert probiere ich es nochmal gaaaaanz langsam ...

                                            Du siehst ja oben, wie das bei mir funktioniert. Ist 1:1 eben aus meinem Terminal kopiert worden.

                                            Aber wie schon gesagt, der Sonoff-Stick braucht ein leicht anderes Vorgehen. Insbesondere die Option --bootloader-sonoff-usb sowie die Launchpad-Firmware.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            832
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            how-to howto
                                            9
                                            55
                                            7293
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo