From 90274eef330d1b48ff841b7c8a7335a94408d9fc Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Sun, 7 Mar 2021 12:43:12 -0700 Subject: [PATCH] Fix ThirdPartyDrives model detection Reference: https://github.com/dortania/Opencore-Legacy-Patcher/issues/83 --- CHANGELOG.md | 1 + Resources/ModelArray.py | 12 ++++++++++++ Resources/build.py | 5 +++++ payloads/Config/v0.6.8/config.plist | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5b51dd98..f87de050a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.0.15 - Add user-configurable OpenCore DEBUG builds - Add user-configurable Wifi and GPU patches +- Fix ThirdPartyDrives model detection ## 0.0.14 - Enable ThirdPartyDrives to aid with hibernation on 3rd party SATA drives diff --git a/Resources/ModelArray.py b/Resources/ModelArray.py index 0b900a0a4..3196ea400 100644 --- a/Resources/ModelArray.py +++ b/Resources/ModelArray.py @@ -801,4 +801,16 @@ NightShiftExclude = [ UGAtoGOP = [ "MacPro3,1" +] + +NoSATAPatch = [ + "MacBookAir5,1", + "MacBookAir5,2", + "MacBookPro10,1", + "MacBookPro10,2", + "iMac13,1", + "iMac13,2", + "iMac14,1", + "iMac14,2", + "iMac14,3", ] \ No newline at end of file diff --git a/Resources/build.py b/Resources/build.py index 0721b2cb6..702b3ba8b 100644 --- a/Resources/build.py +++ b/Resources/build.py @@ -202,6 +202,11 @@ class BuildOpenCore: print("- Adding UGA to GOP Patch") self.config["UEFI"]["ProtocolOverrides"]["GopPassThrough"] = True + # ThridPartDrives Check + if self.model not in ModelArray.NoSATAPatch: + print("- Adding SATA Hibernation Patch") + self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True + #DEBUG Settings if self.constants.verbose_debug == True: print("- Enabling Verbose boot") diff --git a/payloads/Config/v0.6.8/config.plist b/payloads/Config/v0.6.8/config.plist index 3fa76c8d2..64ffe5003 100644 --- a/payloads/Config/v0.6.8/config.plist +++ b/payloads/Config/v0.6.8/config.plist @@ -664,7 +664,7 @@ SetApfsTrimTimeout -1 ThirdPartyDrives - + XhciPortLimit