From 7e51ec39c38da656f46c5191984a090798354587 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sun, 10 Nov 2024 22:53:16 +0700 Subject: [PATCH] Add missing quirk for Chromebook devices --- Scripts/config_prodigy.py | 1 + Scripts/datasets/pci_data.py | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index 9789eea..179ebe2 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -503,6 +503,7 @@ class ConfigProdigy: hardware_report.get("Motherboard").get("Chipset") in chipset_data.IntelChipsets[93:101] and ("Desktop" in hardware_report.get("Motherboard").get("Platform") or not "-8" in hardware_report.get("CPU").get("Processor Name")) or \ hardware_report.get("Motherboard").get("Chipset") == chipset_data.AMDChipsets[16] config["Booter"]["Quirks"]["EnableWriteUnprotector"] = not ("AMD" in hardware_report.get("CPU").get("Manufacturer") or hardware_report.get("Motherboard").get("Chipset") in chipset_data.IntelChipsets[79:89] + chipset_data.IntelChipsets[101:]) + config["Booter"]["Quirks"]["ProtectMemoryRegions"] = "GOOGLE" in hardware_report.get("Motherboard").get("Name") or any(device_props.get("Device ID") in pci_data.ChromebookIDs and device_props.get("Subsystem ID") in pci_data.ChromebookIDs[device_props.get("Device ID")] for device_props in hardware_report.get("System Devices", {}).values()) config["Booter"]["Quirks"]["ProtectUefiServices"] = hardware_report.get("Motherboard").get("Chipset") in chipset_data.IntelChipsets[101:] or \ hardware_report.get("Motherboard").get("Chipset") in chipset_data.IntelChipsets[93:101] and (not "-8" in hardware_report.get("CPU").get("Processor Name") or hardware_report.get("Motherboard").get("Chipset") == chipset_data.IntelChipsets[98]) config["Booter"]["Quirks"]["RebuildAppleMemoryMap"] = not config["Booter"]["Quirks"]["EnableWriteUnprotector"] diff --git a/Scripts/datasets/pci_data.py b/Scripts/datasets/pci_data.py index 3d2e9db..9cbac4c 100644 --- a/Scripts/datasets/pci_data.py +++ b/Scripts/datasets/pci_data.py @@ -1080,4 +1080,30 @@ IntelSSTIDs = [ "8086-A0C8", "8086-A348", "8086-F0C8" -] \ No newline at end of file +] + +ChromebookIDs = { + "1022-790E": ("15101022", "780E1022", "790E1022"), + "8086-0284": ("02841028", "02848086", "72708086"), + "8086-0285": ("02858086"), + "8086-1C49": ("C0001AE0"), + "8086-1E57": ("C0001AE0"), + "8086-1E5D": ("C0001AE0"), + "8086-1E5F": ("1E5F8086"), + "8086-3197": ("31978086", "72708086"), + "8086-4D87": ("72708086"), + "8086-5182": ("72708086"), + "8086-519D": ("72708086"), + "8086-5481": ("72708086"), + "8086-9C43": ("C0001AE0"), + "8086-9C45": ("0A111025", "9C458086", "C0001AE0"), + "8086-9CC3": ("9CC38086"), + "8086-9CC5": ("9CC58086"), + "8086-9D43": ("72708086", "9D438086"), + "8086-9D46": ("72708086", "9D468086"), + "8086-9D48": ("72708086", "9D488086"), + "8086-9D4B": ("006B1AE0", "006C1AE0", "72708086", "9D4B8086"), + "8086-9D4E": ("006C1AE0", "72708086", "9D4E8086"), + "8086-9D50": ("72708086", "9D508086"), + "8086-A082": ("72708086") +} \ No newline at end of file