-
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 support for applying image for Linux/Darwin platform #16482
Merged
carol-apple
merged 2 commits into
project-chip:master
from
carol-apple:ota_requestor_apply_image_linux
Mar 23, 2022
Merged
[OTA] Add support for applying image for Linux/Darwin platform #16482
carol-apple
merged 2 commits into
project-chip:master
from
carol-apple:ota_requestor_apply_image_linux
Mar 23, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
anush-apple,
austinh0,
Byungjoo-Lee,
bzbarsky-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
hawk248,
harsha-rajendran,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
kpschoedel,
lazarkov and
LuDuda
March 21, 2022 04:41
PR #16482: Size comparison from 193b4d0 to f947007 Increases (4 builds for efr32, k32w, nrfconnect)
Decreases (1 build for efr32)
Full report (15 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
selissia
reviewed
Mar 21, 2022
selissia
approved these changes
Mar 21, 2022
carol-apple
force-pushed
the
ota_requestor_apply_image_linux
branch
from
March 21, 2022 19:50
f947007
to
3782906
Compare
PR #16482: Size comparison from a72ab9b to 3782906 Increases above 0.2%:
Increases (6 builds for cyw30739, efr32, k32w, linux, nrfconnect)
Decreases (8 builds for efr32, linux)
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
carol-apple
force-pushed
the
ota_requestor_apply_image_linux
branch
from
March 21, 2022 22:12
3782906
to
8b45505
Compare
carol-apple
force-pushed
the
ota_requestor_apply_image_linux
branch
from
March 21, 2022 22:17
8b45505
to
ec37b4e
Compare
PR #16482: Size comparison from a72ab9b to ec37b4e Increases above 0.2%:
Increases (6 builds for cyw30739, efr32, k32w, linux, nrfconnect)
Decreases (10 builds for efr32, k32w, linux)
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
harsha-rajendran
approved these changes
Mar 22, 2022
carol-apple
force-pushed
the
ota_requestor_apply_image_linux
branch
from
March 22, 2022 22:08
ec37b4e
to
6de017f
Compare
- Add unit tests for new storage APIs added - Make sure driver restores the core states if there is a problem detected at initialization
carol-apple
force-pushed
the
ota_requestor_apply_image_linux
branch
from
March 22, 2022 22:15
6de017f
to
e9b6ee3
Compare
PR #16482: Size comparison from 32f23fa to e9b6ee3 Increases above 0.2%:
Increases (7 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect)
Decreases (11 builds for efr32, k32w, linux)
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Damian-Nordic
approved these changes
Mar 23, 2022
This was referenced Mar 23, 2022
andrei-menzopol
pushed a commit
to andrei-menzopol/connectedhomeip
that referenced
this pull request
Apr 14, 2022
…ct-chip#16482) - Make sure driver restores the core states if there is a problem detected at initialization
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
OTA Requestor cannot send NotifyUpdateApplied to the provider for Linux/Darwin platform. The reason is because it relies on the version stored in
CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
to be used when notifying and currently Linux/Darwin does not actually apply the downloaded image.Fixes: #16498
Change overview
CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
andCHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
to be used by Linux/Darwin platformsexecv
)IsFirstImageRun
andConfirmCurrentImage
for Linux/Darwin so thatNotifyUpdateApplied
will be called on the new imageTesting