Building the WLAN driver for OMAP3530 for linux 02.01.03.11 using the v2.01.03.11-WL6.1.3.1 software, patched to the version necessary to use the 2008q1 toolchain.
During the WLAN portion of the build, I'm getting a large number of errors building linux.ko, all of which claim to have found undefined objects. Many of these objects are defined in source under WiLink/, which the build should be pulling in. I'm not sure what I'm doing wrong here to have these issues. Kernel and Bluetooth portions of the build appear to complete successfully, but I have not yet tested their output. Any help would be appreciated.
Build log pasted below:
rm -f ../../../platforms/os/linux/tiwlan_drv.ko ../../../stad/build/linux/libestadrv.a ../../../platforms/os/common/build/linux/libuadrv.a ../../../platforms/os/linux/build/tiwlan_drv_stub.o ../../../CUDK/output/wlan_cu ../../../CUDK/output/tiwlan_loader ../../../CUDK/output/wlan_logger
make -C ../../../stad/build/linux CROSS_COMPILE=arm-none-linux-gnueabi- DEBUG=y BUILD_SUPPL=y SUPPL=WPA WSPI=n INTR=y XCC=n INFO=n STATIC_LIB=y
make[1]: Entering directory `/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux'
rm -f ../../../stad/build/linux/libestadrv.a
make -C /home/glennw/workdir/opt/linux-02.01.03.11 M=`pwd` ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- modules
make[2]: Entering directory `/home/glennw/workdir/opt/linux-02.01.03.11'
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../stad/src/Ctrl_Interface/DrvMain.o
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../stad/src/Ctrl_Interface/EvHandler.o
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../stad/src/Ctrl_Interface/CmdHndlr.o
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../stad/src/Ctrl_Interface/CmdDispatcher.o
...snip...
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../utils/rate.o
CC [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/../../../utils/freq.o
LD [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hPlatform_DevicePowerOn" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "cmdInterpret_Create" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryFree" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "hPlatform_DevicePowerOff" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "hPlatform_Wlan_Hardware_DeInit" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_GetFile" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryZero" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "sdioAdapt_DisconnectBus" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_printf" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "cmdInterpret_convertAndExecute" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_StalluSec" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_InterruptServiced" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "sdioAdapt_Transact" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_StopTx" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "osInitTable_IniFile" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_UpdateDriverState" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_SignalObjectSet" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_timeStampMs" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_ResumeTx" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "sdioAdapt_TransactBytes" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_SignalObjectCreate" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_setDebugOutputToLogger" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "RxBufAlloc" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memorySet" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_receivePacket" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "RxBufFree" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_Trace" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_protectLock" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_SetDrvThreadPriority" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_RequestSchedule" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryCopy" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_SignalObjectWait" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "sdioAdapt_ConnectBus" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_protectDestroy" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_CommandDone" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryCompare" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "IPC_EventSend" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_timerCreate" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_timerStart" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_timerDestroy" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_FreeTxPacket" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "cmdInterpret_Init" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "cmdInterpret_Destroy" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_timerStop" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "wlanDrvIf_SetMacAddress" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_SignalObjectFree" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryCAlloc" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "bm_act_trace_out" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_protectUnlock" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "bm_act_register_event" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "hPlatform_Wlan_Hardware_Init" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "cmdInterpret_GetStat" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "bm_act_trace_in" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "hPlatform_DevicePowerOffSetLongerDelay" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_protectCreate" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_memoryAlloc" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "TiDebugFlag" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
WARNING: "os_setDebugMode" [/home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko] undefined!
CC /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.mod.o
LD [M] /home/glennw/v2.01.03.11-WL6.1.3.1/software/sources/wireless/WiLink/stad/build/linux/linux.ko
Hi,
Those errors are just compiler warnings since the symbols have not been exported to symbol table and will get resolved when the modules are inserted ( insmod) in the right order.
ie.
# insmod sdio.ko
# insmod bmtrace.ko
# insmod tiwlan_drv.ko
Best Regards,
Sinoj
Well, I thought that was the root of the problem that I'm having, but perhaps not. I'm following that order of insmod'ing, but below here is the problem that I'm seeing when I run insmod tiwlan_drv.ko. I had figured it had something to do with the missing symbol messages in the build, but perhaps there's a different issue going on here?
I appreciate your help, thank you.
Full error follows:
root@omap3evm:~/wlan/wlan# insmod tiwlan_drv.ko
tiwlan_drv: no symbol version for sdioDrv_WriteSync
tiwlan_drv: Unknown symbol sdioDrv_WriteSync
tiwlan_drv: no symbol version for sdioDrv_ConnectBus
tiwlan_drv: Unknown symbol sdioDrv_ConnectBus
tiwlan_drv: no symbol version for sdioDrv_ExecuteCmd
tiwlan_drv: Unknown symbol sdioDrv_ExecuteCmd
tiwlan_drv: no symbol version for bm_act_trace_in
tiwlan_drv: Unknown symbol bm_act_trace_in
tiwlan_drv: no symbol version for sdioDrv_WriteSyncBytes
tiwlan_drv: Unknown symbol sdioDrv_WriteSyncBytes
tiwlan_drv: no symbol version for bm_act_register_event
tiwlan_drv: Unknown symbol bm_act_register_event
tiwlan_drv: no symbol version for bm_act_trace_out
tiwlan_drv: Unknown symbol bm_act_trace_out
tiwlan_drv: no symbol version for g_sdio_debug_level
tiwlan_drv: Unknown symbol g_sdio_debug_level
tiwlan_drv: no symbol version for sdioDrv_DisconnectBus
tiwlan_drv: Unknown symbol sdioDrv_DisconnectBus
tiwlan_drv: no symbol version for sdioDrv_ReadSync
tiwlan_drv: Unknown symbol sdioDrv_ReadSync
tiwlan_drv: no symbol version for sdioDrv_WriteAsync
tiwlan_drv: Unknown symbol sdioDrv_WriteAsync
tiwlan_drv: no symbol version for sdioDrv_ReadSyncBytes
tiwlan_drv: Unknown symbol sdioDrv_ReadSyncBytes
tiwlan_drv: no symbol version for sdioDrv_ReadAsync
tiwlan_drv: Unknown symbol sdioDrv_ReadAsync
insmod: error inserting 'tiwlan_drv.ko': -1 Unknown symbol in module
Whether the CONFIG_MODVERSIONS is set or not set in the kernel .config?
In the kernel patch file provided in the release, CONFIG_MODVERSIONS is not set.
Regards,
CONFIG_MODVERSIONS is currently enabled. I'll disable, rebuild, and see what happens.
Looks like that was the issue! Thank you!