4886 Commits

Author SHA1 Message Date
Mike Beaton
d4869b84fd OpenNetworkBoot: Update imported EDK 2 files to contain only the methods which are kept and modified 2024-11-30 18:40:01 +00:00
Mike Beaton
355609bc90 OpenNetworkBoot: Import initial unmodified EDK 2 files 2024-11-30 18:40:01 +00:00
Mike Beaton
72a332ce59 Build: Add /wd4324 to MSFT:*_CC_FLAGS for VS2019 BASE_ALIGNAS
Without this flag MSVC produces spurious warning C4324 when the macro is
working as intended.

Add static assert to OcBlitLib.c which fails without this support.
2024-11-27 12:30:21 +00:00
Mike Beaton
6cb95d50af OcConfigurationLib: Fix config variable naming 2024-11-26 23:14:19 +00:00
Mike Beaton
35bcb134f1 CreateVault: Fix sign.command and update signing docs
Fix operation of `sign.command` when printable characters occur
immediately before `=BEGIN OC VAULT=`. `strings` finds the location of
the first printable character in such a sequence. `hexdump` automatically
works on 16 byte boundaries, so still finds the correct offset.

Use `BASE_ALIGNAS` to enforce the required alignment, which will not be
correct on all builds unless enforced (note alignment is required purely
for locating the structure correctly from external script as above, not
for reading in C).

Remove struct packing, since structs had better be naturally packed anyway
(if not, reading from them without arbitrary-alignment-safe code, as we
do, would be undefined behaviour). Add static asserts to confirm expected
size as required by `sign.command`.

Update the docs to refer to `sign.command` rather than to include the
signing commands explicitly - otherwise we have two places that need to
be kept in sync for signing commands, and note that the commands in the
two places were already out of sync.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2024-11-26 22:22:28 +00:00
Mike Beaton
c7779e7721 CI: Upgrade to Ubuntu 24.04 - apply AppArmor settings for Docker 2024-11-20 13:53:06 +00:00
Mike Beaton
b341356c0e Docs: Build docs 2024-11-20 08:38:31 +00:00
Mike Beaton
705673e631 Docs: Fix typo 2024-11-20 08:35:19 +00:00
Emmanuel Ferdman
6723d65d3a
Docs: Update OpenCoreVault.c reference (#567)
* Docs: Update `OpenCoreVault.c` reference

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Docs: Update `OpenCoreVault.c` reference

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-11-19 22:52:06 +03: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
vit9696
1493b56c3a OcCpuLib: Improved new CPU detection 2024-11-09 16:01:01 +03:00
Vitaly Cheptsov
6fb63d4b3e
Docs: Sync changelog 2024-10-27 16:12:01 +03:00
Mike Beaton
d4ddd2937b EnableGop: Update README to clarify that vBiosInsert.sh receives updates separately from EnableGop itself 2024-10-14 16:53:59 +01:00
vit9696
8eb097584c Library/OcPngLib: Update lodepng to 20230410
fixes some minor crashes discovered by upstream
2024-10-14 16:33:20 +03:00
Mike Beaton
c8a5855f1e EnableGop: Fix typo in README 2024-10-13 19:21:43 +01:00
Vitaly Cheptsov
b6b7252eab
Docs: Sync changelog 2024-10-13 14:08:20 +03:00
Shaneee
913c950a82
OcCpuLib: Fix wrong definition for AMD_CPU_EXT_FAMILY_1AH (#563) 2024-10-13 14:07:32 +03:00
Andrey1970
9bdb9839db Bump version 2024-10-10 12:38:03 +03:00
vit9696
22171e0903 Docs: Enable FixupAppleEfiImages in sample configs
While FixupAppleEfiImages is generally not needed, OpenDuet, VMs,
and some other firmware need it for proper macOS booting.
Given that the quirk is generally harmless, enable it in the samples.
1.0.2
2024-10-07 21:36:49 +03: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
402b3b1d44 Docs: Build docs 2024-10-06 08:36:17 +01: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
3830364e88
OcMainLib: Add UEFI/Unload config option to unload existing firmware drivers (#553) 2024-10-06 10:22:16 +03:00
Mike Beaton
f36983174f Docs: FixupAppleEfiImages additional updates 2024-10-02 22:42:04 +01:00
Mike Beaton
4087300e3f Docs: Update FixupAppleEfiImages wording 2024-09-29 21:17:27 +01:00
PMheart
94ec1dc375
OcAppleKernelLib: Fix XcpmExtraMsrs on macOS 15 (#558) 2024-09-24 16:19:34 +02:00
PMheart
5afe3a6186 OcAppleKernelLib: Enable MSR_MISC_PWR_MGMT patch back on macOS 12+
This partially reverts https://github.com/acidanthera/OpenCorePkg/pull/545.
2024-09-24 12:11:55 +02:00
Andrey1970
f4f4e88806 Updated builtin firmware versions 2024-09-18 15:58:24 +03:00
Andrey1970
173a12e2b8 Updated url 2024-09-17 18:01:19 +03:00
Andrey1970
19d342b281 Update recovery_urls.txt 2024-09-17 17:54:23 +03:00
Andrey1970
49ebbac3ff DataBase: Updated MaximumOSVersion 2024-09-17 17:49:42 +03:00
Vitaly Cheptsov
aa6f402ebe
Docs: Sync changelog 2024-09-11 17:12:57 +03:00
Shaneee
5c42665070
OcCpuLib: Add support for AMD_CPU_EXT_FAMILY_1AH (#557) 2024-09-11 17:12:18 +03:00
Mike Beaton
fa4112e6bb OcConsoleLib: Change comment link from master to specified commit 2024-09-02 22:10:33 +01:00
Mike Beaton
a41b9a7c71 Docs: Sync changelog 2024-08-16 15:32:49 +01:00
Max
a5a5e3ec75
macrecovery: Fix error when running headless (#550)
macrecovery: Fix error when running headless

---------

Co-authored-by: Mike Beaton <mjsbeaton@gmail.com>
2024-08-16 15:30:06 +01:00
Andrey1970
8ee5b37a3f Bump version 2024-08-16 15:33:00 +03:00
Vitaly Cheptsov
9d30e2b75e
Docs: Sync Changelog 1.0.1 2024-07-27 02:38:08 +03:00
Mikhail Krichanov
379ecd5a9d Build: Fixed compilation after rebasing upon edk2-stable202405. 2024-07-26 09:24:41 +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
Zongle Wang
660b4201bc
Build: Go back to macos-latest (#546)
Now macos-latest has moved to Arm64.

See https://github.com/actions/runner-images?tab=readme-ov-file#available-images.
2024-06-17 12:05:41 +01:00
PMheart
485db4c4c2
OcAppleKernelLib: Disabled XcpmExtraMsrs MSR_MISC_PWR_MGMT patch on macOS 12+; fix IOAHCIBlockStorage patch on macOS 14.4+ thanks @vit9696 (#545) 2024-06-15 17:35:33 +02:00
Mike Beaton
55bed88fa1 Docs: Sync changelog 2024-06-04 10:11:07 +01:00
Mike Beaton
7efc772daf LogoutHook: Bundle i386/x86_64 10.6+ compatible version of nvramdump with OpenCore releases
https://github.com/acidanthera/bugtracker/issues/2403

75e19f1422
2024-05-31 20:27:20 +01:00
Mike Beaton
cb591b7671 Docs: Sync changelog 2024-05-27 01:13:41 +01:00
Mike Beaton
7af12eca78 macrecovery: Handle window resizing and min. width
Also:
 - Keep completed download progress.
 - Switch from MBs to MB for megabyte unit display.
2024-05-25 13:30:03 +03:00
soyeon mother 33
59eb3aa3cd macrecovery: Comply with PEP 8
Remove int_from_unsigned_bytes in favor of int.from_bytes, removing the assignment of lambda function
2024-05-25 13:30:03 +03:00
soyeon mother 33
1597eed6dd macrecovery: Switch RECENT_MAC model to MacPro7,1
iMacPro1,1 discontinuation: March 5, 2021
MacPro7,1 discontinuation: June 5, 2023
2024-05-25 13:30:03 +03:00
soyeon mother 33
419a1a6872 macrecovery: Fix path handling 2024-05-25 13:30:03 +03:00
soyeon mother 33
1afd37b5d8 macrecovery: Add progress bar for downloads 2024-05-25 13:30:03 +03:00