Re: kextload error: "not a bundle"
Re: kextload error: "not a bundle"
- Subject: Re: kextload error: "not a bundle"
- From: Quinn <email@hidden>
- Date: Wed, 24 Nov 2004 16:28:24 +0000
At 19:02 -0500 17/11/04, Brian Jorgage wrote:
I am following the "Hello Kernel" example under Darwin documentation.
When I try to load the kext using "sudo kextload -v HelloKernel.kext" I
get the following response: "can't load kernel extension
HelloKernel.kext (not a bundle)...".
I've looked through the documentation but nothing makes any mention of
this error or how to fix it.
Does anyone know how to fix this ?
This error is coming from the KEXT manager, specifically the
KXKextManagerErrorStringForError routine in
"IOKitUser/kext.subproj/KXKextManager.c". If you look for the
corresponding error constant (kKXKextManagerErrorNotABundle), you'll
find the KEXT manager raises it in the following circumstances:
o CFBundleGetIdentifier returns NULL indicating that the KEXT bundle
has no CFBundleIdentifier property
o CFBundleGetInfoDictionary returns NULL, indicating that the KEXT
bundle doesn't have an Info.plist file
o the bundle's Info.plist file doesn't represent a dictionary
These are all in the "IOKitUser/kext.subproj/KXKext.c" file.
You should check that your KEXT is laid out as follows:
MyExtension.kext
Contents
Info.plist
and that the Info.plist is a proper plist file (try opening it with
Property List Editor).
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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