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: codeless kext, leopard, HID



Philippe

for my information, isn't a kext supposed to be reported by kextstat
if the kextload suceeded ?
For a codeless kext, the CFBundleIdentifier referenced in the IOKitPersonalities dict is what will be displayed by kextstat as this is the actual driver which was matched to the device. The CFBundleIdentifier for the codeless kext will not be shown by kextstat since there is no code with this codeless CFBundleIdentifier.

Is the 'touch' step required ? that is the first time I hear about this.
some mentionned a 'sudo killall -SIGHUP kextd' after copying in /S/L/E ...
This command is documented in the "Kernel Extensions Programming Topics"
document
<http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/
KEXTConceptDependencies/kext_dependencies.html>

The relevant info is
"Software installers that install and remove kernel extensions can copy them to /System/Library/Extensions or remove them from that folder. To load a new, nondriver KEXT either the system must be restarted or the new KEXT must be explicitly loaded with the kextload utility. To load a driver KEXT the system must be restarted to ensure reliable matching and loading of the driver for all possible devices.
The system keeps a cache of installed KEXTs to speed up boot time. It updates this cache when it detects any change to the /System/Library/Extensions folder. If an installer installs an extension as a plug-in of another, however, only a subfolder of the /System/Library/Extensions folder is updated and the automatic cache update is not triggered. To force a cache update, you can change the modification date of the /System/Library/Extensions folder by using the UNIX command touch. For example, placing
touch /System/Library/Extensions


in a postprocessing shell script for your installer will guarantee that the cache gets updated."

( my own codeless kext is not doing the job, still lookign for a
foolproof how-to.... )
I'm planning to write a tech note on this, but it's still coming. In the meantime I mentioned using USBProber to see whether your kext is even being considered as a match possibility.

Recently I had a case where the codeless kext would not match and the problem turned out to be that I had swapped the VID and PID values in the IOKitPersonalities entry. USB Prober with a level 7 log, will show what kexts were considered match possibilities.

best wishes.

rich


At 7:59 PM +0100 12/5/07, Philippe BARTHELEMY wrote:
( oops, the previous mail was missing most of the text ... )

hello,

for my information, isn't a kext supposed to be reported by kextstat
if the kextload suceeded ?

Is the 'touch' step required ? that is the first time I hear about this.
some mentionned a 'sudo killall -SIGHUP kextd' after copying in /S/L/E ...

( my own codeless kext is not doing the job, still lookign for a
foolproof how-to.... )

On Dec 5, 2007 7:58 PM, Philippe BARTHELEMY
<email@hidden> wrote:
 sudo killall -SIGHUP kextd


On Dec 5, 2007 5:15 PM, Rich Kubota <email@hidden> wrote:
> Fabrizio,
>
> 1. have you verified that you can manually load the kext using
> sudo kextload -t /System/Library/Extensions/YourCodeless.kext
> 2. If you copied the kext to /S/L/E, did you do touch /S/L/E and reboot.
> 3. You should try installing the IOUSBFamily log version and use the
> logging facility at level 6 to see which kexts were matched to the
> Logitech device.
>
> The match criteria which you specify below will have the highest
> match priority.
>
> best wishes.
>
> rich kubota
>
>
> At 1:59 PM +0100 12/5/07, Fabrizio Sestito wrote:
> >Hello,
> >I ported g15daemon (a Logitech g15 leyboard driver using libusb) to
> >Tiger and it works fine using a codeless kext.
> >I'm not able to launch the same daemon on 10.5.x, it ends with libusb
> >errors (device handled exclusively by HID kernel module).
> >It seems that my codeless kext is not working properly.
> >
> >This is the Info.plist (working on 10.4.x)
> >
> ><plist version="1.0">
> > <dict>
> > <key>CFBundleDevelopmentRegion</key> <string>English</string>
> > <key>CFBundleGetInfoString</key> <string>Libusb USB device
> >Shield</string>
> > <key>CFBundleIdentifier</key> <string>com.libusb.USB_Shield</string>
> > <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
> > <key>CFBundleName</key> <string>Libusb USB device Shield</string>
> > <key>CFBundlePackageType</key> <string>KEXT</string>
> > <key>CFBundleSignature</key> <string>????</string>
> > <key>CFBundleVersion</key> <string>6.0</string>
> > <key>IOKitPersonalities</key>
> > <dict>
> > <key>Logitech G15</key>
> > <dict>
> > <key>CFBundleIdentifier</key>
> > <string>com.apple.kernel.iokit</string>
> > <key>IOClass</key>
> > <string>IOService</string>
> > <key>IOProbeScore</key>
> > <integer>106000</integer>
> > <key>IOProviderClass</key>
> > <string>IOUSBInterface</string>
> > <key>bConfigurationValue</key>
> > <integer>1</integer>
> > <key>bInterfaceNumber</key>
> > <integer>0</integer>
> > <key>bcdDevice</key>
> > <integer>259</integer>
> > <key>idProduct</key>
> > <integer>49698</integer>
> > <key>idVendor</key>
> > <integer>1133</integer>
> > </dict>
> > </dict>
> > <key>OSBundleCompatibleVersion</key> <string>1.8</string>
> > <key>OSBundleLibraries</key>
> > <dict>
> > <key>com.apple.kernel.iokit</key> <string>6.0</string>
> > </dict>
> > </dict>
> ></plist>
> >
> >Thanks in advance.
> >Fabrizio.
> > _______________________________________________
> >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
>
> --
> Sincerely,
> Rich Kubota
> email@hidden
> (408) 974-6212
>
> _______________________________________________
> 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
>
>





-- also on skype, as philippe.barthelemy.




-- also on skype, as philippe.barthelemy. _______________________________________________ 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

-- Sincerely, Rich Kubota email@hidden (408) 974-6212 _______________________________________________ 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: 
 >codeless kext, leopard, HID (From: "Fabrizio Sestito" <email@hidden>)
 >Re: codeless kext, leopard, HID (From: "Philippe BARTHELEMY" <email@hidden>)
 >Re: codeless kext, leopard, HID (From: "Philippe BARTHELEMY" <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.