Contribute
Register

[Guide] Lenovo Legion Y520/Y720 using Clover UEFI

Joined
Oct 25, 2018
Messages
13
Motherboard
Lenovo Legion Y520-15IKBN 80WK
CPU
i5-7300HQ
Graphics
1050ti / HD 630 1920x1080
Mobile Phone
  1. Android
Hi,
I am trying to get my usb-c adapter running on my Hackintosh.

The adapter works on a Hackintosh (tested it on a friends laptop).
on Mac OS Sierra and high Sierra it was working without any troubles.

I every time I try to connect to a external monitor I get a Framebuffer error and it reboots
Anonymous UUID: 97638433-E563-9DA5-5574-684604C0DB3B

Tue Nov 19 20:22:24 2019

*** Panic Report ***
panic(cpu 0 caller 0xffffff8016adbadd): Kernel trap at 0xffffff7f996c731b, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x00000000000001dc, CR3: 0x000000002c731000, CR4: 0x00000000003626e0
RAX: 0xebe5ec48c1df0058, RBX: 0x0000000000000002, RCX: 0x0000000000000001, RDX: 0x0000000000000001
RSP: 0xffffff8215083e20, RBP: 0xffffff8215083e90, RSI: 0x0000000000000001, RDI: 0x0000000000000002
R8: 0x0000000000000003, R9: 0x0000000000000000, R10: 0x0000000000000001, R11: 0x0000000000000000
R12: 0x0000000000000000, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0x0000000000000000
RFL: 0x0000000000010202, RIP: 0xffffff7f996c731b, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x00000000000001dc, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 1

Backtrace (CPU 0), Frame : Return Address
0xffffff82150838f0 : 0xffffff80169ae6ed
0xffffff8215083940 : 0xffffff8016aea185
0xffffff8215083980 : 0xffffff8016adb8ba
0xffffff82150839f0 : 0xffffff801695bb40
0xffffff8215083a10 : 0xffffff80169ae107
0xffffff8215083b30 : 0xffffff80169adf53
0xffffff8215083ba0 : 0xffffff8016adbadd
0xffffff8215083d10 : 0xffffff801695bb40
0xffffff8215083d30 : 0xffffff7f996c731b
0xffffff8215083e90 : 0xffffff7f996a524c
0xffffff8215083ed0 : 0xffffff8017058d8c
0xffffff8215083f30 : 0xffffff8017056e72
0xffffff8215083f70 : 0xffffff80170563cc
0xffffff8215083fa0 : 0xffffff801695b0ce
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelKBLGraphicsFramebuffer(12.1)[3182EB9E-C65F-3EDF-B150-5D1C980DDFD1]@0xffffff7f99674000->0xffffff7f9989afff
dependency: com.apple.iokit.IOPCIFamily(2.9)[BFDEB8D4-50FE-3DDB-87B7-F6A504393830]@0xffffff7f97298000
dependency: com.apple.iokit.IOACPIFamily(1.4)[3E8E9870-2E41-33F6-ACBF-35DDC08F22B5]@0xffffff7f9727d000
dependency: com.apple.iokit.IOAcceleratorFamily2(404.14)[618B24B5-1387-31FD-A7F7-53283E2C3FEA]@0xffffff7f98d5a000
dependency: com.apple.iokit.IOReportFamily(47)[0BC9F93B-456A-3D97-BE4C-69DCBB5E8A3C]@0xffffff7f97fd8000
dependency: com.apple.AppleGraphicsDeviceControl(3.50.12)[5334847D-B612-3E8C-88A3-C2A5853675CD]@0xffffff7f97f4b000
dependency: com.apple.iokit.IOGraphicsFamily(530.66)[373EAB85-2C5F-3B84-B86D-421F79C47DF2]@0xffffff7f97c15000

BSD process name corresponding to current thread: kernel_task
Boot args: dart=0 -v debug=0x100

Mac OS version:
18G103

Kernel version:
Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
Kernel UUID: C41337A1-0EC3-3896-A954-A1F85E849D53
Kernel slide: 0x0000000016600000
Kernel text base: 0xffffff8016800000
__HIB text base: 0xffffff8016700000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)

System uptime in nanoseconds: 54065807222
last loaded kext at 13424825013: com.apple.driver.AudioAUUC 1.70 (addr 0xffffff7f99502000, size 32768)
loaded kexts:
org.rehabman.driver.VoodooTSCSync 1.5.0
ru.usrsse2.SMCBatteryManager 1
as.vit9696.VirtualSMC 1.0.9
as.vit9696.WhateverGreen 1.3.4
as.vit9696.AppleALC 1.4.3
as.lvs1974.AirportBrcmFixup 2.0.4
as.vit9696.Lilu 1.3.9
com.apple.driver.AudioAUUC 1.70
com.apple.fileutil 20.036.15
com.apple.filesystems.autofs 3.0
com.apple.filesystems.ntfs 3.13
com.apple.driver.X86PlatformShim 1.0.0
com.apple.driver.AGPM 110.25.11
com.apple.driver.ApplePlatformEnabler 2.7.0d0
com.apple.driver.AppleUpstreamUserClient 3.6.5
com.apple.driver.AppleHDAHardwareConfigDriver 282.54
com.apple.driver.AppleHDA 282.54
com.apple.private.KextAudit 1.0
com.apple.driver.AppleOSXWatchdog 1
com.apple.driver.AppleGraphicsDevicePolicy 3.50.12
com.apple.AGDCPluginDisplayMetrics 3.50.12
com.apple.driver.AppleIntelKBLGraphics 12.1.0
com.apple.driver.AppleHV 1
com.apple.iokit.IOUserEthernet 1.0.1
com.apple.iokit.IOBluetoothSerialManager 6.0.14d3
com.apple.driver.pmtelemetry 1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AGDCBacklightControl 3.50.12
com.apple.driver.AppleIntelPCHPMC 2.0.1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleIntelKBLGraphicsFramebuffer 12.1.0
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleBacklight 170.12.12
com.apple.driver.AppleMCCSControl 1.5.9
com.apple.driver.AppleFIVRDriver 4.1.0
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.driver.AppleVirtIO 2.1.3
com.apple.filesystems.hfs.kext 407.200.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.BootCache 40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.AppleSystemPolicy 1.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.filesystems.apfs 945.275.7
com.apple.driver.AppleSDXC 1.7.6
com.apple.driver.AppleAHCIPort 329.260.5
com.apple.driver.AppleACPIButtons 6.1
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleACPIEC 6.1
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleAPIC 1.7
com.apple.nke.applicationfirewall 201
com.apple.security.TMSafetyNet 8
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 282.54
com.apple.kext.OSvKernDSPLib 528
com.apple.driver.AppleGraphicsControl 3.50.12
com.apple.driver.AppleSSE 1.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport 6.0.14d3
com.apple.iokit.IOBluetoothHostControllerTransport 6.0.14d3
com.apple.iokit.IOBluetoothFamily 6.0.14d3
com.apple.driver.AppleSMBusPCI 1.0.14d1
com.apple.AppleGPUWrangler 3.50.12
com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
com.apple.AppleGraphicsDeviceControl 3.50.12
com.apple.iokit.IOAcceleratorFamily2 404.14
com.apple.iokit.IOSurface 255.6.1
com.apple.driver.AppleHDAController 282.54
com.apple.iokit.IOHDAFamily 282.54
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.X86PlatformPlugin 1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.driver.AppleBacklightExpert 1.1.0
com.apple.iokit.IONDRVSupport 530.51
com.apple.driver.AppleSMBusController 1.0.18d1
com.apple.iokit.IOGraphicsFamily 530.66
com.apple.driver.usb.AppleUSBHub 1.2
com.apple.driver.AppleUSBAudio 315.6
com.apple.driver.usb.IOUSBHostHIDDevice 1.2
com.apple.iokit.IOAudioFamily 206.5
com.apple.vecLib.kext 1.2.0
com.apple.driver.AppleUSBHostMergeProperties 1.2
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.iokit.IOSerialFamily 11
com.apple.filesystems.hfs.encodings.kext 1
com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
com.apple.iokit.IOUSBFamily 900.4.2
com.apple.driver.AppleXsanScheme 3
com.apple.iokit.IONVMeFamily 2.1.0
com.apple.iokit.IOAHCIBlockStorage 301.270.1
com.apple.driver.AppleIntelLpssGspi 3.0.60
com.apple.iokit.IOAHCIFamily 288
com.apple.driver.usb.AppleUSBXHCIPCI 1.2
com.apple.driver.usb.AppleUSBXHCI 1.2
com.apple.driver.AppleEFINVRAM 2.1
com.apple.driver.AppleEFIRuntime 2.1
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.security.quarantine 3
com.apple.security.sandbox 300.0
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 493.0.0
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleKeyStore 2
com.apple.driver.AppleUSBTDM 456.260.3
com.apple.driver.AppleMobileFileIntegrity 1.0.5
com.apple.iokit.IOUSBMassStorageDriver 145.200.2
com.apple.iokit.IOSCSIBlockCommandsDevice 408.250.3
com.apple.iokit.IOSCSIArchitectureModelFamily 408.250.3
com.apple.iokit.IOStorageFamily 2.1
com.apple.kext.CoreTrust 1
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost 1
com.apple.iokit.IOUSBHostFamily 1.2
com.apple.driver.usb.AppleUSBCommon 1.0
com.apple.driver.AppleBusPowerController 1.0
com.apple.driver.AppleSEPManager 1.0.1
com.apple.driver.IOSlaveProcessor 1
com.apple.iokit.IOReportFamily 47
com.apple.iokit.IOTimeSyncFamily 740.2
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IONetworkingFamily 3.4
com.apple.driver.AppleACPIPlatform 6.1
com.apple.driver.AppleSMC 3.1.9
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.pthread 1
com.apple.kec.Libm 1
com.apple.kec.corecrypto 1.0

EOF

I hope one of you can help me.


finally solved my problem with new config.plist without dsdt patches and added APPl,ig-graphics-id
now up to 2k are possible

lg Haha
 
Joined
Dec 15, 2019
Messages
6
Motherboard
Lenovo Legion Y520
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Mobile Phone
  1. iOS
Hi again,

This might be a silly question.
Can I easily do thes steps but with Catalina 10.15.2?
 
Joined
Oct 4, 2018
Messages
82
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
  1. iOS
Hi again,

This might be a silly question.
Can I easily do thes steps but with Catalina 10.15.2?

One thing to note is that Apple seems to have made S/L/E and L/E read-only, meaning that you can only inject kexts with Clover now. These scripts might not be entirely suited for Catalina. But you should definitely give it a try, I don't see why just using Clover to inject kexts wouldn't work.
You can also give OpenCore (new bootloader) a shot, I haven't had much luck with it on an older system but that is probably a configuration issue.
One of these days I might just not be lazy enough and finally update to Catalina.

EDIT: Updated Kexts, Clover r5070 and it updated without any issues.
 
Last edited:
Joined
Dec 15, 2019
Messages
6
Motherboard
Lenovo Legion Y520
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Mobile Phone
  1. iOS
I managed to get a mojava installer now and 5ried it with latest rehabman clover release.
I followed the guide carefully now.
Once I click on install osx from clover with option vibose enabled i got some errors during the installation on the black screen and after that I have a reset.
The errors are moving up quickly I'm not sure if I can find a log for this somewhere or not.
I think it's because of panic.
Do you know where to start debugging?
 
Joined
Oct 4, 2018
Messages
82
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
  1. iOS
I managed to get a mojava installer now and 5ried it with latest rehabman clover release.
I followed the guide carefully now.
Once I click on install osx from clover with option vibose enabled i got some errors during the installation on the black screen and after that I have a reset.
The errors are moving up quickly I'm not sure if I can find a log for this somewhere or not.
I think it's because of panic.
Do you know where to start debugging?
Attach your EFI folder

What version of Mojave are you trying to install? RehabMan Clover builds are out of date and won't allow you to boot a newer version of Mojave
 
Joined
Dec 15, 2019
Messages
6
Motherboard
Lenovo Legion Y520
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Mobile Phone
  1. iOS
Attach your EFI folder

What version of Mojave are you trying to install? RehabMan Clover builds are out of date and won't allow you to boot a newer version of Mojave
Do you recommend a specific clover version?
I downloaded mojava from app store so I guess it’s the last version released of it
 
Joined
Oct 4, 2018
Messages
82
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
  1. iOS
Do you recommend a specific clover version?
I downloaded mojava from app store so I guess it’s the last version released of it
You haven't attached your EFI folder.

Try Clover r5070 from sourceforge
 
Joined
Dec 15, 2019
Messages
6
Motherboard
Lenovo Legion Y520
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Mobile Phone
  1. iOS
You haven't attached your EFI folder.

Try Clover r5070 from sourceforge

Sorry for not attaching it last time.
Here it is. If you found something wrong please tell me.

I'll Try Clover 5070 today and see if it'll be better.

Thanks a lot
 

Attachments

  • CLOVER EFI.zip
    4.4 MB · Views: 49
Joined
Oct 4, 2018
Messages
82
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
  1. iOS
Sorry for not attaching it last time.
Here it is. If you found something wrong please tell me.

I'll Try Clover 5070 today and see if it'll be better.

Thanks a lot

Your kexts are wrong, are you following the guide?
WhateverGreen is missing, you should be using VirtualSMC instead of FakeSMC
USBInjectAll is not needed, all ports are correctly mapped via DSDT
 
Joined
Feb 23, 2014
Messages
25
Motherboard
Lenovo Y520-IKBM
CPU
i7-7700HQ
Graphics
HD 630, GTX 1060, 1920x1080
Thank you very much for this guide! I managed to install the latest Catalina. Everything works fine! I installed the latest official Clover, because RehabMan's package said that it's not supported during install. I managed to set up dualboot with Windows 10. Thanks again for your work! Only thing that is not working, is the numpad but I'll try to find a solution for that.
 
Top