kext doesnot gets loaded for the first time!
kext doesnot gets loaded for the first time!
- Subject: kext doesnot gets loaded for the first time!
- From: "rohit dhamija" <email@hidden>
- Date: Wed, 13 Sep 2006 18:49:39 +0530
Hi,
I have developed a kernel extension module for my USB bulk device for Mac OS X 10.4.7 ppc G5 and Intel Mac 10.4.7
I am encountering a strange issue of loading the kext and wanted your expert guidance to resolve the same.
Issue: My kext doesnot gets loaded if I donot attach my USB bulk device while loading the kext.
Pre-requisite: Always take the fresh Mac OS X 10.4.7 ppc G5/ Intel machine.
Step to reproduce:
Step 1. I "DO NOT" attach my USB bulk device and then perform Step 2.
Step 2. Now I try to load my kext using following commands:
sudo cp -r MyUSBDevice.kext /System/Library/Extensions
sudo touch /System/Library/Extensions
sudo kextload -v MyUSBDevice.kext
Step 3. Do kextstat, the kext is not loaded. This is probably because the device corresponding to it is not attached. So the
kernel module is not in memory.
Step 4. After 2-3 minute, now I attach my USB bulk device.
Result: The kext doesnot gets loaded even now!!! I verified it using kextstat command. Also the LED of my USB device doesnot
gets ON which is a clear indication that the kext doesnot got loaded.
Now, on the other hand, if I attach the keys are perform the Step2-4, the kext gets loaded immediately.
This scenerio only happens on the machine in which we are installing the kext for the first time. After that if we try to
uninstall and install and then perform all the steps, the issue never comes!!
Can anybody please let me know why this issue is coming and the way to resolve the same ??
Below is the Info.plist
////////////
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>MyUSBDevice</string>
<key>CFBundleIdentifier</key>
<string>com.MyCompany.driver.MyUSBDevice</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MyUSBDevice</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.3.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>MY_USB_DEVICE</key>
<dict>
<key>CFBundleIdentifier</key>
<string>
com.MyCompany.driver.MyUSBDevice</string>
<key>IOClass</key>
<string>MyUSBDevice</string>
<key>IOKitDebug</key>
<integer>65535</integer>
<key>IOMatchCategory</key>
<string>MyUSBDevice</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
<key>IOUserClientClass</key>
<string>MyUSBDeviceUserClient</string>
<key>idProduct</key>
<integer>895</integer>
<key>idVendor</key>
<integer>1212</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOUSBFamily</key>
<string>1.8</string>
<key>com.apple.kernel.iokit</key>
<string>1.1</string>
<key>com.apple.kernel.libkern</key>
<string>1.1</string>
<key>com.apple.kernel.mach</key>
<string>1.1</string>
</dict>
</dict>
////////////
Please send your useful comments for the same,
Thanks and Regards,
Rohit Dhamija
--
Rohit Dhamija(M) 9818446545
_______________________________________________
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