CloverHackyColor / CloverBootloader

Bootloader for macOS, Windows and Linux in UEFI and in legacy mode
BSD 2-Clause "Simplified" License
4.48k stars 617 forks source link

Problem Boot #661

Closed GiesteiraPG7 closed 7 months ago

GiesteiraPG7 commented 8 months ago

boot only restarts with the latest commits

preboot.log

jief666 commented 8 months ago

Can't really understand what is the problem. I understand that you have compiled yourself the latest commit. It doesn't boot ? Where is it stuck ?

GiesteiraPG7 commented 8 months ago

it just boots at +++++ and restarts in a loop

GiesteiraPG7 commented 8 months ago

https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/?do=findComment&comment=2815195

jief666 commented 8 months ago

But it works the last version I've sent you ?

GiesteiraPG7 commented 8 months ago

Nop

jief666 commented 8 months ago

Are you not PG7 on InsanelyMac ?

GiesteiraPG7 commented 8 months ago

Yes, but this is no longer atheros wifi!

here it's another machine and no longer boots with the latest versions of Clover in Commit

jief666 commented 8 months ago

Ok. So this compter, can you boot with an older Clover or an OpenCore ?

GiesteiraPG7 commented 8 months ago

just has r5156 (commit: 187400d0a) yes

jief666 commented 8 months ago

Ok. Could you setup a repo with your EFI as described here : https://jief-machak.gitbook.io/cloverhelp/initial-setup It'll make our life so much easier.

jief666 commented 7 months ago

I suggest you follow very carefully this guide : https://jief-machak.gitbook.io/cloverhelp/init It'll be too slow otherwise.

jief666 commented 7 months ago

Does the problem still exist with this version : CloverX64-2024-01-15-18-47-28-8697e93-jief.zip ?

GiesteiraPG7 commented 7 months ago

same concern preboot.log

jief666 commented 7 months ago

Do not send preboot.log. Instead, activate debug in boot section and you'll get log with file named like 2024-01-15_18-51_CloverX64.efi.log. Send me that log.

GiesteiraPG7 commented 7 months ago

2024-01-15_19-31_BOOTX64.EFI.log

jief666 commented 7 months ago

Much better !

Now, do you have a previous version of Clover that can boot that same compter ?

GiesteiraPG7 commented 7 months ago

Much better !

Now, do you have a previous version of Clover that can boot that same compter ?

2024-01-15_19-48_BOOTX64.EFI boot ok r5156.log

jief666 commented 7 months ago

AppleCpuPmCfgLock is true with the old version, but false with the latest. Do you use the same Clover folder, so we can be sure that the config.plist is identical ?

jief666 commented 7 months ago

Same goes for AppleXcpmCfgLock

GiesteiraPG7 commented 7 months ago

AppleCpuPmCfgLock is true with the old version, but false with the latest. Do you use the same Clover folder, so we can be sure that the config.plist is identical ?

I use everything the same

jief666 commented 7 months ago

I made a mistake thinking I made a mistake !!!

So no, I compared the right files. I'm seeing :

ACPCL 0 AXCL 0 AXEM 0 AXFB 0 CSG 0 DIM 1 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 FAI 0 IPBS 0 LKP 0 PNKD 1 PTKP 1 TPD 1 XPL 0 PCC 0
C

versus

ACPCL 1 AXCL 1 AXEM 0 AXFB 0 CSG 0 DIM 1 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 IPBS 0 LKP 0 PNKD 1 PTKP 1 TPD 1 XPL 0 PCC 0
G

ACPCL=AppleCpuPmCfgLock and AXCL=AppleXcpmCfgLock

jief666 commented 7 months ago

Ijust found that Clover will turn this patch on if MSR 0xE2 is locked. In the log that doesn't work we can see :

MSR 0xE2 before patch 7E008006
MSR 0xE2 is locked, PM patches will be turned on

And you know what ? I've heard of it but I don't know what that is !

jief666 commented 7 months ago

Maybe that's not the reason, but has the MSR 0xE2 changed on that computer ?

GiesteiraPG7 commented 7 months ago

Maybe that's not the reason, but has the MSR 0xE2 changed on that computer ?

No, it's not in the bios

GiesteiraPG7 commented 7 months ago

I'm going to test here with OpenCore v0.9.8 to see if the boot is normal and solve the "problem" if it is the CFG (MSR 0xE2)

jief666 commented 7 months ago

Clover check MSR 0xE2 way before calling OC. And in your previous log, it wasn't locked. So that's a change. I know it's not in the bios. But there is way to lock/unlock it. So something changed. Did you change any driver. Wasn't there a driver to unlock MSR 0xE2 ?

GiesteiraPG7 commented 7 months ago

Clover check MSR 0xE2 way before calling OC. And in your previous log, it wasn't locked. So that's a change. I know it's not in the bios. But there is way to lock/unlock it. So something changed. Did you change any driver. Wasn't there a driver to unlock MSR 0xE2 ?

The only change he made was Boot.efi and Cloverx64.efi, the rest is the same as what I'm using in version v5156

booted with OpenCore v0.9.8 exactly the same and it boots normally

I'll try to use a way to disable CFG and I'll be right back

boot oc v0.9.8

GiesteiraPG7 commented 7 months ago

all tests have the same result

jief666 commented 7 months ago

Here is a 5156 version, the exact same one that works, just with added logs. Boot it and send me the log please.

GiesteiraPG7 commented 7 months ago

Here is a 5156 version, the exact same one that works, just with added logs. Boot it and send me the log please.

ICI EFI r5156 Work

jief666 commented 7 months ago

Forgot to send the efi file. Try this one : CloverX64-2024-01-16-19-17-46-7e3ffed-dirty-jief.zip and send me the log please. Send me ONLY the log. Thanks.

GiesteiraPG7 commented 7 months ago

Forgot to send the efi file. Try this one : CloverX64-2024-01-16-19-17-46-7e3ffed-dirty-jief.zip and send me the log please. Send me ONLY the log. Thanks.

with this test it works without problems

Thanks Jief666 & Team Clover

2024-01-16_18-41_BOOTX64.EFI.log

jief666 commented 7 months ago

It's not completely finished ! Could try with this config : config.plist.zip and this Clover efi : CloverX64-2024-01-16-13-35-00-7e3ffed-jief.zip ?

GiesteiraPG7 commented 7 months ago

It's not completely finished ! Could try with this config : config.plist.zip and this Clover efi : CloverX64-2024-01-16-13-35-00-7e3ffed-jief.zip ?

Now I'm home

tomorrow I test

jief666 commented 7 months ago

Sure, no pb.

GiesteiraPG7 commented 7 months ago

It's not completely finished ! Could try with this config : config.plist.zip and this Clover efi : CloverX64-2024-01-16-13-35-00-7e3ffed-jief.zip ?

Work 2024-01-17_12-17_BOOTX64.EFI.log

jief666 commented 7 months ago

Ok. so it does mean that you need these 2 settings KernelPM and AppleIntelCPUPM. Leave them on (true), because the automatic activation of these 2 settings has been removed from Clover master branch. This is still compatible with old clover because old clover just set them on for you. If they are already on, no pb of course.

Any further question on that topic ? If not, you're welcome to close this thread.

GiesteiraPG7 commented 7 months ago

D'accord. cela signifie donc que vous avez besoin de ces 2 paramètres KernelPM et AppleIntelCPUPM. Laissez-les activés (true), car l'activation automatique de ces 2 paramètres a été supprimée de la branche principale de Clover. Ceci est toujours compatible avec le vieux trèfle, car le vieux trèfle vient de les installer pour vous. Si ils sont déjà allumés, pas de pb bien sur.

D'autres questions sur ce sujet ? Sinon, vous pouvez fermer ce fil.

everything is ok in this case, thank you for all the work done

GiesteiraPG7 commented 7 months ago

Thank you to the entire team and one in particular to @Jief666 for all the support he has given the community

sorted out