4967 Commits

Author SHA1 Message Date
Mikhail Krichanov
79a65d3da9 Build: Fixed compilation after switching AUDK to UserSpace branch. 2025-10-06 13:22:08 +03:00
Mikhail Krichanov
2403235eb1 Build: Switched ocbuild to UserSpace branch. 2025-10-06 13:20:51 +03:00
Mike Beaton
aa3c8bb363 Tools: Minor fix grammar in error message 2025-10-05 10:52:09 +01:00
Pavel Naberezhnev
7897c1e039
Updated minimal EFI Event support in userspace (#577) 2025-10-01 10:48:41 +03:00
Mike Beaton
849b04fdf4
Patches: Allow DEBUG OpenShell to start with too many file systems under Mac EFI (#582)
Early Mac EFI returns EFI_INVALID_PARAMETER if storage for any single
NVRAM variable exceeds a certain size (leaves 2006 bytes for the value,
if the variable has a 4 character name). Since all of fsXX:\efi\tools\,
fsXX:\efi\boot\ and fsXX:\ are added to a CHAR16 shell `path` variable
for each file system found, the variable exceeds this limit when there
are greater than 25 file systems.

In the RELEASE shell this causes the `path` variable to get set to a
strange value. Unfortunately in the DEBUG shell it causes an ASSERT
and the shell does not start.

With this patch the DEBUG shell behaves like RELEASE shell: due to the
implementation of ShellProtocol SetEnv, when there is an error the
variable gets deleted and not recreated, thus the final path variable
only contains paths for file systems after the one which caused the
error. While this patch is not an ideal fix for the underlying problem,
it does simply recreate the longstanding behaviour of the RELEASE shell
on the same systems, and is preferable to the DEBUG shell being unusable.

Addresses https://github.com/acidanthera/bugtracker/issues/2005
2025-09-22 12:25:04 +03:00
vit9696
219e6e2fe9 Utilities/macrecovery: fix commands and build-image issues with 15+
Thanks Andrey1970!
2025-09-22 01:18:12 +03:00
Pavel Naberezhnev
d9d77331ea Added demonstration test of working DummyEvents
Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
2025-09-11 14:56:26 +03:00
Pavel Naberezhnev
0d19bcd7b3 Added UserEvent functions into UEFI in userspace
Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
2025-09-11 14:53:27 +03:00
Pavel Naberezhnev
e1d7b9b418 Added minimal UEFI Event subsystem support into userspace
This feature adds support for UEFI Event in userspace. The
following has been implemented:
  - The number of events if fixed
  - Event dispatching occurs through an explicit call to
    the dispatcher from UEFI Event functions
  - Event groups are not supported

Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
2025-09-11 14:53:27 +03:00
vit9696
1ecaca3c7c OcCompressionLib/zlib: Fix build issues 2025-09-11 12:13:01 +03:00
vit9696
5a996a4436 Utilities/macrecovery: Add option to customise build-image image format 2025-09-11 11:57:33 +03:00
vit9696
d76d599773 OcAppleUserInterfaceThemeLib: Added background-color NVRAM variable
This allows to have grey OpenCanopy background colour and grey 10.9
EfiBoot boot screen
2025-09-11 11:56:33 +03:00
vit9696
d762689b98 Docs: Fix some typos 2025-08-21 23:02:45 +03:00
vit9696
9c0dbdd4b2 Docs: Add sample ACPI patch demonstrating table-specific replacement
Newly added example demonstrates patching RTC device supporting 2 I/O
ports which are reported as 8 I/O ports in ACPI. The patch fixes
PowerManagement crashes in e.g. 10.6 and newer in OVMF.
2025-08-21 22:29:04 +03:00
vit9696
79ea932f19 Docs: Update documentation for 10.4 and 10.5 2025-08-17 00:02:54 +03:00
Andrey1970
6884871ef8 DataBase: Updated MaximumOSVersion 2025-08-11 13:28:04 +03:00
vit9696
9afdb676d3 Docs: Explain why RebuildAppleMemoryMap is necessary before 10.7 2025-08-11 03:33:42 +03:00
Vitaly Cheptsov
86db43e07e
Docs: Sync Changelog 2025-08-10 11:07:37 +03:00
Alex James
1f6d95aedf
OcConsoleLib: Normalize console font path (#579)
OcLoadConsoleFont currently loads the specified console path from
Resources\Font\\, which can cause vault failures if vault.plist doesn't
include the duplicate path separator. Remove it to match other paths.
2025-08-10 11:04:14 +03:00
vit9696
835137c13d Utilities: Workaround shellcheck false positive 2025-08-09 19:27:09 +03:00
vit9696
7f8c15afb1 Docs: Add AppleIntel8254XEthernet sample patch for macOS 10.4 in QEMU
Prior to macOS 10.5 the logic used to interpret PHY status was wrong.
AppleIntel8254XEthernet checks PHY Specific Status register for bit 3
(Transmit Pause Enabled) presence instead of bit 10 (Link).

This patch forces PHY Specific Status register 0xac08, which means
always up.
2025-08-09 18:28:17 +03:00
vit9696
d1ebfea100 OcAfterBootCompatLib: Add some more debugging & info on Booter quirks 2025-08-07 01:38:19 +03:00
vit9696
2bc82850d1 Git: Improve LegacyBoot ignore files 2025-08-07 01:36:34 +03:00
vit9696
eca9d6b156 OcStorageLib: Increased OC_STORAGE_SAFE_PATH_MAX to 192
This is needed to Force inject longer kexts, e.g. networking:
System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/
AppleIntel8254XEthernet.kext/Contents/MacOS/AppleIntel8254XEthernet
2025-08-07 01:36:34 +03:00
vit9696
ebb55d7eee Utilities/LegacyBoot: Added EFI mode to QemuBuild.command 2025-08-07 01:36:34 +03:00
vit9696
9b92b5945f Library/OcAcpiLib: Enable RSDT/RSDP/XSDT address printing in INFO
This is useful to debug RSDP lookup failure in operating systems,
especially macOS 10.4, which needs RSDP in low memory.
2025-08-07 01:36:34 +03:00
Mike Beaton
4891b78f26 Docs: OpenVariableRuntime: Improve wording for what is included in OpenDuet
OpenDuet includes unmodified VariableRuntimeDxe. OpenVariableRuntimeDxe
is a slightly modified variant of that (see comments in header of VariableDxe.c).
2025-08-02 22:25:14 +01:00
Mike Beaton
1312e2b298 OpenVariableRuntime: Sync header comment in VariableDxe.c with code changes 2025-08-02 22:20:52 +01:00
vit9696
0195da09a1 Misc: change __FUNCTION__ to __func__ as per upstream EDK II 2025-08-03 00:02:15 +03:00
vit9696
aecd8ec66b Docs: Publish erratum for acidanthera/bugtracker#2507 2025-08-02 23:11:36 +03:00
Vitaly Cheptsov
a46a4dd7d2
Docs: Sync changelog 2025-08-02 23:05:50 +03:00
hg13
a5715fcedc
OcAppleKernelLib: Add fallback CPUFrequency in ProvideCpuInfo (#578) 2025-08-02 13:30:25 +03:00
Andrey1970
e04b9e2292 Bump version 2025-07-13 18:41:18 +03:00
Andrey1970
e8437f7377 DataBase: Updated builtin firmware versions 1.0.5 2025-06-14 20:06:04 +03:00
Andrey1970
9582ff49ed DataBase: Updated MaximumOSVersion 2025-06-14 18:23:19 +03:00
Andrey1970
46cc8bd0ab
Fixed previous 2025-06-14 17:00:09 +03:00
Andrey1970
f03819e6c8
Update link 2025-06-14 16:51:09 +03:00
Andrey1970
7845b89f33
Update recovery_urls.txt 2025-06-14 16:39:00 +03:00
Andrey1970
9ebc8bfc64 Update Kexts.md 2025-06-14 15:35:30 +03:00
Vitaly Cheptsov
15cdd85332
Docs: Sync changelog 2025-06-12 21:14:36 +03:00
Marvin Häuser
164696d1dc OcMachoLib: Resolve indirect symbol ambiguity
Mach-O uses "indirect symbol" ambiguously. The first kind are "indirect
symbols" indicated by their type. They are located in the regular symbol
table, possibly outside the local, external and undefined ranges. Their
value is an index into the string table, which indicates the name of
another symbol they alias. We assume these to only be used by KPIs,
mostly as symbol aliases for deprecated symbol names.

The second kind is the "indirect symbol table", which is merely a flat
list of 32-bit indices into the symbol table.

When the handling code was written, the incorrect assumption was made
that the "indirect symbol table" is a range of "indirect symbols", much
like how local, external and undefined symbols are explicitly indexed.
However, this is not true and causes bugs in handling indirect symbols.

This patch drops this incorrect (and dangerous) assumption and strictly
separates the two concepts. As OpenCore does not inject KPIs, ignore
indirect symbols entirely.
2025-06-12 12:13:55 +02:00
Mike Beaton
7f1f28322f Docs: Sync changelog 2025-06-05 11:30:26 +01:00
CorpNewt
68e73f804c
ocvalidate: Fix error messages for overlong kext paths in Kernel section
Prevent unsigned integer overflow in messages shown for ExecutablePath and PlistPath, if BundlePath has already exceeded safe length.

Fix off-by-one error in displayed "should not exceed" value.

Note: Neither change affects which inputs are errors, they rather fix the displayed messages when errors are found.
2025-06-05 11:28:33 +01:00
Mike Beaton
8fa9a1035b Utilities: Silence additional zlib warning triggered by update to brew mingw-w64
Refactor to remove some duplication in zlib warning code.
2025-06-04 17:25:49 +01:00
John Davis
0e45c622e2 Fix incorrect print in PCI device info dumping in SysReport
Fixes https://github.com/acidanthera/bugtracker/issues/2486
2025-04-29 20:42:30 -05:00
Mikhail Krichanov
be0f2253f6 Build: Fixed compilation after rebasing audk upon edk2-stable-202502 tag. 2025-04-09 11:07:33 +03:00
Andrey1970
fd92fe7594 Docs: Disabled patch 2025-04-09 00:01:03 +03:00
vit9696
b68f91c923 Docs: Add Bluetooth disable patch useful to entirely disable bt stack 2025-04-04 21:19:00 +03:00
Savva Mitrofanov
8d3b5f23fb Build: Add drivers for QEMU virtio devices into build
These drivers are required for the devices (PCI, network, etc.) while we
booting OpenDuet inside QEMU emulator with seabios.
2025-03-10 21:26:41 +03:00
Savva Mitrofanov
dc1812a930 Docs: Update samples
Add OpenNetworkBoot driver
2025-03-05 20:35:05 +03:00