Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The driver can not be loaded in OS X El Capitan: "System extention cannot be used" #64

Closed
vitalibondar opened this issue Oct 2, 2015 · 25 comments

Comments

@vitalibondar
Copy link

My English is bad, so I have reproduced this problem in the video:
https://cloudup.com/cugKp1TU9d7
Before installing I opened a terminal and run the following command:
sudo nvram boot-args="kext-dev-mode=1"
Then I rebooted my machine.
screen shot 2015-10-02 at 17 07 32
Maybe, your driver not ready yet for El Capitan? I must roll back to Yosemite?

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

El captain is still in beta mode. This may be a bug in El Captain.

In your video the message says

/System/Library/Extensions/EMUUSBAudio.kext failed to load- (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).

Can you please post the messages in the logs ? Maybe that gives more details.

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

Hjalte reported the same issue.

The website of el captain is this

https://www.apple.com/osx/elcapitan-preview/

which is why I assumed El Captain is still in beta mode.

But it also says "Coming September 30" while it's already october 2. So apple's info on this is confusing.

@blusprite
Copy link

This is the actual El Capitan page: https://www.apple.com/osx/

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

Maybe someone using ElCaptain can try if this works

sudo nvram boot-args="rootless=0";sudo reboot

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

This is the actual El Capitan page: https://www.apple.com/osx/

Ah thanks, apparently apple has currently TWO pages on El Captain, one indicating it's in beta and one that it is current.

@vitalibondar
Copy link
Author

I installed the release of El Capitan (non-beta), updated Yosemite.

sudo nvram boot-args="rootless=0";sudo reboot

So, after this.
Output

Installing EMU driver
plz to turn off your EMU USB device for loading of kext, you have 3 seconds to do so
(kernel) Kext com.emu.driver.EMUUSBAudio not found for unload request.
Failed to unload com.emu.driver.EMUUSBAudio - (libkern/kext) not found.
deleting old kext
installing new kernel extension
deleting old midi plugin
installing new midi plugin
doing permissions stuff
loading new kext
Requesting load of /System/Library/Extensions/EMUUSBAudio.kext./System/Library/Extensions/EMUUSBAudio.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8). 
so long

Kernel log message:

Oct 2, 2015, 23:29:14 kernel[0]: Kext com.emu.driver.EMUUSBAudio not found for unload request.
Oct 2, 2015, 23:29:20 kernel[0]: Resetting IOCatalogue.

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

Edit- I did not see that error that fell off the screen

Requesting load of /System/Library/Extensions/EMUUSBAudio.kext./System/Library/Extensions/EMUUSBAudio.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

So still not working. Did you see more messages in the kernel log apart from the "not found for unload"?

Not loadable - I expect some message complaining about the extension not being signed.

@vitalibondar
Copy link
Author

http://pastebin.com/6DTEJbBC

Oct 2, 2015, 23:28:04 com.apple.kextd[45]: Untrusted kexts are not allowed
Oct 2, 2015, 23:28:04 com.apple.kextd[45]: ERROR: invalid signature for com.emu.driver.EMUUSBAudio, will not load

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

Thanks. That confirms it's indeed Apple's increased security policy in El Capitan making this problem.

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

@vitalibondar maybe apple has already disabled the rootless=0 option too.

I read on https://pikeralpha.wordpress.com/2015/07/28/apples-kext-signing-bypassed/ that there are more possibilities. Maybe you can also have a look there.

One is to run the Security Configurator utility and disable the System Integrity Protection.

Can you try that?

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

@vitalibondar

I digged further and found this
https://forums.developer.apple.com/thread/12499

The kext-dev-mode and rootless boot-args are being removed from OS X El Capitan and will no longer work.

The supported way to disable System Integrity Protection in those cases where it's truly necessary is to boot into the Recovery partition and turn System Integrity Protection off from there with the csrutil tool.

you need to disable SIP by booting into recovery mode (cmd+R):

Utilities > Security Configuration > uncheck "Enforce System Integrity Protection"

Does that work?

@Wouter1
Copy link
Owner

Wouter1 commented Oct 2, 2015

In other posts I read that after the cmd-R boot you need to enter this command

csrutil disable

@vitalibondar
Copy link
Author

It's okay, I just went to sleep :) but returned.
Well, now the driver works, but after turning on EMU I see an error message from the post 1.
screen shot 2015-10-02 at 17 07 32
But the recorded sound is distorted (Reaper, Logic, Quicktime).
https://cloudup.com/ihcV-dV6lWL

@vitalibondar
Copy link
Author

Playback (iTunes, any DAW) ok, despite the error.

@djohayn
Copy link

djohayn commented Oct 2, 2015

Used the 'csrutil disable' command and it worked perfectly!

@vitalibondar
Copy link
Author

recovery mode > terminal > csrutil disable

20151003_002606

@djohayn Recording?

@djohayn
Copy link

djohayn commented Oct 2, 2015

sorry saying it works perfectly might be an overstatement. I only use my mac setup for playback. So that works smoothly without any error messages or anything. Don't know how the recording might work. But it looks fine when I checkout the input in system pref.

I went to recovery mode holding cmd+r during boot and then put the csrutil disable command in the terminal there.

@Wouter1
Copy link
Owner

Wouter1 commented Oct 3, 2015

Thanks for all the testing. So if i wrap up, in El Capitano, the command sudo nvram boot-args="kext-dev-mode=1" has to be replaced with boot in safe mode (cmd-R) and then enter csrutil disable

However, recording does not work properly. I will make a new ticket for that.

@Wouter1
Copy link
Owner

Wouter1 commented Oct 3, 2015

Added instructions in the readme for enabling developer kext on El Capitano.
Made new ticket for the recording issues.

@Wouter1 Wouter1 closed this as completed Oct 3, 2015
@kornerious
Copy link

Cracks during recording, even with large buffer size(

@Wouter1
Copy link
Owner

Wouter1 commented Oct 20, 2015

@kornerious, recording under El Capitan issue is known #65.

@kornerious
Copy link

oh. can you tell when will be some news?)

2015-10-20 23:39 GMT+03:00 Wouter1 notifications@github.com:

kornerious, recording issue is known #65
#65.


Reply to this email directly or view it on GitHub
#64 (comment).

@kornerious
Copy link

  1. I am using your driver in Yosemite. Wanted to load low latency but up to
    512 samples i got cracks( is it normal?
  2. Your normal driver shows 10 msec latency, but with 32 buffer i get some
    cracks also (from 64 is all right) - is it also normal?

i5 2500+8gb DDR

2015-10-21 0:43 GMT+03:00 ALexandr Kiliyevich kornerious@gmail.com:

oh. can you tell when will be some news?)

2015-10-20 23:39 GMT+03:00 Wouter1 notifications@github.com:

kornerious, recording issue is known #65
#65.


Reply to this email directly or view it on GitHub
#64 (comment).

@Wouter1
Copy link
Owner

Wouter1 commented Oct 21, 2015

@kornerious, this ticket has been closed already 2 weeks ago and it's neither about Yosemite nor about cracks. Please post in the correct ticket or make a new one. I made one for you #73.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants