1

在 Mac-pro 10.6.8 上加载我的驱动程序时 Kextutil 失败,但在 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
4

1 回答 1

1

感谢您的回复。我的 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 Norton,@pmjordan,谢谢!!!

于 2012-09-29T05:43:28.773 回答