Page 1 of 1

Factory + OTA project setup

Posted: Mon Oct 04, 2021 10:41 am
by itoooitooo
Hi there!

Here is a newbie question for you: how do you properly set up your project such that you can build 2 different firmwares (one for factory partition and one for ota partitions) and bundle them into a single flashable image ?
I could do 2 different projects but it feels wrong to me because I guess both should bundle together.

Google wasn't of great help about this, the search terms yeld results about the code, not the project setup :-/

Thanks a lot!

Re: Factory + OTA project setup

Posted: Fri Oct 22, 2021 12:07 am
by chegewara
Actually it is not wrong way to have 2 separate project as usually (not always) factory firmware is mostly different than OTA firmware.

There is few concepts of factory firmware:
1. it is very basic firmware, which will start and download main firmware, then boot from OTA partition
2. similar to point 1, but it is used only in case that both OTA partitions or firmware on OTA partitions fail,
3. it is normal partition, just like OTA, with main firmware, but flashed firmware is like v1.0.0, which you know is working at least good enough to perform OTA update