Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: Add some styling, links and fixes #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 37 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@

</span>


#### Patches for beta versions are provided, but no support is given until the OS is released.
#### Try these patches at your own risk, and always keep an EFI backup.
### :warning: Patches for beta versions are provided, but no support is given until the OS is released.
### :warning: Try these patches at your own risk, and always keep an EFI backup.

### Languages: English (current)

Binary kernel patches to enable almost native AMD CPU support on macOS.

# Read me first!

Patches are now universal across 15h, 16h, 17h, and 19h by utilizing the OpenCore kernel Quirk `ProvideCurrentCpuInfo`. OpenCore 0.7.1 or newer is required.
Patches are now universal across `15h`, `16h`, `17h`, and `19h` by utilizing the OpenCore kernel Quirk `ProvideCurrentCpuInfo`. [OpenCore](https://github.com/acidanthera/OpenCorePkg/releases) 0.7.1 or newer is required.

Make sure to ****enable**** this quirk or the system ****won't boot****.

**Note for Zen 4:** Zen 4 (Ryzen 7000) requires patching for IOPCIFamily.kext. <br/>
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.
> :warning: **Note for Zen 4:** Zen 4 (Ryzen 7000) requires patching for IOPCIFamily.kext. <br/>
> 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.

Expand All @@ -35,7 +34,7 @@ From the table above substitue `< Core Count >` with the hexadecimal value match


| Core Count | Hexadecimal |
|------------|-------------|
|:----------:|:-----------:|
| 4 Core | `04` |
| 6 Core | `06` |
| 8 Core | `08` |
Expand All @@ -48,33 +47,38 @@ So for example, a user with a 6-core processor should use these `Replace` values

---


## Features

- Enables macOS to run on AMD CPUs on the fly.
:heavy_check_mark: Enables macOS to run on AMD CPUs on the fly.

:heavy_check_mark: Enables iMessage, Siri, FaceTime, Continuity, etc.

- Enables iMessage, Siri, FaceTime, Continuity, etc.
:heavy_check_mark: Stable compared to a custom XNU kernel.

- Stable compared to custom XNU kernel.

## Disadvantages

- No 32-bit support (OPEMU) in 10.14 and lower
:x: No 32-bit support (OPEMU) in 10.14 and lower


## Supported AMD CPUs

| Family | Codename | Example |
|---------------|-----------|-----------------------------------|
|:-------------:|:---------:|:---------------------------------:|
| 15h | Bulldozer | FX Series |
| 16h | Jaguar | A Series (including AM4 A-Series) |
| 17h and 19h | Zen | Ryzen, Threadripper, Athlon 2xxGE |<br />
| 17h and 19h | Zen | Ryzen, Threadripper, Athlon 2xxGE |


## Information on the fix PAT patch
## Information on the PAT fix patch

The default enabled patch is Algrey's original patch. This will work for all GPUs and doesn't affect audio but doesn't improve performance.
- The default-enabled patch is ***Algrey's original patch***. This will work for all GPUs and won't affect audio, but it won't improve performance.

The other choice is Shaneee's patch which will increase GPU performance on AMD GPUs but can stop NVIDIA GPUs from booting. It might also causes audio issues when using HDMI or DisplayPort audio.
- The other choice is ***Shaneee's patch***, which will increase GPU performance on AMD GPUs but can prevent NVIDIA GPUs from booting. It might also cause audio issues when using HDMI or DisplayPort audio.

The choice is yours. ***Don't try to use them both at the same time!***

The choice is yours. Don't try to use them both at the same time.

## Note on TRX40 systems

Expand All @@ -86,46 +90,47 @@ On AM5 motherboards with on-board Thunderbolt/USB4 (e.g. Asus ROG Crosshair X670

## Supported macOS versions

- macOS High Sierra (10.13)
- [macOS High Sierra](https://en.wikipedia.org/wiki/MacOS_High_Sierra) (10.13)

- [macOS Mojave](https://en.wikipedia.org/wiki/MacOS_Mojave) (10.14)

- macOS Mojave (10.14)
- [macOS Catalina](https://en.wikipedia.org/wiki/MacOS_Catalina) (10.15)

- macOS Catalina (10.15)
- [macOS Big Sur](https://en.wikipedia.org/wiki/MacOS_Big_Sur) (11)

- macOS Big Sur (11)
- [macOS Monterey](https://en.wikipedia.org/wiki/MacOS_Monterey) (12)

- macOS Monterey (12)
- [macOS Ventura](https://en.wikipedia.org/wiki/MacOS_Ventura) (13)

- macOS Ventura (13)

## Instructions

Follow the [Dortania OpenCore Install Guide](https://dortania.github.io/OpenCore-Install-Guide/) for instructions on how to create the installer USB and setup the config file with these patches.
Follow the [Dortania OpenCore Install Guide](https://dortania.github.io/OpenCore-Install-Guide/) for instructions on how to create the installer USB and set up the config file with these patches.

Do not ask for support on GitHub.


## Special notes

- Use the latest release of OpenCore to avoid incompatibilities. Find the latest release [here](https://github.com/acidanthera/OpenCorePkg/releases/latest).
- Use the [latest release of OpenCore](https://github.com/acidanthera/OpenCorePkg/releases/latest) to avoid incompatibilities.

- For support creating OpenCore config read the docs and visit [this](https://dortania.github.io/OpenCore-Install-Guide/) guide or the [Discord server](https://discord.gg/EfCYAJW).
- For support creating OpenCore config read the docs and visit the [guide](https://dortania.github.io/OpenCore-Install-Guide/) or the [Discord server](https://discord.gg/EfCYAJW).

- For 15h_16h CPU family users on macOS Mojave:

- Upon booting to macOS Mojave for first time, the system will reboot after the Data & Privacy screen. To fix this issue follow the procedure mentioned [here](https://www.insanelymac.com/forum/topic/335877-amd-mojave-kernel-development-and-testing/?do=findComment&comment=2658085) under UPDATE-2 heading.

- On macOS Mojave, certain webpages will crash upon loading (eg. brew.sh, facebook.com). To fix this issue follow the procedure mentioned [here](https://www.insanelymac.com/forum/topic/335877-amd-mojave-kernel-development-and-testing/?do=findComment&comment=2661857) under the UPDATE-5 heading.
- Upon booting to macOS Mojave for the first time, the system will reboot after the Data & Privacy screen. To fix this issue, follow the procedure mentioned [here](https://www.insanelymac.com/forum/topic/335877-amd-mojave-kernel-development-and-testing/?do=findComment&comment=2658085) under the UPDATE-2 heading.

- On macOS Mojave, certain webpages will crash upon loading (e.g. brew.sh, facebook.com). To fix this issue, follow the procedure mentioned [here](https://www.insanelymac.com/forum/topic/335877-amd-mojave-kernel-development-and-testing/?do=findComment&comment=2661857) under the UPDATE-5 heading.


## Credits

- [AlGrey](https://github.com/AlGreyy) for the idea and creating the patches.

- [XLNC](https://github.com/XLNCs) for maintaining patches to various macOS versions.
- [XLNC](https://github.com/XLNCs) for maintaining patches for various macOS versions.

- [Acidanthera](https://github.com/acidanthera) for OpenCore.

- [CaseySJ](https://github.com/CaseySJ/) for Zen 4 IOPCIFamily patches.

- Sinetek, Andy Vandijck, spakk, Bronya, Tora Chi Yo, [Shaneee](https://github.com/Shaneee) and many others for sharing their AMD/XNU kernel knowledge
- Sinetek, Andy Vandijck, spakk, Bronya, Tora Chi Yo, [Shaneee](https://github.com/Shaneee), and many others for sharing their AMD/XNU kernel knowledge.