Giter Club home page Giter Club logo

Comments (32)

bpresles avatar bpresles commented on June 18, 2024 4

Ok, I tried the following:

  • Replacing AppleKeyAggregator.efi by AppleGenericInput.efi from OpenCore => Not booting at all (not even the Apple logo). Corresponding log:
    clover_debug_replacing_apple_keyaggregator_only.log

  • Replacing AppleUITheme.efi alone by AppleUISupport.efi from OpenCore => Boots but still takes 2 minutes before the FileVault 2 password screen. Corresponding Log:
    clover_debug_replacing_apple_ui_theme_only.log

  • Replacing AppleImageCodec.efi alone by AppleUISupport.efi from OpenCore => Boots to FIlevault2 screen quickly !
    Corresponding log file:
    debug.log

Conclusion: The driver causing the issue is AppleImageCodec.efi. Also note that AppleUISupport from OpenCore contains features from all following Clover's drivers AppleUITheme.efi, AppleImageCodec.efi, HashServiceFix.efi and FirmwareVolume.efi (as you can see in source code link below) so when replacing using AppleUISupport.efi instead of AppleImageCodec.efi, all these drivers can also be removed.

Btw, here is the latest source code of standalone AppleUISupport.efi from OpenCore, before it was integrated:
https://github.com/acidanthera/AppleSupportPkg/tree/2.0.9/Platform/AppleUiSupport
Image conversion code alone:
https://github.com/acidanthera/AppleSupportPkg/tree/2.0.9/Platform/AppleUiSupport/AppleImageConversion

The latest integrated code for image conversion can be found here: https://github.com/acidanthera/OpenCorePkg/tree/master/Library/OcAppleImageConversionLib

Hope this helps ! I wish you a happy bug fixing ! :)

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024 2

Fixing the issue using AppleSupportPkg EFI drivers can only be a temporary solution as these drivers are made for OpenCore normally (and have even been integrated in it since).

The drivers included with Clover have to be fixed themselves.

from cloverbootloader.

SergeySlice avatar SergeySlice commented on June 18, 2024 1

There is an efi driver that can help us to understand the issue. Place it in drivers and after boot you may find a log
/efi/clover/misc/eficalls.log
DumpUefiCalls.efi.zip

from cloverbootloader.

jief666 avatar jief666 commented on June 18, 2024 1

Forgot to say, for Mojave boot, the pause time on the apple logo before being able to enter password went from 35 seconds to 4 seconds.

from cloverbootloader.

blueberry6401 avatar blueberry6401 commented on June 18, 2024

Hi, any working on this?

from cloverbootloader.

thenickdude avatar thenickdude commented on June 18, 2024

Possible solution here, looks like some EFI drivers need to be swapped out:

https://www.tonymacx86.com/threads/filevault-2-preloader-takes-long-time.285306/#post-2021475

from cloverbootloader.

blueberry6401 avatar blueberry6401 commented on June 18, 2024

Possible solution here, looks like some EFI drivers need to be swapped out:

https://www.tonymacx86.com/threads/filevault-2-preloader-takes-long-time.285306/#post-2021475

Thank, that fixes the issue 🍡

from cloverbootloader.

thenickdude avatar thenickdude commented on June 18, 2024

My test machine finished locking its drive, and now I can confirm the fix works for me too!

from cloverbootloader.

matis-schotte avatar matis-schotte commented on June 18, 2024

Any update on this?

Is it fine to update clover using the pkg? I feel hesitant since I have a modified install now.
Or just udpate the clover.bin file?

from cloverbootloader.

 avatar commented on June 18, 2024

If it doesn’t work, you might want to turn off csrutil, Catalina verifies the disk so that is probably why
** Use at own risk **

from cloverbootloader.

arrmo avatar arrmo commented on June 18, 2024

Hi,

The driver swap works here as well (temporarily of course) - at least to get through the very long wait. But when the password screen comes up .. where I need to enter the password is just a square of "missing" graphics / text (pic below). Is there a way to address this?

image

Thanks!

from cloverbootloader.

thenickdude avatar thenickdude commented on June 18, 2024

Same thing happens to me, I've just been typing the password in blind.

from cloverbootloader.

arrmo avatar arrmo commented on June 18, 2024

Hmmm ... assuming it's a driver related thing. Have you tried OC, just to get to the bottom of it?

Thanks!

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

@SergeySlice @asava @vectorsigma72 Any news on that issue ? For now we can workaround it by using old EFI drivers from OpenCore, but it'd be nice to have it fixed in Clover's included drivers also :)

from cloverbootloader.

asava avatar asava commented on June 18, 2024

I am not sure, I don't use FileValut so I cannot test myself, which makes it more difficult.
Are you sure you need to replace all mentioned drivers there? Or it's just a matter of one of them (I would guess InputFix)? If you point me to something more specific, maybe I can figure out what it is.

from cloverbootloader.

SergeySlice avatar SergeySlice commented on June 18, 2024

I see any log to speak about.
May be users install VirtualSMC but using SMCHelper which is not compatible.

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

@SergeySlice I personnally use FakeSMC and SMCHelper.efi. I also tried VIrtualSMC with VirtualSMC.efi and no changes are observed.

@asava For the log, at least there are nothing printed, even with "-v" boot flag, on screen. I'll try with Clover EFI debug log activated.

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

Clover debug log when using Clover's provided FileVault2 drivers:

  • AppleImageCodec.efi
  • AppleUITheme.efi
  • AppleKeyAggregator.efi
  • FirmwareVolume.efi
  • HashServiceFix.efi

debug.log

From what I see nothing relevant from the log, except the huge gap in the timestamp at the end, which confirm the very slow loading.

from cloverbootloader.

asava avatar asava commented on June 18, 2024

Maybe I didn't explain clear enough.
That thread you linked to, talks about replacing many drivers.
We need to know exactly, which driver you are replacing that fixes it.

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

I was answering @SergeySlice comment, not yours

I’m working on yours but because of this bug it takes more than 2 full minutes to boot each time I try! So please be patient!

from cloverbootloader.

arrmo avatar arrmo commented on June 18, 2024

BTW, with this driver swap - do you still get the big square block I mentioned above?

Thanks!

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

BTW, with this driver swap - do you still get the big square block I mentioned above?

Thanks!

I never had this bug on my setup.

from cloverbootloader.

arrmo avatar arrmo commented on June 18, 2024

FYI, I tried your fix (files) above - it works, thanks! But I still have the block issue above. What is your host OS? That may be part of it - I'm on Linux, not sure what you are using.

BTW, for OC, this fix works, but not sure how to set this same thing in Clover?
acidanthera/bugtracker#751 (comment)

Thanks again.

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

I don’t have host OS. I’m running macOS natively, not on a VM.

from cloverbootloader.

asava avatar asava commented on June 18, 2024

Conclusion: The driver causing the issue is AppleImageCodec.efi.

Thanks.
Kind of a shot in the dark, but I do see one possible simple problem. Please try this driver:
AppleImageCodec.zip

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

Thanks I’ll try it right now.

Btw, you really should have a test computer with FileVault 2 activated to be able to reproduce FV2 issues in the future to avoid to fix with “shots in the dark”, as you said ;)

from cloverbootloader.

bpresles avatar bpresles commented on June 18, 2024

Ok, I’ve tried your attached driver. It doesn’t fix the issue. The FV2 UI is still taking ages to appear with this driver.

Here is the log, but there doesn't seem to have more output than with the stock driver. We just see a huge time gap, but no error or warning or even info log from the driver.
debug_new_imagecodec_driver.log

Again, you should have a test machine with FV2 to reproduce issues related to FV2.

from cloverbootloader.

asava avatar asava commented on June 18, 2024

from cloverbootloader.

jief666 avatar jief666 commented on June 18, 2024

I have a problem with Catalina/FV. it stays at white Apple on black background.
The problem comes from Preboot volume/[GUID]/System/Library/Caches/com.apple.corestorage/EFILoginLocalizations/loginui.efires.
With High sierra, it's one MB. With Catalina (testing 10.15.4) it's 56MB.

So I copy the high sierra version over, and, except that I have a blur high sierra image, it's working fine.

from cloverbootloader.

SergeySlice avatar SergeySlice commented on June 18, 2024

So huge image == long boot?
If not load the image with OpenCore drivers then fast boot without password prompt.

from cloverbootloader.

jief666 avatar jief666 commented on June 18, 2024

After (a lot of) further investigations and some luck, I found what was causing it for me : I just removed AppleImageCodec-64.efi from drivers folder.
I don't know what it's supposed to do, but boot Mojave (I think I also tried high sierra) fine without it.
I didn't try Catalina, who have an even bigger loginui.efires (56MB on Catalina, 26MB on Mojave).

from cloverbootloader.

MysticalOS avatar MysticalOS commented on June 18, 2024

This issue can be solved much more easily now that clover has iplimented OC quirks and core files. literally all the filevault 2 stuff was merged into those after they deprecated the stand alone efi. Clover should clean house on all the obsolete EFI drivers at this point and this issue wold be solved

In fact every driver from https://github.com/acidanthera/applesupportpkg/releases release history has been deprecated as stand alone and part of OC Quirks, at least in OC, not sure about the fork here. But considering all driver improvements since being merged into OC are only available by using the OC versions, it's definite progression that clover do same, remove all obsolete drivers for file vault, apfs, etc and use the single unified driver that's up to date.

from cloverbootloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.