Commit Graph

1169 Commits

Author SHA1 Message Date
Filip Lewiński
847a1604a3 MdeModulePkg: serial mode as fallback in graphical CUPD
Improve the Capsule Update flow, so that if the
`CONFIG_EDK2_GRAPHICAL_CAPSULE_PROGRESS` is set but no monitor is
detected, the update doesn't fail but rather falls back to serial
mode.

Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2026-02-10 15:40:19 +01:00
Sergii Dmytruk
1d47bb7d88 MdeModulePkg/DxeCapsuleLibFmp: save FMP's payload's abort reason to report
Before this change, it was only printed to the log and then discarded.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-02-06 11:35:18 +01:00
Sergii Dmytruk
b664404047 MdeModulePkg/DxeCapsuleLibFmp: support optional payload update message
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-02-06 11:35:18 +01:00
Sergii Dmytruk
c2e30de8c5 MdeModulePkg/DxeCapsuleLibFmp: display capsule's FwClass GUID
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-20 16:34:57 +02:00
Sergii Dmytruk
873e934a1a MdeModulePkg/DxeCapsuleLibFmp: be less alarming if BIOS should be fine
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-20 16:34:57 +02:00
Sergii Dmytruk
8b6873a54a MdeModulePkg/DxeCapsuleLibFmp: display firmware versions
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-20 16:34:52 +02:00
Sergii Dmytruk
61f08fec65 DasharoPayloadPkg,MdeModulePkg: guard capsule report by a PCD
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-18 20:34:23 +02:00
Sergii Dmytruk
48e7896326 MdeModulePkg/DxeCapsuleLibFmp: collect and report update information
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>
2026-01-18 20:34:23 +02:00
Sergii Dmytruk
0c66c118db MdeModulePkg/DxeCapsuleLibFmp: add update report
Unused at this point.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-18 20:34:18 +02:00
Sergii Dmytruk
2b93ded2ef DasharoPayloadPkg: enable "immediate" on-disk capsules
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-08 01:05:28 +02:00
Sergii Dmytruk
b828f7bf3e MdeModulePkg: support "immediate" on-disk capsules
That is loading and processing on-disk capsules during the same boot
without relocating the capsules to a dedicated non-volatile storage on
ESP or loading them as in-RAM capsules and then rebooting.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-08 01:05:01 +02:00
Sergii Dmytruk
b3020f6aef MdeModulePkg/DxeCapsuleLibFmp/CapsuleOnDisk.c: fix leaks in RelocateCapsuleToRam()
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-06 20:04:21 +02:00
Sergii Dmytruk
aca5c960db MdeModulePkg/DxeCapsuleLibFmp/CapsuleOnDisk.c: extract functions for freeing file info
For deduplication and to make adding future code that needs to do the
same easier.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-06 20:04:20 +02:00
Sergii Dmytruk
b22c226091 MdeModulePkg/DxeCapsuleLibFmp/CapsuleOnDisk.c: fix typos/wording/formats
The typos got in the way of grepping for output lines and reporting
errors as numbers is not very helpful.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-06 20:04:18 +02:00
Michał Żygowski
1cb64d6bde MdeModulePkg/Library/FileExplorerLib: Change text field to subtitle
The text field between the list of files and option to create files or
directories was a selectable empty string with no functionality. When
moving through the menu one had to press the arrow one extra time to
navigate to the files. As it is confusing, change the text field to
subtitle so it is not selectable anymore.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-07-07 16:46:16 +03:00
Michał Żygowski
0961f9f31f Add PCDs to control quiet and fast boot in the project
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:34 +02:00
Michał Żygowski
2bec454154 Handle quiet and fast boot
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:32 +02:00
Michał Żygowski
86228b6242 MdeModulePkg/BootMaintenanceManagerUiLib: Add quiet and fast boot options
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:32 +02:00
Michał Żygowski
7f99c84f07 MdeModulePkg/Library/BootLogoLib/BootLogoLib.c: draw progress bar without spaces
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:29 +02:00
Michał Żygowski
cb41aca5bc MdeModulePkg/RuntimeDxeReportStatusCodeLib: do nothing after ExitBootServices()
Prevent debugging on serial port (whether physical or cbmem console) at
runtime by not doing anything after boot services are exited. It will
stop calling SerialPortWrite if EFI switches to runtime and avoid access
to cbmem CONSOLE buffer which is neither marked as runtime code nor data.

If serial debugging will be necessary, actually mark coreboot's CONSOLE
buffer as runtime data (it's location and size are known).

Solves the issue with Xen backtrace on EFI reset system runtime service:
https://github.com/Dasharo/dasharo-issues/issues/488#issuecomment-1772758851

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:28 +02:00
Michał Żygowski
58654c3ff0 MdeModulePkg/Library/BootMaintenanceManagerUiLib: Handle timeout statically
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:25 +02:00
Filip Lewiński
2a43c70a52 MdeModulePkg: reject negative autoboot timeout
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-03-10 20:16:24 +02:00
Michał Żygowski
79bfb9d215 MdeModulePkg/Library/UefiBootManagerLib: Be more verbose about boot failure
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:24 +02:00
Patrick Rudolph
1f3b667fc3 MdeModulePkg: Be more verbose about SecureBoot and the reason why the boot failed
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
2025-03-10 20:16:24 +02:00
Michał Żygowski
010254be40 Ensure the PcdPlatformBootTimeOut is not updated to make it the default value
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:23 +02:00