Jump to content

OCValidamus


dreamwhite

Recommended Posts

Salve a tutti,

nel mio tempo libero ho scritto un piccolo script in Python che verifica l'esistenza di:

- ACPI

- Driver

- Kext

- Tool

Β 

presenti nelle EFI di OpenCore. Potrebbe risultare utile per coloro che spesso per un motivo o l'altro (come il sottoscritto) si dimenticano di un file abilitato nel config come da screen:

Β 

image.thumb.png.0e3af12135986875365737bf4b227ea3.png

Β 

Potete trovare maggiori info qui: https://github.com/dreamwhite/ocvalidamus

Β 

Β 

  • Like 3
  • Thanks 2
  • +1 1
Link to comment
Share on other sites

  • Supervisor
fabio@fabios-Mac-Pro EFI % python3 ocvalidamus.py 

 β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„ β–„β–„β–„     β–„β–„β–„ β–„β–„β–„β–„β–„β–„  β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„β–„ 
β–ˆ       β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ      β–ˆ   β–ˆ   β–ˆ   β–ˆ      β–ˆβ–ˆ      β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–ˆ β–ˆ  β–ˆ       β–ˆ
β–ˆ   β–„   β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–„   β–ˆ   β–ˆ   β–ˆ   β–ˆ  β–„    β–ˆ  β–„   β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ  β–„β–„β–„β–„β–„β–ˆ
β–ˆ  β–ˆ β–ˆ  β–ˆ     β–„β–„β–ˆ       β–ˆ β–ˆβ–„β–ˆ  β–ˆ   β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆβ–„β–ˆ  β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ β–ˆβ–„β–„β–„β–„β–„ 
β–ˆ  β–ˆβ–„β–ˆ  β–ˆ    β–ˆ  β–ˆ       β–ˆ      β–ˆ   β–ˆβ–„β–„β–„β–ˆ   β–ˆ β–ˆβ–„β–ˆ   β–ˆ      β–ˆ       β–ˆ       β–ˆβ–„β–„β–„β–„β–„  β–ˆ
β–ˆ       β–ˆ    β–ˆβ–„β–„ β–ˆ     β–ˆβ–ˆ  β–„   β–ˆ       β–ˆ   β–ˆ       β–ˆ  β–„   β–ˆ β–ˆβ–ˆβ–„β–ˆβ–ˆ β–ˆ       β–ˆβ–„β–„β–„β–„β–„β–ˆ β–ˆ
β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–ˆ   β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ

							Made with β™‘ by dreamwhite
    

---CHECK ACPI---
Checking 1-SSDT-PLUG.aml (1-SSDT-PLUG)
	- 1-SSDT-PLUG.aml exists
Checking 2-SSDT-SBRG-USBX-v4.aml (2-SSDT-SBRG-USBX-v4.aml)
	- 2-SSDT-SBRG-USBX-v4.aml exists
Checking 5-SSDT-6900XT-v6.aml (5-SSDT-6900XT-v6.aml)
	- 5-SSDT-6900XT-v6.aml exists
Checking SSDT-TB.aml ()
	- SSDT-TB.aml exists

---CHECK Drivers---
Checking OpenRuntime.efi ()
	- OpenRuntime.efi exists
Checking HfsPlus.efi (HFS+ Driver)
	- HfsPlus.efi exists
Checking OpenCanopy.efi ()
	- OpenCanopy.efi exists
Checking ResetNvramEntry.efi ()
	- ResetNvramEntry.efi exists
Checking ToggleSipEntry.efi ()
	- ToggleSipEntry.efi exists

---CHECK Kexts---
Checking Lilu.kext (V1.6.3 | Patch engine)
	- Lilu.kext exist
		- Contents/MacOS/Lilu exists
		- Contents/Info.plist exists
Checking VirtualSMC.kext (V1.3.1 | SMC emulator)
	- VirtualSMC.kext exist
		- Contents/MacOS/VirtualSMC exists
		- Contents/Info.plist exists
Skipping RestrictEvents.kext (V1.0.9 | RestrictEvents.kext) as it's disabled
Checking AMDRyzenCPUPowerManagement.kext (V0.7.1 | AMD Power Gadget)
	- AMDRyzenCPUPowerManagement.kext exist
		- Contents/MacOS/AMDRyzenCPUPowerManagement exists
		- Contents/Info.plist exists
Checking AppleMCEReporterDisabler.kext (V1.2)
	- AppleMCEReporterDisabler.kext exist
		-  exists
		- Contents/Info.plist exists
Skipping WhateverGreen.kext (V1.6.2) as it's disabled
Skipping USBMap.kext (V1.0) as it's disabled
Checking AGPM-RX6900XT.kext (V131)
	- AGPM-RX6900XT.kext exist
		-  exists
		- Contents/Info.plist exists

---CHECK Tools---
Checking OpenShell.efi (Not signed for security reasons)
	 - OpenShell.efi exists
Skipping ResetSystem.efi (Perform shutdown) as it's disabled

No issues found
fabio@fabios-Mac-Pro EFI % 

Β 

Metterei nel read me il fatto che il comando va lanciato entrando precisamente nel volume dove e' la EFI ed il comando

a me con il drag and drop non ha funzionato:

fabio@fabios-Mac-Pro ~ % python3 /Volumes/EFI/ocvalidamus.py

 β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„ β–„β–„β–„     β–„β–„β–„ β–„β–„β–„β–„β–„β–„  β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„β–„ 
β–ˆ       β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ      β–ˆ   β–ˆ   β–ˆ   β–ˆ      β–ˆβ–ˆ      β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–ˆ β–ˆ  β–ˆ       β–ˆ
β–ˆ   β–„   β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–„   β–ˆ   β–ˆ   β–ˆ   β–ˆ  β–„    β–ˆ  β–„   β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ  β–„β–„β–„β–„β–„β–ˆ
β–ˆ  β–ˆ β–ˆ  β–ˆ     β–„β–„β–ˆ       β–ˆ β–ˆβ–„β–ˆ  β–ˆ   β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆβ–„β–ˆ  β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ β–ˆβ–„β–„β–„β–„β–„ 
β–ˆ  β–ˆβ–„β–ˆ  β–ˆ    β–ˆ  β–ˆ       β–ˆ      β–ˆ   β–ˆβ–„β–„β–„β–ˆ   β–ˆ β–ˆβ–„β–ˆ   β–ˆ      β–ˆ       β–ˆ       β–ˆβ–„β–„β–„β–„β–„  β–ˆ
β–ˆ       β–ˆ    β–ˆβ–„β–„ β–ˆ     β–ˆβ–ˆ  β–„   β–ˆ       β–ˆ   β–ˆ       β–ˆ  β–„   β–ˆ β–ˆβ–ˆβ–„β–ˆβ–ˆ β–ˆ       β–ˆβ–„β–„β–„β–„β–„β–ˆ β–ˆ
β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–ˆ   β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ

							Made with β™‘ by dreamwhite
    
Traceback (most recent call last):
  File "/Volumes/EFI/ocvalidamus.py", line 130, in <module>
    OCValidamus()
  File "/Volumes/EFI/ocvalidamus.py", line 20, in __init__
    with open('EFI/OC/config.plist', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'EFI/OC/config.plist'
fabio@fabios-Mac-Pro ~ % 

image.thumb.png.4d968b1a46d48867472e03dc7e9e9378.png

Link to comment
Share on other sites

4 hours ago, fabiosun said:

fabio@fabios-Mac-Pro EFI % python3 ocvalidamus.py 

 β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„ β–„β–„β–„     β–„β–„β–„ β–„β–„β–„β–„β–„β–„  β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„β–„ 
β–ˆ       β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ      β–ˆ   β–ˆ   β–ˆ   β–ˆ      β–ˆβ–ˆ      β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–ˆ β–ˆ  β–ˆ       β–ˆ
β–ˆ   β–„   β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–„   β–ˆ   β–ˆ   β–ˆ   β–ˆ  β–„    β–ˆ  β–„   β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ  β–„β–„β–„β–„β–„β–ˆ
β–ˆ  β–ˆ β–ˆ  β–ˆ     β–„β–„β–ˆ       β–ˆ β–ˆβ–„β–ˆ  β–ˆ   β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆβ–„β–ˆ  β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ β–ˆβ–„β–„β–„β–„β–„ 
β–ˆ  β–ˆβ–„β–ˆ  β–ˆ    β–ˆ  β–ˆ       β–ˆ      β–ˆ   β–ˆβ–„β–„β–„β–ˆ   β–ˆ β–ˆβ–„β–ˆ   β–ˆ      β–ˆ       β–ˆ       β–ˆβ–„β–„β–„β–„β–„  β–ˆ
β–ˆ       β–ˆ    β–ˆβ–„β–„ β–ˆ     β–ˆβ–ˆ  β–„   β–ˆ       β–ˆ   β–ˆ       β–ˆ  β–„   β–ˆ β–ˆβ–ˆβ–„β–ˆβ–ˆ β–ˆ       β–ˆβ–„β–„β–„β–„β–„β–ˆ β–ˆ
β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–ˆ   β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ

							Made with β™‘ by dreamwhite
    

---CHECK ACPI---
Checking 1-SSDT-PLUG.aml (1-SSDT-PLUG)
	- 1-SSDT-PLUG.aml exists
Checking 2-SSDT-SBRG-USBX-v4.aml (2-SSDT-SBRG-USBX-v4.aml)
	- 2-SSDT-SBRG-USBX-v4.aml exists
Checking 5-SSDT-6900XT-v6.aml (5-SSDT-6900XT-v6.aml)
	- 5-SSDT-6900XT-v6.aml exists
Checking SSDT-TB.aml ()
	- SSDT-TB.aml exists

---CHECK Drivers---
Checking OpenRuntime.efi ()
	- OpenRuntime.efi exists
Checking HfsPlus.efi (HFS+ Driver)
	- HfsPlus.efi exists
Checking OpenCanopy.efi ()
	- OpenCanopy.efi exists
Checking ResetNvramEntry.efi ()
	- ResetNvramEntry.efi exists
Checking ToggleSipEntry.efi ()
	- ToggleSipEntry.efi exists

---CHECK Kexts---
Checking Lilu.kext (V1.6.3 | Patch engine)
	- Lilu.kext exist
		- Contents/MacOS/Lilu exists
		- Contents/Info.plist exists
Checking VirtualSMC.kext (V1.3.1 | SMC emulator)
	- VirtualSMC.kext exist
		- Contents/MacOS/VirtualSMC exists
		- Contents/Info.plist exists
Skipping RestrictEvents.kext (V1.0.9 | RestrictEvents.kext) as it's disabled
Checking AMDRyzenCPUPowerManagement.kext (V0.7.1 | AMD Power Gadget)
	- AMDRyzenCPUPowerManagement.kext exist
		- Contents/MacOS/AMDRyzenCPUPowerManagement exists
		- Contents/Info.plist exists
Checking AppleMCEReporterDisabler.kext (V1.2)
	- AppleMCEReporterDisabler.kext exist
		-  exists
		- Contents/Info.plist exists
Skipping WhateverGreen.kext (V1.6.2) as it's disabled
Skipping USBMap.kext (V1.0) as it's disabled
Checking AGPM-RX6900XT.kext (V131)
	- AGPM-RX6900XT.kext exist
		-  exists
		- Contents/Info.plist exists

---CHECK Tools---
Checking OpenShell.efi (Not signed for security reasons)
	 - OpenShell.efi exists
Skipping ResetSystem.efi (Perform shutdown) as it's disabled

No issues found
fabio@fabios-Mac-Pro EFI % 

Β 

Metterei nel read me il fatto che il comando va lanciato entrando precisamente nel volume dove e' la EFI ed il comando

a me con il drag and drop non ha funzionato:


fabio@fabios-Mac-Pro ~ % python3 /Volumes/EFI/ocvalidamus.py

 β–„β–„β–„β–„β–„β–„β–„ β–„β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„ β–„β–„β–„     β–„β–„β–„ β–„β–„β–„β–„β–„β–„  β–„β–„β–„β–„β–„β–„ β–„β–„   β–„β–„ β–„β–„   β–„β–„ β–„β–„β–„β–„β–„β–„β–„ 
β–ˆ       β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ      β–ˆ   β–ˆ   β–ˆ   β–ˆ      β–ˆβ–ˆ      β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–ˆ β–ˆ  β–ˆ       β–ˆ
β–ˆ   β–„   β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ  β–„   β–ˆ   β–ˆ   β–ˆ   β–ˆ  β–„    β–ˆ  β–„   β–ˆ       β–ˆ  β–ˆ β–ˆ  β–ˆ  β–„β–„β–„β–„β–„β–ˆ
β–ˆ  β–ˆ β–ˆ  β–ˆ     β–„β–„β–ˆ       β–ˆ β–ˆβ–„β–ˆ  β–ˆ   β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆβ–„β–ˆ  β–ˆ       β–ˆ  β–ˆβ–„β–ˆ  β–ˆ β–ˆβ–„β–„β–„β–„β–„ 
β–ˆ  β–ˆβ–„β–ˆ  β–ˆ    β–ˆ  β–ˆ       β–ˆ      β–ˆ   β–ˆβ–„β–„β–„β–ˆ   β–ˆ β–ˆβ–„β–ˆ   β–ˆ      β–ˆ       β–ˆ       β–ˆβ–„β–„β–„β–„β–„  β–ˆ
β–ˆ       β–ˆ    β–ˆβ–„β–„ β–ˆ     β–ˆβ–ˆ  β–„   β–ˆ       β–ˆ   β–ˆ       β–ˆ  β–„   β–ˆ β–ˆβ–ˆβ–„β–ˆβ–ˆ β–ˆ       β–ˆβ–„β–„β–„β–„β–„β–ˆ β–ˆ
β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–ˆ β–ˆβ–„β–„β–ˆβ–„β–ˆ   β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ

							Made with β™‘ by dreamwhite
    
Traceback (most recent call last):
  File "/Volumes/EFI/ocvalidamus.py", line 130, in <module>
    OCValidamus()
  File "/Volumes/EFI/ocvalidamus.py", line 20, in __init__
    with open('EFI/OC/config.plist', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'EFI/OC/config.plist'
fabio@fabios-Mac-Pro ~ % 

image.thumb.png.4d968b1a46d48867472e03dc7e9e9378.png

Hai ragione, stavo pensando a questo punto di fare una cosa del tipo drag-n-drop del config e in automatico prende il full path

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.