• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unable to install .kext in admine user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to install .kext in admine user


  • Subject: Re: Unable to install .kext in admine user
  • From: kiran kumar <email@hidden>
  • Date: Fri, 29 Oct 2010 11:08:11 +0530

Thankx Shantonu Sen for u r reply.

Can i build my driver in 32-bit mode to support 64-bit.

Regards,
kiran.k
 

On Thu, Oct 28, 2010 at 7:35 PM, Shantonu Sen <email@hidden> wrote:
The 64-bit kernel requires that all methods declared in a class definition (in the .h) be implemented (in a .cpp file). Likely you have a createWorkLoop() virtual method declared but not implemented. The class' C++ vtable has an undefined reference.

The 32-bit kernel attempts to work around this common issue, however we chose to not perpetuate this hack for 64-bit.

Shantonu

On Oct 28, 2010, at 4:58 AM, kiran kumar wrote:

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)


 _______________________________________________
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

  • Follow-Ups:
    • Re: Unable to install .kext in admine user
      • From: Shantonu Sen <email@hidden>
References: 
 >Unable to install .kext in admine user (From: kiran kumar <email@hidden>)
 >Re: Unable to install .kext in admine user (From: kiran kumar <email@hidden>)
 >Re: Unable to install .kext in admine user (From: Shantonu Sen <email@hidden>)

  • Prev by Date: Re: Unable to install .kext in admine user
  • Next by Date: Re: Unable to install .kext in admine user
  • Previous by thread: Re: Unable to install .kext in admine user
  • Next by thread: Re: Unable to install .kext in admine user
  • Index(es):
    • Date
    • Thread