Skip to content

efivar experiment #65

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lool
Copy link
Contributor

@lool lool commented May 29, 2025

Draft as this depends on #64 and is not merged upstream anyway

  • WIP: Build efivar experiment for Sumit
  • DRAFT: Update for experiment

@lool lool force-pushed the efivar-experiment branch 3 times, most recently from 5daa6a6 to ae1eec5 Compare May 29, 2025 18:55
@lool
Copy link
Contributor Author

lool commented May 29, 2025

@b49020 Specially for you :-)

Please post here if it works!

This is to be able to read/write EFI vars from a file used by U-Boot in
the ESP.
@lool lool force-pushed the efivar-experiment branch from ae1eec5 to 6d6ade8 Compare June 5, 2025 14:09
@lool
Copy link
Contributor Author

lool commented Jun 5, 2025

@basak-qcom what do you think of these patches?

+efivar (38-3.1~invalid1) trixie-noship; urgency=medium
+
+ * Add test patches from https://github.com/rhboot/efivar/pull/267
+ - 0001-efivar-Add-missing-to-usage-help-options.patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a derivative (Ubuntu) maintainer we're usually reluctant to take such trivial patches - it provides little gain to the user, and such things get fixed eventually as soon as a fixed upstream release rolls through. Given our overall goals, it is perhaps appropriate to set a policy about what delta is acceptable here: no delta over upstream without either: 1) the reason being obvious; or 2) a justification of why it is necessary to have this; with the default policy deliberately being: no extra delta unless necessary, thank you.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true we should be able to drop this trivial patch

+Acked-by: Ilias Apalodimas [email protected]
+Tested-by: Ilias Apalodimas [email protected]
+Signed-off-by: Javier Tia <[email protected]>
+---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like dep3 headers around here somewhere please, to help us track the upstream status. I did find rhboot/efivar#267, which I think corresponds. We should definitely link to this somehow.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just adding link to efivar PR in this patch will be helpful

@lool
Copy link
Contributor Author

lool commented Jun 11, 2025

@b49020 I don't know if you're subscribed to this pull request, so tagging you to check out @basak-qcom's comments :-)

@b49020
Copy link

b49020 commented Jun 11, 2025

@lool

I don't know if you're subscribed to this pull request, so tagging you to check out @basak-qcom's comments :-)

I am subscribed to this PR but being currently swamped into Imola bringup prep for boot firmware. I will try to give this PR a try. BTW, thanks for the reminder.

@basak-qcom
Copy link
Contributor

Thanks! I see no issue with this landing then, with 1) trivial/unnecessary patch dropped; and 2) reference made to upstream PR.

The final thing would be tests: are any appropriate and possible? If not, then I guess it's fine anyway - we have to be pragmatic.

@b49020
Copy link

b49020 commented Jun 12, 2025

Thanks for your review @basak-qcom

The final thing would be tests: are any appropriate and possible? If not, then I guess it's fine anyway - we have to be pragmatic.

We will be enabling automatic EFI capsule updates via LVFS that will use this feature which I will be testing shortly. You can find corresponding documentation here: https://github.com/qualcomm-linux/qcom-deb-images?tab=readme-ov-file#firmware-updates. Currently we are in process to setup an LVFS account for Qualcomm which will enable OTA firmware updates atleast for U-Boot as of now.

@lool
Copy link
Contributor Author

lool commented Jun 19, 2025

rhboot/efivar#267 was abandoned in favor for implementing a new, separate, cleaner backend; see rhboot/efivar#267 (comment)

@ricardosalveti
Copy link

rhboot/efivar#267 was abandoned in favor for implementing a new, separate, cleaner backend; see rhboot/efivar#267 (comment)

rhboot/efivar#282 was just merged.

@b49020
Copy link

b49020 commented Jul 1, 2025

rhboot/efivar#282 was just merged.

Thanks for the update @ricardosalveti, @lool can we rather switch to the tip of efivar in this PR and rather drop all other patches from this PR?

@lool
Copy link
Contributor Author

lool commented Jul 1, 2025

@b49020 did you give it a try with a local build, does it carry the changes we need?

@b49020
Copy link

b49020 commented Jul 1, 2025

@lool, yeah you are right, let me give it a try locally on RB1 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants