Hi,
Thanks for your reply,i am using 64-bit machine.i chance my driver dependences to com.apple.kpi.*
In 32-bit driver dependences like com.apple.kernel.*
Can any one help that why i Can't load kext
sarah-640m:~ chengmerlin$ sudo su
Password:
sh-3.2# rm -fr /System/Library/Extensions/moschipUsbEthernet.kext
sh-3.2# cp -R /Users/chengmerlin/Downloads/moschipUsbEthernet/build/Release/moschipUsbEthernet.kext /System/Library/Extensions/
sh-3.2# kextload -t /System/Library/Extensions/moschipUsbEthernet.kext/
Notice: -print-diagnostics (-t) ignored; use kextutil(8) to test kexts.
/System/Library/Extensions/moschipUsbEthernet.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).
sh-3.2# kextutil -b kextload -t /System/Library/Extensions/moschipUsbEthernet.kext/
(kernel) kxld[com.moschip.driver.moschipUsbEthernet]: The following symbols are unresolved for this kext:
(kernel) kxld[com.moschip.driver.moschipUsbEthernet]: __ZN28moschipUsbEthernetController14createWorkLoopEv
(kernel) Can't load kext com.moschip.driver.moschipUsbEthernet - link failed.
(kernel) Failed to load executable for kext com.moschip.driver.moschipUsbEthernet.
(kernel) Kext com.moschip.driver.moschipUsbEthernet failed to load (0xdc008016).
(kernel) Failed to load kext com.moschip.driver.moschipUsbEthernet (error 0xdc008016).
Failed to load /System/Library/Extensions/moschipUsbEthernet.kext - (libkern/kext) link error.
Check library declarations for your kext with kextlibs(8).
sh-3.2# kextutil -b kextload -t /System/Library/Extensions/moschipUsbEthernet.kext/
(kernel) kxld[com.moschip.driver.moschipUsbEthernet]: The following symbols are unresolved for this kext:
(kernel) kxld[com.moschip.driver.moschipUsbEthernet]: __ZN28moschipUsbEthernetController14createWorkLoopEv
(kernel) Can't load kext com.moschip.driver.moschipUsbEthernet - link failed.
(kernel) Failed to load executable for kext com.moschip.driver.moschipUsbEthernet.
(kernel) Kext com.moschip.driver.moschipUsbEthernet failed to load (0xdc008016).
(kernel) Failed to load kext com.moschip.driver.moschipUsbEthernet (error 0xdc008016).
Failed to load /System/Library/Extensions/moschipUsbEthernet.kext - (libkern/kext) link error.
Check library declarations for your kext with kextlibs(8).
Then i use this command
sh-3.2# kextlibs -help
usage: kextlibs [options] kext
<kext>: the kext to find libraries for
-arch <arch>:
resolve for architecture <arch> instead of running kernel's
-xml: print XML fragment suitable for pasting
-system-extensions (-e):
look in the system exensions folder (assumed if no other folders
specified with repository)
-repository <directory> (-r):
look in <directory> for library kexts
-all-symbols:
list all symbols, found, not found, or found more than once
-onedef-symbols:
list all symbols found with the library kext they were found in
-undef-symbols:
list all symbols not found in any library
-multdef-symbols:
list all symbols found more than once with their library kexts
-compatible-versions (-c):
use library kext compatble versions rather than current versions
-unsupported:
look in unsupported kexts for symbols
sh-3.2# kextlibs -e moschipUsbEthernet.kext
For all architectures:
com.apple.iokit.IONetworkingFamily = 1.9
com.apple.iokit.IOUSBFamily = 4.0.2
com.apple.kpi.bsd = 10.4
com.apple.kpi.iokit = 10.4
com.apple.kpi.libkern = 10.4
com.apple.kpi.mach = 10.4
For x86_64:
2 symbols not found in any library kext.
sh-3.2# kextlibs -c moschipUsbEthernet.kext
For all architectures:
com.apple.iokit.IONetworkingFamily = 1.0b1
com.apple.iokit.IOUSBFamily = 1.8
com.apple.kpi.bsd = 8.0b1
com.apple.kpi.iokit = 7.0
com.apple.kpi.libkern = 8.0d0
com.apple.kpi.mach = 8.0d0
For x86_64:
2 symbols not found in any library kext.
Regards,
kiran.k
On Thu, Oct 28, 2010 at 12:30 PM, Matevž Markovič
<email@hidden> wrote:
Hy!
Try from the single user mode. But the problem indicates that permissions are wrong, perhaps change the permissions manually with chmod and owner with chown - just a guess.
>>File owner/permissions are incorrect (must be root:wheel, nonwritable by group/other): <<
I hope I helped.
Have a nice day,
Matevž
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden