failed to load - (libkern/kext) not found check the system kernel/logs for errors or try kextulit

Hi,


I have trouble to install new produced KEXT file.


I made upgrade OSX to Hi Sierra and place new XFX RADEON VEGA 56 in to MAC PRO 5.1 dual processor system,

It works now, but fans run on 3200 rpm.



"Fan Speed(%)"=65

"Fan Speed(RPM)"=3206

"Temperature(C)"=30

“Total Power(W)"=46


I found soft control software VGTab_en.app which produce KEXT file for remote the speed of fans. Many users used it successfully.


Not me :-( because I have trouble to initialize KEXT.

I used commands:



/ sudo kextload -b /library/Extensions/nameoffile.kext



It do not work and produce this error:



“failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextulit(8)”



also I try place and run KEXT in the folder /System/Library/Extension , but same result.


Second way to install I used commands:



sudo su
Password:

cp -R /System/Library/Extensions/VegaTab_56.kext /Backup\ Extensions

rm -R /System/Library/Extensions/VegaTab_56.kext

cp -R /Users/PattyHDesktop/VegaTab_56.kext /System/Library/Extension </Desktop/VegaTab_56.kext /System/Library/Extensions

chown -R root:wheel /System/Library/Extensions/VegaTab_56.kext

chmod -R 755 /System/Library/Extensions/VegaTab_56.kext

touch /System/Library/Extensions

exit



Result is same, when I run procedure to check for running external KEXT, the VEGA56 kext missing. And of course fans on VEGA56 run so high.


kextstat | grep -v com.apple


I checked privileges for file also, All users can read and write, except Guest.


Can you help me, please?

What is wrong?


I know about differences applied to HI Sierra for safety button in Security pane, but the button do not apear here.

I think problem is that something missing :-) not security, now.

Thank you.

Replies

Modern versions of macOS require that KEXTs be signed with a Developer ID signing identity. Moreover, that identity must be specifically ‘blessed’ for KEXT use, as discussed in this post. If you were planning to ship a KEXT to a wide audience, I’d recommend that you apply to get your Developer ID KEXT enabled. However, for a personal use KEXT your best option is to disable SIP (per the instructions in the System Integrity Protection Guide).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,

I made described way to be disabled SIP by csrutil, it worked,

csrutil status

Protection status: disabled


but "kextload" bring me result same like on beginning


MacPro:~ PattyH$ sudo kextload -b /Users/PattyH/Desktop/VegaTab_56.kext

Desktop/VegaTab_56.kext failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).


also I try second way, but similar result.


MacPro:~ PattyH$ cd /System/Library/Extensions/

MacPro:Extensions PattyH$ sudo chmod -R 755 VegaTab_56.kext

Password:

MacPro:Extensions PattyH$ sudo chown -R root:wheel VegaTab_56.kext


MacPro:Extensions PattyH$ sudo rm -R Extensions.kextcache

rm: Extensions.kextcache: No such file or directory

MacPro:Extensions PattyH$ sudo rm -R Extensions.mkext

rm: Extensions.mkext: No such file or directory


I try to check if I see kext loaded:

kextstat | grep -v com.apple


I do not see KEXT listed here.

kextstat | grep com.apple

produce long list with manny kexts, but I still do not see this VegaTab_56.kext listed there.


I made performance command, it showed me that card has now reduced fan speed, so it looks kext working, but I do not see it listed.

Or has to check different place with kextstat?


Anny idea to check KEXT?

Let me know, please.

I’m not sure what’s going on here. Honestly, 10.13 is sufficiently long ago that what limited KEXT experience I had on that system has been paged out )-: Still, two things:

  • Any system that has SIP also has a

    /Library/Extensions/
    directory, and that’s where third-party KEXTs should go.
  • Have run you run

    kextutil -t
    against your KEXT? That’s the first step I take in diagnosing issues like this.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

HI,


I try it, result is here:


sh-3.2# kextutil -t VegaTab_56.kext

Can't stat VegaTab_56.kext - No such file or directory.


But file is located in the directory....

/Library/Extensions/


Anny idea?

Thank you.

Were you in

/Library/Extensions/
when you ran that command? If not,
cd
into that directory and try again.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,

Thank you for answer.

Yes after cd to correspond folder, command was run .

But Vega56.kext is not still registered.


Whole porcess is done to slow down fan on new graphics card.

Now from some reason, fan runs slower and I do not why, hence kext is NOT registered.

Also I test MACs Fan Control 1.4.12 , but it also do not see FAN on VEGA card.


here are messages from terminal:


sudo su

sh-3.2# cd /Library/Extensions

sh-3.2# kextutil -t VegaTab_56.kext

Kext with invalid signatured (-67062) allowed: <OSKext 0x7fbc87c1e2c0 [0x7fff89e90c20]> { URL = "file:///Library/Extensions/VegaTab_56.kext/", ID = "com.lihaoyun6.customVegaTab" }

Code Signing Failure: not code signed

Warnings:

Personality CFBundleIdentifier differs from containing kext's (not necessarily a mistake, but rarely done):

Controller


Warnings:

Personality CFBundleIdentifier differs from containing kext's (not necessarily a mistake, but rarely done):

Controller


sh-3.2#

Anny Idea?

Best. PattyH

Hi,


after a few tests I discovered way how to place info from KEXT to system, hence system do not show KEXT is loadad :-)


1. SIP disabled in recovery mode, reboot with CMD-R

2. in terminal in recovery: csrutil disabled

reboot

3. sudo bash

password:

4. chown -R root:wheel /Library/Extensions/NameofFile.kext

5. chmod -R 755 /Library/Extensions/NameofFile.kext

6. codesign --deep -fs - /Library/Extensions/NameofFile.kext

7. touch /Library/Extensions; kextcache -update-volume /

8. reboot


Also great place to see loaded extension is alt-apple menu, system information, Software/ Extensions

there is vissible if KEXT is signed and loaded. At my situaition it looks NO.


Verze: 0.1

Poslední změna: 23.09.18 22:53

ID balíku: com.NameOffile

Načteno: Ne

Obdrženo od: Neznámá

Místo: /Library/Extensions/NemeofFile.kext

Verze Kext: 0.1

Lze zavést: Ne

Chyby ověření podpisů: Kext signature validation error code -67050

Závislosti: Splněno

Podepsáno: Neznámá


Useful app for check what really done with KEXT is IOJones.

https://sourceforge.net/projects/iojones/


from this app is posible to easy locate AMD10000.KEXT

whis is modified by new KEXT.

here are new lines, which control Fan Speed and Undervolting. This lines was add by manually addes KEXT.


aty_properties, Dictionary, 9 values

PP_DisableClockStretcher, Number, 0x1

PP_ToolsLogSpaceSize, Number, 0x80000

PP_GfxOffControl, Number, 0x0

PP_PhmSoftPowerPlayTable, Data, <c2 06 0b 00 02 c2 06 34 08 00 00 a4 35 00 00 7c 00 09 00 00 00 1a fa 00 fa 00 fa 00 00 00 00 00 76 00 01 0b 00 00 00 09 07 00 00 6e 04 00 00 cc 03 00 00 cc 03 00 00 cc 03 00 00 e8 03 00 00 c9 04 00 00 6e 04 00 00 6e 04 00 00 34 04 00 00 2a 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 bc 02 00 00 66 01 00 00 36 01 00 00 36 01 00 00 36 01 00 00 5e 01 00 00 26 02 00 00 66 01 00 00 66 01 00 00 93 00 00 00 0e 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 0e 00 00 00 01 01 01 01 01 01 01 01 01 00 01 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1d 00 00 00 98 08 00 00 98 08 00 00 98 08 00 00 d5 03 00 00 98 08 00 00 d5 03 00 00 98 08 00 00 d5 03 00 00 b0 04 00 00 00 00 00 00 0a 0f 00 00 0a 0f 00 00 5f 00 00 00 6e 00 00 00 02 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00 5f 00 00 00 64 00 00 00 5f 00 00 00 64 00 00 00 5f 00 00 00 64 00 00 00 5f 00 00 00 64 00 00 00 5f 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 28 03 00 00 28 03 00 00 28 03 00 00 e2 02 00 00 28 03 00 00 e2 02 00 00 28 03 00 00 e2 02 00 00 5e 01 00 00 14 00 00 00 c2 01 00 00 c2 01 00 00 19 00 00 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 19 00 00 00 14 00 00 00 19 00 00 00 14 00 00 00 19 00 00 00 14 00 00 00 19 00 00 00 14 00 00 00 19 00 00 00 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 ff ef f4 39 00 00 00 00 fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa 00 00 00 32 00 00 00 4a 01 00 00 64 00 6e 00 5e 00 73 00 73 00 ff ff ff ff ff ff 00 00 00 00 00 00 00 00 01 00 73 00 00 00 00 00 00 00 00 00 f0 0a f0 0a a0 0f a0 0f 26 00 00 00 01 01 09 00 00 00 00 00 00 00 00 00 5b b1 bf 3e ec 51 f8 be 65 19 52 3f 00 01 08 00 64 3b 9f 3f 16 de a5 bd 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00 35 5e 9a 3f 8f 36 2e 3e 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00 69 6f b0 3f 48 33 16 3d 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00 e5 61 a1 3f 12 f7 58 bd 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00 b5 15 83 3f c2 dd 19 3e 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00 86 38 86 3f 0e be 30 3e 00 00 00 00 00 00 00 00 00 00 00 00 00 01 08 00 83 c0 5a 3f 4d a1 f3 3d 00 00 00 00 00 00 00 00 00 00 00 00 02 01 08 00 00 00 00 00 00 00 00 00 a4 70 8d 3f e4 14 85 bf d5 e7 32 3f 02 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d5 e7 32 3f 01 01 08 00 00 00 80 3f 00 00 00 00 d1 91 fc 3e 1f 85 2b bf 32 77 75 3f bc 02 28 03 6e 04 5c 05 0a 06 93 06 d5 06 ed 06 09 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 01 e6 01 6b 02 f4 02 52 03 cc 03 6e 04 6e 04 36 01 90 01 0c 02 6b 02 a8 02 f4 02 52 03 cc 03 36 01 90 01 0c 02 6b 02 a8 02 f4 02 52 03 cc 03 36 01 0c 02 37 02 6b 02 a8 02 f4 02 52 03 cc 03 5e 01 20 03 4c 04 4c 04 26 02 62 02 b2 02 f8 02 66 03 c0 03 38 04 c9 04 66 01 c6 01 37 02 a8 02 f4 02 52 03 cc 03 6e 04 66 01 c6 01 37 02 a8 02 f4 02 52 03 cc 03 6e 04 93 00 f2 00 58 01 e4 01 15 02 aa 03 13 04 34 04 0e 01 1c 02 2a 03 00 00 00 00 00 00 00 00 00 00 09 07 6e 04 cc 03 cc 03 cc 03 e8 03 6e 04 6e 04 34 04 2a 03 c9 04 00 00 c8 00 2c 01 60 09 f0 0a 28 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 07 01 00 00 00 00 00 00 02 06 06 50 00 34 01 00 00 00 00 00 00 00 00 00 00 00 00 90 01 90 01 90 01 90 01 90 01 90 01 90 01 14 00 54 0b 54 0b 0a 0f 5f 00 00 00 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 50 8d 97 3c 0a d7 a3 3b 00 00 00 00 ea b2 98 3c 87 a2 40 3d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 00 01 00 00 00 00 00 00 00 a0 00 00 00 08 10 02 10 1a 04 4c 04 e8 03 e8 03 e8 03 e8 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 86 0b 22 0b 54 0b 00 00 90 01 90 01 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>


PP_Falcon_QuickTransition_Enable, Number, 0x1

PP_DisableULV, Number, 0x1

PP_PhmUseDummyBackEnd, Number, 0x0

PP_EnableUploadFirmware, Number, 0x0

PP_DisablePowerContainment, Number, 0x1


The Bolt letters are new for KEXT and allow manually control VEGA Card.

The table of Hexa codes could be generate by VGTab.app as I wrote before.


Details about the trouble situation with Fan speed and undervolting VEGA RADEON and more infos are here:

https://forums.macrumors.com/threads/how-to-downvolt-a-radeon-vii.2194899/



Share and Enjoy.

Patrik