scottf200
Well-Known Member
VeryGreen:
there's no crc check. Basically it works like this (for s/x, different for 3):
1. Download a patch file from Tesla when your car is scheduled
2. once download completes, apply the patch file to the offline partition (there are two firmware partitions: online and offline) (on both ic and cid)
3. perform integrity checking of the resultant image (obviously failure at an of the steps results in restart from 1)
4. ap2+ cars only, download additional firmware for the ape if it's not already precached. (could be precached if you update to the same version)
5. display the install prompt
6. one install is started - check the version to ensure it's not a downgrade
7. Update ape
8. update gateway and various blocks connected to it (complicated process with many opportunities for failures)
9. tell ape and ic to switch online and offline partition markings around and reboot
10. switch online/offline on cid and reboot.
11. compare versions of ic and ape to what they should be - if different - display update failed even though cid runs new firmware.
12. display update is succesful.