• Advertisement
Sign in to follow this  

OS X: IOKit device driver with project builder

This topic is 4794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey! I need to create a device driver on OS X and I've looked at the IOKit for this project. I found this tutorial: Hello I/O Kit: Creating a Device Driver With Xcode The only problem is that this tutorial is aimed at XCode whereas I, only running on Panther, am using Project Builder. When I try to load my kext file I get this error:
kextload: kext /tmp/Test.kext is not valid
can't add kernel extension Test.kext (not a kernel extension)
(run kextload on this kext with -t for diagnostic output)
I follow instructions given in the error message - resulting in this output:
can't add kernel extension Test.kext (validation error)
(run kextload on this kext with -t for diagnostic output)
kernel extension Test.kext has problems:
Validation failures
{
    "Info dictionary missing required property/value" = (
        "CFBundlePackageType"
        "CFBundleVersion"
        "IOKitPersonalities:HelloIOKit:IOProviderClass"
    )
}
Missing dependencies
{
    "com.apple.kernel.mach" = 
        "A valid compatible version of this dependency cannot be found"
    "com.apple.kernel.iokit" = 
        "A valid compatible version of this dependency cannot be found"
    "com.apple.kernel.libkern" = 
        "A valid compatible version of this dependency cannot be found"
}
Anyone have a solution to this problem or perhaps another tutorial or working source?

Share this post


Link to post
Share on other sites
Advertisement
Hmm I just found and corrected some simple errors, but still I get this error message:

kernel extension Test.kext has problems:
Validation failures
{
"Info dictionary missing required property/value" = (
"CFBundlePackageType"
"CFBundleVersion"
)
}
Missing dependencies
{
"com.apple.kernel.mach" =
"A valid compatible version of this dependency cannot be found"
"com.apple.kernel.iokit" =
"A valid compatible version of this dependency cannot be found"
"com.apple.kernel.libkern" =
"A valid compatible version of this dependency cannot be found"
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement