mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
Fix misc issues
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## 0.0.5
|
## 0.0.5
|
||||||
- Enable hibernation support
|
- Enable hibernation support
|
||||||
|
- Work around USB Map failing
|
||||||
|
- Add checks whether booting with OpenCore
|
||||||
|
- Fix MouSSE injection
|
||||||
|
|
||||||
## 0.0.4
|
## 0.0.4
|
||||||
- Add basic audio support for legacy chipsets
|
- Add basic audio support for legacy chipsets
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -126,4 +126,14 @@ Once you've booted OpenCore at least once, your hardware should now auto boot it
|
|||||||
|
|
||||||
At this time, the OpenCore Patcher won't install macOS onto the internal drive itself during installs. Instead, you'll need to either [manually transfer](https://dortania.github.io/OpenCore-Post-Install/universal/oc2hdd.html) OpenCore to the internal drive's EFI or run this patcher's Option 2 again but select your internal drive.
|
At this time, the OpenCore Patcher won't install macOS onto the internal drive itself during installs. Instead, you'll need to either [manually transfer](https://dortania.github.io/OpenCore-Post-Install/universal/oc2hdd.html) OpenCore to the internal drive's EFI or run this patcher's Option 2 again but select your internal drive.
|
||||||
|
|
||||||
Reminder that once this is done, you'll need to select OpenCore in the boot picker again for your hardware to remenber this entry and auto boot from then on.
|
Reminder that once this is done, you'll need to select OpenCore in the boot picker again for your hardware to remenber this entry and auto boot from then on.
|
||||||
|
|
||||||
|
### OpenCore won't show up in the boot picker
|
||||||
|
|
||||||
|
If OpenCore refuses to show up in the boot picker even with the above troubleshooting step, you can try to disable SIP and run this command(With your EFI drive mounted):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo bless --verbose --file /Volumes/EFI/EFI/OC/Bootstrap/Bootstrap.efi --folder /Volumes/EFI/EFI/OC/Bootstrap --setBoot
|
||||||
|
```
|
||||||
|
|
||||||
|
* Note: NVRAM write is disabled with SIP, so disables SIP first before running
|
||||||
@@ -22,8 +22,17 @@ except NameError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# Find SMBIOS of machine
|
# Find SMBIOS of machine
|
||||||
current_model = subprocess.Popen("system_profiler SPHardwareDataType".split(), stdout=subprocess.PIPE)
|
opencore_model = subprocess.Popen(["NVRAM", "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product"], stdout=subprocess.PIPE).communicate()[0]
|
||||||
current_model = [line.strip().split(": ", 1)[1] for line in current_model.stdout.read().split("\n") if line.strip().startswith("Model Identifier")][0]
|
if opencore_model not in ("NVRAM: Error getting variable - '4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product': (iokit/common) data was not found"):
|
||||||
|
print("Detected OpenCore machine")
|
||||||
|
opencore_model = subprocess.Popen("nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oem-product".split(), stdout=subprocess.PIPE)
|
||||||
|
opencore_model = [line.strip().split(":oem-product ", 1)[1] for line in opencore_model.stdout.read().split("\n") if line.strip().startswith("4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:")][0]
|
||||||
|
current_model = opencore_model
|
||||||
|
else:
|
||||||
|
print("No OpenCore detected")
|
||||||
|
current_model = subprocess.Popen("system_profiler SPHardwareDataType".split(), stdout=subprocess.PIPE)
|
||||||
|
current_model = [line.strip().split(": ", 1)[1] for line in current_model.stdout.read().split("\n") if line.strip().startswith("Model Identifier")][0]
|
||||||
|
print("Current Model: %s" % current_model)
|
||||||
|
|
||||||
OCExist = False
|
OCExist = False
|
||||||
|
|
||||||
@@ -71,7 +80,7 @@ def BuildEFI():
|
|||||||
|
|
||||||
if current_model in ModelArray.SSEEmulator:
|
if current_model in ModelArray.SSEEmulator:
|
||||||
print("- Adding AAAMouSSE v%s" % Versions.mousse_version)
|
print("- Adding AAAMouSSE v%s" % Versions.mousse_version)
|
||||||
copy(Versions.mousse_version, Versions.kext_path_build)
|
copy(Versions.mousse_path, Versions.kext_path_build)
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
"<false/><!--AAAMouSSE-->",
|
"<false/><!--AAAMouSSE-->",
|
||||||
"<true/><!--AAAMouSSE-->"
|
"<true/><!--AAAMouSSE-->"
|
||||||
@@ -208,6 +217,10 @@ def BuildEFI():
|
|||||||
print("- Adding USB Map for %s" % current_model)
|
print("- Adding USB Map for %s" % current_model)
|
||||||
copy(usb_map_path, Versions.kext_path_build)
|
copy(usb_map_path, Versions.kext_path_build)
|
||||||
map_name = ("USB-Map-%s.kext" % current_model)
|
map_name = ("USB-Map-%s.kext" % current_model)
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"<<false/><!--USBmap-->",
|
||||||
|
"<true/><!--USBmap-->"
|
||||||
|
)
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
"USB-Map-SMBIOS.kext",
|
"USB-Map-SMBIOS.kext",
|
||||||
map_name
|
map_name
|
||||||
|
|||||||
@@ -448,7 +448,7 @@
|
|||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>USB Map</string>
|
<string>USB Map</string>
|
||||||
<key>Enabled</key>
|
<key>Enabled</key>
|
||||||
<true/>
|
<false/><!--USBmap-->
|
||||||
<key>MaxKernel</key>
|
<key>MaxKernel</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>MinKernel</key>
|
<key>MinKernel</key>
|
||||||
@@ -625,7 +625,7 @@
|
|||||||
<key>EnablePassword</key>
|
<key>EnablePassword</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>ExposeSensitiveData</key>
|
<key>ExposeSensitiveData</key>
|
||||||
<integer>6</integer>
|
<integer>15</integer>
|
||||||
<key>HaltLevel</key>
|
<key>HaltLevel</key>
|
||||||
<integer>2147483648</integer>
|
<integer>2147483648</integer>
|
||||||
<key>PasswordHash</key>
|
<key>PasswordHash</key>
|
||||||
|
|||||||
@@ -450,7 +450,7 @@
|
|||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>USB Map</string>
|
<string>USB Map</string>
|
||||||
<key>Enabled</key>
|
<key>Enabled</key>
|
||||||
<true/>
|
<false/><!--USBmap-->
|
||||||
<key>MaxKernel</key>
|
<key>MaxKernel</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>MinKernel</key>
|
<key>MinKernel</key>
|
||||||
@@ -629,7 +629,7 @@
|
|||||||
<key>EnablePassword</key>
|
<key>EnablePassword</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>ExposeSensitiveData</key>
|
<key>ExposeSensitiveData</key>
|
||||||
<integer>6</integer>
|
<integer>15</integer>
|
||||||
<key>HaltLevel</key>
|
<key>HaltLevel</key>
|
||||||
<integer>2147483648</integer>
|
<integer>2147483648</integer>
|
||||||
<key>PasswordHash</key>
|
<key>PasswordHash</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user