Reflashing the Pocket CHIP in 2023
In the event you need to reflash a CHIP computer in 2023 or later, this post contains a walkthrough of a successful reflash using Ubuntu 14.04 on a Live USB.
The C.H.I.P (and by extension, the Pocket C.H.I.P) was a short-lived single-board computer released in 2016. You can read more about it at the C.H.I.P Wikipedia Entry.
For simplicity, I will refer to this computer as the “CHIP” throughout the rest of this post.
The CHIP can be reflashed, and there are a variety of images available for it, but reflashing can be a complicated and frustrating process since the company that made it is long since gone and the flashing tools and software repositories are now hosted only on archive sites.
I successfully reflashed one of my CHIPs yesterday (after fighting with it for about a week) and this post is a description of what worked for me, here in 2023.
Downloads
I used three downloaded archives from the CHIP Flash Collection at the Internet Archive.
- CHIP-SDK.zip
- CHIP-tools.zip
- flash-collection.zip
I also used the sunxi-tools repository at Github, though you should be able to git clone it, and don’t need to download it with the zip archives.
I used a Live USB flash drive loaded with Ubuntu 14.04 and a spare computer capable of running it as a live (read: not installed) system. I used a second USB flash drive to hold the downloaded files. You may be able to keep the extracted archives on the 2nd flash drive or you may need to copy the relevant directories to the live operating system. The CHIP-tools directory should be placed within the CHIP-SDK directory, and one directory from the flash-collection archive should also be placed within the CHIP-SDK directory (each directory in flash-collection is a separate CHIP image – you’ll need to select which one you want).
Make sure you reserve a USB 2.0 port for the CHIP on the computer you’ll use to run the Live USB. It doesn’t seem to play nice with USB 3.0 ports, so if you only have one of each, you’ll need to plug the Live USB into the 3.0 port and use the 2.0 first to transfer the tools directories and flash image to the live OS, then remove the file-transfer USB and use the 2.0 port to connect the CHIP.
|
|
Preparation
Upon loading up Ubuntu 14.04, I added universe repositories to the apt list so I’d have access to two applications the flasher needs.
|
|
Most of the commands that come after here are taken from the setup_ubuntu1404.sh
script. I’m not going to direct you to use the actual script because we need to build a different version of sunxi-tools than what’s most recent.
|
|
If (and only if) you’re running 32-bit, also install:
|
|
Make sure the user is permitted to communicate via USB serial connections:
|
|
Build the sunxi-tools
|
|
Now is the time to insert a jumper wire between the FEL and GND pins, and connect the CHIP to the USB 2.0 port. Make sure you’re using a USB cable that is capable of data transfer.
|
|
If everything goes smoothly, what you’ll see is a series of tests followed by a few minutes’ worth of terminal output that reports progress of writing UBI data. Once it’s successfully done, it will say, “CHIP is ready to roll!”
At that point you can disconnect the CHIP and remove the jumper. If your CHIP has a Pocket, you can re-seat it into the Pocket and turn it on. You’ll still need to do some setup (keyboard, etc) but the OS should boot for you. Note that jessie
has been retired to the archive.debian.org repository server, so that will matter when you go to update /etc/apt/sources.list on your CHIP.
You can let me know how it went for you by leaving a comment here, posting a pingback reply, or by mentioning me @cordelya on any ActivityPub-capable server that can federate with toots.cordelya.net.