Jump to content

[Kext Order] - Come elencare le nostre kext nel config di OpenCore


A23SS4NDRO

Recommended Posts

Buonasera a tutti, dagli ultimi commit fatti da PMHeart sul repository di OpenCore, abbiamo un ordine preciso (e aggiornato) di quello che è l'ordine di caricamento delle kexts:

 

Molto probabilmente siccome è implementato in OCvalidate, farà la verifica lui stesso in base a questo ordine

KEXT_PRECEDENCE mKextPrecedence[] = {
  { "VirtualSMC.kext",                                                  "Lilu.kext" },
  { "WhateverGreen.kext",                                               "Lilu.kext" },
  { "SMCBatteryManager.kext",                                           "VirtualSMC.kext" },
  { "SMCDellSensors.kext",                                              "VirtualSMC.kext" },
  { "SMCLightSensor.kext",                                              "VirtualSMC.kext" },
  { "SMCProcessor.kext",                                                "VirtualSMC.kext" },
  { "SMCSuperIO.kext",                                                  "VirtualSMC.kext" },
  { "AppleALC.kext",                                                    "Lilu.kext" },
  { "AirportBrcmFixup.kext",                                            "Lilu.kext" },
  { "BrightnessKeys.kext",                                              "Lilu.kext" },
  { "CpuTscSync.kext",                                                  "Lilu.kext" },
  { "CPUFriend.kext",                                                   "Lilu.kext" },
  { "CPUFriendDataProvider.kext",                                       "CPUFriend.kext" },
  { "DebugEnhancer.kext",                                               "Lilu.kext" },
  { "HibernationFixup.kext",                                            "Lilu.kext" },
  { "NVMeFix.kext",                                                     "Lilu.kext" },
  { "RestrictEvents.kext",                                              "Lilu.kext" },
  { "RTCMemoryFixup.kext",                                              "Lilu.kext" },
  { "VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext", "VoodooPS2Controller.kext" },
  { "VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Mouse.kext",    "VoodooPS2Controller.kext" },
  { "VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Trackpad.kext", "VoodooPS2Controller.kext" },
};

 

 

 

fonte: https://github.com/acidanthera/OpenCorePkg/blob/7a569d7d7a5c48b7de5a21b1a12dd3527e58c816/Utilities/ocvalidate/KextInfo.c#L20-L42

Edited by A23SS4NDRO
  • Like 1
Link to comment
Share on other sites

  • 3 months later...

  

Aggiornamento

 

La regola di norma è verificare l'info.plist del kext e vedere la sezione

 

<key>OSBundleLibraries</key>
	<dict>
		<key>as.vit9696.Lilu</key>
		<string>1.4.9</string>
		<key>com.apple.kpi.bsd</key>
		<string>11.0.0</string>
		<key>com.apple.kpi.dsep</key>
		<string>11.0.0</string>
		<key>com.apple.kpi.iokit</key>
		<string>11.0.0</string>
		<key>com.apple.kpi.libkern</key>
		<string>11.0.0</string>
		<key>com.apple.kpi.mach</key>
		<string>11.0.0</string>
		<key>com.apple.kpi.unsupported</key>
		<string>11.0.0</string>
	</dict>

 

 

E assicurarsi che le kext presenti in OSBundleLibraries che conosciamo noi siano presenti prima del kext nell'ordine della sezione Kernel > Add

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.