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

[Feature implementation Request] Add block kext feature in config.plist #670

Closed fabiosun closed 6 months ago

fabiosun commented 7 months ago

It's not really an issue but a request or my wish list for Clover :) Clover has a very interesting possibility when you're at the boot menu level Pressing the space button allows you to access this section: Kext block Kext block 1 Kext block 2 It is also possible to lock in another section of the config.plist of OSX internal kexts as we do with SkywalkFamily: OSX blocked kext

@jief666 , @SergeySlice

I'd like to understand if it's possible to implement kext locking that we have in the various folders in Clover/Kexts by editing the config.plist, as after all it's already possible to do at the bootmenu level. Or does that possibility already exist?

fabiosun commented 7 months ago

Do you mean as i show in originate post in first message of this issue?

Don't close. It's fine. Let's try to understand.

I don't like misunderstandings even though this time I don't seem to have said anything bad or against people one can agree or disagree with opinion without "bombarding" the other with a "stupid" epithet

YBronst commented 7 months ago

@fabiosun Don't close.

I don't think this feature would change much for you. It'll save you 2 unticks in the kexts menu.

unticking could be usuful if you have also other kext to untick as ie here: image this is a real Mac Pro 5.1 i am trying to use in it your chooser and clover (and i am failing for now) I will close this issue and sorry for your time lost ;) Снимок экрана 2024-01-27 в 18 46 15

@fabiosun Don't close. This may be helpful for understanding. As for the real Mac, I can assume that the failure was due to the order of the kexts in the table. Here is the right order that allowed my old Mac Pro 6.1 to boot into Sonoma.

jief666 commented 7 months ago

Do you mean as i show in originate post in first message of this issue?

Yes, what's wrong with that ? Because we know that you have to go into some Clover menu anyway.

jief666 commented 7 months ago

What's this editor you are using for config.plist ?

fabiosun commented 7 months ago

was due to the order of the kexts in the table.

See @YBronst , that's what I expect from you being an experienced user. Not the personal attacks <3

On that mac I can't run sonoma because I have mounted an RX6600 graphics card which is not supported by OCLP for the time being In a Hack it works well also in sonoma In Mac Pro 5.1 only till Monterey (it is a CPU feature list). but here a bit off topic i try to convince @jief666 using all my arrows :)

jief it i a graphical plist Editor (OCAT) it is only OpenCore compatible

YBronst commented 7 months ago

What's this editor you are using for config.plist ?

I usually use PlistEdit Pro.app, but in the case of the OC - OCAuxiliaryTools.app

YBronst commented 7 months ago

was due to the order of the kexts in the table.

See @YBronst , that's what I expect from you being an experienced user. Not the personal attacks <3

On that mac I can't run sonoma because I have mounted an RX6600 graphics card which is not supported by OCLP for the time being In a Hack it works well also in sonoma In Mac Pro 5.1 only till Monterey (it is a CPU feature list). but here a bit off topic i try to convince @jief666 using all my arrows :)

jief it i a graphical plist Editor (OCAT) it is only OpenCore compatible

Never mind, I wasn't offended. And don't be offended by me. But here I don’t agree with you. Radeon RX 6650 XT works fine for me in Mac pro 6.1 and in other hacks.

jief666 commented 7 months ago

There is 2 conversations going on at the same time at that doesn't make it easy. YBronst : you seems to speak about disable kexts by modifying your Clover folder prior to reboot. It seems to me that fabiosun would like to be able to reboot without having to modify his clover folder.

jief666 commented 7 months ago

Let's not add a conversation about graphic cards, please.

YBronst commented 7 months ago

There is 2 conversations going on at the same time at that doesn't make it easy. YBronst : you seems to speak about disable kexts by modifying your Clover folder prior to reboot. It seems to me that fabiosun would like to be able to reboot without having to modify his clover folder.

Probably yes!

jief666 commented 7 months ago

@fabiosun so far, it seems to me that this feature would only save you to go in the kext Clover menu. Am I correct ?

fabiosun commented 7 months ago

t seems to me that fabiosun would like to be able to reboot without having to modify his clover folder.

It seems to me that fabiosun would like to be able to reboot without having to modify his clover folder.

correct but also correct order could be a good point to discuss :) with those two kexts i would like to untick we have a great fortune in Clover Inside one of these kext there is a plugin folder with inside another kext Clover add automatically in the right order and all the patches work with opencore we have to declare the correct order (please dont get it wrong i am not comparing two booloaders)

fabiosun commented 7 months ago

But maybe you can convince us...

I am losing in this convincing work :)

jief666 commented 7 months ago

The principle of Clover is to handle everything that exists in folders. ACPI, Kext, Drivers. The principle of OC is to redundantly have the kext (acpi and drivers as well) declared and enabled in config.plist. The benefit of this redundancy is to be able to choose the order manually. I don't think we will change that principle. So being able to block a kext that you put in the right folder seems to counteracting settings. It's true that you have to manually delete the plugins you don't want. Which is annoying to remember when you update a kext that contains plugins. So a feature like you propose would allow to disable once for all a plugin.

And there is still this order problem. The truth is that the order can be deduced from dependency that's in kext plist. I really don't know why OC didn't do that. I was planning to do that in Clover but ran out of time. So now, some order is hard-coded in Clover (for example lilu first, etc).

I am losing in this convincing work :)

Not sure. I like the idea that it'll fix the plugins problem.

I didn't follow about the order of kexts. Is it another problem ?

Have you tried to reboot, allowing the Sonoma IOSkyWalk, without disabling the kexts in the Clover menu ? The IOSkyWalk from Clover should be ignored because of a kernel link problem.

fabiosun commented 7 months ago

Have you tried to reboot, allowing the Sonoma IOSkyWalk, without disabling the kexts in the Clover menu ? The IOSkyWalk from Clover should be ignored because of a kernel link problem.

you mean two kexts in Others or in 14 folder or the one i could block in clover config,plist?

fabiosun commented 7 months ago
image

these two kext or the other inside the config.plist?

and this is for the order (not a problem luckily in this case)

image
jief666 commented 7 months ago

Having kexts in Other or in 14, when you boot Sonoma, doesn't make a difference at all. Both folder contents will be added to the list of kext to add. You said you have to unblock the original IOSkywalkFamily (by changing the quirks in config.plist), therefore you have to disable OSSkywalkFamily that you have in kets/Other. Did you try to unblock the original IOSkywalkFamily boot with all kexts you have in Other ?

fabiosun commented 7 months ago

Did you try to unblock the original IOSkywalkFamily boot with all kexts you have in Other ?

No i try by now

by the way a stupid idea is it possible to create a folder xx with inside some kext and then untick them in config.plist? so the original idea of CLover stay as devs studied in the past..and i and maybe others will be happy :)

iknow....it is the same things to do in other forms :)

fabiosun commented 7 months ago
image

first step now rebooting

jief666 commented 7 months ago

Then can you update ? (Problem may be : there is no update available to test)

YBronst commented 7 months ago

I have now launched the installation on a second computer identical to mine from a flash drive that was created before the release of Sonoma 14.1 and will try to go through all the steps sequentially. I have another Wi-Fi card, Fenwi T-919. And I’ll write what happens.

fabiosun commented 7 months ago

Then can you update ? (Problem may be : there is no update available to test)

2024-01-27_17-39_CLOVERX64.efi.log.zip it hangs immediatey WhatsApp Image 2024-01-27 at 18 44 29

fabiosun commented 7 months ago

It seems Clover considers the same kexts and they conflict with unblocked system one that is newer

jief666 commented 7 months ago

From your log, it looks like OC linked that kext even though it already exist in the kernel. So I guess you'll have to deactivate these kext for now.

fabiosun commented 7 months ago

it is a similar error we have before you adjusted skywalk block in configplist

YBronst commented 7 months ago

The first stage is completed. WiFi doesn't work. The USB dongle stick wor Снимок экрана 2024-01-27 в 20 03 17 Снимок экрана 2024-01-27 в 20 02 37 ks. Now I'll use OCPL and try to rollback.

YBronst commented 7 months ago

Booted with these settings: Снимок экрана 2024-01-27 в 20 16 42 Снимок экрана 2024-01-27 в 20 15 19 Снимок экрана 2024-01-27 в 20 17 52 Started updating. The download is about 880 MB.

fabiosun commented 7 months ago

@YBronst if i am not wrong Jief asked to try with those two kexts in your 14 folder

in condition you show in pictures it works and you are updating as it should be also for me blocking those kexts

YBronst commented 7 months ago

@YBronst if i am not wrong Jief asked to try with those two kexts in your 14 folder

in condition you show in pictures it works and you are updating as it should be also for me blocking those kexts

Now I will try your method. But first you need to update to 14.2 :)

jief666 commented 7 months ago

it is a similar error we have before you adjusted skywalk block in configplist

Ah yes sure. So yes, for now you'll have to disable these kext by untick them in Clover menu or by moving them out of the Other folder. For the feature, I understood @SergeySlice is against it. Is it still the case ? Personally, I like the ability to disable plugins so I'm not 100% against it, but for sure I don't have time right now to implement it.

YBronst commented 7 months ago

it is a similar error we have before you adjusted skywalk block in configplist

Ah yes sure. So yes, for now you'll have to disable these kext by untick them in Clover menu or by moving them out of the Other folder. For the feature, I understood @SergeySlice is against it. Is it still the case ? Personally, I like the ability to disable plugins so I'm not 100% against it, but for sure I don't have time right now to implement it.

I'll try now, it says another 12 minutes.

jief666 commented 7 months ago

@YBronst if i am not wrong Jief asked to try with those two kexts in your 14 folder

I thought the link would fail if 2 IOSkywalkFamily.kext were present. But no, it is still linked, therefore crash. Thanks for the test.

fabiosun commented 7 months ago

I'm not 100% against it, but for sure I don't have time right now to implement it.

'm glad I caught your attention

in Italy let's say I put the flea in your ear! :)

jief666 commented 7 months ago

in Italy let's say I put the flea in your ear! :)

I'm not sure I like the idea of flea in my ears :-)

YBronst commented 7 months ago

And so, now I have Sonoma 14.2 and I can apply OCPL and do a rollback. I returned the kexts to folders 14 and another.

YBronst commented 7 months ago

All. We've arrived. KP! At the same stage. :( This method doesn't work.

fabiosun commented 7 months ago

in Italy let's say I put the flea in your ear! :)

I'm not sure I like the idea of flea in my ears :-)

annoyance will make you code, in the case, more quickly :)

YBronst commented 7 months ago

Hm. The second reboot was successful. I probably forgot to do something in Clover's menu. Now I will update to 14.3 :) I'll go have some tea while the update downloads.

YBronst commented 7 months ago

I'm done. 2 KP and 4 reboots. It is very difficult to catch the moment when you need to press the key (O). It didn’t work with the space because it was loading immediately. But I still installed the update. I applied OCPL and Wi-Fi also wor Снимок экрана 2024-01-27 в 21 13 27 ked. Снимок экрана 2024-01-27 в 21 13 44 The option with moving kexts worked more reliably. And yes, I did not reset NVRAM. Not needed. That's it, I delete the Mac OS and start installing Windows. Tomorrow is a working day and I have to give the assembled computer to the client.