Re: Help! Can't get kext to load at boot...
Re: Help! Can't get kext to load at boot...
- Subject: Re: Help! Can't get kext to load at boot...
- From: Nathan Slingerland <email@hidden>
- Date: Fri, 3 Oct 2003 16:51:44 -0700
Hi Brad,
I believe the CHUD kexts have similar requirements to your kext - we
want our kexts to be loaded at boot time (actually at some point we
will change this so that they are loaded on demand so as not to waste
wired memory, but for now...) but don't actually match to any hardware
device.
Our Info.plist contains the following relevant fields (especially note
the IOProviderClass and IOResourceMatch fields). Note that you do not
to specify the OSBundleRequired characteristic to get the kexts to load
at boot time (this only ensures that they will load even in safe mode).
The tutorial at
http://developer.apple.com/documentation/Darwin/Conceptual/howto/
kext_tutorials/hello_iokit/hello_iokit.html talks about some of these
fields in more detail.
<key>IOKitPersonalities</key>
<dict>
<key>FirstPersonality</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.iokit.CHUDUtils</string>
<key>IOClass</key>
<string>CHUDUtils</string>
<key>IOMatchCategory</key>
<string>CHUDUtils</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
<key>IOUserClientClass</key>
<string>CHUDUtilsUserClient</string>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.kernel.bsd</key>
<string>6.0</string>
<key>com.apple.kernel.iokit</key>
<string>6.0</string>
<key>com.apple.kernel.mach</key>
<string>6.0</string>
</dict>
--
Nathan Slingerland
Architecture and Performance Group
Apple Computer, Inc.
On Oct 3, 2003, at 4:25 PM, Brad Post wrote:
I'm at my wits end. I have tried everything to get my kext to load at
boot
time and it's not working, so I am hoping someone can help me.
I've got the following set in the Info.plist
OSBundleLibraries
com.apple.kernel.bsd = 1.1
com.apple.kernel.mach = 1.1
com.apple.kernel.libkern = 1.1
OSBundleRequired = Root
I have tried using kextcache and it reports no errors, it's just after
I
reboot the kext doesn't.
I have tried the simple generic kext as well and it doesn't work, so
can
someone help?
I need to be able to support 10.2 and later, so I am still using
Project
Builder...
Thanks.
Brad
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.