randyzhong / HP-EliteDesk-800-G2-DM-Hackintosh

OpenCore version of HP EliteDesk 800 G2 Desktop Mini Business PC (35W/65W) Hackintosh Support.
55 stars 17 forks source link

Secure boot in opencore #9

Open bronzeblood opened 2 years ago

bronzeblood commented 2 years ago

I had to change a setting in config.plist

from

<key>SecureBootModel</key>
 <string>Default</string>

to

<key>SecureBootModel</key>
<string>Disabled</string>

To get opencore to load, after that all went smoothly

TCB13 commented 2 years ago

I was also getting this error:

OC: grabbed zero system-id for SB, this is  not allowed

And instead of your suggestion was able to go around it by generating a random ApECID using:

> python3 -c 'import secrets; print(secrets.randbits(64))'
3000XXXXXXXXXX...

Then edited the file \EFI\OC\config.plist to add the ID:

<key>ApECID</key>
<integer>3000XXXXXXXXXX</integer>

And it booted all right.

Note: Not sure if SystemUUID shouldn't be set as well.