Skip to content

LuizSantos22/BASE-EFI-AMD-RYZEN-THREADRIPPER

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Note Description
Initial macOS Support macOS 10.13, High Sierra.
  • Opencore version: 0.7.5
  • Release date: 01/11/2021

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.

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 Fixing SMBIOS MacPro7,1 Memory Errors.
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 - Opencore 0.7.1+

Find the three algrey - Force cpuid_cores_per_package patches and alter the Replace value only - config.plist.

Changing B8000000 0000/BA000000 0000/BA000000 0090* to B8 <CoreCount> 0000 0000/BA <CoreCount> 0000 0000/BA <CoreCount> 0000 0090* substituting <CoreCount> with the hexadeciamal value matching your physical core count.

Note: The three different values reflect the patch for different versions of macOS. Be sure to change all three if you boot macOS 10.13 to macOS 12

See the table below for the values matching your CPU Core Count.

CoreCount 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 6 Core 5600X Replace value would result in these replace values, B8 06 0000 0000/BA 06 0000 0000/BA 06 0000 0090

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), 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

About

Basic EFI with Opencore for AMD Ryzen and Threadripper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 47.4%
  • C 46.9%
  • Python 4.6%
  • Other 1.1%