High Sierra Internet Install on a Lenovo M490s laptop (i3-2375M Sandy Bridge / Series7 / HM77 / HD 3000 / ALC269VC / M.2 SSD)

Mostly by following the instructions at https://internet-install.gitbook.io I was able to prepare the macOS 10.13 Internet Installer on a 8GB Kingston flash drive. I used Ubuntu for the "Preparing your installer media" part, downloading the recovery image SecUpd2019-002HighSierra.RecoveryHDUpdate.pkg using the amazing gibMacOS script.

During the Clover preparation part I've added the following kexts to /EFI/CLOVER/kexts/Other: Lilu.kext + AppleALC.kext (for audio support, although that didn't work) + WhateverGreen.kext (Lilu plugin for GPU support), USBInjectAll.kext + FakePCIID.kext + FakePCIID_XHCIMux.kext (for USB XHCI support, because the laptop is 2nd gen), RealtekRTL8111.kext (for Realtek Gigabit Ethernet support), VoodooPS2Controller.kext (for the integrated touchpad support) and of course the essential VirtualSMC.kext.

I've used the following Clover config.plist file (I didn't have to make any changes to it):

https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/config_HD3000_1366x768_7series.plist

Clover and the installer started up fine, then I've formatted my M.2 SSD using "diskutil eraseDisk JHFS+ (...)" in Terminal and proceeded with the installation. After reboot, the installation resumed and I was soon faced with the error message "macOS could not be installed on your computer", "Couldn't communicate with a helper application. Quit the installer to restart your computer and try again". After some googling it turned out that this error occured because the High Sierra installer tried converting the JHFS+ filesystem to APFS on my SSD and this somehow led to this problem I've found a workaround here:

https://www.tonymacx86.com/threads/guide-avoid-apfs-conversion-on-high-sierra-update-or-fresh-install.232855/#post-1602625

I'm quoting the relevant part:

Even though you create a new HFS+J partition, if the target is an SSD, the installer will still convert it to APFS.

To avoid that, after running the installer, and upon the first reboot where you would be normally directing Clover to boot the next stage of the installer by selecting "Boot macOS Install from ...", instead, boot the "install_osx" partition on USB again. When that is finished booting, choose Terminal from the Utilities menu.

# list /Volumes to remind yourself of the name you gave it

ls -l /Volumes

# then change your working directory to it (in my case, I used '1013')

cd /Volumes/1013

# now change to the "macOS Install Data" directory

cd "macOS Install Data"

# now fix the minstallconfig.xml with PlistBuddy

/usr/libexec/PlistBuddy -c "Set :ConvertToAPFS false" minstallconfig.xml

That's it! Now you're ready to quit Terminal, reboot, and continue the installation process by booting the "Boot macOS Install from ..." partition. When you're done, you'll have a fresh install on HFS+J instead of APFS.

I had to restart installation and perform the above after the first stage. That did the trick and I've finally reached the macOS desktop. The display, keyboard, touchpad and the Ethernet LAN was working thanks to the kexts, but there was no audio.

At this point I've copied the Clover files from the USB flash drive to my SSD's 200MB EFI partition (after deleting the existing EFI folder from it). Some more Terminal action:

# create a folder for mounting the EFI partition

sudo mkdir /Volumes/EFI

# mount EFI partition

sudo mount -t msdos /dev/disk0s1 /Volumes/EFI

# go to that folder

cd /Volumes/EFI

# delete existing EFI folder and its contents

sudo rm -rf EFI

After that I used Finder to copy the EFI folder from my USB drive to /Volumes/EFI. After rebooting, Clover started up from the SSD and I was able to boot to the macOS desktop. After that I've started looking into the sound problem - the easiest solution turned out to be VoodooHDA.kext, which I've grabbed from here:

https://sourceforge.net/projects/voodoohda/

I've copied it to the /EFI/CLOVER/kexts/Other folder on the EFI partition (and also removed AppleALC.kext) and after reboot audio worked like a charm, even the keyboard volume control using Fn + Left / Fn + Right - yey!

Since the battery in my laptop has been dead for years (it's not even installed anymore), I'm not sure about that part working right; and since the stock wifi chip is from Intel, there's probably no chance to get it working (and replacing is probably out of the question since I've bought a different Intel wireless card years ago and then learnt the bitter lesson that is the existence of BIOS device/vendor whitelisting - cheers Lenovo. If a different Intel chip was denied, I don't think a different vendor would be allowed either). But then again I only wanted to have macOS on this machine for building the iOS versions of Cordova / Flutter apps in Xcode, so I'm very happy with the current state of it.

I'm very thankful for the contributions of the good people at this sub, tonymacx86.com and all other authors whose work I've mentioned above.

I hope this "guide" will be helpful for people who want to turn the same or similar hardware into a Hackintosh. Good luck! :)

submitted by /u/TheFoderator
[link] [comments]