mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Fix OTA updates on T2 SMBIOS
Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/471
This commit is contained in:
@@ -27,7 +27,9 @@
|
|||||||
- Applicable for dual GPU MacBookPro5,x and demuxed MacBookPro8,x
|
- Applicable for dual GPU MacBookPro5,x and demuxed MacBookPro8,x
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- PatcherSupportPkg 0.1.5 release
|
- PatcherSupportPkg 0.1.5 release
|
||||||
|
- RestrictEvents 1.0.5 rolling (2430ed0)
|
||||||
- Limit MacBookPro6,2 G State
|
- Limit MacBookPro6,2 G State
|
||||||
|
- Fix OTA updates on T2 SMBIOS
|
||||||
|
|
||||||
## 0.2.5
|
## 0.2.5
|
||||||
|
|
||||||
|
|||||||
+7
-6
@@ -33,7 +33,6 @@ class BuildOpenCore:
|
|||||||
self.gfx0_path = None
|
self.gfx0_path = None
|
||||||
|
|
||||||
def smbios_set(self, model):
|
def smbios_set(self, model):
|
||||||
print("- Setting macOS Monterey Supported SMBIOS")
|
|
||||||
if model in ModelArray.MacBookAir_11:
|
if model in ModelArray.MacBookAir_11:
|
||||||
return "MacBookAir7,1"
|
return "MacBookAir7,1"
|
||||||
elif model in ModelArray.MacBookAir_13:
|
elif model in ModelArray.MacBookAir_13:
|
||||||
@@ -180,11 +179,12 @@ class BuildOpenCore:
|
|||||||
if self.constants.allow_oc_everywhere is False:
|
if self.constants.allow_oc_everywhere is False:
|
||||||
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleSMC")["Enabled"] = True
|
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleSMC")["Enabled"] = True
|
||||||
|
|
||||||
# if self.get_kext_by_bundle_path("latebloom.kext")["Enabled"] is True:
|
if self.smbios_set(self.model) in ModelArray.T2_Models:
|
||||||
# print(f"- Setting latebloom delay of {self.constants.latebloom_delay}ms, range {self.constants.latebloom_range}ms, debug {bool(self.constants.latebloom_debug)}")
|
# Monterey T2 SMBIOS don't get OS updates without a T2 SBM
|
||||||
# self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"][
|
# Forces VMM patch instead
|
||||||
# "boot-args"
|
if self.get_kext_by_bundle_path("RestrictEvents.kext")["Enabled"] is False:
|
||||||
# ] += f" latebloom={self.constants.latebloom_delay} lb_range={self.constants.latebloom_range} lb_debug={self.constants.latebloom_debug}"
|
self.enable_kext("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path)
|
||||||
|
|
||||||
if self.model in ModelArray.PCIRaceCondition:
|
if self.model in ModelArray.PCIRaceCondition:
|
||||||
# Ref: https://github.com/reenigneorcim/SurPlus
|
# Ref: https://github.com/reenigneorcim/SurPlus
|
||||||
print("- Adding SurPlus Patch for Race Condition")
|
print("- Adding SurPlus Patch for Race Condition")
|
||||||
@@ -736,6 +736,7 @@ class BuildOpenCore:
|
|||||||
def set_smbios(self):
|
def set_smbios(self):
|
||||||
spoofed_model = self.model
|
spoofed_model = self.model
|
||||||
if self.constants.override_smbios == "Default":
|
if self.constants.override_smbios == "Default":
|
||||||
|
print("- Setting macOS Monterey Supported SMBIOS")
|
||||||
spoofed_model = self.smbios_set(self.model)
|
spoofed_model = self.smbios_set(self.model)
|
||||||
else:
|
else:
|
||||||
spoofed_model = self.constants.override_smbios
|
spoofed_model = self.constants.override_smbios
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ class Constants:
|
|||||||
self.airportbcrmfixup_version = "2.1.3" # AirPortBrcmFixup
|
self.airportbcrmfixup_version = "2.1.3" # AirPortBrcmFixup
|
||||||
self.nvmefix_version = "1.0.9" # NVMeFix
|
self.nvmefix_version = "1.0.9" # NVMeFix
|
||||||
self.applealc_version = "1.6.3" # AppleALC
|
self.applealc_version = "1.6.3" # AppleALC
|
||||||
self.restrictevents_version = "1.0.3" # RestrictEvents
|
self.restrictevents_version = "1.0.5" # RestrictEvents
|
||||||
self.restrictevents_mbp_version = "1.0.3" # RestrictEvents blocking displaypolicyd (see RestrictEvents-MBP91.patch)
|
self.restrictevents_mbp_version = "1.0.5" # RestrictEvents blocking displaypolicyd (see RestrictEvents-MBP91.patch)
|
||||||
self.featureunlock_version = "1.0.3" # FeatureUnlock
|
self.featureunlock_version = "1.0.3" # FeatureUnlock
|
||||||
self.debugenhancer_version = "1.0.4" # DebugEnhancer
|
self.debugenhancer_version = "1.0.4" # DebugEnhancer
|
||||||
self.cpufriend_version = "1.2.4" # CPUFriend
|
self.cpufriend_version = "1.2.4" # CPUFriend
|
||||||
|
|||||||
@@ -1047,3 +1047,22 @@ Bluetooth_BRCM20702_v1 = [
|
|||||||
"iMac13,2",
|
"iMac13,2",
|
||||||
"iMac13,3",
|
"iMac13,3",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
T2_Models = [
|
||||||
|
"MacBookAir8,1",
|
||||||
|
"MacBookAir8,2",
|
||||||
|
"MacBookAir9,1",
|
||||||
|
"MacBookPro15,1",
|
||||||
|
"MacBookPro15,2",
|
||||||
|
"MacBookPro15,3",
|
||||||
|
"MacBookPro15,4",
|
||||||
|
"MacBookPro16,1",
|
||||||
|
"MacBookPro16,2",
|
||||||
|
"MacBookPro16,3",
|
||||||
|
"MacBookPro16,4",
|
||||||
|
"Macmini8,1",
|
||||||
|
"iMac20,1",
|
||||||
|
"iMac20,2",
|
||||||
|
"iMacPro1,1",
|
||||||
|
"MacPro7,1",
|
||||||
|
]
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,21 +1,12 @@
|
|||||||
From 772e02b375b5b2186342965f3089d9d1bca053bf Mon Sep 17 00:00:00 2001
|
|
||||||
From: Dhinak G <17605561+dhinakg@users.noreply.github.com>
|
|
||||||
Date: Tue, 23 Mar 2021 17:21:48 -0400
|
|
||||||
Subject: [PATCH] Disable displaypolicyd
|
|
||||||
|
|
||||||
---
|
|
||||||
RestrictEvents/RestrictEvents.cpp | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/RestrictEvents/RestrictEvents.cpp b/RestrictEvents/RestrictEvents.cpp
|
diff --git a/RestrictEvents/RestrictEvents.cpp b/RestrictEvents/RestrictEvents.cpp
|
||||||
index 69b6af8..029417c 100644
|
index 27562f0..66365a3 100644
|
||||||
--- a/RestrictEvents/RestrictEvents.cpp
|
--- a/RestrictEvents/RestrictEvents.cpp
|
||||||
+++ b/RestrictEvents/RestrictEvents.cpp
|
+++ b/RestrictEvents/RestrictEvents.cpp
|
||||||
@@ -35,6 +35,7 @@ struct RestrictEventsPolicy {
|
@@ -61,6 +61,7 @@ struct RestrictEventsPolicy {
|
||||||
|
static const char *procBlacklist[] {
|
||||||
"/System/Library/CoreServices/ExpansionSlotNotification",
|
"/System/Library/CoreServices/ExpansionSlotNotification",
|
||||||
"/System/Library/CoreServices/MemorySlotNotification",
|
"/System/Library/CoreServices/MemorySlotNotification",
|
||||||
"/usr/libexec/firmwarecheckers/eficheck/eficheck",
|
+ "/usr/libexec/displaypolicyd",
|
||||||
+ "/usr/libexec/displaypolicyd"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
char pathbuf[MAXPATHLEN];
|
char pathbuf[MAXPATHLEN];
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user