-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
SignedCapsulePkg: Allow hex FirmwareType values in ini files #6475
SignedCapsulePkg: Allow hex FirmwareType values in ini files #6475
Conversation
4c2fff1
to
0f9f382
Compare
@ajfish @leiflindholm @mdkinney Could someone review this please? |
Some platforms such as Ampere Altra have special values for the FirmwareType field: for example 2147483649 is for SCP updates. To make such values easier to read/understand, allow them to be written in hex: in this case it would be 0x80000001. Implement this by attempting to get a hex integer from the ini data file if reading a decimal value fails. Signed-off-by: Rebecca Cran <[email protected]>
0f9f382
to
f2fd186
Compare
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.
Looks like an excellent idea to me.
Only question would be if there is any relevant documentation that should be updated to match.
I would prefer to see platforms move to FmpDevicePkg and stop using SignedCapsulePkg so the SignedCapsulePkg can be deleted. That would be better than making enhancements. How many platforms need to be updated? |
Oh, err, good point. |
Thanks - I'm still figuring all this capsule stuff out. Platform/Hisilicon/D03 Given it's in both QuarkPlatform and Vlv2 (i.e. MinnowBoard) I suspect that's where people get examples of how to do capsule updates from. Is there a good place we should be getting examples - i.e. using FmpDevicePkg? |
I think the following Arm-based platforms are probably ready to be archived:
and possibly
|
archived being a euphemism for deletion? |
Well, moved off the main branch to an archive branch frozen at that point in time. |
Fair enough. Fine with me for all platforms listed. |
Those all sound good to me too. I no longer have a DeveloperBox or MACCHIATObin (Armada 8040) or even a Honeycomb (LX2160) so I won't complain. :) |
How about a tag and delete from main branch? Can always retrieve from the tag. |
I think that makes a lot of sense, especially since the date of the tag will indicate which revision of edk2 to use with it. |
This PR has been automatically marked as stale because it has not had activity in 60 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
This pull request has been automatically been closed because it did not have any activity in 60 days and no follow up within 7 days after being marked stale. Thank you for your contributions. |
Description
Some platforms such as Ampere Altra have special values for the FirmwareType field: for example 2147483649 is for SCP updates.
To make such values easier to read/understand, allow them to be written in hex: in this case it would be 0x80000001. Implement this by attempting to get a hex integer from the ini data file if reading a decimal value fails.
How This Was Tested
Write a SystemFirmwareUpdateConfig.ini file with a FirmwareType value of 0x80000002 and verified it was correctly read and interpreted when applying a capsule update.
Integration Instructions
N/A