emfcamp / TiDAL-Firmware

26 stars 14 forks source link

Add OTA update app #21

Closed tomsci closed 2 years ago

tomsci commented 2 years ago

Fixes issue #4

Currently hardcoded to pull from https://github.com/tomsci/tidal-ota/ (which I'm updating manually) but of course we can probably do something clever from the CI jobs instead.

This changes the partition map to 2MB for each OTA partition and the remainder for VFS. Meaning max ROM size is 2MB and user data area is about 3.9MB.

This is my first attempt at writing a micropython C module so it might suck. Feedback welcome!

I've changed the build process such that the TiDAL-Firmware repo's git describe output (currently just the short SHA) is included in the ROM image header and is displayed by the otaupdate app. I should probably make a PR to micropython to add the get_version code to their Partition class but for now I've kept it separate for simplicity.

image

tomsci commented 2 years ago

Unfortunately due to patching submodules during the build, the git describe always comes out dirty. I could manually remove that?