Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Virtual Host controller porting to leopard.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Virtual Host controller porting to leopard.



Hi,
 I developed an virtual host controller driver which is a subclass of IOUSBControllerV2 in MacOSX 10.4.x. while I am porting this driver to 10.5. I find following errors.
- initially i tried to build driver using 10.4 SDK, the kextload failed with error message
kld(): Undefined symbols:
__ZN13IOUSBWorkLoop8workLoopEV 
kextload: kld_load_from_memory() failed
kextload: a link/load error occured for extension
    I modified info.plist with latest versions like
    <key>com.apple.kpi.bsd</key>
    <string>8.0.0</string>
    <key>com.apple.kpi.iokit</key>
    <string>8.0.0</string>
    <key>com.apple.kpi.libkern</key>
    <string>8.0.0</string>
    <key>com.apple.kpi.mach</key>
    <string>8.0.0</string>
        still i find the same error.
- Then i changed SDK to 10.5 and tried to build it, error occured at IOUSBWorkloop initially. which has changed with added parameter called controllerLocation in its function.
    static IOUSBWorkLoop * workloop(); ( 10.4 )
    static IOUSBWorkLoop * workloop(const char * controllerLocation); ( 10.5 )
    passed Null to the parameter.
    It loaded succesfully. but the driver is not working. It has not loaded AppleUSBHub, IOUSBInterface and also IOUSBUserclient.
 
- Next I changed the super class to IOSUBControllerV3, while build error occured at
    OSDefineMetaClassAndStructors(myDriverClass, IOUSBControllerV3) <---
    error: cannot allocate an object of abstract type 'myDriverClass'.
 
The major difference between IOUSBControllerV3 and IOUSBControllerV4 is regarding power management.
 
I think this can be easily solved by making some changes in info.plist. Any help please let me know.
I am using MacOSX 10.5.3 build 9D23
Thanks & Regards
Sachin.


The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.