This is a script and a series of fixes intended to restore basic funcionality on the now mostly busted image that was last created for the Pocket CHIP. Very little of this is my original work, and this is mostly a compilation of fixes I've found and used from across the web that seem to work, made into one convenient script
When this is complete all you should have to do is:
curl sh.universe.dog/chip -o chip
chmod +x chip
sudo bash chip
(note: this could be reduced down to curl https://sh.universe.dog/chip | bash
but the above is made to avoid using keys that aren't accessibly before the keyboard is fixed)
For best results, please run this on a freshly flashed chip - good rule of thumb is that if you've managed to get the repos working, you probably don't need this.
Though, it really is NOT ready yet. I will let you know when it is! (I basically have blindly put the whole thing together without being able to test it so if it works I'll be astonished)
- Backups system files that will be changed
- Fixes the broken repos ( please note package security will have to be disabled but this is the world we live in with this stuff )
- Fixes the Keyboard
- Updates, Upgrades packages, and downloads a few required packages
- Fixes the touchscreen
- Updates PICO-8
- Installs a fixed copy of PocketDesk that doesn't rely on NTC Servers
- Optionally installs and enables SSH
- Optionally changes the hostname
- Whatever else I can think of by the time I finish this project
This is a compilation of work presented I found around the web:
This is the post that got me closest to figuring out the repo situation, though it does seem to have become outdated in a few places.. It also contains the most easy to understand flashing instructions
This post contained the most meat-and-potatoes of the content in this script - it contains the keyboard and touchscreen fixes which would have otherwise been quite a pain to cook up, and also served as the main inspriation for this little project
JF Possibilies Repo Mirror by JF Possibilies
This whole shabang wouldn't be possible without the work done here, They are playing an essential role in keeping these things kicking by keeping a backup of the original repo up and running, and by hosting backups of the firmware images
The work done in here is mostly a hodgepodge of random fixes I've found, above are the main sources, but I expect that I have missed a few spots from random reddit comments and forum posts, mixed in with some of my own work