Skip to content
/ edk2 Public

Conversation

@SergiiDmytruk
Copy link
Member

@SergiiDmytruk SergiiDmytruk commented Jan 15, 2026

This amends capsule update code to collect some fairly high-level information about how things went, still this is more than one gets from capsule result variables and possibly even logs. The code takes into account possibility of multiple capsules (we don't know what a user of fwupd can do) and multiple payloads.

The displaying part reuses the dialog implemented in #285 after making it generally available and also provides code for constructing dialogs which are then displayed as both text (for serial) and graphics (overrides the text on a display), so that both tests and users should be relatively happy. In the future, we could reuse this code for our other dialogs and have all of them look consistently.

Screenshots are available in Dasharo/dasharo-issues#1434 (comment).

coreboot PR: Dasharo/coreboot#826
issue: Dasharo/dasharo-issues#1434
ref: dsh-1127

At this moment it contains:
 - DrainInput()
 - DrawGraphicPopUp()

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Unused at this point.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Trace various branches of capsule processing to report how handling of
a capsule or its payload went.  The report is displayed at the end of
the second round of capsule processing or after the first one if it ends
with a reboot.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Copy link
Member Author

@SergiiDmytruk SergiiDmytruk left a comment

Choose a reason for hiding this comment

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

In addition to the review comments:

Copy link
Member

@filipleple filipleple left a comment

Choose a reason for hiding this comment

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

LGTM now 👍

@SergiiDmytruk
Copy link
Member Author

I meant to include new screenshots yesterday, but must have closed that tab before sending them. Updated look, this time next to serial output (v0.1.1-rc1 is the expected fake version):

image
image
image

@BeataZdunczyk
Copy link
Member

image

it’s unclear which firmware version is currently runnig on a hardware.

@SergiiDmytruk Instead of running firmware maybe we should refer to it as the previous firmware version?

@mkopec
Copy link
Member

mkopec commented Jan 20, 2026

Maybe simply Updated from version x to y? :)

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
@SergiiDmytruk
Copy link
Member Author

@BeataZdunczyk, updated:
image

@BeataZdunczyk
Copy link
Member

@BeataZdunczyk, updated:
image

@SergiiDmytruk , perfect, approved.

@mkopec mkopec merged commit c2e30de into dasharo Jan 21, 2026
2 checks passed
@mkopec mkopec deleted the capsules-results branch January 21, 2026 06:56
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.

5 participants