Jump to content
About Just Joined group Read more... ×
vit9696

Lilu — kext and process patcher

371 posts in this topic

Recommended Posts

12 minutes ago, vit9696 said:

Redo the panic with the latest debug binaries please.

Retry with debug version lilu v1.3.3 + weg v1.2.6, panic log:

Anonymous UUID:       BD838D05-146F-2A90-40D5-F5C700EC7110

Fri Feb  8 00:39:42 2019

*** Panic Report ***
panic(cpu 0 caller 0xffffff800ecdbe8d): Kernel trap at 0xffffff7f9291a58c, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff7f929899ea, CR3: 0x00000004a49b301d, CR4: 0x00000000003626e0
RAX: 0xffffff7f9291a588, RBX: 0xffffff81bf0a7000, RCX: 0x000000000000000a, RDX: 0x0000000000000018
RSP: 0xffffff922f753560, RBP: 0xffffff922f753560, RSI: 0xffffff8043f7eb80, RDI: 0x0000000000000002
R8:  0xffffff922f7535bc, R9:  0x0000000000000780, R10: 0x0000000000000438, R11: 0x0000000000000780
R12: 0xffffff81bf0a95ac, R13: 0xffffff8043f7eb80, R14: 0xffffff8042219600, R15: 0xffffff922f753608
RFL: 0x0000000000010286, RIP: 0xffffff7f9291a58c, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0xffffff7f929899ea, Error code: 0x0000000000000003, Fault CPU: 0x0, PL: 0, VF: 2

Backtrace (CPU 0), Frame : Return Address
0xffffff922f753030 : 0xffffff800ebae9dd mach_kernel : _handle_debugger_trap + 0x47d
0xffffff922f753080 : 0xffffff800ecea355 mach_kernel : _kdp_i386_trap + 0x155
0xffffff922f7530c0 : 0xffffff800ecdbc6a mach_kernel : _kernel_trap + 0x50a
0xffffff922f753130 : 0xffffff800eb5bc90 mach_kernel : _return_from_trap + 0xe0
0xffffff922f753150 : 0xffffff800ebae3f7 mach_kernel : _panic_trap_to_debugger + 0x197
0xffffff922f753270 : 0xffffff800ebae243 mach_kernel : _panic + 0x63
0xffffff922f7532e0 : 0xffffff800ecdbe8d mach_kernel : _kernel_trap + 0x72d
0xffffff922f753450 : 0xffffff800eb5bc90 mach_kernel : _return_from_trap + 0xe0
0xffffff922f753470 : 0xffffff7f9291a58c as.vit9696.Lilu : __ZN13KernelPatcher20tempExecutableMemoryE + 0xcc
0xffffff922f753560 : 0xffffff7f929c1682 as.vit9696.WhateverGreen : __ZN4IGFX20wrapComputeLaneCountEPvS0_jiPi + 0x92
0xffffff922f7535a0 : 0xffffff7f92fff2ac com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN31AppleIntelFramebufferController11SetupClocksEP21AppleIntelFramebufferP21AppleIntelDisplayPathPK29IODetailedTimingInformationV2PNS_10CRTCParamsE + 0x39e
0xffffff922f7535f0 : 0xffffff7f92ffe3dc com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN31AppleIntelFramebufferController9hwSetModeEP21AppleIntelFramebufferP21AppleIntelDisplayPathPK29IODetailedTimingInformationV2 + 0xea
0xffffff922f753960 : 0xffffff7f92fd8a99 com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN21AppleIntelFramebuffer14setDisplayModeEii + 0x47f
0xffffff922f7539c0 : 0xffffff7f92ea0565 com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer16doSetDisplayModeEii + 0xb3
0xffffff922f753a00 : 0xffffff7f92ea043a com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer17extSetDisplayModeEP8OSObjectPvP25IOExternalMethodArguments + 0x9a
0xffffff922f753a90 : 0xffffff800f284d28 mach_kernel : __ZN12IOUserClient14externalMethodEjP25IOExternalMethodArgumentsP24IOExternalMethodDispatchP8OSObjectPv + 0x1d8
0xffffff922f753ae0 : 0xffffff7f92ea6438 com.apple.iokit.IOGraphicsFamily : __ZN23IOFramebufferUserClient14externalMethodEjP25IOExternalMethodArgumentsP24IOExternalMethodDispatchP8OSObjectPv + 0x74
0xffffff922f753b30 : 0xffffff800f28e1d2 mach_kernel : _is_io_connect_method + 0x212
0xffffff922f753c70 : 0xffffff800ec962a6 mach_kernel : _iokit_server_routine + 0x5e46
0xffffff922f753d80 : 0xffffff800ebb421c mach_kernel : _ipc_kobject_server + 0x12c
0xffffff922f753dd0 : 0xffffff800eb8ec41 mach_kernel : _ipc_kmsg_send + 0xd1
0xffffff922f753e50 : 0xffffff800eba34ae mach_kernel : _mach_msg_overwrite_trap + 0x3ce
0xffffff922f753ef0 : 0xffffff800ecc3007 mach_kernel : _mach_call_munger64 + 0x257
0xffffff922f753fa0 : 0xffffff800eb5c476 mach_kernel : _hndl_mach_scall64 + 0x16
      Kernel Extensions in backtrace:
         as.vit9696.Lilu(1.3.3)[7EF6F471-1BD8-3456-9074-66EB028D5EE9]@0xffffff7f92910000->0xffffff7f92988fff
         as.vit9696.WhateverGreen(1.2.6)[76B394AE-05C5-3ED3-8489-4EC73630F74E]@0xffffff7f929bd000->0xffffff7f92a37fff
            dependency: as.vit9696.Lilu(1.3.3)[7EF6F471-1BD8-3456-9074-66EB028D5EE9]@0xffffff7f92910000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[39E2286B-5167-30C4-A36A-0BAEBD2C2B1B]@0xffffff7f8f4eb000
         com.apple.iokit.IOGraphicsFamily(530.59)[AD9697FA-4A10-3E28-BD0B-2332C31BCE61]@0xffffff7f92e85000->0xffffff7f92ecffff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[39E2286B-5167-30C4-A36A-0BAEBD2C2B1B]@0xffffff7f8f4eb000
         com.apple.driver.AppleIntelSKLGraphicsFramebuffer(12.0.8)[FD4E977D-A29B-3939-B2E6-64B473279EC2]@0xffffff7f92fc0000->0xffffff7f931e0fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[39E2286B-5167-30C4-A36A-0BAEBD2C2B1B]@0xffffff7f8f4eb000
            dependency: com.apple.iokit.IOACPIFamily(1.4)[CBA0870F-6617-3D78-9075-26A2E8A9B691]@0xffffff7f8f4e2000
            dependency: com.apple.iokit.IOAcceleratorFamily2(404.8)[D5E9849D-22E0-380F-B560-A115614960D5]@0xffffff7f92f11000
            dependency: com.apple.iokit.IOReportFamily(47)[0578B054-D103-32EB-B468-D145EFCE0AA2]@0xffffff7f8f4db000
            dependency: com.apple.AppleGraphicsDeviceControl(3.30.12)[505935DB-B28B-3C9E-8A5C-3D38D70055CD]@0xffffff7f92fb6000
            dependency: com.apple.iokit.IOGraphicsFamily(530.59)[AD9697FA-4A10-3E28-BD0B-2332C31BCE61]@0xffffff7f92e85000

BSD process name corresponding to current thread: WindowServer
Boot args: dart=0 brcmfx-country=#a -lilubetaall agdpmod=vit9696 -v keepsyms=1 debug=0x100 -rootdmg-ramdisk auth-root-dmg=file:///macOS%20Install%20Data/Locked%20Files/BaseSystem.dmg

Mac OS version:
18E184e

Kernel version:
Darwin Kernel Version 18.5.0: Thu Jan 31 01:17:54 PST 2019; root:xnu-4903.250.319~62/RELEASE_X86_64
Kernel UUID: 65EC7A82-220E-3FD8-91E2-5AECA8B2FEF1
Kernel slide:     0x000000000e800000
Kernel text base: 0xffffff800ea00000
__HIB  text base: 0xffffff800e900000
System model name: MacBookPro13,3 (Mac-A5C67F76ED83108C)

System uptime in nanoseconds: 52748949770
last loaded kext at 52090521544: com.apple.driver.AppleGraphicsDevicePolicy	3.30.12 (addr 0xffffff7f93666000, size 81920)
loaded kexts:
org.rehabman.voodoo.driver.PS2Mouse	1.9.1
org.rehabman.voodoo.driver.PS2Trackpad	1.9.1
org.rehabman.voodoo.driver.PS2Keyboard	1.9.1
com.no-one.BrcmPatchRAM2	2.2.10
com.no-one.BrcmFirmwareStore	2.2.10
org.rehabman.driver.FakePCIID	1.3.14
com.alexandred.VoodooI2C	2.1.4
org.coolstar.VoodooGPIO	1.1
org.rehabman.voodoo.driver.PS2Controller	1.9.1
as.vit9696.SMCProcessor	1.0.2
as.vit9696.AppleALC	1.3.5
as.lvs1974.AirportBrcmFixup	1.1.9
com.XPS.VerbStub	1.0.3
as.lvs1974.BT4LEContiunityFixup	1.1.2
as.vit9696.WhateverGreen	1.2.6
org.vanilla.driver.CPUFriend	1.1.5
ru.usrsse2.SMCBatteryManager	1
com.alexandred.VoodooI2CServices	1
ru.usrsse2.SMCLightSensor	1
as.vit9696.VirtualSMC	1.0.2
as.lvs1974.HibernationFixup	1.2.4
xyz.racermaster.NoTouchID	1.0.1
as.vit9696.Lilu	1.3.3
com.apple.driver.AppleGraphicsDevicePolicy	3.30.12
com.apple.driver.pmtelemetry	1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	6.0.11d3
com.apple.driver.X86PlatformShim	1.0.0
com.apple.driver.AGPM	110.25.2
com.apple.driver.ApplePlatformEnabler	2.7.0d0
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleHDAHardwareConfigDriver	282.51
com.apple.driver.AppleHV	1
com.apple.driver.AGDCBacklightControl	3.30.12
com.apple.driver.AppleHDA	282.51
com.apple.driver.ACPI_SMC_PlatformPlugin	1.0.0
com.apple.driver.AppleMCCSControl	1.5.6
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleIntelPCHPMC	2.0.1
com.apple.driver.AppleSMCLMU	212
com.apple.driver.AppleLPC	3.1
com.apple.driver.AppleIntelSKLGraphicsFramebuffer	12.0.8
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.AppleFIVRDriver	4.1.0
com.apple.driver.AppleBacklight	170.12.11
com.apple.filesystems.ntfs	3.13
com.apple.nke.webcontentfilter	5
com.apple.private.KextAudit	1.0
com.apple.driver.DiskImages.ReadWriteDiskImage	493.0.0
com.apple.driver.DiskImages.SparseDiskImage	493.0.0
com.apple.driver.DiskImages.UDIFDiskImage	493.0.0
com.apple.driver.DiskImages.HTTPBackingStore	493.0.0
com.apple.driver.DiskImages.FileBackingStore	493.0.0
com.apple.driver.DiskImages.RAMBackingStore	493.0.0
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.filesystems.hfs.kext	407.200.4
com.apple.BootCache	40
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.AppleSystemPolicy	1.0
com.apple.filesystems.apfs	945.250.122
com.apple.driver.AirPort.BrcmNIC	1400.1.1
com.apple.driver.AppleAHCIPort	329.200.2
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleACPIEC	6.1
com.apple.driver.AppleACPIButtons	6.1
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleHPET	1.8
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	190
com.apple.security.TMSafetyNet	8
com.apple.driver.AppleGraphicsControl	3.30.12
com.apple.iokit.IOSerialFamily	11
com.apple.iokit.IOAVBFamily	740.1
com.apple.plugin.IOgPTPPlugin	740.2
com.apple.iokit.IOEthernetAVBController	1.1.0
com.apple.iokit.IOSkywalkFamily	1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport	6.0.11d3
com.apple.iokit.IOBluetoothHostControllerUSBTransport	6.0.11d3
com.apple.iokit.IOBluetoothHostControllerTransport	6.0.11d3
com.apple.driver.DspFuncLib	282.51
com.apple.kext.OSvKernDSPLib	528
com.apple.driver.IOPlatformPluginLegacy	1.0.0
com.apple.AppleGPUWrangler	3.30.12
com.apple.driver.AppleSMBusController	1.0.18d1
com.apple.driver.AppleUSBAudio	315.6
com.apple.driver.AppleHDAController	282.51
com.apple.iokit.IOHDAFamily	282.51
com.apple.iokit.IOAudioFamily	206.5
com.apple.vecLib.kext	1.2.0
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d8
com.apple.AppleGraphicsDeviceControl	3.30.12
com.apple.iokit.IOAcceleratorFamily2	404.8
com.apple.iokit.IOSurface	255.4.2
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.driver.AppleBacklightExpert	1.1.0
com.apple.iokit.IONDRVSupport	530.51
com.apple.iokit.IOGraphicsFamily	530.59
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.driver.DiskImages.KernelBacked	493.0.0
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.usb.networking	5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleXsanScheme	3
com.apple.iokit.IOAHCIBlockStorage	301.250.5
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.iokit.IO80211Family	1200



EOF
Model: MacBookPro13,3, BootROM 251.0.0.0.0, 4 processors, Intel Core i7, 2.59 GHz, 16 GB, SMC 2.38f7
Graphics: Intel HD Graphics 530, Intel HD Graphics 530, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR4, 2400 MHz, Corsair, CMSX16GX4M2A2400C16
Memory Module: BANK 1/DIMM0, 8 GB, DDR4, 2400 MHz, Corsair, CMSX16GX4M2A2400C16
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x24), Broadcom BCM43xx 1.0 (7.77.61.1 AirPortDriverBrcmNIC-1305.2)
Bluetooth: Version 6.0.10f1, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: Crucial_CT525MX300SSD1, 525.11 GB
USB Device: USB 3.0 Bus
USB Device: Integrated_Webcam_HD
USB Device: BCM2045A0
USB Device: USB Receiver
Thunderbolt Bus: 

 

Share this post


Link to post
Share on other sites
Advertisement
15 minutes ago, vit9696 said:

Ok, please upload AppleIntelSKLGraphicsFramebuffer.kext from /S/L/E somewhere.

emmm...I think the panic was generated by [Boot macOS Install from xxxxx], not from [Boot macOS from xxxxx], where should I get the AppleIntelSKLGraphicsFramebuffer.kext ?

 

I mount the BaseSystem.dmg

$ cd /macOS\ Install\ Data
$ sudo hdiutil attach Locked\ Files/BaseSystem.dmg
$ cd /Volumes/macOS\ Base\ System/System/Library/Extensions
$ cp -R AppleIntelSKLGraphicsFramebuffer.kext ~/Downloads

then copy from /S/L/E:

AppleIntelSKLGraphicsFramebuffer.kext.zip

Edited by darkhandz
complete command line

Share this post


Link to post
Share on other sites
20 minutes ago, vit9696 said:

Awesome work, the panic gone away.

I can get into the 10.14.4 db2 installation and finished the update, thanks for your help :)

Edited by darkhandz

Share this post


Link to post
Share on other sites

I'm having a devil of a time with a real Mac Pro with Mojave (10.14) and a Gigabyte AORUS Radeon RX 580 8GB (GV-RX580AORUS-8GD). I'm getting panics like this with various applications and games:

panic(cpu 0 caller 0xffffff8014ad01dd): "PHYSMAP_PTOV bounds exceeded, 0xffffff96fffffc00, 0xfffffe9700000000, 0xfffffeb800000000"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.261.4/osfmk/i386/pmap.h:515

Apple seems to be a real putz about the situation and are washing their hands of the issue. Is it possible that running Lilu with WhateverGreen (previously Shiki) would resolve such issues on a Mac Pro?  Are there any gotchas that one should be aware of when loading these kexts up without Clover?  Would I need to load this directly into the system kexts, non-system library kexts or something else with EFI?

Share this post


Link to post
Share on other sites

@vit9696

I have a questions:

It's possible to create a plugins bridging the DDC/CI protocol to Apple's native brightness control without any software like monitorcontrol or ddcctl?
 

Share this post


Link to post
Share on other sites

Sure, with injectPayload API into the user process relevant for this part (similarly to Cydia Tweaks). You will have to write userspace bootstrap code on your own, however.

Share this post


Link to post
Share on other sites
15 minutes ago, vit9696 said:

Sure, with injectPayload API into the user process relevant for this part (similarly to Cydia Tweaks). You will have to write userspace bootstrap code on your own, however.


Thank you for your reply.
Have nice day!

Share this post


Link to post
Share on other sites
On 6/7/2019 at 4:30 AM, vit9696 said:

Sure, with injectPayload API into the user process relevant for this part (similarly to Cydia Tweaks). You will have to write userspace bootstrap code on your own, however.


I try to compile Lilu.kext from latest Commit in github with XCode 10.2.1. But it can be loaded, ofcourse all plugin can't be loaded too. Instant restart with OpenCore bootloader. 

Share this post


Link to post
Share on other sites
5 minutes ago, Andres ZeroCross said:


I try to compile Lilu.kext from latest Commit in github with XCode 10.2.1. But it can be loaded, ofcourse all plugin can't be loaded too. Instant restart with OpenCore bootloader. 

I am using the latest commits of Lilu, AppleALC, WEG, CPUFriend and OpenCore and no issues, you might want to try the latest commit Debug version of Lilu and see what its failing on. 

Share this post


Link to post
Share on other sites
10 minutes ago, Pavo said:
I am using the latest commits of Lilu, AppleALC, WEG, CPUFriend and OpenCore and no issues, you might want to try the latest commit Debug version of Lilu and see what its failing on. 

 


All plugin is latest commit, if i used latest commit (one hour ago) with Release or debug version, it seem lilu.kext fail to load, of course virtualsmc, whatevergreen and other fail too.

I will reuse my latest lilu.kext from 18 july 2018 :)




3bb7736091f1dcf3dbb93c1bcbb59ec3.jpg



Sent from my iPhone using Tapatalk

 

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites
25 minutes ago, Pavo said:

I am using the latest commits of Lilu, AppleALC, WEG, CPUFriend and OpenCore and no issues, you might want to try the latest commit Debug version of Lilu and see what its failing on. 


Please use latest lilu.kext with latest commit and boot to Mojave :)

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites
17 minutes ago, Andres ZeroCross said:


Please use latest lilu.kext with latest commit and boot to Mojave :)

I am using latest commits of Lilu and all other plugins from 20 minutes ago but booting Catalina beta 4. Still no issues

Share this post


Link to post
Share on other sites
7 minutes ago, Pavo said:

I am using latest commits of Lilu and all other plugins from 20 minutes ago but booting Catalina beta 4. Still no issues


Ok this is the conditions
1. Use latest commit of all plugin (VirtualSMC.kext, CPUfriend.kext, CpuProvider.kext, WhateverGreen.kext and AppleALC.kext) + latest commit lilu.kext to Mojave. Result : stuck like picture above,, ACPICPU (mostly because VirtualSMC fail to loaded). I try to just change lilu.kext only from my latest compile (18 July 2019). It's boot ok, even with latest commit of plugin. So there is no problem about all plugin kext.

2. Use latest commit of all plugin (VirtualSMC.kext, CPUfriend.kext, CpuProvider.kext, WhateverGreen.kext and AppleALC.kext) + latest commit lilu.kext to Mojave. Result,, no stuck but just get black screen :) It's look VirtualSMC.kext is loaded but WhateverGreen.kext is not loaded. I can't check IOREG because display is black. If i press random keyboard, then i can hear sound,, so it boot to desktop. I try to just change lilu.kext again from my latest compile (18 July 2019). It's boot ok, even with latest commit of plugin too

My conclusions is,, newest commit of lilu.kext is 100 percent can be loaded into Mojave in my Specifications, but in Catalina, several Plugin still can loaded. I don't know the detail, maybe you can try it in Mojave. @Matgen84 get trouble too with Lilu.kext,, but i give him my old Lilu.kext (Compiled in 18 July 2019) and it boots ok.

I have compiled all kexts with XCode 10.2.1 in Mojave

Sorry for bad english :)

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites
13 minutes ago, Pavo said:

I am using latest commits of Lilu and all other plugins from 20 minutes ago but booting Catalina beta 4. Still no issues

 

Ok, vit make new commit 3 mnutes ago, i will try it now
image.thumb.png.ea94396a2d4d5a5dcf61e3dbe06ec813.png

 

image.png.3de622bef0ac98afcf7c8fc3d347a239.png

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites

Hello.

How I can compile source files to Lilu.kext file? I clone repo from github, open "capstone" folder in terminal and execute "make" command, but I have error.

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libcapstone.dylib] Error 1

 In XCode 10.2.1 I execute Build and build finished successful, but I can't see Lilu.kext ((

Снимок экрана 2019-07-26 в 23.30.58.png

Share this post


Link to post
Share on other sites

Hi,

 

I have updated Lilu from 1.3.7 to 1.3.8 and it would not boot anymore.

 

Any idea?

Something to update too?

IMG_9101.jpg

Edited by Carbonimax
tipo

Share this post


Link to post
Share on other sites
1 hour ago, Carbonimax said:

Hi,

 

I have updated Lilu from 1.3.7 to 1.3.8 and it would not boot anymore.

 

Any idea?

Something to update too?

IMG_9101.jpg

 

Could you post your EFI folder, please.

Share this post


Link to post
Share on other sites
34 minutes ago, Carbonimax said:

 

Here it is

EFI.zip

 

First, update Clover to latest release r5091. Lilu and his plugins seems to be update.

 

You have to choose between Fakesmc and virtualsmc in Kexts/Other: remove one + his plugins; in drivers/UEFI, remove all FileFault drivers (like virutalsmc.efi for example).

 

Post your preboot.log after that. Please.

 

 

Share this post


Link to post
Share on other sites
32 minutes ago, Carbonimax said:

I update Clover to r5092 and remove VirtualSMC and FileVault drivers and it works.

 

Merci ;)

 

You"re Welcome :)

Share this post


Link to post
Share on other sites

@vit9696 Can you explain more about the new OSObject::Dispatch function in macOS 10.15 and when I need to use your stub code?

Edited by baohiep

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By miliuco
      macOS Catalina on: Gigabyte Z390 Aorus Elite motherboard + i3 9100 Coffee Lake processor + AMD Radeon RX 580 graphics card + fenvi FV-T919 WIFI and Bluetooth card + Clover r5121 + AppleALC, Lilu, VirtualSMC, XHCI-unsupported, IntelMausiEthernet, USBPorts and WhateverGreen.

      Hardware
       
      Gigabyte Z390 Aorus Elite motherboard: support for Intel 8 and 9 generation processors, Realtek ALC1220 audio, Intel I219V Ethernet, 4 PCI-E slots, 2, 3 and 3.1 USB ports, Intel Graphics 630 integrated graphics card 9th generation Intel i3 9100 processor Nox Hummer H-212 120mm CPU Fan Corsair Vengeance LPX 3200 MHz 16 GB RAM (2 x 8) AMD Radeon RX 580 8GB graphics card Wifi and Bluetooth Card Fenvi FV-T919 Mars Gaming MPII850 Power Supply (850W) Samsung EVO 860 SSD disk.
        What works well?

      Pretty much everything I've tried:
      Radeon RX 580: 3 DP ports and 1 HDMI port, output to 2 displays simultaneously Shutdown, reboot and sleep Integrated sound and HDMI sound output USB ports (2, 3 and 3.1) Enable TRIM for SSD drive AirDrop, Sidecar, etc.
        What is not working well?

      Integrated Intel UHD Graphics 630 card: see below.

      BIOS settings (version F9)

      I only write down the significant options, there are many other options that do not influence macOS and that you can configure to your liking (for example the LEDs on the board, etc.).
      XMP Profile: Auto / Profile 1 / Enabled (eXtreme Memory Profile, I use 3200 MHz memory and without this profile it works at 2600) Platform Power Management: Disabled VT-d: Disabled XHCI Hand-Off: Enabled Legacy USB Support: Enabled Network Stack: Disabled CSM: Disabled Secure Boot: Disabled Fast Boot: Disabled OS Type: Other OS Wake on LAN: Disabled Integrated Graphics: Auto Initial Display Output: PCIe 1 Slot DVMT Pre-Allocated: 256M or higher.
        EFI folder for Clover (installation USB stick / SSD disk with Catalina)

      SSDT

      Some SSDT.aml files in EFI/CLOVER/ACPI/patched.

      SSDT-DTPG.aml (helper module for SSDT)
      SSDT-EC.aml (USB power charge)
      SSDT-UIAC.aml (USB port mapping)
      SSDT-USBX.aml (USB port mapping)
      SSDT-PMC.aml got from OpenCore to have native NVRAM on Z390 mother boards
      SSDT-Z390-RP21-SLOT4-TB3HP.aml (Thunderbolt devices hot plug) it can be skipped.

      Drivers in EFI/CLOVER/drivers/UEFI

      ApfsDriverLoader.efi
      AudioDxe.efi
      DataHubDxe.efi
      FSInject.efi
      VBoxHfs.efi
      SMCHelper.efi
      OcQuirks.efi *
      OpenRuntime.efi *
      OcQuirks.plist *.

      * see OC Quirks below.

      Extensions in EFI / CLOVER / kexts / Other

      AppleALC.kext
      IntelMausi.kext
      Lilu.kext
      USBPorts.kext
      VirtualSMC.kext
      WhateverGreen.kext
      XHCI-unsupported.kext.

      NOTE 1: The USBPorts.kext extension along with 3 aml files included in patched folder (SSDT-EC.aml, SSDT-UIAC.aml y SSDT-USBX.aml) were generated by joanserramiret with the configuration of USB ports for this motherboard so that the limit defined by macOS of 15 ports is not exceeded. Leaves the system configured in this way:
      Enabled all USB2 ports that are not part of a USB3 port (1 internal for BT + 4 rear that are together + 2 on the front) Enabled the USB2 ports that are part of the 2 rear red USB3.1 ports Disabled the USB2 ports that are part of the 4 rear blue USB3 ports Enabled all USB3 ports except the internal one for USB type C connection. Summary: Rear blue ports do not recognize USB2 devices.

      NOTE 2: XHCI-unsupported.kext is required for XHC chipsets whose Device ID is not included in macOS. Depending on the USB driver of your board, it may be necessary to install some additional extension:
      8086: 8CB1 on macOS 10.11.1 or lower: XHCI-9-series.kext 8086: 8D31, 8086: A2AF, 8086: A36D, 8086: 9DED: XHCI-unsupported.kext 8086: 1E31, 8086: 8C31, 8086: 8CB1, 8086: 8D31, 8086: 9C31, 8086: 9CB1: FakePCIID.kext + FakePCIID_XHCIMux.kext. This board (generally Z390 chipset boards) carries the USB 3.1 controller with device ID A36D so the XHCI-unsupported kext is required. You can check your device ID at
      /System/Library/Extensions/IOUSBHostFamily.kext/Contents/Plugins/AppleUSBXHCIPCI.kext/Contents/Info.plist Config.plist file

      The differential options are:

      Acpi> DSDT: change HECI to IMEI / change SAT0 to SATA
      Acpi> Fixes: FixShutdown
      Acpi> Drop OEM_DSM
      Acpi> Drop Tables> DMAR / MATS
      Acpi> SSDT> PluginType selected (Plugin Type number blank)
      Acpi> Halt Enabler / FixHeaders

      Boot> Boot Arguments> slide = 0 / darkwake = 8

      Devices> USB> Inject / FixOwnership / HighCurrent
      Devices> Audio> Inject 11

      Kernel and Kext Patches> Apple RTC and KernelXCPM selected
      Kernel and Kext Patches> KextsToPatch> Name: com.apple.driver.AppleAHCIPort / Find: 40600200 / Replace: 00000000 / Comment: SATA hot plug
      Kernel and Kext Patches> KextsToPatch> Name: com.apple.driver.AppleAHCIPort / Find: 45787465 726E616C / Replace: 496E7465 726E616C / SATA orange icons

      SMBIOS> iMac19.1

      System Parameters> Inject Kexts: Yes / Inject System ID: selected.

      Quirks > select AvoidRuntimeDefrag – DevirtualiseMmio – EnableSafeModeSlide – ForceExitBootServices – ProtectUefiServices – ProvideConsoleGopEnable – ProvideCustomSlide – SetupVirtualMap – SyncRuntimePermissions and set ProvideMaxSlide = 0. *

      Set true DevirtualiseMmio and ProtectUefiServices in OcQuirks.plist file (recommended on Z390 mother boards).

      * see OC Quirks below.

      macOS Catalina install

      There are many publications with instructions so I will only comment on a few specific details.
      The installation USB memory must have a GUID partition scheme so that the board's UEFI can boot from it. I have prepared the USB with the createinstallmedia method + the application "Install macOS Catalina" in the Applications folder The device is USB 3 and, connected to the front USB 3 port, it performs the task quite quickly I have used Clover r5121 which is currently the latest version. The EFI folder of the installation USB can be the same as that of the hard disk with 2 differences: Acpi> SSDT> PluginType deselected and Acpi> Boot leave Default Boot Volume blank and Timeout -1 (so that no volume will boot automatically from the Clover menu). To mount the EFI partition (of the disk or the USB device) I have used Clover Configurator which makes this task very simple or the command line (diskutil), first finding out what disk and partition number is the EFI (diskutil list) and showing it later (mountdisk):
      sudo diskutil list
      sudo diskutil mountdisk / dev / disk2s3  
      RX 580

      Although my RX 580 card is a model from the XFX brand, known for using custom VBios and giving problems in macOS, in my case it seems to work well with Lilu and WhatEverGreen. Booting the operating system it does not show artifacts, the 3 DP ports and the only HDMI port work, you can send the image simultaneously to 2 screens (I have not tried more) with the usual duplication options, yo can send sound in addition to image to one TV by HDMI, during the installation of the operating system it works correctly provided that Lilu and WhatEverGreen are in the USB device, etc. GeekBench 5 Scores: Metal 50100 / OpenCL 44100. As a comparison, the integrated card does not reach 4800 in Metal.
      Regarding the hardware decoding of H264 and HEVC videos, the Hackintool tool and the VideoProc application report that it is not supported although the playback of files of both types with rates of up to 20 mbps is correct so I suspect that it actually encodes well. In order for hardware decoding to appear as supported in the commented applications, the integrated Intel Graphics 630 card must be enabled even if it is disconnected in headless mode (using the RX 580 card as primary sending image to the screen).
       


      Sound

      This board incorporates the Realtek ALC1220 chip that needs the AppleALC extension to work. AppleALC is a Lilu plugin so both must be properly installed.
      Note: Clover > Devices > Audio > Inject 11 or 13 or 15. I’ve tried several layouts and this are the only valid at least in my case.
      Some users have commented that the system does not load AppleALC and they have no sound despite having the extensions in EFI / CLOVER / kexts / Other. In these cases it can be successful to install AppleALC and Lilu in / Library / Extensions and rebuild the extensions cache with Hackintool (a very convenient way to do it) or with this Terminal command:
      sudo spctl --master-disable; sudo mount -uw /; killall Finder; sudo chown -v -R root: wheel / System / Library / Extensions; sudo touch / System / Library / Extensions; sudo chmod -v -R 755 / Library / Extensions; sudo chown -v -R root: wheel / Library / Extensions; sudo touch / Library / Extensions; sudo kextcache -i /  
      What this command does is disable Gatekeeper, mount the system disk in read / write mode, repair permissions on the extensions folders and rebuild the cache. But all of that is done by Hackintool with less work on our part.

      Ethernet

      This board carries the Intel I219V chip that works well with the IntelMausiEthernet extension.

      Wifi & Bluetooth

      I use a Fenvi FV T-919 mini PCI-E card that carries both wifi and bluetooth chips. This card works perfectly in macOS without needing anything other than placing it on the board because it is recognized as Airport Extreme and Bluetooth Apple. Has its own article on perez987.

      Disks

      Samsung EVO 860 SSD. It is a solid state disk with references to work well in Mac. In my case it works well, with a read speed of 430 and a write speed of 250. I have tried faster SSDs but they have given problems to install Catalina, instead with the EVO 860 everything has worked perfectly.

      Integrated graphics

      Integrated Intel Graphics 630 card: we can to make it work correctly by adding some properties in Clover's Devices tab. For it to work you have to:

      - enable it on the board as primary graphics: Initial Display Output IGFX instead of PCIe 1 Slot (actually this is the final step after modifying config.plist)
      - add in config.plist: Boot> Boot Arguments> igfxonln = 1
      - apply a patch (video and audio) in config.plist: Devices> Properties. It is easier to do it from the config.plist file in text mode than from Clover Configurator. With the file open as text find the lines
      <key>Audio</key> <dict> <key>ResetHDA</key> <false/> <key>Inject</key> <integer>11</integer> </dict>  
      Immediately above of them paste this text:
      <key>Properties</key> <dict> <key>PciRoot(0x0)/Pci(0x1F,0x3)</key> <dict> <key>layout-id</key> <data>CwAAAA==</data> <key>model</key> <string>Cannon Lake HDMI</string> <key>hda-gfx</key> <string>onboard-2</string> <key>AAPL,slot-name</key> <string>Internal@0,31,3</string> <key>device_type</key> <string>Audio device</string> </dict> <key>PciRoot(0x0)/Pci(0x2,0x0)</key> <dict> <key>framebuffer-con0-busid</key> <data>AAAAAA==</data> <key>framebuffer-con0-type</key> <data>AAgAAA==</data> <key>framebuffer-con2-flags</key> <data>xwMAAA==</data> <key>model</key> <string>Intel UHD Graphics 630</string> <key>framebuffer-con1-busid</key> <data>AAAAAA==</data> <key>device-id</key> <data>kT4AAA==</data> <key>framebuffer-con2-type</key> <data>AAgAAA==</data> <key>framebuffer-con2-busid</key> <data>BAAAAA==</data> <key>device_type</key> <string>Display controller</string> <key>hda-gfx</key> <string>onboard-1</string> <key>framebuffer-patch-enable</key> <data>AQAAAA==</data> <key>framebuffer-con1-type</key> <data>AAgAAA==</data> <key>AAPL,slot-name</key> <string>Internal@0,2,0</string> <key>AAPL,ig-platform-id</key> <data>BwCbPg==</data> <key>framebuffer-con2-enable</key> <data>AQAAAA==</data> <key>framebuffer-con1-enable</key> <data>AQAAAA==</data> <key>framebuffer-con0-enable</key> <data>AQAAAA==</data> </dict> </dict> But the system crashes when comes out of sleep mode (the PC restarts after a few seconds of leaving sleep mode). This behavior occurs if the cable that comes out from the HDMI port on the motherboard (the only existing connector on this Mobo) plugs in a DisplayPort port on the monitor; if it plugs directly into another HDMI port (monitor or TV) the bug does not occurs and the PC goes in and out of sleep normally.

      Currently the only way to have the graphics card connected to a port other than HDMI without this crash is by replacing the "hda-gfx" property with "no-hda-gfx" in the above code of config.plist. The 2 lines
      <key>hda-gfx</key> <string>onboard-2</string> must be replaced by
      <key>No-hda-gfx</key> <data>AAAAAAAAAAA=</data> After adding this property, you will no longer have sound over HDMI / DP but sleep works very well.

      In summary:
      - Intel HDMI to DisplayPort monitor> has HDMI audio output but has kernel panic when coming from sleep
      - Intel HDMI to HDMI TV> has HDMI audio output and sleep works fine
      - Intel HDMI to DisplayPort monitor with "no-hda-gfx"> sleep works fine but HDMI audio output is lost.

      (based on the post "[GUIDE] General Framebuffer Patching Guide (HDMI Black Screen Problem)" by CaseySJ; thanks also to deeveedee for his help).

      This card can be left activated without connection to the monitor (headless mode) and apparently does not show any interference with the rest of the system.

      With the integrated card as the main card, the system shows enabled both graphics cards and allows to have a screen connected to the Intel 630 via HDMI and a different screen connected to the RX 580 via DP or HDMI, in this case the primary screen is that from the Intel and the other only works when the graphics driver is loaded but, once the system is up and running, the screens allow duplication options as if they depend on a single card.
       
       
       
       
       
      Evolution to Oc Quirks

      OC Quirks is an EFI driver for Clover that replaces AptioMemoryFix and all OsxAptioFix variants. It supports the OpenCore quirks model. AptioMemoryFix has evolved little in the most recent stage and is in a way becoming obsolete. Next versions of Clover will probably stop installing AptioMemoryFix and switch to OC Quirks which is evolving and receiving frequent improvements. You can read about this on the working group website: ReddestDream.

      Migrating our installation from AptioMemoryFix to OC Quirks is relatively simple:
      download the latest version of OC Quirks (search Releases, current version is 23) have a USB device that boots up properly to use in case of failure mount the disk's EFI partition delete AptioMemoryFix and any other OsxAptioFix variant add OcQuirks.efi, OpenRuntime.efi and OcQuirks.plist to Clover's drivers/UEFI folder change to true DevirtualiseMmio and ProtectUefiServices in the file OcQuirks.plist (recommended on boards with Z390 chipset) in Clover> Quirks config.plist file, check the boxes AvoidRuntimeDefrag - DevirtualiseMmio - EnableSafeModeSlide - ForceExitBootServices - ProtectUefiServices - ProvideConsoleGopEnable - ProvideCustomSlide - SetupVirtualMap - SyncRuntimePermissions and assign the value 0 to ProvideMaxSlide Restart the PC.  
      Kernel Panic with BIOS F10c if integrated graphics is enabled

      The Z390 Aorus Elite board comes with BIOS F9 with which the text of this post has been written.

      A few days ago I updated to the current version which is F10c and, since then, I have suffered a kernel panic with the forbidden symbol when going from the Clover menu to the macOS boot screen if the integrated card was enabled in BIOS. This happened regardless of whether the Intel UHD Graphics 630 card was set to Clover (fully for monitor output or headless mode for encoding) or not.

      Returning to BIOS F9 the system has returned to working as before and the kernel panic has disappeared. I can have the card enabled or disabled again in BIOS without problems.
       
      efi-quirks.zip
    • By Bikash
      I have installed catalina and bootloader is opencore.

      But the AppleAlc is not working for alc282 codec. I have tried evey layout id provided in documentation for alc282 but not working.
      But the voodohda is working.

      I have attached ioreg file, codec dump, applealc debug log and Efi folder.

      Please help me to make this work.
      Thank you
      applealc.zip
    • By juanjullian
      So i managed to install latest Catalina with opencore 0.59 and latest acidanthera's work on my HP 840-g4. But i have just one annoying problem: IMEI.
       
      The issue is exactly the same as described here:
       
       
      and in other thread at the commercial hack site with big eyes.
       
      Most of the applications not responding after wake from sleep. crashed quicklookup, quicktime player, youtube, hackintool, etc, etc. (spinning color wheel).
       
      So surfing deeply on the forums, i noticed that the problem is related of lack of IMEI injection. So i tried manual HECI to IMEI patch, knowing that WhateverGreen do that work. No results.
       
      The only way that i can get IMEI on ioReg is changing the address from 16 to 0, through a ACPI patch:
       
      dict> <key>Comment</key> <string>HECI ADDRESS</string> <key>Count</key> <integer>0</integer> <key>Enabled</key> <true/> <key>Find</key> <data>SEVDSQhfQURSDAAAFgA=</data> <key>Limit</key> <integer>0</integer> <key>Mask</key> <data></data> <key>OemTableId</key> <data></data> <key>Replace</key> <data>SEVDSQhfQURSDAAAAAA=</data> <key>ReplaceMask</key> <data></data> <key>Skip</key> <integer>0</integer> <key>TableLength</key> <integer>0</integer> <key>TableSignature</key> <data></data> </dict>  
      So with this i can get IMEI on IoReg
       

       

       
       
      But i think that is a problem! Because the KBL FrameBuffer can't initialize the MEI Service, even with the IMEI at ioreg, this is from boot syslog:
       
      2020-06-24 16:38:29.075004-0400 localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::createMEIDriver()> [IGFB][ERROR ] Failed to start MEI service! 2020-06-24 16:38:29.075014-0400 localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::createMEIDriver()> [IGFB][ERROR ] Failed to create MEI service  
       
      Soooo, the question is:
       
      How can i solve this?!!
       
      I also tried:
       
      1. SSDT-IGPU from Rehabman
      2. SSDT-IMEI
      3. Rename HECI to IMEI ACPI patch
      All these with no luck.
       
      PD: I have to say that not SDcard mount after wake from sleep and this are the only two thing left to solve in order to get full working hackintosh laptop.!
       
       
      Thanks in advance
       
      EFI.zip
      ioreg_imei0.ioreg.zip
      syslog.txt
    • By miliuco
      Install macOS 10.15 Catalina on Gigabyte P55-USB3 with Radeon RX 580 graphics card using a USB device created with the createinstallmedia command and Clover as bootloader. Instructions to install macOS 10.14 Mojave on this computer are almost identical, replacing Catalina app with Mojave, so this article is suitable for both versions of macOS. The Gigabyte P55-USB3 motherboard (and some others from the same brand with the P55 / H55 chipset) have made it easy to build a hackintosh and install macOS since 10 years ago. Although it is an old motherboard, the behavior with Mojave or Catalina is very good after changing the classic hard drive (HDD) for a solid state drive (SSD).

      Components of the hackintosh
      Gigabyte GA-P55-USB3 motherboard: P55 chipset, 1156 socket, ALC892 audio, Gigabit RTL8111D network, DDR3 RAM Intel Core i5-750 processor for socket 1156: 4 cores, 8MB cache, clock rate 2.66 GHz Fenvi FV-T919 wireless + Bluetooth card: PCI-Express, wifi is ac type, detected by macOS as Airport and Apple Bluetooth Radeon RX 580 8 GB graphics card: works OOB but with a few details to be considered, it has its own article.  
      Previous requirements
      Install macOS Catalina app in /Applications folder USB flash drive with at least 16GB prepared from Disk Utility with MBR partition scheme and formatted as Mac Os Plus (on older Gigabyte boards like mine, USB sticks partitioned with GUID scheme instead of MBR usually hang the system when booting) Recent version of Clover (I have used r5117) Recent versions of Lilu (at least 1.4.4) and WhateverGreen (at least 1.3.9) to fine-tune the behavior of the graphics card Recent version of RealtekRTL8111 (I have used 2.2.2) FaceSMC version 6.26-322 (newer versions disable automatic mounting of USB devices on my system).  
      Create install USB
      Run this command from Terminal (assuming the target device is called USB):
      Bash: sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/USB /Applications/Install\ macOS\ Catalina.app
      Clover must be installed on the USB memory, I choose the following options:
      Bootloader > Install boot0af on the MBR CloverEFi > CloverEFI 64-bit SATA BIOS Drivers, 64 bit > Recommended drivers > FSInject + SMCHelper + XhciDxe BIOS Drivers, 64 bit > File System drivers > ApfsDriverLoader Install RC scripts on selected volume Optional RC scripts > Disable sleep proxy client.  
      You have to copy 4 kexts to the EFI/CLOVER/kexts/Other folder of the USB device: FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2. Regarding the config.plist file, the most significant is:
      Boot > kext-dev-mode = 1 in Boot arguments GUI > Theme embedded, EmbeddedThemeType Dark, Screen Resolution 1920x1080, Preboot in Hide Volume Graphics > blank, nothing is checked except if foxbox solution is used to have more than 2 connectors enabled RT Variables > 0x28 in BooterConfig and 0x67 in CsrActiveConfig SMBios > iMac14,2 Sytem Parameters> Yes in Inject Kexts and check Inject System ID.  
      Install macOS Catalina

      Boot from the USB device and choose Install macOS from Install macOS Catalina. The installation program runs until the PC restarts. Here choose Install macOS from HDD (the name of the volume you are installing macOS on). With RX 580 graphics card, the screen goes black in this second phase of the installation, it is a phase in which the user has nothing to do until the PC is restarted so you can let it work until the Clover menu again. You have to choose Boot macOS from HDDto boot the installed system from the hard disk, the screen is recovered and you can configure the account and the initial options. From this moment the screen works fine.

      In summary:
      Boot from USB > Clover menu > Install macOS from Install macOS Catalina > screen works fine Boot from USB > Clover menu > Install macOS from HDD > black screen Boot from USB > Clover menu > Boot macOS from HDD > screen works fine.  
      Install Clover and kexts on the hard drive

      Clover needs to be installed on the disk where we just installed macOS. Options are the same as when installing it on the USB memory. You also have to copy the 4 kexts (FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2) into the EFI/CLOVER/kexts/Other folder on the EFI partition of the disk. And review the config.plist file remembering the comments for the USB.

      If everything goes well, the computer starts from the hard disk with a running copy of macOS Catalina.
       
       

×