Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOUserClient problem



So, really noone here that could give me a clue ? I've lost hours and hours on that one, I really don't know what to try next.

I somehow managed to get rid of the error message when the kext loads.

Got the SimpleUserClient working alright.

My guess is that because my driver is a subclass of IOHIDDevice, somehow the other IOHIDUserClient in the USBHIDFamily prevents me from installing my own. Or maybe just something stupid with the plist or the build settings.

I've attached the plist.

Thanks;

Laurent



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>ACMEUSBDriver</string>
<key>CFBundleGetInfoString</key>
<string>1.0, Copyright ACME 2006-2007</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.ACME.iokit.ACMEUSBDriver</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>USB Driver for ACME Keyboard</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>ACME Keyboard</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.ACME.iokit.ACMEUSBDriver</string>
<key>HIDDefaultBehavior</key>
<string></string>
<key>IOClass</key>
<string>ACMEUSBDriver</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
<key>idProduct</key>
<integer>261</integer>
<key>idVendor</key>
<integer>5426</integer>
</dict>
<key>ACME Keyboard 2</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.ACME.iokit.ACMEUSBDriver</string>
<key>IOClass</key>
<string>ACMEUSBDriver</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>1</integer>
<key>idProduct</key>
<integer>261</integer>
<key>idVendor</key>
<integer>5426</integer>
<key>IOUserClientClass</key>
<string>ACMEUserClient</string>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.3</string>
<key>com.apple.iokit.IOUSBFamily</key>
<string>1.8.4</string>
<key>com.apple.kernel.libkern</key>
<string>6.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Console</string>


</dict>
</plist>



On Mar 27, 2007, at 4:36 AM, Laurent Humbert wrote:

Hi list,

I've have this driver that has always worked fine (it's a "rebranded" IOUSBHIDDriver)

I wanted to add a simple UserClient to it and I just can't get it to work.

I got the SimpleUserClient sample code, added the IOUserClientClass property etc...

But nope. Here's what I get.

Laurent-Humberts-PB:~ lh$ sudo kextload -t /System/Library/ Extensions/XXXXUSBDriver.kext
kextload: extension /System/Library/Extensions/XXXXUSBDriver.kext appears to be valid
kextload: kmod_control/start failed for com.xxxx.iokit.XXXXUSBDriver; destroying kmod
kextload: a link/load error occured for kernel extension /System/ Library/Extensions/XXXXUSBDriver.kext
load failed for extension /System/Library/Extensions/ XXXXUSBDriver.kext


I get this error even if I don't add the IOUserClientClass property to my Info.plist.

The driver itself seems to be operational. If I try to connect to the UserClient from user-land the call to IOServiceOpen succeeds, but when I call

kernResult = IOConnectMethodScalarIScalarO(dataPort, kMyUserClientOpen, 0, 0);

I get error an e00002c2 (Bad Parameter).

This is on 10.4.9/PPC. Tried everything I could think of.

Any help much appreciated.


Laurent _______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >USBInterfaceInterface information different in my code than in USB Prober (From: email@hidden)
 >Re: USBInterfaceInterface information different in my code than in USB Prober (From: Barry Twycross <email@hidden>)
 >IOUserClient problem (From: Laurent Humbert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.