Daasin / BASE-EFI-AMD-RYZEN-THREADRIPPER

Basic EFI with Opencore for AMD Ryzen and Threadripper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BASE EFI AMD - Ryzen and Threadripper (1XXX, 2XXX, 3XXX, 4XXX, 5XXX & 7XXX) and Athlon 2xxGE

Note Description
Initial macOS Support macOS 10.13, High Sierra.
  • Opencore version: 0.9.1
  • Release date: 03/04/2023

Basic Steps

  1. Download the latest release;
  2. Includes additional kexts (for ethernet, audio, etc);
  3. Include the necessary ACPI patches (.aml);
  4. Review the special notes;
  5. Generate and complete your SMBIOS infos - ALWAYS;
  6. Adjust your BIOS;
  7. Install macOS and enjoy :)

Features

  • Very light, very clean, basic files for your Hackintosh.
  • Made with latest OpenCore versions.
  • Two editions - Release and Debug Edition.
  • Updated montly with refresh versions of Opencore.

Kexts included (Required)

Kext Description
AMDRyzenCPUPowerManagement.kext For AMD Power Gadget.
SMCAMDProcessor.kext For AMD Power Gadget.
AppleMCEReporterDisabler.kext Useful starting with Catalina to disable the AppleMCEReporter kext which will cause kernel panics on AMD CPUs and dual-socket systems.
Lilu.kext Patch many processes, required for AppleALC, WhateverGreen, VirtualSMC and many other kexts.
VirtualSMC.kext Emulates the SMC chip found on real macs, without this macOS will not boot.
Alternative is FakeSMC which can have better or worse support, most commonly used on legacy hardware.
WhateverGreen.kext Used for graphics patching, DRM fixes, board ID checks, framebuffer fixes, etc; all GPUs benefit from this kext.

Other Kexts (not included)

Kexts for support Audio, Wifi, Ethernets and other devices.

Audio

Kext Description
AppleALC.kext Used for AppleHDA patching, allowing support for the majority of on-board sound controllers.
AMD 15h/16h may have issues with this and Ryzen/Threadripper systems rarely have mic support.
VoodooHDA.kext Audio for FX systems and front panel Mic+Audio support for Ryzen system, do not mix with AppleALC.
Audio quality is noticeably worse than AppleALC on Zen CPUs.

Ethernet

Kext Description
IntelMausi.kext Intel's 82578, 82579, I217, I218 and I219 NICs are officially supported.
AtherosE2200Ethernet.kext Required for Atheros and Killer NICs.
Note: Atheros Killer E2500 models are actually Realtek based, for these systems please use RealtekRTL8111 instead.
RealtekRTL8111.kext For Realtek's Gigabit Ethernet.
Sometimes the latest version of the kext might not work properly with your Ethernet. If you see this issue, try older versions.
LucyRTL8125Ethernet.kext For Realtek's 2.5Gb Ethernet.
SmallTreeIntel82576.kext Required for I211 NICs, based off of the SmallTree kext but patched to support I211.
Required for most AMD boards running Intel NICs.
AppleIGB.kext Required for I211 NICs running on macOS Monterey and above. Might have instability issues on some NICs, recommended to stay on Big Sur and use SmallTree. Requires macOS 12 and above

WiFi and Bluetooth

Kext Description
AirportItlwm Adds support for a large variety of Intel wireless cards and works natively in recovery thanks to IO80211Family integration.
IntelBluetoothFirmware Adds Bluetooth support to macOS when paired with an Intel wireless card.
AirportBrcmFixup Used for patching non-Apple/non-Fenvi Broadcom cards, will not work on Intel, Killer, Realtek, etc.
For Big Sur see Big Sur Known Issues for extra steps regarding AirPortBrcm4360 drivers.
BrcmPatchRAM Used for uploading firmware on Broadcom Bluetooth chipset, required for all non-Apple/non-Fenvi Airport cards.

Others

Kext Description
NVMeFix Used for fixing power management and initialization on non-Apple NVMe.
SATA-Unsupported Adds support for a large variety of SATA controllers, mainly relevant for laptops which have issues seeing the SATA drive in macOS.
We recommend testing without this first.
RestrictEvents Better experience with unsupported processors like AMD, Disable MacPro7,1 memory warnings and provide upgrade to macOS Monterey via Software Updates when available.

ACPI Tables - AMD

These files are MUST be included in your EFI's ACPI directory. We recommend that you use the MANUAL method, but for a first test you can use the prebuild versions.

Table Description
SSDT-EC-USBX Manual | Prebuilt | Details
SSDT-CPUR Prebuilt
Only for B550 and A520

Dumping your DSDT in Windows Environment

Download iASL Compiler ACPI Tools

Open the CMD in the directory where the ACPI Tools was extracted. (Command Prompt) in Administrator Mode:

path/to/acpidump.exe -b -n DSDT -z
move dsdt.dat DSDT.aml

Decompile DSDT.aml:

path/to/iasl.exe path/to/DSDT.aml

File DSDT.dsl will generated. Use this for generate YOUR ACPI Patches.

Compile DSDT.dsl:

path/to/iasl.exe path/to/DSDT.dsl

File APCPI_FILE_PATCHED.aml will generated.

Attention

Update config.plist in PlatformInfo > Generic with YOUR informations.

1. MLB (Board Serial)
2. ROM (Mac Address)
3. SystemSerialNumber (Serial)
4. SystemUUID (SmUUID)

Please use genSMBIOS for generate values for above itens.
Please use ProperTree for configure/edit your config.plist.

Compatible SMBIOS

SMBIOS Description
iMacPro1,1 AMD RX Polaris and newer.
MacPro7,1 AMD RX Polaris and newer.
Note that MacPro7,1 is exclusive to macOS 10.15, Catalina and newer.
MacPro6,1 AMD R5/R7/R9 and older.
iMac14,2 Nvidia Kepler and newer.
Note: iMac14,2 is only supported to macOS 10.8-10.15, for macOS 11, Big Sur and newer please use MacPro7,1.

Catalina and older versions of macOS

  • Please configure MinDate and MinVersion in UEFI > APFS to -1;
  • Please configure SecureBootModel in Misc > Security to j137;

* Without above settings, macOS will not be able to boot.

Special notes

  • USB port mapping is REQUIRED.
  • XhciPortLimit - Needed DISABLE if you use Big Sur 11.3+.
    • Please Mapping USB in macOS Catalina before install Big Sur or Newer for best results.
    • You can use USBMap.command Utility - USBMap.
  • SetupVirtualMap in config.plist:
    • B550, A520 and TRx40 boards should DISABLE this;
    • Newer BIOS versions of X570 also require this DISABLE;
    • X470 and B450 with late 2020 BIOS updates also require this DISABLE.
  • DevirtualiseMmio - TRx40 users please ENABLE this flag.

Special notes - Mapping CORES for AMD CPU

Note for Zen 4: Zen 4 (Ryzen 7000) requires patching for IOPCIFamily.kext.
This patch is enabled by default. Please ensure that you've added it to your current config for Zen 4 stability.
This patch also allows MSI A520, B550, and X570 boards to boot macOS Monterey and newer.

Core Count patch needs to be modified to boot your system.
Find the four algrey - Force cpuid_cores_per_package patches and alter the Replace value only.

macOS Version Replace Value New Value
10.13.x, 10.14.x B8000000 0000 B8 < Core Count > 0000 0000
10.15.x, 11.x BA000000 0000 BA < Core Count > 0000 0000
12.x, 13.0 to 13.2.1 BA000000 0090 BA < Core Count > 0000 0090
13.3 BA000000 00 BA < Core Count > 0000 00

From the table above substitue < Core Count > with the hexadecimal value matching your physical core count.
Do not use your CPU's thread count.
See the table below for the values matching your CPU core count.

Core Count Hexadecimal
4 Core 04
6 Core 06
8 Core 08
12 Core 0C
16 Core 10
24 Core 18
32 Core 20

So for example, a user with a 6-core processor should use these Replace values: B8 06 0000 0000 / BA 06 0000 0000 / BA 06 0000 0090 / BA 06 0000 00

Note: MacOS Monterey installation requires Misc -> Security -> SecureBootModel to be disabled in the config.
Also TPM needs to be disabled in the BIOS. Both can be enabled after install.

TRX40 Systems

Disabling the mtrr_update_action - fix PAT patch has shown an improvement in GPU performance on some systems that have tested. If you wish to test this it is recommended to do so on a USB with OpenCore to ensure it works first. There may be issues with different motherboard/GPU combos that we aren't aware of. Proceed at your own risk.

General Purpose boot-args

Parameter Description
npci=0x2000 This disables some PCI debugging related to kIOPCIConfiguratorPFM64, alternative is npci=0x3000 which disables debugging related to gIOPCITunnelledKey in addition.
Required for when getting stuck on PCI Start Configuration as there are IRQ conflicts relating to your PCI lanes. Not needed if Above4GDecoding is enabled.
npci=0x3000 Alternative for npci=0x2000.

GPU-Specific boot-args

Parameter Description
agdpmod=pikera Used for disabling board ID checks on Navi GPUs(RX 5000 series & RX 6000 series), without this you'll get a black screen.
Don't use if you don't have Navi (ie. Polaris and Vega cards shouldn't use this).
nvda_drv_vrl=1 Used for enabling Nvidia's Web Drivers on Maxwell and Pascal cards in Sierra and High Sierra.

BIOS Settings

Disable

  • Fast Boot
  • Secure Boot
  • Serial/COM Port
  • Parallel Port
  • Compatibility Support Module (CSM)(Must be off, GPU errors like gIO are common when this option in enabled)

Special note for 3990X users: macOS currently does not support more than 64 threads in the kernel, and so will kernel panic if it sees more. The 3990X CPU has 128 threads total and so requires half of that disabled. We recommend disabling hyper threading in the BIOS for these situations.

Enable

  • Above 4G decoding
    • This must be on, if you can't find the option then add npci=0x2000 to boot-args.
    • Do not have both this option and npci in boot-args enabled at the same time.
    • If you are on a Gigabyte/Aorus or an AsRock motherboard, enabling this option may break certain drivers(ie. Ethernet) and/or boot failures on other OSes, if it does happen then disable this option and opt for npci instead.
    • 2020+ BIOS Notes: When enabling Above4G, Resizable BAR Support may become an available on some X570 and newer motherboards. Please ensure this is DISABLED instead of set to Auto.
  • EHCI/XHCI Hand-off
  • OS type: Windows 8.1/10 UEFI Mode
  • SATA Mode: AHCI

References

https://dortania.github.io/OpenCore-Install-Guide/AMD/zen.html
https://dortania.github.io/Getting-Started-With-ACPI/
https://github.com/AMD-OSX/AMD_Vanilla

Discord - Universo Hackintosh

About

Basic EFI with Opencore for AMD Ryzen and Threadripper


Languages

Language:C++ 42.8%Language:C 41.7%Language:Python 14.4%Language:Shell 0.6%Language:Assembly 0.3%Language:SourcePawn 0.3%