https://www.reddit.com/r/ChipCommunity/comments/htkasm/chip_flashing_guide_july_2020/
A collection of scripts for working with CHIP
sudo apt -y install build-essential git mercurial cmake curl screen unzip device-tree-compiler libncurses-dev ppp cu linux-image-extra-virtual u-boot-tools android-tools-fastboot android-tools-fsutils python-dev python-pip libusb-1.0-0-dev g++-arm-linux-gnueabihf pkg-config libacl1-dev zlib1g-dev liblzo2-dev uuid-dev sunxi-tools
- Ensure CHIP is powered off and not connected to the host computer. Put a jumper wire between FEL and GND pins.
- Clone CHIP-tools repository to $HOME/CHIP-tools:
git clone git@github.com:alxgcrz/chip-tools.git $HOME/CHIP-tools
- Change to 'CHIP-tools' folder:
cd CHIP-tools
- Modify permissions:
sudo chmod 755 *.sh
- Execute setup script:
bash setup.sh
- Execute
FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false
- Execute tool to flash CHIP:
- With local firmware:
./chip-update-firmware.sh -L ./stable-server-b149
- Downloading remote firmware:
./chip-update-firmware.sh
- With local firmware:
- When "Waiting for fel......" prompt appears, connect CHIP to the host computer with a microUSB cable.
- When "FLASH VERIFICATION COMPLETE" message appears, flashing is successful.
- Disconnect CHIP from PC
- Remove jumper wire between FEL and GND pins.
- Connect CHIP to host computer again.
- Wait few seconds
- Control CHIP Using a Serial Terminal:
screen $(ls -tw 1 /dev/tty* | head -1) 115200
This tool is used to download and flash the latest firmware release for CHIP. The tool also now only supports fastboot flashing.
This tool is used to generate local firmware images for CHIP and CHIP Pro.