dortania / bugtracker

Dortania Bugtracker
108 stars 7 forks source link

UEFI Secure Boot - OC: Driver HfsPlus.efi at 0 cannot be loaded - Invalid Parameter! #275

Closed karlo922 closed 1 year ago

karlo922 commented 2 years ago

Hi,

I have a working 0.8.1 DEBUG configuration. I then signed all .efi files (boot, oc, drivers) with my own private keys and included them into my UEFI (Lenovo T450S). The boot with UEFI Secure Boot will stop before the boot-menu-picker with following error: OC: Driver HfsPlus.efi at 0 cannot be loaded - Invalid Parameter!

I attached the log and the EFI folder (deleted all Kexts to get <25MB).

When I delete the HfsPlus driver in the config.plist, it will stop with the next given driver with the same error. It will boot fine as soon as I disable "Secure Boot" in my UEFI.

As OpenCore itself is loading, the signing and enrolling in my UEFI worked, else it would not get that far.

Something seems to be wrong with loading the signed drivers EFI.zip opencore-2022-06-16-190700.txt .

Andrey1970AppleLife commented 2 years ago

Use HfsPlus.efi from https://github.com/acidanthera/OcBinaryData

karlo922 commented 2 years ago

Use HfsPlus.efi from https://github.com/acidanthera/OcBinaryData

I already use this file. And even if I delete the HfsPlus.efi in my config it will stop with the next driver like OpenRuntime.efi with the same fault.

karlo922 commented 2 years ago

Is it possible to further debug whats happening here?

karlo922 commented 2 years ago

What I now tested: UEFI Secure Boot ENABLED: 1.

2.

3.

So it seems that as soon the UEFI Secure Boot is enabled, the loading of the drivers fails. Independent if they are signed or not.

karlo922 commented 2 years ago

I now tried to debug further and made all variables from OpenCoreUefi.c visible which were loaded:

ImageHandle = NULL; Status = gBS->LoadImage ( FALSE, gImageHandle, NULL, Driver, DriverSize, &ImageHandle );

But this still seems to be valid.

Output of non-signed drivers with SecureBoot Disabled: 08:523 00:295 OC: Driver HfsPlus.efi with argument '', DriverSize: 37892 with ImageHandle: 3224682864 at 0 with gImageHandle 3306163864 and DriverHandle 3288682520 loaded - Success!

Output of signed drivers with SecureBoot Enabled: 09:023 00:299 OC: Driver HfsPlus.efi with argument '', DriverSize: 39488 with ImageHandle: 3224682864 at 0 with gImageHandle 3288707736 and DriverHandle 3288637464 cannot be loaded - Invalid Parameter!

How could I go on with debugging?

PMheart commented 1 year ago

Hello! Unfortunately I don’t think this is what Dortania could help with; please use forums for support.