This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to build an dsplikk.ko module using system with diifferent kernel

Other Parts Discussed in Thread: OMAPL138

Hello

I am using as a host my ubuntu system with 3.0.0.12 kernel, and Intel Atom N570 (x68 architecture)

I am try ing to build an dsplink.ko module to work with 2.6.31-rc7 kernel with my OMAPL138 EVM ZOOMLogic board.

I Downloaded the DaVinci-PSP-SDK-03.20.00.11, and found there mensioned kernel.

I succesfully generated the module and library files, and loaded them both   into:

/lib/modules/kernel/2.6.31-rc7-davinci1/kernel/dsp/

but it doesn't work for me:

root@da850-omapl138-evm:/lib/modules/2.6.31-rc7-davinci1/kernel/dsp# /sbin/depmod -a


root@da850-omapl138-evm:/lib/modules/2.6.31-rc7-davinci1/kernel/dsp# modprobe dsplinkk.ko
FATAL: Module dsplinkk.ko not found.

root@da850-omapl138-evm:/lib/modules/2.6.31-rc7-davinci1/kernel/dsp# insmod dsplinkk.ko
insmod: error inserting 'dsplinkk.ko': -1 Invalid module format


root@da850-omapl138-evm:/lib/modules/2.6.31-rc7-davinci1/kernel/dsp#

root@da850-omapl138-evm:/lib/modules/2.6.31-rc7-davinci1/kernel/dsp# modprobe dsplinkk
FATAL: Error inserting dsplinkk (/lib/modules/2.6.31-rc7-davinci1/kernel/dsp/dsplinkk.ko): Invalid module format

What should I do to have dsplinkk work with my system?

I found this:

Problem: Getting error when inserting DSPLink module dsplinkk.ko on Linux

Symptom: I am getting errors when inserting DSPLink module on Linux:

$ insmod dsplinkk.ko
dsplinkk: no version for "struct_module" found: kernel tainted.
dsplinkk: version magic '2.6.10_mvl401 preempt ARMv5 gcc-3.4' should be '2.6.23-davinci1-g1220f74d-dirty mod_unload ARMv5 '
insmod: error inserting 'dsplinkk.ko': -1 Invalid module format

Explanation: The error in inserting the module indicates that the DSPLink kernel module was built with a different kernel version than the version running on the target. In the above example, DSPLink was built with 2.6.10 kernel and the target is running 2.6.23 kernel.

Is it nessesary to change my kernel on my host machine ?

Or maybe I've missed something ?