toleda / audio_CloverALC

macOS Realtek ALC onboard audio with Clover
679 stars 109 forks source link

unable to boot into macOS after installing #128

Open tyrtok opened 6 years ago

tyrtok commented 6 years ago

rig: fresh high sierra with apfs mount efi, disable sip > installed > restart.

verbose stuck at installedGTK: GTK installed setting BTCoex Config~~

any reason what i did wrong to not able to boot into os?

just-some-tall-bloke commented 6 years ago

Same issue here. Worked fine on 10.13 and 10.13.1, now hangs on boot on 10.13.2

toleda commented 6 years ago

@tyrtok @just-some-tall-bloke

Nvidia web drivers installed (y/n)? Lilu.kext installed (y/n)?

Software Update/Combo Update 10.13.2: after restart, rebuild kernel cache, restart. No need to run cloverALC; no AppleHDA.kext changes. New install 10.13.2: have not tested yet.

just-some-tall-bloke commented 6 years ago

@toleda

Nvidia web drivers installed (y/n)? y Lilu.kext installed (y/n)? y

Latest versions of each.

There may well be no changes to AppleHDA.kext, but my after installing the 10.13.2 combo I had no sound. Ran the cloverALC script, then the system didn't boot until I deleted AppleHDA.kext via recovery.

Telling me to reboot and then rebuild the kernel cache when I have a system that doesn't boot? I'll let you figure out the flaw with that plan ;)

toleda commented 6 years ago

cloverALC does not cause the boot failure. The kext cache built during the restart after install does not boot.

10.13.2+ Fixes:

10.13.2+ Desktop after install:

  1. Terminal/sudo touch /System/Library/Extensions && sudo kextcache -u /
  2. Restart

10.13.2+ Boot fail after install:

  1. Clover/Single User
  2. return (root# appears)
  3. /sbin/mount -uw /
  4. touch /System/Library/Extensions
  5. kextcache -u /
  6. exit (boot continues to Desktop)
  7. Restart

If no audio after restart, run cloverALC, restart.

NanoSector commented 6 years ago

Can confirm the boot after installing CloverHDA breaks. Following above instructions fixed it for me.

This is on a Gigabyte B150M-D3H with ALC892.

upxdouglas121 commented 6 years ago

I can also confirm that the fix works with the Gigabyte H97M D3H (ALC 892) and i5 4460 with Intel HD 4600.

usawa commented 6 years ago

I've exactly the same issue. In fact I had to install cloverALC and reboot to single at each boot, until I understood I had to reinstall AudioALC + rebuild cache just after and reboot.

Could this procedure be managed by the installer ?

toleda commented 6 years ago

cloverALC rebuilds kext cache whenever a change is made that effects kernel cache. The 10.13.2 Update is different from every previous update. 10.13.2 update boots with an installer (like a clean install). The installer rebuilds the kext cache without considering all kexts, specifically, non native kexts. To avoid a failed boot, rebuild 10.13.2 kext cache and restart. Upon restart, cloverALC installs required files and rebuilds kext cache as expected. In my opinion, the 10.13.3 update is likely to use the previous method.

steve3d commented 6 years ago

I think 10.13.3 is different because the os will automatically rebuild the kernel cache.

Just try this, If you sudo touch /System/Library/Extensions, and after a few minutes, run sudo kextcache -u / gives you nothing,

but if you rebuild kernel cache right after touch the folder, then you will see there is some output.

and the install script is rebuild cache right after modified the kext.

So I think that's why we need to manually rebuild again.

toleda commented 6 years ago

10.13.2 and 10.13.3 are the same and different than all previous updates. The difference is the install partition that contains the update, similar to a fresh install. That update partition does not contain the full OS. Unfortunately, without the full OS, any kext cache is invalid.

"if you rebuild kernel cache right after touch the folder" Previously noted: Terminal/sudo touch /System/Library/Extensions && sudo kextcache -u /

sailor25462 commented 6 years ago

I was running into the same issue, after having updated to the latest 10.13.3. Only after making a fresh install over the existing Setup, boot completed successfully again. However, whenever I re-install the patch, even with re-building kext cache manually again, boot will fail afterwards. Occasionally I get a kextd Stall for AppleAcpiCpu error and many lines of CoreStorageGroup::handleOpen messages.

I‘m running fusion drive!

Would be great to get some input as I’m running out of ideas...

toleda commented 6 years ago

"However, whenever I re-install the patch, even with re-building kext cache manually again, boot will fail afterwards."

You have described the method that causes the problem as described previously, full stop. Mandatory, restart before reinstalling patch.

sailor25462 commented 6 years ago

You have described the method that causes the problem as described previously, full stop. Mandatory, restart before reinstalling patch.

Thanks for the quick feedback! I'll go through it again, then. Cross fingers.

Question: Any (easy) repair possible at all, when doing this kind of mistake? (rather than re-installing the whole system...)

toleda commented 6 years ago

See "10.13.2 Boot fail after install" above

sumitkumar511 commented 6 years ago

Dear Toleda,

I have run "10.13.2 Boot fail after install" but not got login to desktop. Please help me.

Sumiy

sumitkumar511 commented 6 years ago

Sorry Toleda,

I am running os is "10.12.1" and run above command mentioned and not getting to login desktop.

Sumit

toleda commented 6 years ago

See "10.13.2 Boot fail after install" above

sumitkumar511 commented 6 years ago

Dear Toleda,

You mean I should run these commands:

10.13.2 Boot fail after install:

  1. Clover/Single User
  2. return (root# appears)
  3. /sbin/mount -uw /
  4. touch /System/Library/Extensions
  5. kextcache -u /
  6. exit (boot continues to Desktop)
  7. Restart

I have run all 1-6 commands but did not get to desktop and also run command 7 by pressing hard restart button.

Toleda, I am running macOS Sierra 10.12.

Please help me.

Kind Regards, Sumit

toleda commented 6 years ago

Because exit did not work, at least one of the previous commands did not execute properly or was entered incorrectly. Nothing changed as the restart showed. exit takes you to the Desktop, then restart. Try again.

sumitkumar511 commented 6 years ago

Dear Toleda,

I have run again all the commands carefully and not getting to log in desktop.

  1. Clover/Single User
  2. return (root# appears)
  3. /sbin/mount -uw /
  4. touch /System/Library/Extensions
  5. kextcache -u /
  6. exit (boot continues to Desktop) -- I have waited 15 minutes but not getting desktop login option just only showing mouse pointer.
  7. Restart -- If not getting desktop then only option is to press hard button for shutdown or restart.

Please suggest what should I do or I can send you complete video for the same.

Best Regards, Sumit

toleda commented 6 years ago

Is there a # sign prompt when you enter exit?

Run the macOS installer over the current unbootable installation.

sumitkumar511 commented 6 years ago

Dear Toleda,

No sign in prompt, only getting black screen with mouse pointer after exit command.

Thank you Toleda, I have placed order boot pen drive from Amazon and I will get it today by 9pm then get back you if need any help.

Thanks Sumit

toleda commented 6 years ago

Answered a different question, The question; in root, is there a # sign prompt when you enter exit?

How did you install macOS without a pen drive?

sumitkumar511 commented 6 years ago

Dear Toleda,

No, type exit command and press enter then get black screen only and nothing else.

sumitkumar511 commented 6 years ago

I do not know how to install because my boss installed for me.

Now, I have bootable pendrive 10.13, bought from Amazon, but also not able to get fresh installation.

Please, let me know one thing, when I boot Boot Recovery from Recovery HD then keyboard and mouse do not work, I am using TVS Gold keyboard and Logitech B100 mouse.

toleda commented 6 years ago

Root did not finish previous command because there is a mistake in the command. Cannot enter new commands unless the # prompt is waiting.

No such item as a bootable pen drive 10.13, bought from Amazon. Apple does not make a bootable pen drive. Return for a refund. Seller is not legitimate.

USB problem, try all USB ports.

sumitkumar511 commented 6 years ago

When I bought it from Amazon, there is mentioned that it is not refundable, so how I can return it.

toleda commented 6 years ago

That was the clue, not legitimate. Report to Amazon.

sumitkumar511 commented 6 years ago

Okay, I will do it definitely.

Please, let me know one thing, when I boot from Boot Recovery from Recovery HD then keyboard and mouse do not work, I am using TVS Gold keyboard and Logitech B100 mouse.

I have enabled "Legacy USB Support" at Gygabyte Peripherals.

toleda commented 6 years ago

No idea.

gameunite commented 6 years ago

I tried installing using v0.4 but now It just boot like forever. Is it really the same with the 10.13.2? Cause I updated mine without any issue before. Only on this update 10.13.3 and with the 0.4 it started failing.

toleda commented 6 years ago

Yes. As of 1013.2, all Software Updates use an installer partition. Reboot after installer, mandatory, before installing audio. See 10.13.2+ Boot fail after install: (above, post 5) for fix.