-
Notifications
You must be signed in to change notification settings - Fork 3k
Enable to merge header region into update binary #13232
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
Conversation
@ndrs-pst, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ndrs-pst
Adding the header by default without any new flagging/configuration introduced, will also mean that also the unmanaged mode will be changed.
Pelion Device Management Client update uses unmanaged mode and does not expect to find header as part of the update image, thus this would be a breaking change.
To test with Pelion you can try the basic tutorial: https://www.pelion.com/docs/device-management/current/connecting/mbed-os.html
cc: @alzix
I recall seeing this before in pull request, there might be also an issue but couldn't locate it now. We should find it. |
@teetak01
|
@ndrs-pst,
I think tweaking But, it is kind of a breaking change for Pelion OTA. Please refer to "device managment" commands in mbed-cli https://github.com/ARMmbed/mbed-cli/blob/master/mbed/mbed.py#L3047 0xc0170, please note this can not go in in a patch release. |
Well, I would prefer not to do it like this at all, for breaking the expected behaviour (documentation and tooling), but as Pelion OTA uses FEATURE_BOOTLOADER, this could be done when that feature is not defined? Or then it would be Mbed OS 7 change at minimum. |
@alzix |
Thanks for the reviews. I marked this as breaking. As noted, if this should get in, it shall wait until we get another major version (we just released Mbed 6, will not happen that quick). |
@ARMmbed/mbed-os-tools could you review as well? |
Regarding the latest development in the tools (see #13349), I'll close the pull request, this should be discussed as the feature request for the new tools. |
Summary of changes
According to this post in forum
https://forums.mbed.com/t/enable-to-merge-header-region-into-update-binary/8936
@adbridge suggest me to make pull-request.
Impact of changes
If enable Header in managed bootloader then update binary will contain header region
Migration actions required
N/A
Documentation
https://os.mbed.com/docs/mbed-os/v6.1/program-setup/creating-and-using-a-bootloader.html
May need to change document about update image which having header area bundle with.
Pull request type
Test results
Reviewers