bugprogrammer / HackintoshBuild

MIT License
245 stars 35 forks source link

编译Kext模块加入 VoodooPS2 和 VoodooI2C #12

Closed stevezhengshiqi closed 4 years ago

stevezhengshiqi commented 4 years ago
stevezhengshiqi commented 4 years ago

在使用Kext下载模块下载VoodooPS2后,会闪退报错,但是Kext已经成功下载并解压。 我这边能力有限,希望 @bugprogrammer 有兴趣的话看一下,非常感谢👍。这边附上错误日志:

Trouble Shooting ``` Process: HackintoshBuild [88609] Path: /Users/USER/*/HackintoshBuild.app/Contents/MacOS/HackintoshBuild Identifier: bugprogrammer.HackintoshBuild Version: 2.2 (1.2) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: HackintoshBuild [88609] User ID: 501 Date/Time: 2020-07-23 12:38:56.516 +0800 OS Version: Mac OS X 10.15.6 (19G73) Report Version: 12 Bridge OS Version: 5.0 (18P50310o) Anonymous UUID: 57510DCA-3CA4-D9AB-3F0D-1EC47AEAEE48 Sleep/Wake UUID: 257CAFC7-8A50-4C64-A03D-AB8FAA8AA765 Time Awake Since Boot: 180000 seconds Time Since Wake: 890 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Illegal instruction: 4 Termination Reason: Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [88609] Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 bugprogrammer.HackintoshBuild 0x000000010f5060c3 closure #1 in closure #1 in ViewControllerUpdate.taskOutPut(_:_:) + 867 (ViewControllerUpdate.swift:370) 1 bugprogrammer.HackintoshBuild 0x000000010f50dd59 thunk for @escaping @callee_guaranteed () -> () + 25 2 libdispatch.dylib 0x00007fff69dc26c4 _dispatch_call_block_and_release + 12 3 libdispatch.dylib 0x00007fff69dc3658 _dispatch_client_callout + 8 4 libdispatch.dylib 0x00007fff69dcecab _dispatch_main_queue_callback_4CF + 936 5 com.apple.CoreFoundation 0x00007fff2fdf0e81 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 6 com.apple.CoreFoundation 0x00007fff2fdb0c87 __CFRunLoopRun + 2028 7 com.apple.CoreFoundation 0x00007fff2fdafe3e CFRunLoopRunSpecific + 462 8 com.apple.HIToolbox 0x00007fff2e9dcabd RunCurrentEventLoopInMode + 292 9 com.apple.HIToolbox 0x00007fff2e9dc7d5 ReceiveNextEventCommon + 584 10 com.apple.HIToolbox 0x00007fff2e9dc579 _BlockUntilNextEventMatchingListInModeWithFilter + 64 11 com.apple.AppKit 0x00007fff2d022039 _DPSNextEvent + 883 12 com.apple.AppKit 0x00007fff2d020880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 13 com.apple.AppKit 0x00007fff2d01258e -[NSApplication run] + 658 14 com.apple.AppKit 0x00007fff2cfe4396 NSApplicationMain + 777 15 bugprogrammer.HackintoshBuild 0x000000010f4c1b3a main + 202 (main.swift:75) 16 libdyld.dylib 0x00007fff69e1ccc9 start + 1 Thread 1:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff69f5ddfa mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff69f5e170 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff2fdb1ef5 __CFRunLoopServiceMachPort + 247 3 com.apple.CoreFoundation 0x00007fff2fdb09c2 __CFRunLoopRun + 1319 4 com.apple.CoreFoundation 0x00007fff2fdafe3e CFRunLoopRunSpecific + 462 5 com.apple.AppKit 0x00007fff2d1c3954 _NSEventThread + 132 6 libsystem_pthread.dylib 0x00007fff6a021109 _pthread_start + 148 7 libsystem_pthread.dylib 0x00007fff6a01cb8b thread_start + 15 Thread 2:: Dispatch queue: com.apple.NSFileHandle.1 0 libsystem_kernel.dylib 0x00007fff69f5ddfa mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff69f5e170 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff2fd96bc2 CFRunLoopWakeUp + 246 3 libdispatch.dylib 0x00007fff69dc3658 _dispatch_client_callout + 8 4 libdispatch.dylib 0x00007fff69dc5818 _dispatch_continuation_pop + 414 5 libdispatch.dylib 0x00007fff69dd54be _dispatch_source_invoke + 2084 6 libdispatch.dylib 0x00007fff69dc8af6 _dispatch_lane_serial_drain + 263 7 libdispatch.dylib 0x00007fff69dc95d6 _dispatch_lane_invoke + 363 8 libdispatch.dylib 0x00007fff69dd2c09 _dispatch_workloop_worker_thread + 596 9 libsystem_pthread.dylib 0x00007fff6a01da3d _pthread_wqthread + 290 10 libsystem_pthread.dylib 0x00007fff6a01cb77 start_wqthread + 15 Thread 3:: Dispatch queue: com.apple.root.default-qos 0 libsystem_kernel.dylib 0x00007fff69f60062 __psynch_mutexwait + 10 1 libsystem_pthread.dylib 0x00007fff6a01e917 _pthread_mutex_firstfit_lock_wait + 83 2 libsystem_pthread.dylib 0x00007fff6a01c937 _pthread_mutex_firstfit_lock_slow + 222 3 com.apple.CoreFoundation 0x00007fff2fdb0a2d __CFRunLoopRun + 1426 4 com.apple.CoreFoundation 0x00007fff2fdafe3e CFRunLoopRunSpecific + 462 5 com.apple.Foundation 0x00007fff324ff790 -[NSConcreteTask waitUntilExit] + 325 6 bugprogrammer.HackintoshBuild 0x000000010f5044e1 closure #1 in ViewControllerUpdate.runBuildScripts(_:_:) + 673 (ViewControllerUpdate.swift:347) 7 bugprogrammer.HackintoshBuild 0x000000010f50dd59 thunk for @escaping @callee_guaranteed () -> () + 25 8 libdispatch.dylib 0x00007fff69dc26c4 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x00007fff69dc3658 _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff69dc54b0 _dispatch_queue_override_invoke + 763 11 libdispatch.dylib 0x00007fff69dd1957 _dispatch_root_queue_drain + 326 12 libdispatch.dylib 0x00007fff69dd2097 _dispatch_worker_thread2 + 92 13 libsystem_pthread.dylib 0x00007fff6a01d9f7 _pthread_wqthread + 220 14 libsystem_pthread.dylib 0x00007fff6a01cb77 start_wqthread + 15 Thread 4: 0 libsystem_pthread.dylib 0x00007fff6a01cb68 start_wqthread + 0 Thread 5: 0 libsystem_pthread.dylib 0x00007fff6a01cb68 start_wqthread + 0 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x1b560246bea800c9 rbx: 0x0000000000000001 rcx: 0x000000010000078c rdx: 0x8000000200000005 rdi: 0x0000600002c04e40 rsi: 0x00007fff7419fdd3 rbp: 0x00007ffee073e460 rsp: 0x00007ffee073e3d0 r8: 0x0000000000000050 r9: 0x0000000000000013 r10: 0x00007fff877558b8 r11: 0x00007fff2fd4f2f7 r12: 0x00007ffee073e3d0 r13: 0x0000000000000000 r14: 0x000000010f565038 r15: 0x4000600002c04e40 rip: 0x000000010f5060c3 rfl: 0x0000000000010202 cr2: 0x0000700001d78458 Logical CPU: 4 Error Code: 0x00000000 Trap Number: 6 ```
stevezhengshiqi commented 4 years ago

发现问题了,download.command 返回 dirname 的时候要对 VoodooPS2 做特殊处理

Arabaku commented 4 years ago

感谢 Pr。本项目目前正在适配 Big Sur,出于以下几点考虑暂时留作后续处理,或修改新增编译条目为现有方案。 1、关于 Lilu 的编译逻辑,bootstrap.sh 暂时尚未针对 Xcode 12.0 beta 3 的 Command Line Tools 进行适配,缺少 -arch x86_64 参数会导致编译过程失败。 2、关于 VoodooInput 的编译逻辑,在上述同环境下 bootstrap.sh 报 CodeSign Error。 3、raw 域名访问不通畅。

bugprogrammer commented 4 years ago

感谢@stevezhengshiqi,适配Big Sur完成后,再行考虑处理。因为目前在处理bug以及新功能Kexts安装模块。Big Sur去除了一部分无线网卡支持,所以安装旧版本Kexts以及重建缓存适配优先级最高。

stevezhengshiqi commented 4 years ago

@Arabaku @bugprogrammer 感谢大佬们的指点,已将 Lilu 编译逻辑回滚回原有方案,并且使用了相同的逻辑编译 VoodooInput。谢谢大佬们的付出,期待对 Big Sur 的适配。