mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-21 03:04:31 +10:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68cf4d1e7d | ||
|
|
847b26bf47 | ||
|
|
c6eb016d85 | ||
|
|
362b3e4065 | ||
|
|
0e02d45fce | ||
|
|
7df675ff42 | ||
|
|
d15d691386 | ||
|
|
a8e2d1ad14 | ||
|
|
2a49219521 |
12
CHANGELOG.md
Normal file
12
CHANGELOG.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
|
## 0.0.3
|
||||||
|
- Fix Wireless patch logic
|
||||||
|
|
||||||
|
## 0.0.2
|
||||||
|
- Expand IOHIDFamily Patch to all Nvidia chipsets
|
||||||
|
- Fix Airdrop 1.0 support
|
||||||
|
- Add El Capitan era wireless cards
|
||||||
|
|
||||||
|
## 0.0.1
|
||||||
|
- Inital developer preview
|
||||||
@@ -13,7 +13,7 @@ import zipfile
|
|||||||
from Resources import *
|
from Resources import *
|
||||||
|
|
||||||
# List build versions
|
# List build versions
|
||||||
patcher_version = "0.0.1"
|
patcher_version = "0.0.3"
|
||||||
|
|
||||||
CustomSMBIOS=False
|
CustomSMBIOS=False
|
||||||
MainMenu=True
|
MainMenu=True
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ Prerequists:
|
|||||||
1. [Download the release](https://github.com/dortania/Opencore-Legacy-Patcher/releases)
|
1. [Download the release](https://github.com/dortania/Opencore-Legacy-Patcher/releases)
|
||||||
2. Run the `OpenCore-Patcher.command` file
|
2. Run the `OpenCore-Patcher.command` file
|
||||||
3. Once opened, select option 1 and build your EFI
|
3. Once opened, select option 1 and build your EFI
|
||||||
* if poatching for a different patching, selectect option 3 first
|
* if patching for a different patching, select option 3 first
|
||||||
4. Once finished, run option 2 a the main menu and install onto your desired drive
|
4. Once finished, run option 2 a the main menu and install onto your desired drive
|
||||||
|
|
||||||
Once you're done making your OpenCore installer, you can simply reboot holding the Option key. In the picker, you should see a new EFI Boot Option. Boot it and from there you'll be in the OpenCore picker.
|
Once you're done making your OpenCore installer, you can simply reboot holding the Option key. In the picker, you should see a new EFI Boot Option. Boot it and from there you'll be in the OpenCore picker.
|
||||||
@@ -115,31 +115,30 @@ def BuildEFI():
|
|||||||
"<false/><!--AirPortAtheros40-->",
|
"<false/><!--AirPortAtheros40-->",
|
||||||
"<true/><!--AirPortAtheros40-->"
|
"<true/><!--AirPortAtheros40-->"
|
||||||
)
|
)
|
||||||
if current_model in ModelArray.WifiBCM94328:
|
#if current_model in ModelArray.WifiBCM94328:
|
||||||
print("- Wifi patches currently unsupported")
|
# print("- Wifi patches currently unsupported")
|
||||||
# TO-DO: Add El Capitan's IO80211
|
#if current_model in ModelArray.WifiBCM94322:
|
||||||
if current_model in ModelArray.WifiBCM94322:
|
# print("- Adding IO80211Mojave %s" % Versions.io80211mojave_version)
|
||||||
print("- Adding IO80211Mojave %s" % Versions.io80211mojave_version)
|
# copy(Versions.io80211mojave_path, Versions.kext_path_build)
|
||||||
copy(Versions.io80211mojave_path, Versions.kext_path_build)
|
# Versions.plist_data = Versions.plist_data.replace(
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
# "<false/><!--IO80211Mojave-->",
|
||||||
"<false/><!--IO80211Mojave-->",
|
# "<true/><!--IO80211Mojave-->"
|
||||||
"<true/><!--IO80211Mojave-->"
|
# )
|
||||||
)
|
# Versions.plist_data = Versions.plist_data.replace(
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
# "<false/><!--AirPortBrcm4331-->",
|
||||||
"<false/><!--AirPortBrcm4331-->",
|
# "<true/><!--AirPortBrcm4331-->"
|
||||||
"<true/><!--AirPortBrcm4331-->"
|
# )
|
||||||
)
|
#if current_model in ModelArray.WifiBCM943224:
|
||||||
if current_model in ModelArray.WifiBCM943224:
|
# print("- Adding IO80211Mojave %s" % Versions.io80211mojave_version)
|
||||||
print("- Adding IO80211Mojave %s" % Versions.io80211mojave_version)
|
# copy(Versions.io80211mojave_path, Versions.kext_path_build)
|
||||||
copy(Versions.io80211mojave_path, Versions.kext_path_build)
|
# Versions.plist_data = Versions.plist_data.replace(
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
# "<false/><!--IO80211Mojave-->",
|
||||||
"<false/><!--IO80211Mojave-->",
|
# "<true/><!--IO80211Mojave-->"
|
||||||
"<true/><!--IO80211Mojave-->"
|
# )
|
||||||
)
|
# Versions.plist_data = Versions.plist_data.replace(
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
# "<false/><!--AirPortBrcm4331-->",
|
||||||
"<false/><!--AirPortBrcm4331-->",
|
# "<true/><!--AirPortBrcm4331-->"
|
||||||
"<true/><!--AirPortBrcm4331-->"
|
# )
|
||||||
)
|
|
||||||
if current_model in ModelArray.WifiBCM94331:
|
if current_model in ModelArray.WifiBCM94331:
|
||||||
print("- Adding AirportBrcmFixup and appling fake ID")
|
print("- Adding AirportBrcmFixup and appling fake ID")
|
||||||
copy(Versions.airportbcrmfixup_path, Versions.kext_path_build)
|
copy(Versions.airportbcrmfixup_path, Versions.kext_path_build)
|
||||||
@@ -151,16 +150,44 @@ def BuildEFI():
|
|||||||
"<false/><!--AirPortBrcmNIC_Injector-->",
|
"<false/><!--AirPortBrcmNIC_Injector-->",
|
||||||
"<true/><!--AirPortBrcmNIC_Injector-->"
|
"<true/><!--AirPortBrcmNIC_Injector-->"
|
||||||
)
|
)
|
||||||
if current_model in ("iMac13,1", "iMac13,2"):
|
if current_model in ModelArray.EthernetNvidia:
|
||||||
|
# Nvidia chipsets all have the same path to ARPT
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
|
"PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0)"
|
||||||
|
)
|
||||||
|
if current_model in ("MacBookAir2,1", "MacBookAir3,1", "MacBookAir3,2" ):
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
|
"PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0)"
|
||||||
|
)
|
||||||
|
elif current_model in ("iMac7,1", "iMac8,1" ):
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
|
"PciRoot(0x0)/Pci(0x1C,0x4)Pci(0x0,0x0)"
|
||||||
|
)
|
||||||
|
elif current_model in ("iMac13,1", "iMac13,2"):
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
"PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0)"
|
"PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0)"
|
||||||
)
|
)
|
||||||
|
elif current_model in ("MacPro5,1"):
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
|
"PciRoot(0x0)/Pci(0x1C,0x5)Pci(0x0,0x0)"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
|
# Assumes we have a laptop with Intel chipset
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
"#PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)",
|
||||||
"PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)"
|
"PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)"
|
||||||
)
|
)
|
||||||
|
if current_model in ModelArray.LegacyHID:
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"<false/><!--IOHIDFamily-->",
|
||||||
|
"<true/><!--IOHIDFamily-->"
|
||||||
|
)
|
||||||
|
|
||||||
usb_map_path = os.path.join(Versions.current_path, "payloads/Kexts/Maps/Zip/" "USB-Map-%s.zip" % current_model)
|
usb_map_path = os.path.join(Versions.current_path, "payloads/Kexts/Maps/Zip/" "USB-Map-%s.zip" % current_model)
|
||||||
if os.path.exists(usb_map_path):
|
if os.path.exists(usb_map_path):
|
||||||
print("- Adding USB Map for %s" % current_model)
|
print("- Adding USB Map for %s" % current_model)
|
||||||
@@ -186,32 +213,25 @@ def BuildSMBIOS():
|
|||||||
if current_model in ModelArray.MacBookAir61:
|
if current_model in ModelArray.MacBookAir61:
|
||||||
print("- Spoofing to MacBookAir6,1")
|
print("- Spoofing to MacBookAir6,1")
|
||||||
new_model = "MacBookAir6,1"
|
new_model = "MacBookAir6,1"
|
||||||
|
elif current_model in ModelArray.MacBookAir62:
|
||||||
if current_model in ModelArray.MacBookAir62:
|
|
||||||
print("- Spoofing to MacBookAir6,2")
|
print("- Spoofing to MacBookAir6,2")
|
||||||
new_model = "MacBookAir6,2"
|
new_model = "MacBookAir6,2"
|
||||||
|
elif current_model in ModelArray.MacBookPro111:
|
||||||
if current_model in ModelArray.MacBookPro111:
|
|
||||||
print("- Spoofing to MacBookPro11,1")
|
print("- Spoofing to MacBookPro11,1")
|
||||||
new_model = "MacBookPro11,1"
|
new_model = "MacBookPro11,1"
|
||||||
|
elif current_model in ModelArray.MacBookPro112:
|
||||||
if current_model in ModelArray.MacBookPro112:
|
|
||||||
print("- Spoofing to MacBookPro11,2")
|
print("- Spoofing to MacBookPro11,2")
|
||||||
new_model = "MacBookPro11,2"
|
new_model = "MacBookPro11,2"
|
||||||
|
elif current_model in ModelArray.Macmini71:
|
||||||
if current_model in ModelArray.Macmini71:
|
|
||||||
print("- Spoofing to Macmini7,1")
|
print("- Spoofing to Macmini7,1")
|
||||||
new_model = "Macmini7,1"
|
new_model = "Macmini7,1"
|
||||||
|
elif current_model in ModelArray.iMac151:
|
||||||
if current_model in ModelArray.iMac151:
|
|
||||||
print("- Spoofing to iMac15,1")
|
print("- Spoofing to iMac15,1")
|
||||||
new_model = "iMac15,1"
|
new_model = "iMac15,1"
|
||||||
|
elif current_model in ModelArray.iMac144:
|
||||||
if current_model in ModelArray.iMac144:
|
|
||||||
print("- Spoofing to iMac14,4")
|
print("- Spoofing to iMac14,4")
|
||||||
new_model = "iMac14,4"
|
new_model = "iMac14,4"
|
||||||
|
elif current_model in ModelArray.MacPro71:
|
||||||
if current_model in ModelArray.MacPro71:
|
|
||||||
print("- Spoofing to MacPro7,1")
|
print("- Spoofing to MacPro7,1")
|
||||||
new_model = "MacPro7,1"
|
new_model = "MacPro7,1"
|
||||||
|
|
||||||
|
|||||||
@@ -198,20 +198,45 @@ WifiBCM943224 = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
WifiBCM94331 = [
|
WifiBCM94331 = [
|
||||||
"MacBookPro8,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBook5,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro8,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBook5,2", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro8,3", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBook6,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro9,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBook7,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro9,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir2,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro10,1",# PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir3,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"MacBookPro10,2",# PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir3,2", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"Macmini5,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir4,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
"Macmini5,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir4,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
"Macmini5,3", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir5,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
"Macmini6,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookAir5,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
"Macmini6,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0)
|
"MacBookPro5,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"iMac13,1", # PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0)
|
"MacBookPro5,2", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
"iMac13,2" # PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0)
|
"MacBookPro5,3", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"MacBookPro5,4", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"MacBookPro5,5", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"MacBookPro6,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro6,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro7,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"MacBookPro8,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro8,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro8,3", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro9,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro9,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro10,1",# PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"MacBookPro10,2",# PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"Macmini3,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"Macmini4,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"Macmini5,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"Macmini5,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"Macmini5,3", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"Macmini6,1", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"Macmini6,2", # PciRoot(0x0)/Pci(0x1C,0x1)Pci(0x0,0x0) 1c-01
|
||||||
|
"iMac7,1", # PciRoot(0x0)/Pci(0x1C,0x4)Pci(0x0,0x0) 1c-04
|
||||||
|
"iMac8,1", # PciRoot(0x0)/Pci(0x1C,0x4)Pci(0x0,0x0) 1c-04
|
||||||
|
"iMac9,1", # PciRoot(0x0)/Pci(0x15,0x0)Pci(0x0,0x0) 15-00
|
||||||
|
"iMac13,1", # PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0) 1c-03
|
||||||
|
"iMac13,2", # PciRoot(0x0)/Pci(0x1C,0x3)Pci(0x0,0x0) 1c-03
|
||||||
|
"MacPro5,1" # PciRoot(0x0)/Pci(0x1C,0x5)Pci(0x0,0x0) 1c-05
|
||||||
]
|
]
|
||||||
|
|
||||||
## Audio
|
## Audio
|
||||||
|
|||||||
@@ -865,7 +865,7 @@
|
|||||||
<key>AppleDebugLog</key>
|
<key>AppleDebugLog</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>AppleEvent</key>
|
<key>AppleEvent</key>
|
||||||
<false/>
|
<true/>
|
||||||
<key>AppleFramebufferInfo</key>
|
<key>AppleFramebufferInfo</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>AppleImageConversion</key>
|
<key>AppleImageConversion</key>
|
||||||
|
|||||||
@@ -877,7 +877,7 @@
|
|||||||
<key>AppleDebugLog</key>
|
<key>AppleDebugLog</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>AppleEvent</key>
|
<key>AppleEvent</key>
|
||||||
<false/>
|
<true/>
|
||||||
<key>AppleFramebufferInfo</key>
|
<key>AppleFramebufferInfo</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>AppleImageConversion</key>
|
<key>AppleImageConversion</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user