搜索
查看: 1523|回复: 13

[核显] UHD630在特定屏幕上面的崩溃/kernel panic due to division by zero in the framebuff [复制链接]

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-5 17:10:53 |显示全部楼层
快御云安全
10PB币
本帖最后由 yanwxu 于 2020-3-1 20:52 编辑

问题解决!!!!!详见:weg 1.3.7更新日志

1.前言:(ps:我只是想找个恰当的发帖方式,所以选择了悬赏,pb太少各位聚聚不要介意lns7590的 4K 版本有两种屏幕,分别为友达的AUO41EB与夏普的SHP14C7。但经尝试发现后者并不像前者般容易驱动。使用常规的 WhateverGreen + 注入参数至 config.plist Devices -> Properties 子项的方式并不能成功驱动后者,同时会出现 division-by-zero 的 Kernel Panic,并立即重启,因此无法正常进入系统。

Division-by-zero 这一问题理论上在新版的 WhateverGreen 已经可以由其本身解决,但在装有 SHP14C7 屏幕的机器上似乎并不奏效。

2.内核崩溃信息:

  1. 见2F
复制代码

3.个人猜测:

1)weg中的补丁对机型的夏普屏幕SHP14C7 并没有作用。

2)本屏幕屏库网上面并没有参数。

3)需要合适的kext补丁进行修补。

4.解决方式:

1)注入原来的补丁。(已经试过无用

2)对于内置4K显示器的笔记本电脑,我建议使用0x14(HBR2,5.4 Gbps)作为最大链路速率。 对于内置1080p显示器的笔记本电脑,我建议使用0x0A(HBR,2.7 Gbps)。 如果这些值在您的设备上不起作用,您可能需要尝试0x06(RBR,1.62 Gbps)和0x1E(HBR3,8.4 Gbps)。 换句话说,您只需C1 14用C1 06或C1 1E相应地替换最后两个字节。已经更改dpcd-max-link-rate = <1E000000>没有作用

3)重新修补AppleIntelCFLGraphicsFramebuffer这个我不会,所以来求助。

5.EFI文件:

https://github.com/tctien342/Dell-Inspiron-7591-Hackintosh

6.参考资料:

https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave
https://github.com/Pinming/Dell-Inspiron-7590-With-SHP14C7-Mojave?tdsourcetag=s_pctim_aiomsg
https://www.firewolf.science/2018/11/coffee-lake-intel-uhd-graphics-630-on-macos-mojave-a-nearly-ultimate-solution-to-the-kernel-panic-due-to-division-by-zero-in-the-framebuffer-driver/

https://github.com/williambj1/EFI-from-Daliansky-backup/tree/master/EFI-Daliansky-10.14.3


https://github.com/acidanthera/WhateverGreen/blob/master/Manual/FAQ.IntelHD.cn.md

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-5 18:32:13 |显示全部楼层
本帖最后由 yanwxu 于 2020-2-7 15:01 编辑

2L:   尝试注入台式机ID ,hdmi外接屏幕,外置屏幕正常补充详细的崩溃日志:
  1. panic(cpu 6 caller 0xffffff801ae652fa): Kernel trap at 0xffffff7f9eba116c, type 0=divide error, registers:
  2. CR0: 0x0000000080010033, CR2: 0x00007fff91674d48, CR3: 0x000000085705b046, CR4:
  3. 0x00000000003626e0
  4. RAX: 0x017d68fdc0000000, RBX: 0x017d68fdc0000000, RCX: 0x0100000100000000, RDX:
  5. 0x0000000000000000
  6. RSP: 0xffffff83cb9eb330, RBP: 0xffffff83cb9eb360, RSI: 0xffffff83cb9eb158, RDI: 0xffffff8394a11000
  7. R8: 0x00000010000f9d28, R9: 0xffffff8394a204a0, R10: 0x0000000000000000, R11:
  8. 0x0000000000000000
  9. R12: 0x000000001fc8bfd0, R13: 0x0000000000000000, R14: 0xffffff83cb9eb380, R15:
  10. 0x0000000009a7ec80
  11. RFL: 0x0000000000010246, RIP: 0xffffff7f9eba116c, CS: 0x0000000000000008, SS:
  12. 0x0000000000000010
  13. Fault CR2: 0x00007fff91674d48, Error code: 0x0000000000000000, Fault CPU: 0x6, PL: 0, VF: 0
  14. Backtrace (CPU 6), Frame : Return Address
  15. 0xffffff83cb9ead90 : 0xffffff801ad3bb2b mach_kernel : _handle_debugger_trap + 0x47b
  16. 0xffffff83cb9eade0 : 0xffffff801ae734d5 mach_kernel : _kdp_i386_trap + 0x155
  17. 0xffffff83cb9eae20 : 0xffffff801ae64f4e mach_kernel : _kernel_trap + 0x4ee
  18. 0xffffff83cb9eae70 : 0xffffff801ace2a40 mach_kernel : _return_from_trap + 0xe0
  19. 0xffffff83cb9eae90 : 0xffffff801ad3b217 mach_kernel : _DebuggerTrapWithState + 0x17
  20. 0xffffff83cb9eaf90 : 0xffffff801ad3b5fb mach_kernel : _panic_trap_to_debugger + 0x21b
  21. 0xffffff83cb9eafe0 : 0xffffff801b4d2aa9 mach_kernel : _panic + 0x61
  22. 0xffffff83cb9eb050 : 0xffffff801ae652fa mach_kernel : _sync_iss_to_iks + 0x2aa
  23. 0xffffff83cb9eb1d0 : 0xffffff801ae64ff8 mach_kernel : _kernel_trap + 0x598
  24. 0xffffff83cb9eb220 : 0xffffff801ace2a40 mach_kernel : _return_from_trap + 0xe0
  25. 0xffffff83cb9eb240 : 0xffffff7f9eba116c com.apple.driver.AppleIntelCFLGraphicsFramebuffer :
  26. __ZN31AppleIntelFramebufferController14SetupDPTimingsEP21AppleIntelFramebufferP21AppleIntel
  27. DisplayPathPNS_10CRTCParamsE + 0xec
  28. 0xffffff83cb9eb360 : 0xffffff7f9eb9ec6e com.apple.driver.AppleIntelCFLGraphicsFramebuffer :
  29. __ZN31AppleIntelFramebufferController9hwSetModeEP21AppleIntelFramebufferP21AppleIntelDispla
  30. yPathPK29IODetailedTimingInformationV2 + 0x228
  31. 0xffffff83cb9eb7e0 : 0xffffff7f9eb74cff com.apple.driver.AppleIntelCFLGraphicsFramebuffer :
  32. __ZN21AppleIntelFramebuffer14setDisplayModeEii + 0xcbb
  33. 0xffffff83cb9eb9a0 : 0xffffff7f9c0e3d33 com.apple.iokit.IOGraphicsFamily :
  34. __ZN13IOFramebuffer16doSetDisplayModeEii + 0x12b
  35. 0xffffff83cb9eba30 : 0xffffff7f9c0e3b90 com.apple.iokit.IOGraphicsFamily :
  36. __ZN13IOFramebuffer17extSetDisplayModeEP8OSObjectPvP25IOExternalMethodArguments + 0x9a
  37. 0xffffff83cb9ebac0 : 0xffffff801b46739b mach_kernel :
  38. __ZN12IOUserClient14externalMethodEjP25IOExternalMethodArgumentsP24IOExternalMethodDisp
  39. atchP8OSObjectPv + 0x1db
  40. 0xffffff83cb9ebb10 : 0xffffff7f9c0ea256 com.apple.iokit.IOGraphicsFamily :
  41. __ZN23IOFramebufferUserClient14externalMethodEjP25IOExternalMethodArgumentsP24IOExternal
  42. MethodDispatchP8OSObjectPv + 0x74
  43. 0xffffff83cb9ebb60 : 0xffffff801b470443 mach_kernel : _is_io_connect_method + 0x223
  44. 0xffffff83cb9ebca0 : 0xffffff801ae22d12 mach_kernel : _iokit_server_routine + 0x4e62
  45. 0xffffff83cb9ebdb0 : 0xffffff801ad419d8 mach_kernel : _ipc_kobject_server + 0x238
  46. 0xffffff83cb9ebe10 : 0xffffff801ad18635 mach_kernel : _ipc_kmsg_send + 0x135
  47. 0xffffff83cb9ebe70 : 0xffffff801ad2f0e5 mach_kernel : _mach_msg_overwrite_trap + 0x2e5
  48. 0xffffff83cb9ebf00 : 0xffffff801ae4b575 mach_kernel : _mach_call_munger64 + 0x205
  49. 0xffffff83cb9ebfa0 : 0xffffff801ace3226 mach_kernel : _hndl_mach_scall64 + 0x16
  50. Kernel Extensions in backtrace:
  51. com.apple.iokit.IOGraphicsFamily(569.4)
  52. [1F9B5D88-52DB-3A16-8373-4F608A3CB2D8]@0xffffff7f9c0c7000->0xffffff7f9c117fff
  53. dependency: com.apple.iokit.IOPCIFamily(2.9)[ADD485B5-3EF8-37C4-B3C5-
  54. F86326E497A4]@0xffffff7f9b72f000
  55. com.apple.driver.AppleIntelCFLGraphicsFramebuffer(14.0.4)[A30AC04F-FB51-328A-8942-
  56. A2BE0CEB5C3D]@0xffffff7f9eb58000->0xffffff7f9edb5fff
  57. dependency: com.apple.iokit.IOPCIFamily(2.9)[ADD485B5-3EF8-37C4-B3C5-
  58. F86326E497A4]@0xffffff7f9b72f000
  59. dependency: com.apple.iokit.IOACPIFamily(1.4)[3D78401B-5D2D-33BC-9E41-
  60. DD2164EA874D]@0xffffff7f9be36000
  61. dependency: com.apple.iokit.IOAcceleratorFamily2(438.3.1)
  62. [66992525-3204-3CB0-8F03-4B70031B1CF2]@0xffffff7f9ea95000
  63. dependency: com.apple.iokit.IOReportFamily(47)[988360A2-2E10-3014-A119-
  64. BE81BC045A10]@0xffffff7f9bac8000
  65. dependency: com.apple.AppleGraphicsDeviceControl(4.7.2)[2F63196D-03C6-3E49-
  66. BE5D-574F4AADED1A]@0xffffff7f9c40b000
  67. dependency: com.apple.iokit.IOGraphicsFamily(569.4)
  68. [1F9B5D88-52DB-3A16-8373-4F608A3CB2D8]@0xffffff7f9c0c7000
  69. BSD process name corresponding to current thread: WindowServer
  70. Boot args: darkwake=1 #brcmfx-driver=2 #brcmfx-country=#a agdpmod=vit9696 alcid=13 -v
  71. keepsyms=1
  72. Mac OS version:
  73. 19D76
  74. Kernel version:
  75. Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/
  76. RELEASE_X86_64
  77. Kernel UUID: A8DDE75C-CD97-3C37-B35D-1070CC50D2CE
  78. Kernel slide: 0x000000001aa00000
  79. Kernel text base: 0xffffff801ac00000
  80. __HIB text base: 0xffffff801ab00000
  81. System model name: MacBookPro15,2 (Mac-827FB448E656EC26)
  82. System shutdown begun: NO
  83. Panic diags file available: YES (0x0)
  84. System uptime in nanoseconds: 83611143552
  85. last loaded kext at 23504259375: >AudioAUUC 1.70 (addr 0xffffff7f9d76c000, size 32768)
  86. last unloaded kext at 80868931620: >!AXsanScheme3 (addr 0xffffff7f9d18a000, size 40960)
  87. loaded kexts:
  88. com.zxystd.!I!BFirmware 1.0.1
  89. com.alexandred.VoodooI2CHID 1
  90. as.acidanthera.voodoo.driver.PS2Keyboard2.1.1
  91. com.alexandred.VoodooI2C 2.3
  92. org.rehabman.driver.NullEthernet 1.0.6
  93. as.acidanthera.voodoo.driver.PS2!C 2.1.1
  94. org.coolstar.VoodooGPIO 1.1
  95. org.rehabman.driver.VoodooTSCSync 1.5.0
  96. as.vit9696.SMCProcessor 1.1.0
  97. org.acidanthera.NVMeFix 1.0.0
  98. com.alexandred.VoodooI2CServices 1
  99. com.XPS.VerbStub1.0.3
  100. fish.goldfish64.SystemProfilerMemoryFixup1.0.0
  101. ru.usrsse2.SMCBatteryManager 1
  102. as.vit9696.VirtualSMC 1.1.0
  103. xyz.racermaster.NoTouchID 1.0.3
  104. as.lvs1974.HibernationFixup 1.3.2
  105. org.vanilla.driver.CPUFriend 1.2.0
  106. as.lvs1974.BT4LEContinuityFixup1.1.4
  107. as.vit9696.!AALC 1.4.6
  108. as.vit9696.WhateverGreen 1.3.6
  109. as.vit9696.Lilu1.4.1
  110. >AudioAUUC 1.70
  111. @fileutil 20.036.15
  112. @filesystems.autofs 3.0
  113. >!AUpstreamUserClient 3.6.8
  114. >!A!IKBLGraphics 14.0.4
  115. >AGPM 111.4.2
  116. >!APlatformEnabler 2.7.0d0
  117. >X86PlatformShim 1.0.0
  118. >!AHPET1.8
  119. >!A!ICFLGraphicsFramebuffer 14.0.4
  120. >!AHDA 283.15
  121. @AGDCPluginDisplayMetrics 4.7.2
  122. >!AHV 1
  123. |IOUserEthernet 1.0.1
  124. |IO!BSerialManager 7.0.3f5
  125. >pmtelemetry 1
  126. @Dont_Steal_Mac_OS_X 7.0.0
  127. >!ABacklight 180.1
  128. >!AMCCSControl 1.13
  129. >!A!ISlowAdaptiveClocking 4.0.0
  130. >!ASMCLMU 212
  131. >!A!IPCHPMC2.0.1
  132. >!ATopCaseHIDEventDriver 3430.1
  133. @private.KextAudit1.0
  134. >!AVirtIO 1.0
  135. @filesystems.hfs.kext 522.0.9
  136. @!AFSCompression.!AFSCompressionTypeDataless1.0.0d1
  137. @BootCache 40
  138. @!AFSCompression.!AFSCompressionTypeZlib 1.0.0
  139. @filesystems.apfs 1412.81.1
  140. >!AAHCIPort 341.0.2
  141. >!ASmartBatteryManager 161.0.0
  142. >!AACPIButtons 6.1
  143. >!AACPIEC 6.1
  144. >!ARTC 2.0
  145. >!ASMBIOS 2.1
  146. >!AAPIC 1.7
  147. $!AImage4 1
  148. @nke.applicationfirewall 303
  149. $TMSafetyNet8
  150. @!ASystemPolicy 2.0.0
  151. |EndpointSecurity 1
  152. @kext.triggers1.0
  153. |IOAccelerator!F2 438.3.1
  154. >DspFuncLib 283.15
  155. @kext.OSvKernDSPLib529
  156. |IOAVB!F800.17
  157. >!ASSE 1.0
  158. >!AHDA!C 283.15
  159. |IOHDA!F 283.15
  160. >!ABacklightExpert1.1.0
  161. @!AGPUWrangler 4.7.2
  162. @!AGraphicsDeviceControl 4.7.2
  163. >!ASMBus!C 1.0.18d1
  164. |IOSlowAdaptiveClocking!F 1.0.0
  165. |IONDRVSupport 569.4
  166. >!ASMBusPCI1.0.14d1
  167. >X86PlatformPlugin 1.0.0
  168. >IOPlatformPlugin!F 6.0.0d8
  169. @plugin.IOgPTPPlugin 810.1
  170. |IOEthernetAVB!C 1.1.0
  171. |IOSkywalk!F 1
  172. >usb.networking 5.0.0
  173. >usb.!UHostCompositeDevice 1.2
  174. |Broadcom!BHost!CUSBTransport 7.0.3f5
  175. |IO!BHost!CUSBTransport 7.0.3f5
  176. |IO!BHost!CTransport 7.0.3f5
  177. >!AActuatorDriver 3430.1
  178. >!AHS!BDriver 3430.1
  179. >IO!BHIDDriver 7.0.3f5
  180. |IO!B!F 7.0.3f5
  181. |IO!BPacketLogger7.0.3f5
  182. >!AMultitouchDriver 3430.1
  183. >!AInputDeviceSupport 3430.1
  184. |IOGraphics!F 569.4
  185. >!UMergeNub 900.4.2
  186. |IOAudio!F 300.2
  187. @vecLib.kext 1.2.0
  188. |IOSerial!F 11
  189. |IOSurface 269.6
  190. @filesystems.hfs.encodings.kext 1
  191. >usb.!UHostPacketFilter 1.0
  192. |IOUSB!F900.4.2
  193. >!AThunderboltNHI5.8.6
  194. |IOThunderbolt!F 7.6.0
  195. |IONVMe!F 2.1.0
  196. |IOAHCI!F 290.0.1
  197. >usb.!UXHCIPCI 1.2
  198. >usb.!UXHCI 1.2
  199. >!AEFINVRAM 2.1
  200. >!AEFIRuntime 2.1
  201. |IOHID!F 2.0.0
  202. $quarantine 4
  203. $sandbox 300.0
  204. @kext.!AMatch 1.0.0d1
  205. |IOSMBus!F 1.1
  206. >DiskImages 493.0.0
  207. >!AFDEKeyStore 28.30
  208. >!AEffaceable!S 1.0
  209. >!AKeyStore 2
  210. >!UTDM 489.80.2
  211. |IOSCSIBlockCommandsDevice 422.0.2
  212. >!ACredentialManager 1.0
  213. >KernelRelayHost 1
  214. >!ASEPManager 1.0.1
  215. >IOSlaveProcessor 1
  216. |IOUSBMass!SDriver 157.40.7
  217. |IOSCSIArchitectureModel!F 422.0.2
  218. |IO!S!F 2.1
  219. |IOUSBHost!F1.2
  220. >!UHostMergeProperties 1.2
  221. >usb.!UCommon 1.0
  222. >!ABusPower!C 1.0
  223. |CoreAnalytics!F 1
  224. >!AMobileFileIntegrity 1.0.5
  225. @kext.CoreTrust 1
  226. |IOTimeSync!F 810.1
  227. |IONetworking!F 3.4
  228. |IOReport!F 47
  229. >!AACPIPlatform 6.1
  230. >!ASMC 3.1.9
  231. >watchdog 1
  232. |IOPCI!F 2.9
  233. |IOACPI!F
复制代码


Rank: 2Rank: 2

UID
1790041
帖子
182
PB币
17
贡献
0
技术
0
活跃
647

8周年庆典勋章

发表于 2020-2-5 19:53:11 |显示全部楼层
前排资瓷!本人在 SHP14C7 屏幕下 10.14.2 可驱动的 efi 已经上传至 github,欢迎参考!
https://github.com/Pinming/Dell-Inspiron-7590-With-SHP14C7-Mojave

Rank: 2Rank: 2

UID
4138664
帖子
453
PB币
200
贡献
0
技术
0
活跃
1132
发表于 2020-2-6 08:52:03 来自手机 |显示全部楼层
https://www.tonymacx86.com/threads/fix-coffee-lake-intel-uhd-graphics-630-on-macos-mojave-kernel-panic-due-to-divide-by-zero.261687/

楼主参考的链接里面,没有这个,试试?

Rank: 1

UID
4813548
帖子
108
PB币
8
贡献
0
技术
0
活跃
293
发表于 2020-2-6 09:17:47 来自手机 |显示全部楼层
同uhd630 我的是小新Pro 13'3 i5核显
友达屏幕也是自动重启 现象相同

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-6 12:20:32 |显示全部楼层
znanl 发表于 2020-2-6 08:52
https://www.tonymacx86.com/threads/fix-coffee-lake-intel-uhd-graphics-630-on-macos-mojave-kernel-pan ...

感谢这个我也看了,但是里面修补FB的补丁并不适用

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-7 15:03:13 |显示全部楼层
专爱macOS 发表于 2020-2-6 09:17
同uhd630 我的是小新Pro 13'3 i5核显
友达屏幕也是自动重启 现象相同

外接显示器正常吗

Rank: 1

UID
4862023
帖子
61
PB币
127
贡献
0
技术
0
活跃
321
发表于 2020-2-7 18:09:05 |显示全部楼层
https://github.com/bavariancake/XPS9570-macOS
这里好像也是夏普屏

Rank: 1

UID
4862023
帖子
61
PB币
127
贡献
0
技术
0
活跃
321
发表于 2020-2-7 18:11:48 |显示全部楼层
https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave

Rank: 2Rank: 2

UID
1790041
帖子
182
PB币
17
贡献
0
技术
0
活跃
647

8周年庆典勋章

发表于 2020-2-7 21:03:20 |显示全部楼层
京巴的波斯 发表于 2020-2-7 18:11
https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave

xps15 和 ins-7590 的夏普屏是不一样的。。xps 那个驱动起来应该也没有问题 7590 这个 shp14c7 的屏幕是真的很奇葩。。

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-9 16:39:54 |显示全部楼层
这里有这个问题的发现过程,和其他遇到此问题的人。
https://github.com/tctien342/Dell-Inspiron-7591-Hackintosh/issues/6

Rank: 2Rank: 2

UID
4808612
帖子
207
PB币
122
贡献
0
技术
0
活跃
678
发表于 2020-2-10 16:16:07 |显示全部楼层
问题解决:https://github.com/acidanthera/WhateverGreen/pull/41
感谢FireWolf的帮助

Rank: 1

UID
4862023
帖子
61
PB币
127
贡献
0
技术
0
活跃
321
发表于 2020-2-11 16:11:33 |显示全部楼层
[quote]zheng0000 发表于 2020-2-5 19:53 [url=forum.php?mod=redirect

楼主whatevergreen更新了吗,用你的安装不上15.3跑的最后就重启了

Rank: 2Rank: 2

UID
1790041
帖子
182
PB币
17
贡献
0
技术
0
活跃
647

8周年庆典勋章

发表于 2020-2-11 18:14:53 |显示全部楼层
京巴的波斯 发表于 2020-2-11 16:11
[quote]zheng0000 发表于 2020-2-5 19:53 [url=forum.php?mod=redirect

楼主whatevergreen更新了吗,用你的 ...

1) 是 4K 型号吗? 2)安装的是哪个版本呢?
如果是 4k + 10.15.3,确认一下用的是不是 config-10153.plist
然后我建议先用 0x12345678 的 ID 进入系统用 sudo kextcache -i / 清一遍缓存再正常进入,这时应该没问题
回顶部
Copyright (C) 2005-2021 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛