mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
Add iMac7,1 USB map
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
- Add Kepler Accleration Patches for Monterey Beta 7 and newer
|
||||
- Add FirmwareFeature upgrading to all Models
|
||||
- Fixes Monterey Beta 7 installation issues
|
||||
- Add iMac7,1 USB map
|
||||
|
||||
## 0.2.4
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ class BuildOpenCore:
|
||||
# Adjust FirmwareFeature to support everything macOS requires
|
||||
# APFS Bit (19/20): 10.13+ (OSInstall)
|
||||
# Large BaseSystem Bit (35): 12.0 B7+ (patchd)
|
||||
# https://github.com/acidanthera/OpenCorePkg/blob/0.6.9/Include/Apple/IndustryStandard/AppleFeatures.h
|
||||
# https://github.com/acidanthera/OpenCorePkg/tree/2f76673546ac3e32d2e2d528095fddcd66ad6a23/Include/Apple/IndustryStandard/AppleFeatures.h
|
||||
if not self.constants.custom_model:
|
||||
firmwarefeature = Utilities.get_rom("firmware-features")
|
||||
if not firmwarefeature:
|
||||
@@ -346,7 +346,7 @@ class BuildOpenCore:
|
||||
if (
|
||||
usb_map_path.exists()
|
||||
and self.constants.allow_oc_everywhere is False
|
||||
and self.model not in ["iMac7,1", "Xserve2,1", "Dortania1,1"]
|
||||
and self.model not in ["Xserve2,1", "Dortania1,1"]
|
||||
and (self.model in ModelArray.Missing_USB_Map or self.constants.serial_settings in ["Moderate", "Advanced"])
|
||||
):
|
||||
print("- Adding USB-Map.kext")
|
||||
@@ -682,7 +682,7 @@ class BuildOpenCore:
|
||||
if self.constants.disable_cs_lv is True:
|
||||
print("- Disabling Library Validation")
|
||||
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Library Validation Enforcement")["Enabled"] = True
|
||||
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += "-allow_amfi"
|
||||
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_amfi"
|
||||
if self.constants.secure_status is False:
|
||||
print("- Disabling SecureBootModel")
|
||||
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
||||
@@ -718,7 +718,7 @@ class BuildOpenCore:
|
||||
print("- Allowing FileVault on Root Patched systems")
|
||||
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.filesystems.apfs")["Enabled"] = True
|
||||
# Lets us check in SysPatch.py if config supports FileVault
|
||||
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += "-allow_fv"
|
||||
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_fv"
|
||||
|
||||
def set_smbios(self):
|
||||
spoofed_model = self.model
|
||||
@@ -798,7 +798,7 @@ class BuildOpenCore:
|
||||
# USB Map and CPUFriend Patching
|
||||
if (
|
||||
self.constants.allow_oc_everywhere is False
|
||||
and self.model not in ["iMac7,1", "Xserve2,1", "Dortania1,1"]
|
||||
and self.model not in ["Xserve2,1", "Dortania1,1"]
|
||||
and (self.model in ModelArray.Missing_USB_Map or self.constants.serial_settings in ["Moderate", "Advanced"])
|
||||
):
|
||||
new_map_ls = Path(self.constants.map_contents_folder) / Path("Info.plist")
|
||||
|
||||
@@ -431,8 +431,7 @@ set million colour before rebooting"""
|
||||
)
|
||||
Utilities.process_status(self.elevated(["chmod", "755", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT))
|
||||
Utilities.process_status(self.elevated(["chown", "root:wheel", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT))
|
||||
elif Utilities.check_filevault_skip() is False:
|
||||
# Assume non-OCLP Macs don't have _cs_require_lv
|
||||
else:
|
||||
print("- Disabling Library Validation")
|
||||
Utilities.process_status(
|
||||
self.elevated(
|
||||
|
||||
@@ -1084,7 +1084,7 @@
|
||||
<key>MaxKernel</key>
|
||||
<string></string>
|
||||
<key>MinKernel</key>
|
||||
<string>18.0.0</string>
|
||||
<string>20.0.0</string>
|
||||
<key>Replace</key>
|
||||
<data>uAAAAADD</data>
|
||||
<key>ReplaceMask</key>
|
||||
|
||||
@@ -764,7 +764,7 @@
|
||||
<key>model</key>
|
||||
<string>XXerve3,1</string>
|
||||
</dict>
|
||||
<key>#iMac7,1</key>
|
||||
<key>iMac7,1</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
|
||||
@@ -3527,14 +3527,14 @@
|
||||
<key>Tunnel Endpoint Device Vendor ID</key>
|
||||
<data>AQAAAA==</data>
|
||||
</dict>
|
||||
<key>#iMac7,1-EHC1</key>
|
||||
<key>iMac7,1-EHC1</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
|
||||
<key>IOClass</key>
|
||||
<string>AppleUSBHostMergeProperties</string>
|
||||
<key>IONameMatch</key>
|
||||
<string>EH01</string>
|
||||
<string>EHC1</string>
|
||||
<key>IOProviderClass</key>
|
||||
<string>AppleUSBEHCIPCI</string>
|
||||
<key>IOProviderMergeProperties</key>
|
||||
@@ -3590,14 +3590,14 @@
|
||||
<key>model</key>
|
||||
<string>iXac7,1</string>
|
||||
</dict>
|
||||
<key>#iMac7,1-EHC2</key>
|
||||
<key>iMac7,1-EHC2</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
|
||||
<key>IOClass</key>
|
||||
<string>AppleUSBHostMergeProperties</string>
|
||||
<key>IONameMatch</key>
|
||||
<string>EH02</string>
|
||||
<string>EHC2</string>
|
||||
<key>IOProviderClass</key>
|
||||
<string>AppleUSBEHCIPCI</string>
|
||||
<key>IOProviderMergeProperties</key>
|
||||
@@ -5461,7 +5461,7 @@
|
||||
<key>model</key>
|
||||
<string>Xacmini4,1</string>
|
||||
</dict>
|
||||
<key>#iMac7,1-OHC1</key>
|
||||
<key>iMac7,1-OHC1</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
|
||||
@@ -5501,9 +5501,9 @@
|
||||
</dict>
|
||||
</dict>
|
||||
<key>model</key>
|
||||
<string>iXac9,1</string>
|
||||
<string>iXac7,1</string>
|
||||
</dict>
|
||||
<key>#iMac7,1-OHC2</key>
|
||||
<key>iMac7,1-OHC2</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
|
||||
@@ -5543,7 +5543,7 @@
|
||||
</dict>
|
||||
</dict>
|
||||
<key>model</key>
|
||||
<string>iXac9,1</string>
|
||||
<string>iXac7,1</string>
|
||||
</dict>
|
||||
<key>iMac8,1-OHC1</key>
|
||||
<dict>
|
||||
|
||||
Reference in New Issue
Block a user