LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   insmod unifi_sdio.ko ERROR : Unknown Symbol (http://www.linuxquestions.org/questions/linux-networking-3/insmod-unifi_sdio-ko-error-unknown-symbol-867107/)

blink182 03-07-2011 10:27 PM

insmod unifi_sdio.ko ERROR : Unknown Symbol
 
Hi there . When I tried to insert module in my linux system run on AT91SAM9261EK , I've got something like :

PHP Code:

# insmod unifi_sdio.ko
unifi_sdioUnknown symbol CsrSdioF0Write8
unifi_sdio
Unknown symbol CsrSdioWrite16
unifi_sdio
Unknown symbol CsrSdioF0Read8
unifi_sdio
Unknown symbol CsrSdioInterruptAcknowledge
unifi_sdio
Unknown symbol CsrSdioRead8
unifi_sdio
Unknown symbol CsrSdioInterruptEnable
unifi_sdio
Unknown symbol CsrSdioRead16
unifi_sdio
Unknown symbol CsrSdioFunctionDriverUnregister
unifi_sdio
Unknown symbol CsrSdioRead
unifi_sdio
Unknown symbol csr_sdio_set_max_clock_speed
unifi_sdio
Unknown symbol CsrSdioFunctionDriverRegister
unifi_sdio
Unknown symbol CsrSdioFunctionEnable
unifi_sdio
Unknown symbol CsrSdioInterruptDisable
unifi_sdio
Unknown symbol CsrSdioWrite8
unifi_sdio
Unknown symbol CsrSdioFunctionDisable
unifi_sdio
Unknown symbol CsrSdioWrite
insmod
cannot insert 'unifi_sdio.ko'unknown symbol in module 


and during the compilation , I have got some warnings which are consistent with the error message mentioned :

PHP Code:

Script started on TuesdayMarch 082011 AM10:55:07 HKT
]0;root@steven-desktop: /home/steven/AT91/SDIOroot@steven-desktop:/home/steven/AT91/SDIO# cd okska

]0;root@steven-desktop: /home/steven/AT91/SDIO/oskaroot@steven-desktop:/home/steven/AT91/SDIO/oska# cd linux

]0;root@steven-desktop: /home/steven/AT91/SDIO/oska/linuxroot@steven-desktop:/home/steven/AT91/SDIO/oska/linux# ./build arm-linux

makeEntering directory `/home/steven/AT91/SDIO/oska/linux'

make -C /home/steven/AT91/kernel/linux-2.6.33 M=/home/steven/AT91/SDIO/oska/linux/../linux \

        O= V=

make[1]: Entering directory 
`/home/steven/AT91/kernel/linux-2.6.33'

  LD      /home/steven/AT91/SDIO/oska/linux/../linux/built-in.o

  CC [M]  /home/steven/AT91/SDIO/oska/linux/../linux/compat.o

  CC [M]  /home/steven/AT91/SDIO/oska/linux/../linux/event.o

  CC [M]  /home/steven/AT91/SDIO/oska/linux/../linux/print.o

  CC [M]  /home/steven/AT91/SDIO/oska/linux/../linux/thread.o

  LD [M]  /home/steven/AT91/SDIO/oska/linux/../linux/oska.o

.......

  CC [M]  /home/steven/AT91/SDIO/sdioemb/linux/bt_a/quirks.o

  LD [M]  /home/steven/AT91/SDIO/sdioemb/linux/bt_a/sdio_bt_a.o

  Building modules, stage 2.

  MODPOST 6 modules

WARNING: "os_thread_create" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_vprint" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_thread_should_stop" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_thread_stop" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_event_raise" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_event_init" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_event_wait" [/home/steven/AT91/SDIO/sdioemb/sdio.ko] undefined!

WARNING: "os_vprint" [/home/steven/AT91/SDIO/sdioemb/cards/sdio_lib_bt_a.ko] undefined!

....


  CC [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/sme_mgt.o

  CC [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/sme_blocking.o

  CC [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/wext_events.o

  CC [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/sme_wext.o

  LD [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.o

  Building modules, stage 2.

  MODPOST 1 modules

WARNING: "CsrSdioWrite" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioFunctionDisable" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioWrite8" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioInterruptDisable" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioFunctionEnable" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioFunctionDriverRegister" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "csr_sdio_set_max_clock_speed" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioRead" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioFunctionDriverUnregister" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioRead16" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioInterruptEnable" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioRead8" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioInterruptAcknowledge" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioF0Read8" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioWrite16" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

WARNING: "CsrSdioF0Write8" [/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko] undefined!

  CC      /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.mod.o

  LD [M]  /home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/driver/unifi_sdio.ko

make[1]: Leaving directory `/home/steven/AT91/kernel/linux-2.6.33'

make -/home/steven/AT91/SDIO/unifi-linux/os_linux/driver/../../os_linux/tools

............... 

I suspect I have missed some kernel settings when I compiled my kernel so that the kernel cannot recognize those functions ... I would appreciate for your help ...

business_kid 03-08-2011 12:29 PM

You're not getting libs or headers during the build stage. Hence the errors. Check that the symlink /lib/modules/<Your_Kernel_Version>/build points at a kernel source with the kernel built in it. If you ran 'make clean', best to run make again. Also check kernel headers are installed. That failing, go after 'os_thread_create' & friends in google to see what you haven't got, and get it.

blink182 03-10-2011 03:24 AM

Problem is solved by building with support for Linux MMC/SD/SDIO driver . Thanks . :)


All times are GMT -5. The time now is 12:35 AM.