mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
firmware.py: Add handling for iMac18,2 4K display
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
- `/Library/LaunchDaemons/com.dortania.opencore-legacy-patcher.macos-update.plist`
|
- `/Library/LaunchDaemons/com.dortania.opencore-legacy-patcher.macos-update.plist`
|
||||||
- Load UI icons from local path
|
- Load UI icons from local path
|
||||||
- Resolves macOS downloader crash on slower machines
|
- Resolves macOS downloader crash on slower machines
|
||||||
|
- Resolve iMac18,2 internal 4K display support
|
||||||
- Remove News Widget removal from Control Centre
|
- Remove News Widget removal from Control Centre
|
||||||
- News Widget no longer crashes on 3802-based GPUs
|
- News Widget no longer crashes on 3802-based GPUs
|
||||||
- Resolve i210 NIC support for macOS Sonoma
|
- Resolve i210 NIC support for macOS Sonoma
|
||||||
|
|||||||
@@ -2363,7 +2363,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Haswell,
|
device_probe.Intel.Archs.Haswell,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_7000,
|
device_probe.AMD.Archs.Legacy_GCN_7000,
|
||||||
@@ -2382,7 +2382,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Haswell,
|
device_probe.Intel.Archs.Haswell,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_7000,
|
device_probe.AMD.Archs.Legacy_GCN_7000,
|
||||||
@@ -2438,7 +2438,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
@@ -2458,7 +2458,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
@@ -2478,7 +2478,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20702_v2,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
@@ -2517,6 +2517,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20703,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20703,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Kaby_Lake,
|
device_probe.Intel.Archs.Kaby_Lake,
|
||||||
device_probe.AMD.Archs.Polaris,
|
device_probe.AMD.Archs.Polaris,
|
||||||
@@ -2536,7 +2537,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AirportBrcmNIC,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20703,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM20703,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Kaby_Lake,
|
device_probe.Intel.Archs.Kaby_Lake,
|
||||||
device_probe.AMD.Archs.Polaris,
|
device_probe.AMD.Archs.Polaris,
|
||||||
@@ -2556,7 +2557,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Coffee_Lake,
|
device_probe.Intel.Archs.Coffee_Lake,
|
||||||
device_probe.AMD.Archs.Polaris,
|
device_probe.AMD.Archs.Polaris,
|
||||||
@@ -2577,7 +2578,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Coffee_Lake,
|
device_probe.Intel.Archs.Coffee_Lake,
|
||||||
device_probe.AMD.Archs.Polaris,
|
device_probe.AMD.Archs.Polaris,
|
||||||
@@ -2598,6 +2599,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Coffee_Lake,
|
device_probe.Intel.Archs.Coffee_Lake,
|
||||||
device_probe.AMD.Archs.Polaris,
|
device_probe.AMD.Archs.Polaris,
|
||||||
@@ -2618,7 +2620,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Comet_Lake,
|
device_probe.Intel.Archs.Comet_Lake,
|
||||||
device_probe.AMD.Archs.Navi,
|
device_probe.AMD.Archs.Navi,
|
||||||
@@ -2637,7 +2639,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Comet_Lake,
|
device_probe.Intel.Archs.Comet_Lake,
|
||||||
device_probe.AMD.Archs.Navi,
|
device_probe.AMD.Archs.Navi,
|
||||||
@@ -2684,7 +2686,7 @@ smbios_dictionary = {
|
|||||||
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
"Wireless Model": device_probe.Broadcom.Chipsets.AppleBCMWLANBusInterfacePCIe,
|
||||||
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
"Bluetooth Model": bluetooth_data.bluetooth_data.UART,
|
||||||
"Ethernet Chipset": "Aquantia",
|
"Ethernet Chipset": "Aquantia",
|
||||||
"5K Display": True,
|
"Dual DisplayPort Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.AMD.Archs.Vega,
|
device_probe.AMD.Archs.Vega,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -305,10 +305,10 @@ class BuildFirmware:
|
|||||||
whereas other drivers like ./qa_logger.efi is invoked via Device Path.
|
whereas other drivers like ./qa_logger.efi is invoked via Device Path.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if "5K Display" not in smbios_data.smbios_dictionary[self.model]:
|
if "Dual DisplayPort Display" not in smbios_data.smbios_dictionary[self.model]:
|
||||||
return
|
return
|
||||||
|
|
||||||
logging.info("- Adding 5K Display Patch")
|
logging.info("- Adding 4K/5K Display Patch")
|
||||||
# Set LauncherPath to '/boot.efi'
|
# Set LauncherPath to '/boot.efi'
|
||||||
# This is to ensure that only the Mac's firmware presents the boot option, but not OpenCore
|
# This is to ensure that only the Mac's firmware presents the boot option, but not OpenCore
|
||||||
# https://github.com/acidanthera/OpenCorePkg/blob/0.7.6/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.c#L50-L73
|
# https://github.com/acidanthera/OpenCorePkg/blob/0.7.6/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.c#L50-L73
|
||||||
|
|||||||
Reference in New Issue
Block a user