-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OTA] Add a CLI option to support automatic image apply #16533
[OTA] Add a CLI option to support automatic image apply #16533
Conversation
c766183
to
9f4f29b
Compare
Does it make sense to merge this directly into the #16482 branch? |
I still have some more comments to address in that PR. This will likely to go in faster so I'll keep them separate for now. This change can merge without #16482 merging. It just requires that you supply the command line option to get the existing behavior. |
9f4f29b
to
a116997
Compare
PR #16533: Size comparison from 621b672 to a116997 Increases (1 build for linux)
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Problem
After #16482 lands, it will be very difficult to test basic OTA transfer as after image is downloaded, it will be automatically applied. If a dummy file (often used for testing) is transferred, this would cause the ota-requestor-app to terminate after each transfer.
Fixes: #16500
Change overview
--autoApplyImage
CLI optionTesting
--autoApplyImage
command line option is supplied, the state is transitioned back to idle and a new OTA update can be triggered--autoApplyImage
command line option is supplied, the driver will attempt to apply the image