Commit Graph

6488 Commits

Author SHA1 Message Date
Filip Lewiński 33bab845f4 UefiBootManagerLib/BmBoot.c: improve iPXE fail popup
Improve the message for readability and ensure popup doesn't appear on
intentional exit out of iPXE.

Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2026-06-08 11:20:50 +02:00
Filip Lewiński 2af24de151 MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c: add iPXE fail handling
Add a popup for when iPXE fails a boot, e.g. due to lack of plugged in
network connection.

Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2026-06-05 12:45:39 +02:00
Michał Żygowski f55da9b333 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c: Retry reset on read
Add an override from openSIL/amd-edk2-platforms repo for USB mass
storage. On Gigabyte MZ33-AR1 there are lots of errors from virtual
CD-ROM from BMC. These additional resets help a bit in USB enumeration
during boot.

Upstream-Status: Pending
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2026-05-08 10:03:03 +02:00
Filip Lewiński d737a918af SdMmcPciHcDxe/BayhubHost.c: add
Apply https://edk2.groups.io/g/devel/message/100548 in order to fix SD
cards not listing as bootable devices/mountable volumes.

Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2026-02-18 10:12:43 +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 4fdc0917b6 MdeModulePkg/Universal/DisplayEngineDxe: Do not highlight empty strings
Hightlighting empty strings or strings containing a single SPACE character
resulted in drawing a confusing single-character-wide black rectangle.

Skip highlighting those mepty strings. it may be useful in forms where
no entry should be highlighted by default. It can be done by defining
a text field with empty prompt and help string as first menu entry.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-07-07 16:46:05 +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 3ff728ca15 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe: Reduce PS/2 KBD init to minimum
For NVC laptops it is required to issue KBEN command only to get
the keyboard working on coldboot paths with Windows. This commmit
will be squashed with previous commits once it is verified to work
on MSI desktops.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:33 +02:00
Michał Żygowski e9697ba87b MdeModulePkg/Bus/Isa/Ps2KeyboardDxe: Issue KBEN command after KBC init
After the minimal KBC initialization is	done on	fast boot path,	we still
need to	issue KBEN command. This is a workaround for NVC EC implementation
of KBC which enables keyboard scanning on KBEN command. It has been
verified that Windows does not issue this command, os it is required to get
the keyboard working on	cold boot paths	on NovaCustom laptops. Verfied that
this command did not need to be issued on MSI desktops.

TEST=Boot NovaCustom V560TNX after shutdown from Windows without AC
connected and confirm the internal keyboard still works.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:33 +02:00
Michał Żygowski e1cab3dc1c MdeModulePkg/Bus/Isa/Ps2KeyboardDxe: Lower the PS/2 KBD detection timeout
One seconds seems a bit too excessive to detect the keyboard. Lower the
detection timeout to half a second.

TEST=Verify PS/2 keyboard is initialized properly on MSI Z690-A DDR4 with
Media-Tech MT122K PS/2 keyboard and NovaCustom V540TND.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:33 +02:00
Michał Żygowski e9a661c3a9 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe: Perform minimal i8042 controller init
On fast boot path the i8042 controller was not being initialized at all if
Windows was being booted. This resulted in the keyboard not working after
shutdown and even after reset from Windows. It only worked when the keyboard
was initialized earlier properly and no shutdown occurred. On Linux boot
path, GRUB was calling ReadKeyStroke which triggered connecting consoles and
performing a full PS/2 initialization.

On fast boot path, add minimal i8042 controller initialization without
actual keyboard initialization and extended verification. It is sufficient
for both Linux and Windows to set up the PS/2 keyboard properly.

Also move setting the FastPs2Detection PCD to the Ps2KeyboardDxe, as it
caused most of the i8042 controller initialization to be skipped. Once the
controller is initialized on module start, the extra initialization may be
skipped later on fast boot path.

TEST=PS/2 keyboard works in both Ubuntu Linux and Windows after shutdown and
restart on NovaCustom V540TND.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:33 +02:00
Michał Żygowski 983f91c9be MdeModulePkg/Bus/Isa/Ps2KeyboardDxe: Don't do extended verification on fast boot
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:32 +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