Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rizanw committed Apr 3, 2020
0 parents commit e12d3a9
Show file tree
Hide file tree
Showing 9 changed files with 475 additions and 0 deletions.
97 changes: 97 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Legion-y520-macOS

> This repository is actually a buckup data for my macOS catalina on Lenovo Legion y520. But, anyone may use it for reference. Do it your own risks.
### ChangeLog
2020/04/04
- initial creation

## Specification
### Machine :
- Intel Core i7-7700HQ Processor ( 2.81GHz 6MB )
- 8.0GB DDR4 SODIMM 2400MHz
- NVIDIA GeForce GTX1050Ti (Disabled)
- Intel HD 630 1536MB
- Qualcomm Atheros QCA6174A wifi
- Audio Realtek (ALC3248)
- Realtek Lan

### OS :
- Mojave (10.14.6) : :tw-2705: Tested
- Catalina (10.15.4) : :tw-2705: Tested

## What works
:tw-2705: UEFI booting via Clover.
:tw-2705: Accelerated graphics for HD630 including OpenCL & Metal.
:tw-2705: Native USB3/USB2/USB-C.
:tw-2705: Native audio with AppleHDA, including headphones.
:tw-2705: Built-in camera.
:tw-2705: Native power management.
:tw-2705: Battery status.
:tw-2705: Built-in keyboard (with special function keys).
:tw-2705: Built-in trackpad (basic gestures).
:tw-2705: Backlight controls.
:tw-2705: Wired Ethernet Lan.
:tw-2705: Messages/FaceTime.
:tw-2705: AirPlay mirroring to AppleTV.

## What does not work
:tw-274c: build-in WiFi
:tw-274c: Bluetooth
:tw-274c: NVIDIA Graphic
:tw-274c: HDMI/DP video/audio don't work because those ports are connected to the NVIDIA, which is disabled.

### Solution
WiFi Networking & Bluetooth Hands-Off:
- Broadcom BCM94352Z (native wifi & Bluetooth)
- TP-Link TL-WN725N (wifi dongle) with [wireless adapter clover](https://github.com/chris1111/Wireless-USB-Adapter-Clover.git "wireless adapter clover")
Graphics:
- Disable NVIDIA

## Necessary & Recomendation Kexts
- **[VirtualSMC + Plugins](https://github.com/acidanthera/VirtualSMC/releases "VirtualSMC + Plugins")** (the most required kext for hackintosh)
- **[Lilu](https://github.com/acidanthera/lilu/releases "Lilu")**
- **[WhateverGreen](https://github.com/acidanthera/WhateverGreen/releases "WhateverGreen")**
- **[AppleALC](https://github.com/acidanthera/applealc/releases "AppleALC")**
- **[VoodooPS2](https://github.com/acidanthera/VoodooPS2 "VoodooPS2")**
- **[VoodooTSCSync](https://github.com/RehabMan/VoodooTSCSync")**
- **[RealtekRTL8111](https://github.com/RehabMan/OS-X-Realtek-Network "RealtekRTL8111")** (for BCM94352Z)
- **[AirportBrcmFixup](https://github.com/acidanthera/AirportBrcmFixup/releases "AirportBrcmFixup")** (for BCM94352Z)
- **[RtWlanU1827 & RtWlanU](https://github.com/chris1111/Wireless-USB-Adapter-Clover "RtWlanU1827 & RtWlanU")** (for TL-WN725N)

## Preparing & Initial Installation
follow this instruction very well [[Guide] Booting the OS X installer on LAPTOPS with Clover](https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/ "[Guide] Booting the OS X installer on LAPTOPS with Clover")
with **Notes :**
- Use newest **[clover](https://github.com/CloverHackyColor/CloverBootloader/releases "clover")**
- Download official macOS ([Catalina](https://support.apple.com/en-us/HT201475 "Catalina") / [Mojave](https://support.apple.com/en-us/HT210190 "Mojave")) from App Store
- Use the 'createinstallmedia' approach
- Use the option 1 "MBR with a FAT32 partition for Clover and a separate HFS+J partition for the OS X installer." much better.
- Use the config.plist from this repo
- Replace the drivers with this repo drivers (used clover version r5108)
- Put the hotpatch to ACPI/patched/

#### BIOS configuration :
- Set BIOS to defaults.
- UEFI boot is enabled.
- Secure boot is disabled.
- Fast boot is disabled.
- SATA mode is set to AHCI.
- Intel Virtualization Technology is enabled.

## Installation
do as installing macOS in general.

## Post Installation
- use `mount_efi.sh` in tools to mount the efi
- replace EFI folder in EFI Volumes from your USB EFI
- Install the [wireless adapter clover](https://github.com/chris1111/Wireless-USB-Adapter-Clover.git "wireless adapter clover") (for TL-WN725N)

#### References :
- [[Guide] Booting the OS X installer on LAPTOPS with Clover](https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/ "[Guide] Booting the OS X installer on LAPTOPS with Clover")
- [Hackintosh Vanilla Desktop Guide](https://hackintosh.gitbook.io/-r-hackintosh-vanilla-desktop-guide/ "Hackintosh Vanilla Desktop Guide")
- [[Guide] Lenovo Legion Y520/Y720 using Clover UEFI](https://www.tonymacx86.com/threads/guide-lenovo-legion-y520-y720-using-clover-uefi.261009/ "[Guide] Lenovo Legion Y520/Y720 using Clover UEFI")
- [Some Clover config.plist files for common Intel graphics configurations](https://github.com/RehabMan/OS-X-Clover-Laptop-Config "Some Clover config.plist files for common Intel graphics configurations")
- [[Guide] How to Boot macOS Installer on Laptops using Clover (UEFI/Legacy)](https://www.elitemacx86.com/threads/guide-how-to-boot-macos-installer-on-laptops-using-clover-uefi-legacy.177/ "[Guide] How to Boot macOS Installer on Laptops using Clover (UEFI/Legacy)")



291 changes: 291 additions & 0 deletions config/config.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Fixes</key>
<dict>
<key>FixRTC</key>
<true/>
</dict>
<key>Patches</key>
<array>
<dict>
<key>Comment</key>
<string>Change EC0 to EC</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>RUMwXw==</data>
<key>Replace</key>
<data>RUNfXw==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change HDAS to HDEF</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>SERBUw==</data>
<key>Replace</key>
<data>SERFRg==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change _OSI to XOSI</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X09TSQ==</data>
<key>Replace</key>
<data>WE9TSQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change _DSM to XDSM</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X0RTTQ==</data>
<key>Replace</key>
<data>WERTTQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change Method(_Q11,0,N) to XQ11</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1ExMQA=</data>
<key>Replace</key>
<data>WFExMQA=</data>
</dict>
<dict>
<key>Comment</key>
<string>Change Method(_Q12,0,N) to XQ12</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1ExMgA=</data>
<key>Replace</key>
<data>WFExMgA=</data>
</dict>
<dict>
<key>Comment</key>
<string>Change GFX0 to IGPU</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>R0ZYMA==</data>
<key>Replace</key>
<data>SUdQVQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change HECI to IMEI</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>SEVDSQ==</data>
<key>Replace</key>
<data>SU1FSQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change SAT0 to SATA</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>U0FUMA==</data>
<key>Replace</key>
<data>U0FUQQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change Method(PEGP._INI,0,N) to XINI</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X0lOSQBwAA==</data>
<key>Replace</key>
<data>WElOSQBwAA==</data>
</dict>
<dict>
<key>Comment</key>
<string>Change Method(_REG,2,N) to XREG</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>X1JFRwI=</data>
<key>Replace</key>
<data>WFJFRwI=</data>
</dict>
<dict>
<key>Comment</key>
<string>Change Method(GPRW,2,N) to XPRW</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>R1BSVwI=</data>
<key>Replace</key>
<data>WFBSVwI=</data>
</dict>
</array>
</dict>
<key>SSDT</key>
<dict>
<key>Generate</key>
<dict>
<key>PluginType</key>
<false/>
</dict>
</dict>
</dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>dart=0 -v</string>
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>Secure</key>
<false/>
<key>Timeout</key>
<integer>3</integer>
</dict>
<key>Devices</key>
<dict>
<key>Properties</key>
<dict>
<key>PciRoot(0)/Pci(0x2,0)</key>
<dict>
<key>framebuffer-fbmem</key>
<data>AACQAA==</data>
<key>framebuffer-patch-enable</key>
<data>AQAAAA==</data>
<key>framebuffer-portcount</key>
<data>AQAAAA==</data>
<key>framebuffer-stolenmem</key>
<data>AAAwAQ==</data>
</dict>
</dict>
<key>USB</key>
<dict>
<key>FixOwnership</key>
<true/>
</dict>
</dict>
<key>GUI</key>
<dict>
<key>Hide</key>
<array>
<string>Preboot</string>
</array>
<key>Mouse</key>
<dict>
<key>Enabled</key>
<false/>
</dict>
<key>Scan</key>
<dict>
<key>Legacy</key>
<false/>
</dict>
<key>Theme</key>
<string>Mojave</string>
</dict>
<key>Graphics</key>
<dict>
<key>Inject</key>
<dict>
<key>Intel</key>
<false/>
</dict>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>KernelPm</key>
<true/>
<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>Micro Inc. SD Card Reader - pci14e4,16bc -&gt; pci1217,8621</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>cGNpMTRlNCwxNmJj</data>
<key>InfoPlistPatch</key>
<false/>
<key>Name</key>
<string>com.apple.driver.AppleSDXC</string>
<key>Replace</key>
<data>cGNpMTIxNyw4NjIx</data>
</dict>
</array>
</dict>
<key>RtVariables</key>
<dict>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>BiosReleaseDate</key>
<string>05/28/2019</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP143.88Z.F000.B00.1905281616</string>
<key>Board-ID</key>
<string>Mac-551B86E5744E2388</string>
<key>BoardManufacturer</key>
<string>Apple Inc.</string>
<key>BoardSerialNumber</key>
<string>C02814310GUJ1JHCB</string>
<key>BoardType</key>
<integer>10</integer>
<key>BoardVersion</key>
<string>1.0</string>
<key>ChassisAssetTag</key>
<string>MacBook-Aluminum</string>
<key>ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>ChassisType</key>
<string>0x09</string>
<key>EfiVersion</key>
<string>196.0.0.0.0</string>
<key>Family</key>
<string>MacBook Pro</string>
<key>FirmwareFeatures</key>
<string>0xFC0FE13F</string>
<key>FirmwareFeaturesMask</key>
<string>0xFF1FFF3F</string>
<key>LocationInChassis</key>
<string>Part Component</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>Mobile</key>
<true/>
<key>PlatformFeature</key>
<string>0x1A</string>
<key>ProductName</key>
<string>MacBookPro14,3</string>
<key>SerialNumber</key>
<string>C02WJAYWHTD5</string>
<key>SmUUID</key>
<string>1E243B6D-5EB5-4670-9CC2-6446EBC87ABF</string>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>
<key>InjectKexts</key>
<string>Yes</string>
</dict>
</dict>
</plist>
Binary file added drivers/.DS_Store
Binary file not shown.
Binary file added drivers/UEFI/ApfsDriverLoader.efi
Binary file not shown.
Binary file added drivers/UEFI/AptioMemoryFix.efi
Binary file not shown.
Binary file added drivers/UEFI/FSInject.efi
Binary file not shown.
Binary file added drivers/UEFI/HFSPlus.efi
Binary file not shown.
Binary file added hotpatch/SSDT-Y520.aml
Binary file not shown.
Loading

0 comments on commit e12d3a9

Please sign in to comment.