acidanthera / bugtracker

Acidanthera Bugtracker
374 stars 42 forks source link

OpenDuet with new secure PE/COFF loader cannot load HfsPlusLegacy.efi from OCBinaryData #2363

Closed wolf606 closed 5 months ago

wolf606 commented 6 months ago

A new secure PE/COFF loader was introduce in the 0.8.8 release of OpenCore. When using OpenDuet from the OpenCore 0.9.7 package, the firmware cannot load the latest HfsPlusLegacy.efi driver from OcBinaryData.

Loading HfsPlusLegacy.efi in OpenDuet from the OpenCore 0.8.7 package: IMG_20231223_142227317_HDR

Loading HfsPlusLegacy.efi in OpenDuet from the OpenCore 0.9.7 package: IMG_20231223_135746210_HDR

mikebeaton commented 6 months ago

@wolf606 @Lost-Entrepreneur439 Can you check that https://github.com/acidanthera/OpenCorePkg/commit/47ad1a72b09654b6720f70b21d66eac8a8055861 fixes the issue for you? Build is in https://github.com/acidanthera/OpenCorePkg/actions/runs/7346200425 (macOS XCODE5 Artifacts at the bottom of the screen, you need to be logged in to GitHub and you need to wait a moment for the Artifacts section to populate).

EAZYBLACK commented 6 months ago

I was also having same issue, thank you contributor i tried the build you sent and now it loads hfspluslegacy fine

Ampernic commented 5 months ago

Maybe I miss-understand something in working of new versions of OC and OpenDuet , but still can boot apfs volumes (its doesn't show in picker) by hfspluslegacy without enabling apple secure boot after update from 0.9.5 to 0.9.7 in latest commit. In release 0.9.7 version it doesn't load fully.

Is it normal? How to solve that? I can't use apple secure boot because I need root patches on my hardware, and it not boot with enabled secure boot.

mikebeaton commented 5 months ago

@Ampernic - Please can you provide a debug log of when this fails to load and config.plist.

Ampernic commented 5 months ago

@Ampernic - Please can you provide a debug log of when this fails to load and config.plist.

Yeah, sure.

opencore-2024-01-17-180910.txt

config.zip

In log i see 'Volume Corrupt' for some volumes, but has no it when Apple Secure Boot is Default

I tried to reinstall all (fully opencore and openduet, recreate config, redownload driver from OCBinaryData, reinstall mac os 11.7.10 from recovery(in fat32 efi partition) and full installer on separate HFS+ partition, but still Volume Corrupt and not showing in piker. If use old opencore version or enable apple secure boot to default its boot successfully.

(I use build from that commit https://github.com/acidanthera/OpenCorePkg/commit/b24d13e6ab6c5d3f0f8dd59f12164079fbcd0600 because latest release 0.9.7 won't load hfspluslegacy fully, how was said in that issue)

Ampernic commented 5 months ago

If needed log with enabled apple secure boot opencore-2024-01-18-072925.txt With apple secure boot apfs volumes are shown in piker photo1705564778

XRevan86 commented 5 months ago

Additionally, OpenDuet 0.8.7 is the last version that is capable of booting Linux, newer versions print out unsupported.

mikebeaton commented 5 months ago

@XRevan86 - We are not aware of this, please make a separate issue, include a debug log and config.plist.

XRevan86 commented 5 months ago

include a debug log and config.plist

@mikebeaton, OpenDuet 0.8.8+ is not able to boot Linux EFISTUB binaries irrespective of whether OpenCore is used at all.

mikebeaton commented 5 months ago

A log of it failing within OpenCore would still be helpful, as would a separate issue, please.