-
Notifications
You must be signed in to change notification settings - Fork 12
U-Boot RB1: Add support for EFI firmware capsule updates via fwupdtool #39
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
@lool Just fyi.., marking this PR as ready for review as I am able to test EFI firmware capsule updates on RB1. Note that currently we only support updating U-Boot without dual A/B bank support. |
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.
Meh, I typed a long review comment after my misc other comments yesterday, but I'm not sure how I lost it, so this will be the short version instead :-)
I wish there would be:
- a mini doc / update to some doc somewhere explaining how the capsule update stuff works for the RB1 using these binaries – right now it's only in the commit message
- we need to address hardcoded ids in comments and assumptions/requirements somewhere
This is good to build for now as for us to play with capsule updates, I do think we need to write our plan on how we / others would implement capsule updates end-to-end, I believe we'll need a boot firmware "product" for that (I can think of a good person to lead that :D)
Thanks @lool for your comments
Yeah this is really the next step we have to take to see how we can create a boot firmware product. Ideally we should upload the EFI capsule updates cabinet archive to https://fwupd.org/ for firmware updates to happen automatically via the fwupd daemon.
Sure, it will work through the standard fwupd and LVFS stuff. The fwupdtool usage here is just to play around with things until we have a firmware distribution strategy ready.
I hope I addressed those but I agree with you that those should be documented. I can create a google document if you like but I would rather prefer finally that documentation to go alongside the boot firmware "product". |
Yup, your comments and intentions I think would address this; I guess for this pull request:
|
Let me see if I can parse that output (the format is quite complex) from guidgen tool and give that as an input in the script. Otherwise, if you agree I can document it that the guid gets generated using this command.
Sure I can add proper comments and update README too. |
Sure, we could document this instead of running the command (it's already a dependency though, so I thought it was elegant to use it, but fine with me either way :)) |
We should probably use https://github.com/qualcomm-linux/qualcomm-linux.github.io to documentation for this (repo just created, need to setup the infra). |
74bd467
to
202f095
Compare
Updated PR with documentation around firmware updates, let me know if there are any further comments. |
@b49020 Merging this now, you addressed comments, and the implementation didn't change after your statement that you had manually validated this. |
fwupd allows to perform over the air EFI firmware capsule updates. Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
U-Boot qcom-mainline branch now got support for EFI firmware capsule updates. So let's add support to build EFI firmware capsule updates using tooling provided by U-Boot as well as fwupdtool to generate LVFS cabinet archive. Once that's done, the EFI firmware capsule updates can be installed and triggered on RB1 using fwupdtool as follows: $ sudo fwupdtool install u-boot.cab Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Document firmware updates for Qualcomm Linux Debian images. The devices are expected to support UEFI firmware capsule updates. On the OS side, the standard mechanism for firmware updates known as LVFS or fwupd is leverage to update firmware on devices. Note here that currently firmware for devices supported by Qualcomm Linux isn't yet available/pushed on LVFS (WIP). Hence, the fwupdtool is used currently for testing purposes. Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Enable support for EFI firmware capsule updates via fwupdtool on RB1 U-Boot. fwupd allows to perform over the air EFI firmware capsule updates. U-Boot script is updated to additionally build LVFS cabinet archive which can be deployed on RB1 using: