2012-09-27 66 views
0

在Mac-pro 10.6.8上加載我的驅動程序時,Kextutil失敗,但在iMac 10.6.8上可以。 如果你告訴我一些關於此事的事情,你會很感激!由於kextutil:找不到與com.apple.iokit.IOUSBFamily兼容的依賴關係

信息:

YAN:W$ uname -a 
Darwin YAN.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 
YAN:W$ sudo kextutil /System/Library/Extensions/MyDriver64.kext 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.iokit.IOUSBFamily. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.iokit. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.libkern. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.mach. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.iokit.IOUSBFamily. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.iokit. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.libkern. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.mach. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.iokit.IOUSBFamily. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.iokit. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.libkern. 
/tmp/MyDriver64.kext - no compatible dependency found for com.apple.kpi.mach. 
/tmp/MyDriver64.kext has problems: 
Dependency Resolution Failures: 
Only incompatible kexts found for these libraries: 
    com.apple.iokit.IOUSBFamily 
    com.apple.kpi.iokit 
    com.apple.kpi.libkern 
    com.apple.kpi.mach 
+1

我的第一個猜測是你的iMac運行的是32位內核,但是桌面運行的是64位內核。這導致與二進制實現的不同兼容性。如果是這樣的話'man kextlibs'會有所幫助。 –

+0

你應該也可以發佈你的info.plist – pmdj

回答

1

感謝您reply.My的iMac運行x86_64的內核了。 當使用kextlibs MyDriver64.kext時,我獲得了當前的IOUSBFamily版本。我改變了我的Info.plist,使依賴庫庫版本(dict節)與當前版本相同。 它的工作原理。

YAN:W$kextlibs MyDriver64.kext 
For all architectures: 
    com.apple.iokit.IOUSBFamily = 4.2.4 
    com.apple.kpi.iokit = 10.8 
    com.apple.kpi.libkern = 10.8 
    com.apple.kpi.mach = 10.8 

而且Info.plist中:

... 
<dict> 
    <key>com.apple.iokit.IOUSBFamily</key> 
    <string>4.2</string> 
    <key>com.apple.kpi.iokit</key> 
    <string>10.8</string> 
    <key>com.apple.kpi.libkern</key> 
    <string>10.8</string> 
    <key>com.apple.kpi.mach</key> 
    <string>10.8</string> 
</dict> 
... 

@Thane諾頓,@pmjordan,謝謝!