KernelAndKextPatches

Clover官方Wiki Config.plist 参数架构讲解07 —— KernelAndKextPatches
本帖最后由 neycwby09 于 2014-3-15 17:55 编辑

07.Clover官方Wiki
7. KernelAndKextPatches 模块
注意:
1.部分代码根据实际使用可能会有改变
(KextsToPatch部分可能会出现<data></data>)
2.推荐在Mac下使用 Clover Configurator 来设置
3.请注意代码之间的层级关系
完整代码:(不要直接照搬 请弄清楚各个参数的作用 以及格式)
  1. <key>KernelAndKextPatches</key>
  2.         <dict>
  3.                 <key>ATIConnectorsController</key>
  4.                 <string>5000</string>
  5.                 <key>ATIConnectorsData</key>
  6.                 <string>FrameBufferCode_Org</string>
  7.                 <key>ATIConnectorsPatch</key>
  8.                 <string>FrameBufferCode_Patched</string>
  9.                 <key>AppleRTC</key>
  10.                 <true/>
  11.                 <key>AsusAICPUPM</key>
  12.                 <true/>
  13.                 <key>Debug</key>
  14.                 <true/>
  15.                 <key>KernelCpu</key>
  16.                 <true/>
  17.                 <key>KernelLapic</key>
  18.                 <true/>
  19.                 <key>KernelPm</key>
  20.                 <true/>
  21.                 <key>KextsToPatch</key>
  22.                 <array>
  23.                         <dict>
  24.                                 <key>Name</key>
  25.                                 <string>AirPortAtheros40</string>
  26.                                 <key>Find</key>
  27.                                 <string>pci168c,2a</string>
  28.                                 <key>Replace</key>
  29.                                 <string>pci168c,2b</string>
  30.                                 <key>Comment</key>
  31.                                 <string>AR9285_NoNeedToEditPlist</string>
  32.                                 <key>InfoPlistPatch</key>
  33.                                 <true/>
  34.                         </dict>
  35.                         <dict>
  36.                                 <key>Name</key>
  37.                                 <string>AMD5000Controller</string>
  38.                                 <key>Find</key>
  39.                                 <string>0x68E01002</string>
  40.                                 <key>Replace</key>
  41.                                 <string>0x68E41002</string>
  42.                                 <key>Comment</key>
  43.                                 <string>AMD6370M_NoNeedToEditPlist</string>
  44.                                 <key>InfoPlistPatch</key>
  45.                                 <true/>
  46.                         </dict>
  47.                 </array>
  48.         </dict>
复制代码

Debug
  1. <key>Debug</key>
  2. <true/>
复制代码
参数名称:调试
参数设定:<true/> || <false/>
参数说明:开启此参数后,可以看到具体的打补丁过程,默认不开启。 




KernelCpu
  1. <key>KernelCpu</key>
  2. <true/>
复制代码
参数设定: <true/> || <false/>
参数说明:
1.为不受原生支持的CPU(比如AMD CPU / Intel Atom系列)打补丁来绕开Kernel Panics(可以说是五国)
2.但是此参数不一定会解决问题,所以还是推荐更换对应的内核。


AsusAICPUPM
  1. <key>AsusAICPUPM</key>
  2. <true/>
复制代码
参数设定:<true/> || <false/>
参数说明: 
一些供应商比如华硕,通常限制使用电源管理寄存器里的0xE2部分(一般是设置该部分为只读)。而在运行在2代SNB,3代IVB等平台的系统中,Mac的电源管理驱动会尝试向0xE2部分写入数据,而因为只读的限制会导致内核崩溃(即因电源管理而五国),这个参数开启后,会限制电源管理驱动向0xE2写入的操作来避免五国。




KernelPm
  1. <key>KernelPm</key>
  2. <true/>
复制代码
参数设定:<true/> || <false/>
参数说明:
1.因Haswell平台锁定了MSR,开启此参数可避免无线重启。
2.在10.8.5/10.9.x的内核上测试通过

AppleRTC
  1. <key>AppleRTC</key>
  2. <true/>
复制代码
参数设定:<true/> || <false/>
参数说明:防CMOS重置补丁,也可以使用DSDT修改Device (RTC)部分来解决CMOS重置问题。



KernelLapic
  1. <key>KernelLapic</key>
  2. <false/>
复制代码
参数设定:<true/> || <false/>
参数说明:解决HP笔记本的 Kernel Lapic 问题,或者也可以在启动参数上加入“cpus=1”来解决。


ATIConnectorsController
  1. <key>ATIConnectorsController</key>
  2. <string>6000</string>
复制代码
参数设置:键值属性:string 输入对应Controller的数值
比如要对 AMD5000Controller 操作 则填写5000 同理 6000/7000等
  1. <key>ATIConnectorsData</key>
  2. <string>000400000403000000010000210302040400000014020000000100000000 040310000000100000000001000000000001</string>
  3. <key>ATIConnectorsPatch</key>
  4. <string>040000001402000000010000000004040004000004030000000100001102 010500000000000000000000000000000000</string>
复制代码
参数说明:
ATIConnectorsData填写 原始FB的参数值
ATIConnectorsPatch填写 修正后的对应FB参数值
具体FB的获取与修改教程请看 置顶集合贴V3 ATI/AMD显卡驱动通用教程



KextsToPatch
  1. <key>KextsToPatch</key>
  2.                 <array>
  3.                         <dict>
  4.                                 <key>Name</key>
  5.                                 <string>AirPortAtheros40</string>
  6.                                 <key>Find</key>
  7.                                 <string>pci168c,2a</string>
  8.                                 <key>Replace</key>
  9.                                 <string>pci168c,2b</string>
  10.                                 <key>Comment</key>
  11.                                 <string>AR9285_NoNeedToEditPlist</string>
  12.                                 <key>InfoPlistPatch</key>
  13.                                 <true/>
  14.                         </dict>
  15.                         <dict>
  16.                                 <key>Name</key>
  17.                                 <string>AMD5000Controller</string>
  18.                                 <key>Find</key>
  19.                                 <string>0x68E01002</string>
  20.                                 <key>Replace</key>
  21.                                 <string>0x68E41002</string>
  22.                                 <key>Comment</key>
  23.                                 <string>AMD6370M_NoNeedToEditPlist</string>
  24.                                 <key>InfoPlistPatch</key>
  25.                                 <true/>
  26.                         </dict>
  27.                 </array>
复制代码
代码结构讲解:每一组patch都可以看成一个数组
参数说明:即可以给驱动内的Info.plist打补丁 也可以给二进制文件打补丁
推荐系统稳定后,可以在Mac下用Clover Configurator来设置编辑
这部分请看 媛懒如此的Clover置顶帖 里的 “任意kext打补丁(KextsToPatch)

来自 <http://bbs.pcbeta.com/viewthread-1485696-2-1.html>


评论

  1. Las Vegas casinos - JTM Hub
    Casino: Your favorite place to play slots, table 세종특별자치 출장마사지 games, live 충청남도 출장마사지 entertainment, 충청남도 출장샵 dining and more at our luxury hotels, casinos, golf and resorts. 김천 출장마사지 Book 순천 출장샵 Now!

    回复删除

发表评论

此博客中的热门博文

使用Clover启动OS X安装器

 Clover介绍 及 新版 config.plist 代码作用详解.

Boot 模块 Legacy,Timeout,DefaultVolume,DefaultLoader 选项