Upgrade OC 0.8.2 (*.efi, *.kext, *.plist)

This commit is contained in:
Gabriel
2022-07-10 16:38:08 -03:00
parent 99f645a913
commit eedf9e87b4
36 changed files with 164 additions and 104 deletions
+8
View File
@@ -1,5 +1,13 @@
OpenCore Changelog
==================
#### v0.8.2
- Fixed `AppleCpuPmCfgLock` on macOS 13
- Fixed `DummyPowerManagement` on macOS 13
- Updated builtin firmware versions for SMBIOS and the rest
- Added macOS 13 support for `AvoidRuntimeDefrag` Booter quirk
- Added injected kext bundle version printing in DEBUG builds
- Added Linux compatibility for CreateVault scripts
#### v0.8.1
- Improved `ExtendBTFeatureFlags` quirk on newer macOS versions, thx @lvs1974
- Added notes about DMAR table and `ForceAquantiaEthernet`, thx @kokowski
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G415</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12D4e</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.1</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20C63</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.1</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1240</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12D4e</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.Lilu</key>
Binary file not shown.
@@ -591,29 +591,32 @@ public:
return routeMultipleShort(id, requests, N, start, size, kernelRoute, force);
}
/**
* Find one pattern with optional masking within a block of memory
*
* @param pattern pattern to search
* @param patternMask pattern mask
* @param patternSize size of pattern
* @param data a block of memory
* @param dataSize size of memory
* @param dataOffset data offset, to be set by this function
*
* @return true if pattern is found in data
*/
EXPORT static bool findPattern(const void *pattern, const void *patternMask, size_t patternSize, const void *data, size_t dataSize, size_t *dataOffset);
/**
* Simple find and replace with masking in kernel memory.
*/
EXPORT static bool findAndReplaceWithMask(void *data, size_t dataSize, const void *find, size_t findSize, const void *findMask, size_t findMaskSize, const void *replace, size_t replaceSize, const void *replaceMask, size_t replaceMaskSize, size_t count=0, size_t skip=0);
/**
* Simple find and replace in kernel memory.
*/
static inline bool findAndReplace(void *data, size_t dataSize, const void *find, size_t findSize, const void *replace, size_t replaceSize) {
void *res;
if (UNLIKELY((res = lilu_os_memmem(data, dataSize, find, findSize)) != nullptr)) {
if (UNLIKELY(MachInfo::setKernelWriting(true, KernelPatcher::kernelWriteLock) != KERN_SUCCESS)) {
SYSLOG("patcher", "failed to obtain write permissions for f/r");
return false;
}
lilu_os_memcpy(res, replace, replaceSize);
if (UNLIKELY(MachInfo::setKernelWriting(false, KernelPatcher::kernelWriteLock) != KERN_SUCCESS)) {
SYSLOG("patcher", "failed to restore write permissions for f/r");
}
return true;
}
return false;
return findAndReplaceWithMask(data, dataSize, find, findSize, nullptr, 0, replace, replaceSize, nullptr, 0, 0, 0);
}
/**
* Simple find and replace in kernel memory but require both `find` and `replace` buffers to have the same length
*/
@@ -622,6 +625,14 @@ public:
return findAndReplace(data, dataSize, find, N, replace, N);
}
/**
* Simple find and replace with masking in kernel memory but require both `find` and `replace` buffers and masking buffers to have the same length
*/
template <size_t N>
static inline bool findAndReplaceWithMask(void *data, size_t dataSize, const uint8_t (&find)[N], const uint8_t (&findMask)[N], const uint8_t (&replace)[N], const uint8_t (&replaceMask)[N], size_t count, size_t skip) {
return findAndReplaceWithMask(data, dataSize, find, N, findMask, N, replace, N, replaceMask, N, count, skip);
}
private:
/**
* Jump type for routing
@@ -707,6 +718,26 @@ private:
*/
bool routeMultipleInternal(size_t id, RouteRequest *requests, size_t num, mach_vm_address_t start=0, size_t size=0, bool kernelRoute=true, bool force=false, JumpType jumpType=JumpType::Auto);
/**
* Simple find and replace with masking in kernel memory
*
* @param data kernel memory
* @param dataSize size of kernel memory
* @param find find pattern
* @param findSize size of find pattern
* @param findMask find masking pattern
* @param findMaskSize size of find masking pattern
* @param replace replace pattern
* @param replaceSize size of replace pattern
* @param replaceMask replace masking pattern
* @param replaceMaskSize repalce masking pattern
* @param count maximum times of patching
* @param skip number of skipping times before performing replacement
*
* @return true if the finding and replacing performance is successful
*/
static bool findAndReplaceWithMaskInternal(void *data, size_t dataSize, const void *find, size_t findSize, const void *findMask, size_t findMaskSize, const void *replace, size_t replaceSize, const void *replaceMask, size_t replaceMaskSize, size_t count, size_t skip);
#ifdef LILU_KEXTPATCH_SUPPORT
/**
* Process loaded kext
@@ -610,6 +610,26 @@ private:
*/
static constexpr const char *bigSurSharedCacheLegacy {"/System/Library/dyld/dyld_shared_cache_x86_64"};
/**
* DYLD shared cache map path on Haswell+ on Ventura
*/
static constexpr const char *venturaSharedCacheMapHaswell {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64h.map"};
/**
* DYLD shared cache map path on older systems on Ventura
*/
static constexpr const char *venturaSharedCacheMapLegacy {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64.map"};
/**
* DYLD shared cache path on Haswell+ on Ventura
*/
static constexpr const char *venturaSharedCacheHaswell {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64h"};
/**
* DYLD shared cache path on older systems on Ventura
*/
static constexpr const char *venturaSharedCacheLegacy {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64"};
};
#endif /* kern_user_hpp */
@@ -393,6 +393,7 @@ enum KernelVersion {
Catalina = 19,
BigSur = 20,
Monterey = 21,
Ventura = 22,
};
/**
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.SMCProcessor</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>ru.joedm.SMCSuperIO</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.VirtualSMC</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.5.9</string>
<string>1.6.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,7 +25,7 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.5.9</string>
<string>1.6.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Binary file not shown.
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G415</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12D4e</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.1</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20C63</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.1</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1240</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12D4e</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.Lilu</key>
Binary file not shown.
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.SMCProcessor</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>ru.joedm.SMCSuperIO</key>
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G417</string>
<string>20G624</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,23 +25,23 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.9</string>
<string>1.3.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.3</string>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>20E214</string>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx11.3</string>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1251</string>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>12E507</string>
<string>13C100</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.VirtualSMC</key>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.5.9</string>
<string>1.6.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@@ -25,7 +25,7 @@
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.5.9</string>
<string>1.6.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Binary file not shown.
+2 -2
View File
@@ -4,8 +4,8 @@ Note|Description
:----|:----
Initial macOS Support|macOS 10.15, Catalina.
- Opencore version: 0.8.1
- Release date: 06/06/2022
- Opencore version: 0.8.2
- Release date: 04/07/2022
# Basic Steps
+8 -8
View File
@@ -1,6 +1,6 @@
{
"Mac-EE2EBD4B90B839A8": "latest",
"Mac-BE0E8AC46FE800CC": "11.6.6",
"Mac-BE0E8AC46FE800CC": "11.6.7",
"Mac-9AE82516C7C6B903": "latest",
"Mac-942452F5819B1C1B": "10.13.6",
"Mac-942C5DF58193131B": "10.13.6",
@@ -8,8 +8,8 @@
"Mac-742912EFDBEE19B3": "10.13.6",
"Mac-66F35F19FE2A0D05": "10.15.7",
"Mac-2E6FAB96566FE58C": "10.15.7",
"Mac-35C1E88140C3E6CF": "11.6.6",
"Mac-7DF21CB3ED6977E5": "11.6.6",
"Mac-35C1E88140C3E6CF": "11.6.7",
"Mac-7DF21CB3ED6977E5": "11.6.7",
"Mac-9F18E312C5C2BF0B": "latest",
"Mac-937CB26E2E02BB01": "latest",
"Mac-827FAC58A8FDFA22": "latest",
@@ -17,9 +17,9 @@
"Mac-0CFF9C7C2B63DF8D": "latest",
"Mac-C3EC7CD22292981F": "10.15.7",
"Mac-AFD8A9D944EA4843": "10.15.7",
"Mac-189A3D4F975D5FFC": "11.6.6",
"Mac-3CBD00234E554E41": "11.6.6",
"Mac-2BD1B31983FE1663": "11.6.6",
"Mac-189A3D4F975D5FFC": "11.6.7",
"Mac-3CBD00234E554E41": "11.6.7",
"Mac-2BD1B31983FE1663": "11.6.7",
"Mac-06F11FD93F0323C5": "latest",
"Mac-06F11F11946D27C5": "latest",
"Mac-E43C1C25D4880AD6": "latest",
@@ -61,8 +61,8 @@
"Mac-031B6874CF7F642A": "10.15.7",
"Mac-27ADBB7B4CEE8E61": "10.15.7",
"Mac-77EB7D7DAF985301": "10.15.7",
"Mac-81E3E92DD6088272": "11.6.6",
"Mac-42FD25EABCABB274": "11.6.6",
"Mac-81E3E92DD6088272": "11.6.7",
"Mac-42FD25EABCABB274": "11.6.7",
"Mac-A369DDC4E67F1C45": "latest",
"Mac-FFE5EF870D7BA81A": "latest",
"Mac-DB15BD556843C820": "latest",
Binary file not shown.
Binary file not shown.
Binary file not shown.