-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
kconfig: Deprecate BOOTLOADER_SRAM_SIZE #65156
kconfig: Deprecate BOOTLOADER_SRAM_SIZE #65156
Conversation
395644a
to
ea70237
Compare
@nordicjm it is to be expected that this Kconfig option is not used in the zephyr tree, this is mainly used by a bootloader to setup the ram usage at the end of ram. Bootloaders are not part of the zephyr tree and even mcuboot has no in tree zephyr configuration that shows how to setup ram loading. |
Removes settings this Kconfig to 0, because the default already is 0 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This Kconfig is seemingly unused with exception to a single board, whose maintainers have been unresponsive for a long time. It is not useful to any other board and can be set in dts, therefore deprecate it and schedule removal after the Zephyr 3.7 release Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Adds a note that CONFIG_BOOTLOADER_SRAM_SIZE has been deprecated Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
ea70237
to
fecc12a
Compare
This would be down to users and their choice of bootloader, the in-tree supported bootloader does not need this with the default configuration of swap using move/scratch |
@vaishnavachath @vanti @tejlmand @de-nordic @d3zd3z @microbuilder please review |
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.
LGTM, thanks for this cleanup.
Note, this issue also seems to have been discussed earlier: #49484
The default configuration should not be determining this, it should be all configurations of the in-tree supported bootloader. The documentation is needed for mcuboot running images from ram. This documentation should also show that it is possible to reuse the bootloader ram. |
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.
Requires documentation for setting up a bootloader that starts images from ram.
How is that of any relevance to this change? Point out exactly why that is necessary to deprecate a feature that is undocumented, unused, unsupported and didn't have anything to do with what you're talking about here since it never worked with it: |
So let's make mcuboot (XIP) for a system with ram loading of images: Set How is this relevant to the change: The change removes this kind of setup completely while not providing a solution of how to make this setup. |
Not supported by anything in-tree in zephyr, not relevant
Not supported by anything in-tree in zephyr, not relevant
You're talking about a new feature or sample, nothing to do with this PR |
@nordicjm, |
Right and where do any of them set BOOTLOADER_SRAM_SIZE ? |
They don't because the example for ram loading seems to have a lot of ram that doesn't need to reuse it. An example configuration shouldn't be used as a determining factor for removing a Kconfig option. Instead it is better to look at an example where the Kconfig option would be used and to determine if this can really be removed. As said, mcuboot and zephyr clearly support ram loading of images on all boards. When removing this Kconfig option all of them would need a dts showing how to use this. The existing Kconfig options could also be documented, this would be a lot less work. |
Quite right, an example would be great
A great idea for an enhancement, not for deprecating something that has no in-tree usage. To make things simple, as a MCUboot collaborator, build system collaborator and nordic employee, because your NACK comments are actually of no relevance to this change I will be dismissing your review 2 days from now at which point this PR can be merged. You are will within your rights to escalate this should you wish to do so by following the information presented on https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#pr-technical-escalation or alternatively can withdraw your NACK and (optionally) create a new enhancement bug describing the additions you would like to see for a RAM loading sample. |
Unrelated to deprecation in this PR, user has been told to raise an enhancement request
@MaureenHelm, a quick summary of my view as a preparation of the dev-review meeting:
My proposal is:
|
It is not supported by the official zephyr bootloader: MCUboot
Yet in the whole thread you've be unable to point to a single project making use of this
As previously said as a collaborator for MCUboot: no
So where is the documentation for what this deprecates? |
@nordicjm, it is needed to deprecate |
Fixes #65121