Re: NKE does kextload successfully, but does not load at startup time
Re: NKE does kextload successfully, but does not load at startup time
- Subject: Re: NKE does kextload successfully, but does not load at startup time
- From: Terry Lambert <email@hidden>
- Date: Mon, 14 Nov 2005 18:27:14 -0800
On Nov 14, 2005, at 4:52 PM, Michael Dautermann wrote:
I have two NKE's... one for 10.3 and one for 10.4, and both of
them load with no complaints when doing a "sudo kextload -t" on
their respective systems.
After copying them into "/System/Library/Extensions", the driver
doesn't get picked up and loaded at boot time.
/var/log/system.log shows no complaints at all (it'd be useful if
it did... should that be a feature request for Radar?)
The system does not automatically load network kernel extensions.
If there is a driver that matches hardware according to IOKits
matching rules, IOKit will load it automatically. Since this is a
network kernel extension and not an IOKit driver, it must be
loaded manually. If you need to load at startup, you can use a
startup script. If you need to be loaded only while some
application is running, the application can use kextload to load
the kext.
groovy. thanks for the response, Josh.
It doesn't make intuitive sense to me why only certain kexts in /
System/Library/Extensions would get loaded and others not, but I
don't make the rules. :-)
Using "kextload" in a startup shell script would mean it's okay to
load the NKE from anywhere (outside of the extensions folder) on
disk I want, right?
You can make your kext "required" by adding:
<key>OSBundleRequired</key>
<string>Root</string>
to it's Info.plist file. It will then be loaded at system startup time.
See also:
http://developer.apple.com/documentation/Darwin/Conceptual/
KEXTConcept/KEXTConceptLoading/loading_kexts.html
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden