Skip to content

Instantly share code, notes, and snippets.

@verticalgrain
Last active March 11, 2025 19:30

Revisions

  1. verticalgrain revised this gist Nov 14, 2018. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -18,10 +18,14 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see
    * https://archive.org/details/C.h.i.p.FlashCollection (.zip contains all CHIP image variants) * https://archive.org/details/C.h.i.p.FlashCollection (.zip contains all CHIP image variants)
    * https://dl.bintray.com/yoursunny/CHIP/ (can download individual CHIP images) * https://dl.bintray.com/yoursunny/CHIP/ (can download individual CHIP images)


    Unzip it (if necessary) and move the desired image into the CHIP-SDK directory (CHIP-SDK/IMAGENAME). In my case since I'm flashing the Pocketchip I used the stable-pocketchip-b128 image. Unzip it (if necessary) and move the desired image into the CHIP-SDK directory. In my case since I'm flashing the Pocketchip I used the stable-pocketchip-b128 image and I put it at CHIP-SDK/stable-pocketchip-b128.


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


    6. Put your CHIP in FEL mode by putting a jumper wire between GND and FEL. Connect the CHIP to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port). 6. Put your CHIP in FEL mode by putting a jumper wire between GND and FEL. Connect the CHIP to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port).


    7. Navigate to the CHIP-tools directory in terminal at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128` 7. Navigate to the CHIP-tools directory in terminal at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128`


    References:
    * http://www.chip-community.org/index.php/Flash_from_command_line
  2. verticalgrain revised this gist Nov 14, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -17,6 +17,7 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see
    4. Download the a CHIP image from one of the following: 4. Download the a CHIP image from one of the following:
    * https://archive.org/details/C.h.i.p.FlashCollection (.zip contains all CHIP image variants) * https://archive.org/details/C.h.i.p.FlashCollection (.zip contains all CHIP image variants)
    * https://dl.bintray.com/yoursunny/CHIP/ (can download individual CHIP images) * https://dl.bintray.com/yoursunny/CHIP/ (can download individual CHIP images)

    Unzip it (if necessary) and move the desired image into the CHIP-SDK directory (CHIP-SDK/IMAGENAME). In my case since I'm flashing the Pocketchip I used the stable-pocketchip-b128 image. Unzip it (if necessary) and move the desired image into the CHIP-SDK directory (CHIP-SDK/IMAGENAME). In my case since I'm flashing the Pocketchip I used the stable-pocketchip-b128 image.


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.
  3. verticalgrain revised this gist Nov 14, 2018. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -14,13 +14,13 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    3. Move the CHIP-tools directory inside CHIP-SDK directory (CHIP-SDK/CHIP-tools). 3. Move the CHIP-tools directory inside CHIP-SDK directory (CHIP-SDK/CHIP-tools).


    4. Download flash-collection.zip from one of the following: 4. Download the a CHIP image from one of the following:
    * https://archive.org/details/C.h.i.p.FlashCollection * https://archive.org/details/C.h.i.p.FlashCollection (.zip contains all CHIP image variants)
    * https://dl.bintray.com/yoursunny/CHIP/ * https://dl.bintray.com/yoursunny/CHIP/ (can download individual CHIP images)
    Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection) Unzip it (if necessary) and move the desired image into the CHIP-SDK directory (CHIP-SDK/IMAGENAME). In my case since I'm flashing the Pocketchip I used the stable-pocketchip-b128 image.


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


    6. Put your chip in FEL mode and connect to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port). 6. Put your CHIP in FEL mode by putting a jumper wire between GND and FEL. Connect the CHIP to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port).


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../flash-collection/stable-pocketchip-b128` 7. Navigate to the CHIP-tools directory in terminal at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128`
  4. verticalgrain revised this gist Nov 2, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -14,7 +14,10 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    3. Move the CHIP-tools directory inside CHIP-SDK directory (CHIP-SDK/CHIP-tools). 3. Move the CHIP-tools directory inside CHIP-SDK directory (CHIP-SDK/CHIP-tools).


    4. Download flash-collection.zip from https://archive.org/details/C.h.i.p.FlashCollection. Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection) 4. Download flash-collection.zip from one of the following:
    * https://archive.org/details/C.h.i.p.FlashCollection
    * https://dl.bintray.com/yoursunny/CHIP/
    Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection)


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


  5. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -20,4 +20,4 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    6. Put your chip in FEL mode and connect to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port). 6. Put your chip in FEL mode and connect to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port).


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128` 7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../flash-collection/stable-pocketchip-b128`
  6. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -18,6 +18,6 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


    6. Put your chip in FEL mode and connect by USB. 6. Put your chip in FEL mode and connect to your computer with USB (using the microUSB port on the CHIP, not the fullsize USB port).


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128` 7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128`
  7. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -16,8 +16,8 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    4. Download flash-collection.zip from https://archive.org/details/C.h.i.p.FlashCollection. Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection) 4. Download flash-collection.zip from https://archive.org/details/C.h.i.p.FlashCollection. Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection)


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: ./setup_ubuntu1404.sh The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: `./setup_ubuntu1404.sh` The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


    6. Put your chip in FEL mode and connect by USB. 6. Put your chip in FEL mode and connect by USB.


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: './chip-update-firmware.sh -L ../stable-pocketchip-b128' 7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: `./chip-update-firmware.sh -L ../stable-pocketchip-b128`
  8. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chip-flashing-guide-nov-2018.md
    Original file line number Original file line Diff line number Diff line change
    @@ -20,4 +20,4 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    6. Put your chip in FEL mode and connect by USB. 6. Put your chip in FEL mode and connect by USB.


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: ./chip-update-firmware.sh -L ../stable-pocketchip-b128 7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: './chip-update-firmware.sh -L ../stable-pocketchip-b128'
  9. verticalgrain renamed this gist Nov 1, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion C.H.I.P. Flashing Guide - November 2018
    Original file line number Original file line Diff line number Diff line change
    @@ -20,4 +20,4 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    6. Put your chip in FEL mode and connect by USB. 6. Put your chip in FEL mode and connect by USB.


    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the version you'd like to flash: 7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify of of the firmware versions from the flash-collection directory: ./chip-update-firmware.sh -L ../stable-pocketchip-b128
  11. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions C.H.I.P. Flashing Guide - November 2018
    Original file line number Original file line Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Below are the steps required to flash a NextThingCo CHIP or PocketCHIP as of November 2018: Below are the steps required to flash a NextThingCo CHIP or PocketCHIP from the command line, as of November 2018. The web flasher no longer works, and there are numerous errors when flashing from the command line, mostly due to broken dependencies. The following method works for flashing a CHIP as of November 2018:


    Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS seems to not work. Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS seems to not work.


    @@ -18,4 +18,6 @@ Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS see


    5. Navigate to the CHIP-SDK directory in terminal and run the build script: ./setup_ubuntu1404.sh The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2. 5. Navigate to the CHIP-SDK directory in terminal and run the build script: ./setup_ubuntu1404.sh The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.


    6. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the version you'd like to flash: 6. Put your chip in FEL mode and connect by USB.

    7. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the version you'd like to flash:
  12. verticalgrain revised this gist Nov 1, 2018. 1 changed file with 20 additions and 0 deletions.
    20 changes: 20 additions & 0 deletions C.H.I.P. Flashing Guide - November 2018
    Original file line number Original file line Diff line number Diff line change
    @@ -1 +1,21 @@
    Below are the steps required to flash a NextThingCo CHIP or PocketCHIP as of November 2018: Below are the steps required to flash a NextThingCo CHIP or PocketCHIP as of November 2018:

    Note: Flashing must be done on Linux. Tested on Ubuntu and Rasparian. Mac OS seems to not work.

    1. Download and unpack the CHIP-SDK.zip from one of the following:
    * https://archive.org/details/C.h.i.p.FlashCollection
    * https://github.com/NextThingCo/CHIP-SDK
    * https://github.com/Project-chip-crumbs/CHIP-SDK

    2. Download and unpack CHIP-tools.zip from one of the following:
    * https://archive.org/details/C.h.i.p.FlashCollection
    * https://github.com/NextThingCo/CHIP-tools-backup
    * https://github.com/Project-chip-crumbs/CHIP-tools

    3. Move the CHIP-tools directory inside CHIP-SDK directory (CHIP-SDK/CHIP-tools).

    4. Download flash-collection.zip from https://archive.org/details/C.h.i.p.FlashCollection. Unpack it and move it into the CHIP-SDK directory (CHIP-SDK/flash-collection)

    5. Navigate to the CHIP-SDK directory in terminal and run the build script: ./setup_ubuntu1404.sh The build script should run. Multiple errors will be shown, including a fatal error when the script tries to get the CHIP-tools from a non-existant repo. This can be ignored since we already downloaded the CHIP-tools directory in step 2.

    6. Navigate to the CHIP-tools directory at CHIP-SDK/CHIP-tools and run the update firmware script. Use the -L option to explicitly specify the version you'd like to flash:
  13. verticalgrain created this gist Nov 1, 2018.
    1 change: 1 addition & 0 deletions C.H.I.P. Flashing Guide - November 2018
    Original file line number Original file line Diff line number Diff line change
    @@ -0,0 +1 @@
    Below are the steps required to flash a NextThingCo CHIP or PocketCHIP as of November 2018: