Commit Graph

107 Commits

Author SHA1 Message Date
Sergii Dmytruk e7c4c21c6f DasharoModulePkg/DasharoSystemFeaturesUiLib: update UI note about ME vs. capsules
Limit the scope of the warning to in-RAM capsules when on-disk capsules
are enabled.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2026-01-08 01:05:28 +02:00
Michał Kopeć 1c50dad8d6 DasharoModulePkg/Library/DasharoVariablesLib/DasharoVariablesLib.c: Recreate variables whose attributes don't match
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-12 19:23:12 +02:00
Michał Kopeć 09b49b3e3e DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeatures.c: correct logic for descriptor writeability
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:20 +02:00
Michał Kopeć e8894bed1b DasharoModulePkg/Library: Use correct GUID for DescriptorWriteable EFI var
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:19 +02:00
Michał Kopeć af85ff649a DasharoModulePkg: Add define for DescriptorWriteable EFI variable
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:19 +02:00
Michał Kopeć d3d9ca0468 DasharoSystemFeaturesUiLib/DasharoSystemFeatures.c: Hide HAP if descriptor is locked
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:19 +02:00
Michał Kopeć 4d28c9a94d DasharoVariablesLib/DasharoVariablesLib.c: Always allow capsule if descriptor is locked
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:12 +02:00
Michał Kopeć 009e00db4c DasharoVariablesLib/DasharoVariablesLib.c: Always allow capsule if descriptor is locked
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-01 17:59:15 +02:00
Michał Żygowski 8e72b747d4 DMP/Library/DasharoSystemFeaturesUiLib: Workaround IBG_STATUS structure issue
On ODROID-H4 platform where IBECC option is enabled, the form setup overwrites
the IBECC variable despite the option is not modified in the setup. It happens
that if the IBECC option is after IBG_STATUS in DASHARO_FEATURES_DATA, the value
of the UEFI avriabel changes, which may indicate some alignment problems of the
structures in memory and how the code accesses it.

When IBECC option is before IBG_STATUS, everything works as expected. Move
the IBECC option before IBG_STATUS as a workaroudn until the root cause is found
and fixed.

Addresses issue: https://github.com/Dasharo/dasharo-issues/issues/1544

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-08-29 14:21:43 +02:00
Sergii Dmytruk ac25544f92 DasharoModulePkg/DasharoVariablesLib: runtime access to ME mode variable
The variable is being checked in DasharoCapsulesCanPersistAcrossReset().
An error from gRT->GetVariable() about missing variable is effectively
ignored (ASSERT_EFI_ERROR() does nothing) and default assumption of ME
is enabled which ended up preventing use of capsules even after
HAP-disabling ME.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-08-13 01:09:44 +03:00
Sergii Dmytruk 87c0c539c8 DasharoModulePkg/DasharoVariablesLib: don't call Print() without ConOut
This causes crash on writing capsule to /dev/efi_capsule_loader in
Linux.  The Print() function is asserting in this case and apparently
ends up accessing a pointer memory that was not updated on
SetVirtualAddressMap().

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-08-13 01:09:43 +03:00
Michał Kopeć 04b1ed1b56 DasharoVariablesLib: warn if ME is in wrong mode for capsule
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-07-24 16:47:50 +02:00
Wiktor Mowinski 7aa9149ff8 DasharoPayloadPkg/PlatformBootManagerLib: add an option to control iPXE boot in FUM
Signed-off-by: Wiktor Mowinski <wiktor.mowinski@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-07-08 20:32:47 +03:00
Michał Żygowski 244b28fddf DasharoModulePkg: Add IBECC option support
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-06-13 16:39:41 +02:00
Michał Żygowski f54d791b4a DMP/Library/DasharoVariablesLib: Add mising USB port power var
Fixes the assert happenning in OVMF when attempting to enter
setup:

GetVariableInfo(): Unknown variable: UsbPortPower.
ASSERT DasharoVariablesLib.c(198):
   (0 && "No default value set for a variable.")

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-06-13 12:19:33 +02:00
Michał Kopeć f0459dff14 DasharoModulePkg: add PCD to control Intel CBnT status visibility
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-06-11 16:14:33 +02:00
Michał Kopeć 087aa8fb0d BtG status menu: Keep inverted logic for TxtDisPol
Co-authored-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-06-11 16:14:32 +02:00
Michał Kopeć 9a90e7bc9d DasharoSystemFeaturesUiLib: Add Boot Guard info to ME menu
Signed-off-by: Micha¿ Kope¿ <michal.kopec@3mdeb.com>
2025-06-11 16:14:32 +02:00
Filip Lewiński c3fc85d27c DasharoModulePkg/: disable dGPU only option for non-MTL
Signed-off-by: Filip Lewi¿ski <filip.lewinski@3mdeb.com>
2025-04-01 12:40:31 +02:00
Filip Lewiński 0a189c4d87 DasharoSystemFeaturesStrings.uni: add dGPU only help message
Signed-off-by: Filip Lewi¿ski <filip.lewinski@3mdeb.com>
2025-04-01 12:40:31 +02:00
Filip Lewiński 5932ead0f7 DasharoSystemFeaturesVfr.vfr: remove Meteor Lake - specific comment
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-01 12:40:31 +02:00
Filip Lewiński dc355caf5f DasharoSystemFeaturesVfr.vfr: add dGPU only option
Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2025-04-01 12:40:30 +02:00
Filip Lewiński 5c1929aa46 DasharoModulePkg: rename DGPUEnabled to more generic DGPUState
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-01 12:40:30 +02:00
kamay 2fc0e16a84 Added DGPUEnabled EFI variable
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-03-28 16:16:26 +02:00
Michał Żygowski bdd23a7d1d DasharoModulePkg: Add USB port power feature
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-03-10 20:16:34 +02:00