OpenCore 0.7.6. Support for Broadcom Bluetooth devices, especially on Monterey

serial-debug
Nicholas Sherlock 3 years ago
parent 255cac3ed5
commit c1c9bf87b3

6
.gitignore vendored

@ -8,6 +8,12 @@ EFI/OC/Kexts/Lilu.kext
EFI/OC/Kexts/AppleALC.kext
EFI/OC/Kexts/WhateverGreen.kext
EFI/OC/Kexts/VirtualSMC.kext
EFI/OC/Kexts/BlueToolFixup.kext
EFI/OC/Kexts/BrcmBluetoothInjector.kext
EFI/OC/Kexts/BrcmNonPatchRAM2.kext
EFI/OC/Kexts/BrcmFirmwareData.kext
EFI/OC/Kexts/BrcmPatchRAM2.kext
EFI/OC/Kexts/BrcmPatchRAM3.kext
EFI/OC/Tools/Shell.efi
EFI/OC/Tools/ResetSystem.efi
EFI/OC/Resources

3
.gitmodules vendored

@ -23,3 +23,6 @@
[submodule "src/MacKernelSDK"]
path = src/MacKernelSDK
url = https://github.com/acidanthera/MacKernelSDK.git
[submodule "src/BrcmPatchRAM"]
path = src/BrcmPatchRAM
url = https://github.com/acidanthera/BrcmPatchRAM.git

@ -307,6 +307,8 @@
<integer>0</integer>
<key>RebuildAppleMemoryMap</key>
<false/>
<key>ResizeAppleGpuBars</key>
<integer>-1</integer>
<key>SetupVirtualMap</key>
<false/>
<key>SignalAppleOS</key>
@ -590,6 +592,114 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BrcmFirmwareData.kext</string>
<key>Comment</key>
<string>Bluetooth firmware</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/BrcmFirmwareData</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BrcmNonPatchRAM2.kext</string>
<key>Comment</key>
<string>Bluetooth support for macOS 10.11-10.14</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/BrcmNonPatchRAM2</string>
<key>MaxKernel</key>
<string>18.99.99</string>
<key>MinKernel</key>
<string>15.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BrcmPatchRAM2.kext</string>
<key>Comment</key>
<string>Bluetooth support for macOS 10.11-10.14</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/BrcmPatchRAM2</string>
<key>MaxKernel</key>
<string>18.99.99</string>
<key>MinKernel</key>
<string>15.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BrcmPatchRAM3.kext</string>
<key>Comment</key>
<string>Bluetooth support for macOS 10.15-</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/BrcmPatchRAM3</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>19.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BrcmBluetoothInjector.kext</string>
<key>Comment</key>
<string>Bluetooth support for macOS 10.15-11</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string></string>
<key>MaxKernel</key>
<string>20.99.99</string>
<key>MinKernel</key>
<string>19.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>BlueToolFixup.kext</string>
<key>Comment</key>
<string>Bluetooth support for macOS 12-</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/BlueToolFixup</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>21.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array>
<key>Block</key>
<array>
@ -873,7 +983,7 @@
<key>Arguments</key>
<string></string>
<key>Auxiliary</key>
<false/>
<true/>
<key>Comment</key>
<string>Not signed for security reasons</string>
<key>Enabled</key>
@ -939,8 +1049,6 @@
<dict>
<key>DefaultBackgroundColor</key>
<data>AAAAAA==</data>
<key>UIScale</key>
<data>AQ==</data>
</dict>
<key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
<dict>
@ -967,7 +1075,6 @@
<dict>
<key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
<array>
<string>UIScale</string>
<string>DefaultBackgroundColor</string>
</array>
<key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
@ -1310,6 +1417,8 @@
<false/>
<key>ProvideConsoleGop</key>
<true/>
<key>ReconnectGraphicsOnConnect</key>
<false/>
<key>ReconnectOnResChange</key>
<false/>
<key>ReplaceTabWithSpace</key>
@ -1320,6 +1429,8 @@
<false/>
<key>TextRenderer</key>
<string>BuiltinGraphics</string>
<key>UIScale</key>
<integer>0</integer>
<key>UgaPassThrough</key>
<false/>
</dict>
@ -1370,6 +1481,8 @@
<false/>
<key>EnableVectorAcceleration</key>
<true/>
<key>EnableVmx</key>
<false/>
<key>ExitBootServicesDelay</key>
<integer>0</integer>
<key>ForceOcWriteFlash</key>
@ -1384,6 +1497,8 @@
<false/>
<key>RequestBootVarRouting</key>
<true/>
<key>ResizeGpuBars</key>
<integer>-1</integer>
<key>TscSyncTimeout</key>
<integer>0</integer>
<key>UnblockFsConnect</key>

@ -2,7 +2,13 @@ KEXTS= \
EFI/OC/Kexts/Lilu.kext \
EFI/OC/Kexts/WhateverGreen.kext \
EFI/OC/Kexts/AppleALC.kext \
EFI/OC/Kexts/VirtualSMC.kext
EFI/OC/Kexts/VirtualSMC.kext \
EFI/OC/Kexts/BrcmNonPatchRAM2.kext \
EFI/OC/Kexts/BrcmPatchRAM2.kext \
EFI/OC/Kexts/BrcmPatchRAM3.kext \
EFI/OC/Kexts/BrcmBluetoothInjector.kext \
EFI/OC/Kexts/BlueToolFixup.kext \
EFI/OC/Kexts/BrcmFirmwareData.kext
DRIVERS= \
EFI/OC/Drivers/OpenHfsPlus.efi \
@ -95,6 +101,41 @@ src/VirtualSMC/build/Release/VirtualSMC.kext : src/VirtualSMC/Lilu.kext src/Virt
cd src/VirtualSMC && xcodebuild -configuration Release
touch $@
# BrcmPatchRAM:
src/BrcmPatchRAM/build/Products/Release/BlueToolFixup.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM2.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmPatchRAM2.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmPatchRAM3.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmFirmwareData.kext \
src/BrcmPatchRAM/build/Products/Release/BrcmBluetoothInjector.kext : src/BrcmPatchRAM/Lilu.kext src/BrcmPatchRAM/MacKernelSDK
# Needs macOS 11 SDK rather than 12.0 to meet deployment target, e.g. from https://github.com/phracker/MacOSX-SDKs and:
# export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
cd src/BrcmPatchRAM && xcodebuild -configuration Release
touch $@
EFI/OC/Kexts/BrcmNonPatchRAM.kext : src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM.kext
cp -a $< $@
EFI/OC/Kexts/BrcmNonPatchRAM2.kext : src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM2.kext
cp -a $< $@
EFI/OC/Kexts/BrcmPatchRAM2.kext : src/BrcmPatchRAM/build/Products/Release/BrcmPatchRAM2.kext
cp -a $< $@
EFI/OC/Kexts/BrcmPatchRAM3.kext : src/BrcmPatchRAM/build/Products/Release/BrcmPatchRAM3.kext
cp -a $< $@
EFI/OC/Kexts/BrcmBluetoothInjector.kext : src/BrcmPatchRAM/build/Products/Release/BrcmBluetoothInjector.kext
cp -a $< $@
EFI/OC/Kexts/BlueToolFixup.kext : src/BrcmPatchRAM/build/Products/Release/BlueToolFixup.kext
cp -a $< $@
EFI/OC/Kexts/BrcmFirmwareData.kext : src/BrcmPatchRAM/build/Products/Release/BrcmFirmwareData.kext
cp -a $< $@
# Lilu:
EFI/OC/Kexts/Lilu.kext : src/Lilu/build/Release/Lilu.kext
@ -106,7 +147,8 @@ src/Lilu/build/Release/Lilu.kext src/Lilu/build/Debug/Lilu.kext : src/Lilu/MacKe
src/WhateverGreen/Lilu.kext \
src/AppleALC/Lilu.kext \
src/VirtualSMC/Lilu.kext : src/Lilu/build/Debug/Lilu.kext
src/VirtualSMC/Lilu.kext \
src/BrcmPatchRAM/Lilu.kext : src/Lilu/build/Debug/Lilu.kext
ln -s ../Lilu/build/Debug/Lilu.kext $@
# MacKernelSDK:
@ -114,7 +156,8 @@ src/VirtualSMC/Lilu.kext : src/Lilu/build/Debug/Lilu.kext
src/Lilu/MacKernelSDK \
src/WhateverGreen/MacKernelSDK \
src/AppleALC/MacKernelSDK \
src/VirtualSMC/MacKernelSDK : src/MacKernelSDK
src/VirtualSMC/MacKernelSDK \
src/BrcmPatchRAM/MacKernelSDK : src/MacKernelSDK
ln -s ../MacKernelSDK $@
# OpenCore:
@ -168,5 +211,5 @@ very-clean : clean
rm -rf src/OpenCorePkg/UDK
clean :
rm -rf OpenCore-*.dmg OpenCoreEFIFolder-*.zip OpenCore-Image/ src/Lilu/build src/WhateverGreen/build src/OpenCorePkg/UDK/Build \
rm -rf OpenCore-*.dmg OpenCoreEFIFolder-*.zip OpenCore-Image/ src/Lilu/build src/WhateverGreen/build src/OpenCorePkg/UDK/Build src/BrcmPatchRAM/build \
src/AppleALC/build $(KEXTS) $(DRIVERS) $(TOOLS) $(MISC)

@ -1 +1 @@
Subproject commit cac3a3b5d8c5c7526897b7645002b01b16347d64
Subproject commit 2ed6af4505a81c8c8f5a6b18c249eb478266739c

@ -0,0 +1 @@
Subproject commit 590457478fe764aee53ab8441fceab3ebc6be293

@ -1 +1 @@
Subproject commit b897413d53b8d0e1e8ea7f9d7519d9ff64d15b6d
Subproject commit 0edf2dd01b9284d49a6bfca4bb92af6bbadc7905

@ -1 +1 @@
Subproject commit 6b0e1ecda808e1a20401a174b910746f23f5ffcc
Subproject commit 39336fd35fc3721733de156e7437b3fd27949a3a

@ -1 +1 @@
Subproject commit dcf5032351154034e7c8ef6fd15674b1c71e3d92
Subproject commit 29b23910e5ebb6347fd287776fe79508cbbc1bfe

@ -1 +1 @@
Subproject commit d1f60d31eee0cb2983b1594ddb964b24b24e9a0f
Subproject commit c31c991a5f3ab928fe5feebd9169ba936bda6613

@ -1 +1 @@
Subproject commit 6da45d09775dc93bab90d0fbf1641b383cb69c60
Subproject commit bab6fd515b0a35e2855faac3ebdc66e1ecf9642d

@ -1 +1 @@
Subproject commit f78b2d903c4975932e72b2c04944ed8e01ce3f6e
Subproject commit c608748deabfc8024883470009a97dbb529b8280
Loading…
Cancel
Save