A tool for recovering from GPT issues on comma C3 and comma C3X. This tool includes a safety check to prevent accidental flashing on incompatible devices.
If you tried flashing your device on https://flash.comma.ai and got an error about GPTs (e.g. "Flashing error Both primary and backup gpt headers are corrupted, cannot recover"), you can use this tool to recover the GPTs.
- comma C3 (64GB)
- comma C3X (128GB)
Note: This tool does NOT work with C2 or other devices!
- Python 3.x
- Device in QDL mode (check QDL Mode on https://flash.comma.ai)
On M-series macs, if you get "No backend available" where python is installed with pyenv and libusb with brew, try this:
brew install libusb
sudo mkdir -p /usr/local/lib
sudo ln -s /opt/homebrew/lib/libusb-1.0.0.dylib /usr/local/lib/libusb.dylib
-
Clone this repository or download it as a zip file and unzip it.
-
Run
./flash_gpts.sh -
The script will:
- Set up the EDL tool automatically
- Check device compatibility
- Detect device type (C3/C3X)
- Ask for confirmation before flashing
- Flash the GPTs
- Reboot the device