[进阶教程]精简IntelBluetoothFirmware驱动
本文章,旨在教大家如何精简IntelBluetoothFirmware驱动。
我们可以看到,精简前和精简后的大小对比,可以说是缩小了10倍有余,缩小了体积,而且也可以使引导开机过程变快一些,But,精简后的驱动只能给单网卡使用,给别的网卡无法使用
视频教程
1.我们需要准备的东西
- IORegistryExplorer
- Github Desktop
- Xcode
文件文末提供
2.查看自己蓝牙的固件
打开IORegistryExplorer,在下图搜索框里面输入IntelBluetoothFirmware
此时会自动定位到IntelBluetoothFirmware,查看固件信息
如我的为ibt-20-1-3.sfi,此时你就需要记住这个数值
关闭IORegistryExplorer
3.下载源代码(需要科学上网)
下载MacKernelSDK源码
访问下面的地址
- https://github.com/acidanthera/MacKernelSDK
如下图,点击Code
然后选择Open with Github Desktop
然后会显示要跳转到GitHub Desktop,点击允许
然后选择Clone
静静等待下载完成
下载IntelBluetoothFirmware源码
访问下面的地址,方法与上面相同
- https://github.com/OpenIntelWireless/IntelBluetoothFirmware
4.正式编译
打开访达,定位到文稿目录
将MacKernelSDK文件夹整个复制到IntelBluetoothFirmware目录下,如下图
然后打开Github→ IntelBluetoothFirmware → IntelBluetoothFirmware →fw目录,然后删除除了自己网卡之外的文件
然后再打开GitHub→IntelBluetoothFirmware→IntelBluetoothFirmware
如果下面存在有FwBinary.cpp文件,请删掉他,没有就省略
使用Xcode打开Github→IntelBluetoothFirmware→IntelBluetoothFirmware.xcodeproj,如下图
点击红色箭头指示处,如下图
选择IntelBluetoothFirmware
点击左上角的开始按钮,如下图
此时就会开始编译驱动,静等完成
完成之后,按照下图依次点击
依次打开DerivedData→IntelBluetoothFirmware-ajpeeicwdlfbhkemfbftmveiwmff→Build→Products→Debug
在下面你就可以看到你编译好的驱动,替换到EFI里面加载即可