403 Commits

Author SHA1 Message Date
Mike Beaton
cde43cd3c1 OpenNetworkBoot: Add PXE and HTTP(S) Boot support 2024-11-30 18:40:21 +00:00
Mike Beaton
6bb481ed62 OpenLinuxBoot: Fix booting with TuneD in Fedora 41
In GRUB2+blscfg mode:
 - Allow grub vars in 'initrd' as well as in 'options'
 - Allow multiple initrd files on one 'initrd' line
 - Initialise empty $tuned_params and $tuned_initrd grub vars if no
   values present, on an optional flag enabled by default (since
   we want to make booting major distros easy)

In GRUB2+blscfg mode (seem to be allowed now, not required for fix):
 - Allow multiple 'initrd' lines
 - Allow multiple 'options' lines

Add variant of OcParseVars which can parse as value-only tokens.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2024-11-18 23:28:33 +00:00
Vitaly Cheptsov
4b3b0cb1d7
OcBootManagementLib: Add Apple DP expansion for VirtIO BLK (#561)
Apparently macOS strips down HD nodes from VirtIO BLK devices
leaving them "infix" shortened, i.e. PCI/APFS instead of
PCI/HD/APFS.
2024-10-07 17:44:08 +03:00
Mike Beaton
184f3e0b54
OcBootManagementLib: Convert naming from External System Boot to Unmanaged Boot (#552) 2024-10-06 10:30:31 +03:00
Mike Beaton
7e39fedf18 OcBootManagementLib: Revert changes to fat slice secure boot logic from 125d8e8df36bd7ca12085d9670dca9060cf49c76
Note: EFI_SUCCESS does not always mean a signature was found and
verified (which never existed and therefore is not expected to
happen, for a fat slice), but simply that no further verification
of SB status is required and OC image loader should be used.

Resolves: https://github.com/acidanthera/bugtracker/issues/2414
2024-07-08 17:20:34 +01:00
Mike Beaton
e1b2cb49b5 BuiltinPicker: Avoid responding to possibly multiple keys pressed before menu is read out, if using audio assist 2024-01-17 10:01:35 +00:00
Mike Beaton
d748c4a76e Platform: Add Firmware Settings entry driver 2024-01-17 09:52:29 +00:00
Mike Beaton
2b66a703a0 BootPickers: Swap positions of Shutdown and Restart buttons
to better match newer macOS.
Add OC_ATTR_USE_REVERSED_UI bit to use old layout.
2024-01-01 16:00:30 +00:00
MikhailKrichanov
0a62573bea
Library: Fixed UEFI_IMAGE_SOURCE semantics. (#508) 2023-12-04 07:49:48 +03:00
Mikhail Krichanov
c65fb5bbfd Library: Fixed ImageOrigin types. 2023-11-24 09:42:11 +03:00
Mikhail Krichanov
43c4931957 User: Defined PcdImageProtectionPolicy for ImageTool in audk, adopted new API. 2023-11-23 14:04:16 +03:00
Mike Beaton
11c45d89d9 OcBootManagementLib: In order to detect files such as signed apfs.efi,
test for sutiability for fixup for all loaded images, not just boot image
2023-11-19 14:43:56 +00:00
Mike Beaton
d1e1fe7cd2 OcBootManagementLib: Trigger FixupAppleEfiImages quirk on default Apple boot path as well
- Allows for very early Mac OS X 32-bit images which are neither signed nor in a fat binary
2023-11-18 19:46:14 +00:00
Mike Beaton
125d8e8df3
OcBootManagementLib: Store ImageLoaderCaps in protocol (#504) 2023-11-18 19:42:20 +00:00
Mike Beaton
9d05c7f5ae OpenDuet/OcBootManagementLib: Disable W^X auto-fix in Duet, and move fix for all Apple images to FixupAppleEfiImages quirk
Duet then matches behaviour of OVMF, and quirk can be used in both Duet and OVMF to load legacy Apple images.
2023-11-08 07:21:40 +00:00
Mike Beaton
5f15e839f8
OcPeCoffExtLib: Add support for FixupAppleEfiImages quirk (#498) 2023-11-03 11:06:56 +03:00
Mike Beaton
7f08cc7c22
OcBootManagementLib: Add missing explicit initialisation of mImageLoaderCaps in OcImageLoaderLoad (#496)
Fix mentioned in changelog incorporates this and the previous commit
2023-10-30 12:30:52 +03:00
Mike Beaton
c6060b25bb OcBootManagementLib: Add guard for static mImageLoaderCaps 2023-10-29 14:34:49 +00:00
Mike Beaton
36b2cea412 OcBootManagementLib: Fix incorrect handling of optional DataLength parameter
Introduced by 546aa5ba6415902ed05db02f8a5448c5e7ff67cf
2023-10-14 20:15:22 +01:00
John Davis
bb44e89add
Implement legacy OS booting support (#482) 2023-09-07 20:00:30 -05:00
Mikhail Krichanov
5afed6eb16 Build: Fixed compilation after adding UE draft into AUDK master. 2023-07-20 10:20:16 +03:00
Mike Beaton
546aa5ba64 OcBootManagementLib: Unify boot meta file loading code;
Optionally allow .contentVisibility in same boot fs root locations
as searched for .VolumeIcon.icns, since file next to boot.efi is
deleted on macOS update.
2023-07-04 01:23:42 +01:00
Mike Beaton
dc182df42c OcBootManagementLib: Add InstanceIdentifier, and ability to target .contentVisibility to specific instances 2023-06-23 19:54:33 +01:00
Mike Beaton
78cf64df83 OcBootManagementLib: Improve Save/RestoreMode 2023-05-20 00:42:48 +01:00
Mike Beaton
3927ee7fe1 OcBootManagementLib: Save and restore text and graphics mode settings round tools and failed entries 2023-05-18 09:16:01 +01:00
Mike Beaton
8110c45981 OcBootManagementLib: Improve clipping of overlong menu entries
- Allow full width entries in wide modes
 - Support unusual small modes better, and about as well as possible
2023-05-18 09:16:01 +01:00
Mike Beaton
0083a4ef15 OcBootManagementLib: Disable builtin picker timeout on unbootable selection from Apple picker; change from INFO to WARN if cannot start requested Apple picker 2023-05-07 09:25:51 +01:00
Mike Beaton
c8b93357b8 OcConsoleLib: Simplify use of builtin renderer uncontrolled mode
The renderer already (esp. since recent changes incl. reset to controlled on cls)
manages its own transitions to controlled, so we just need to indicate uncontrolled
in cases where something else has been rendering graphics
2023-05-04 09:59:22 +01:00
Mike Beaton
7feb7c98c3 OcConsoleLib: Builtin renderer updates
- Perform full clear screen on switch from graphics to text mode,
   if marked uncontrolled
 - Suppress remaining console coloured output (screen clear and
   cursor, text was already handled) if in graphics mode
 - Remain uncontrolled while in graphics mode
 - Improve builtin renderer screen size calculations
   o Although we appear to lose a small amount of height (i.e. up
     to one row) with the new font size scaled vertical padding,
     we were actually losing it anyway with the previous screen
     size calculation
 - Re-order initialisation of builtin mode
   o Avoid producing uncontrolled text with old text protocol,
     after resync screen clear of new controlled protocol
2023-05-03 22:21:11 +01:00
Mike Beaton
acecdf5e7b Revert OcConsoleLib related parts of recent commits:
- Reverts part of commit 2439d58412c071cb735cde8a70c9ef964a095780.
 - Reverts commit a189bd53bc2ac1490dac7125a9ce11fd03571755.
 - Reverts part of commit b07843fe1d47454747ae4eda9ea0189aa9fb8c03.
2023-05-02 07:49:01 +01:00
Savva Mitrofanov
70bb87c7b0 Library: Replace OcPeCoffLib with UefiImageLib 2023-04-26 11:01:50 +03:00
Savva Mitrofanov
b2d438d6f3 Switch OcGuardLib to BaseOverflowLib 2023-04-13 13:16:14 +06:00
Mike Beaton
abe28e829f OcConsoleLib: Add GopBurstMode quirk
OcMemoryLib: Add additional PAT and MTRR caching support
2023-03-28 07:18:14 +01:00
Mike Beaton
2439d58412
OcConsoleLib: Prevent verbose boot text overwriting pre-existing graphics (#426)
- Clear console screen on change to console mode
 - Ensure entire screen is cleared at least once in console mode
   o Was not needed/was done by default, prior to a189bd53bc2ac1490dac7125a9ce11fd03571755
   o Remove GOP clear screen work-around no longer required with this change.
 - These changes improve EnableGop driver in the same way, so update version number
   o Add EnableGop version in UI section, to enable tool builders to track it
2023-02-22 02:01:39 +03:00
Mike Beaton
f6bf1f2d86 EnableGop: Provide standalone GOP driver for EFI-era Macs 2023-01-29 09:21:49 +00:00
Mike Beaton
01b457fe81 Docs/Comments: Consistent use of Note: instead of NB 2023-01-07 09:46:19 +00:00
vit9696
7b7d6ea756 OcBootManagementLib: Add .contentVisibility file
This replaces OpenCore signature checking with .contentVisibility file
containing either `Disabled` or `Auxiliary` to hide entries from the
boot picker.
2022-12-25 20:04:40 +03:00
Mike Beaton
a653620c33 OcBootManagementLib: Enable Apple picker on non-EFI graphics cards 2022-11-23 00:53:23 +00:00
Mike Beaton
13356ae4a4 OcBootManagementLib: Fix unwanted flicker when launching non-text entry 2022-11-12 18:51:16 +00:00
Marvin Häuser
e8ce607364 OcBootManagementLib: Fix incorrect recovery path in comment 2022-11-01 15:31:51 +01:00
MikeBeaton
b3f2033d20 OcBootManagementLib: Rename DisableFirmwareRuntime option to FullNvramAccess 2022-08-05 08:55:45 +01:00
MikeBeaton
fa7477066c OcBootManagementLib: Add DisableFirmwareRuntime option for Tools 2022-08-04 22:49:42 +01:00
MikeBeaton
83123452fe OCVAR: Refactor NVRAM code, add OpenVariableRuntimeDxe 2022-07-28 06:38:56 +01:00
MikeBeaton
77c6c9d409 ToggleSipEntry: Add --show-csr option 2022-07-24 14:19:52 +01:00
MikeBeaton
14c792ae8b OcStringLib: Use OC_STRING_FORMAT consistently 2022-07-20 19:49:21 +01:00
MikeBeaton
622aa07c21 OcBootManagementLib: Avoid unecessary warnings on hidden auxiliary entries, specifically warn on invalid device path 2022-07-20 08:03:28 +01:00
MikeBeaton
510fc28401 OcBootManagementLib: Add missing LF 2022-07-20 07:06:35 +01:00
MikeBeaton
d9e57c0e82 OcBootManagementLib: Report unsupported etc. custom entries 2022-07-15 12:21:32 +01:00
MikeBeaton
d804b31f8d OcStringLib: Add OC_STRING_FORMAT; rename OC_STRING_BUFFER to OC_ASCII_STRING_BUFFER 2022-07-03 07:19:40 +01:00
PMheart
2e2dde8e24
OcBootManagementLib: De-duplication of mOzmosisProprietary1Guid (#354) 2022-05-24 09:54:03 +03:00