Sign in to follow this  
emileej

OS X: IOKit device driver with project builder

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this