diff --git a/CHANGELOG.md b/CHANGELOG.md index 401f7a670..205910817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.1.1 - Fix iMac11,3 GFX0 pathing +- Add MouSSE support to iMac10,1 with Metal AMD GPU ## 0.1.0 - Fix crash on iMacs with Metal GPUs diff --git a/Resources/Build.py b/Resources/Build.py index 55a108433..cd7d3b736 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -304,6 +304,8 @@ class BuildOpenCore: self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"] = {"shikigva": 80, "unfairgva": 1} print("- Disabling unsupported iGPU") self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"name": binascii.unhexlify("23646973706C6179"), "IOName": "#display", "class-code": binascii.unhexlify("FFFFFFFF")} + elif self.model == "iMac10,1": + self.enable_kext("AAAMouSSE.kext", self.constants.mousse_version, self.constants.mousse_path) # Check GPU Vendor if self.constants.metal_build is True: diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 0c35175ce..264c59a6f 100755 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -124,6 +124,7 @@ module.exports = { 'TERMS', 'HOW', 'PATCHEXPLAIN', + 'CLI', ] }, diff --git a/docs/CLI.md b/docs/CLI.md new file mode 100644 index 000000000..a24249cda --- /dev/null +++ b/docs/CLI.md @@ -0,0 +1,44 @@ +# Command Line Args + +With OpenCore Legacy Patcher, we include an extra binary called [OCLP-CLI](https://github.com/dortania/OpenCore-Legacy-Patcher/releases/). The purpose of this binary is to easily run our OpenCore build process for other programs to hook onto. Below is documentation on currently supported arguments. + +### Build Arguments + +* **--build**: Build OpenCore + * **--model xxxx**: override default model detection + * ex. **--model iMac11,2** + * **--metal_gpu xxxx**: override default GPU detection (ie. Nvidia, AMD) + * **--metal_gpu Nvidia** + * **--smbios_spoof xxxx**: set spoofing mode, defaults to Minimal if no arg provided (ie. Minimal, Moderate, Advanced) + * ex. **--smbios_spoof Moderate** + * **--verbose**: enable verbose booting + * **--debug_oc**: enable debug OpenCore + * **--debug_kext**: enable debug kexts + * **--skip_wifi**: skip wifi patch + * **--hide_picker**: hide OpenCore's picker + * **--disable_sip**: disables SIP + * **--disable_smb**: disables SecureBootModel + * **--vault**: enable OpenCore vaulting + +Example usage: + +```bash +./OCLP-CLI --build --verbose --debug_oc --debug_kext --model iMac11,2 +``` + +Note, when building OpenCore the output folder will be next to the OCLP binary as OpenCore-RELEASE or OpenCore-DEBUG folder. + +### Patch System Arguments + +* **--patch_sys_vol**: patches root volume with detected hardware + * **--custom_repo xxxx**: Sets custom repo for volume patches, defaults to Apple-Binaries-OCLP when no arg provided + * ex. **--custom_repo https://github.com/dortania/Apple-Binaries-OCLP/archive/refs/heads/main.zip** + + +Example usage: + +```bash +sudo ./OCLP-CLI --patch_sys_vol +``` + +Note, root volume patching needs to be run as sudo \ No newline at end of file diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index 4e312e5e4..8b6a93449 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -274,7 +274,7 @@ MaxKernel MinKernel - 18.0.0 + BundlePath AAAMouSSE.kext ExecutablePath