Forums » Software Development »
cl_msgdma.ko has the wrong version
Added by Samuel Paul about 3 hours ago
When I try to insert the cl_msgdma kernel module I get the following message.
root@mity-a5e:~# insmod cl_msgdma.ko
[426692.912739] cl_msgdma: version magic '6.12.33-g511c86cb48bf SMP preempt mod_unload aarch64' should be '6.12.33-yocto-standard-ge3e06ce5b974 SMP preempt mod_unload aarch64'
insmod: ERROR: could not insert module cl_msgdma.ko: Invalid module format
I built the module Following this
https://support.criticallink.com/redmine/projects/mitysom_a5/wiki/A5E-DMA-Example
Compile the Kernel Module
Navigate into the software/dma_example/kernel_module directory of the FPGA project. Run the following to compile the kernel module.
make
What is the proper way of building it with the right version ?
Thank you for your time,
Samuel 
Replies (1)
RE: cl_msgdma.ko has the wrong version - Added by Mike Fiorenza about 2 hours ago
Hi Samuel,
The Wiki instructions say to deploy the compiled kernel and kernel modules to the SD card as well. This way you ensure that all binaries are in sync and the vermagic matches.
You can however try to work around this by making your kernel source match what was installed and get the kernel module version string to match.
# In the kernel source directory git checkout e3e06ce5b974 echo "-yocto-standard" > localversion make mity_a5e_devkit_defconfig make modules_prepare
Then follow the instructions to recompile the cl_msgdma kernel module.
- Mike