bigtreetech / KNOMI

177 stars 77 forks source link

OTA firmware updates #13

Open Bazeone opened 1 year ago

Bazeone commented 1 year ago

Are there any plans to add ota firmware updates in the future?

DiverOfDark commented 1 year ago

FWIW - I was able to implement working OTA update in my fork https://github.com/DiverOfDark/KNOMI, but that was non-trivial. For OTA to we need to have 2 partitions for firmware, and in current state firmware takes almost all space. I was able to reduce that by: 1) moving all images from codebase to separate partition (in future in theory "themes" can be made or image could be updated from browser instead of firmware update) 2) changing lgvl config a lot - removing build in fonts, and remaking them myself using script provided by lgvl docs with much less symbols.

Overall contributing everything back here would be too complex for me, because that included an opinionated refactoring which may be not conforming by repo owner, and removal of test mode(which probably is used at factory when displays are built), so I will leave code accessible to everyone and will try to maintain my own, independent of BTT fork (unless BTT is interested in such changes).