Kextutil在Mac-pro 10.6.8上加载我的驱动程序失败,但在iMac 10.6.8上没问题。 如果你告诉我一些相关信息,我们将不胜感激!感谢
信息:
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
答案 0 :(得分:1)
感谢您的回复。我的iMac也在运行x86_64内核。 我在使用kextlibs MyDriver64.kext时获得了当前的IOUSBFamily版本。并且我更改了我的Info.plist,使依赖库libs版本(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 Norton,@ pmjordan,谢谢!!!