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.

AM620-Q1: Invalid version magic number after replace linux module driver

Part Number: AM620-Q1


Tool/software:

Hi, Expert

I try to replace "ti_k3_m4_remoteproc.ko", and found some problems.

Error as below.

ti_k3_m4_remoteproc: version magic '6.6.58-ga7758da17c28-dirty SMP preempt mod_unload aarch64' should be '6.6.58-ti-01497-ga7758da17c28-dirty SMP preempt mod_unload aarch64'

 

root@am62xx-lp-evm:~# dmesg | grep m4
[    0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009cb00000..0x000000009cbfffff (1024 KiB) nomap non-reusable m4f-dma-memory@9cb00000
[    0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x000000009cc00000..0x000000009d9fffff (14336 KiB) nomap non-reusable m4f-memory@9cc00000
[   10.451908] ti_k3_m4_remoteproc: version magic '6.6.58-ga7758da17c28-dirty SMP preempt mod_unload aarch64' should be '6.6.58-ti-01497-ga7758da17c28-dirty SMP preempt mod_unload aarch64'
[   10.517300] ti_k3_m4_remoteproc: version magic '6.6.58-ga7758da17c28-dirty SMP preempt mod_unload aarch64' should be '6.6.58-ti-01497-ga7758da17c28-dirty SMP preempt mod_unload aarch64'

Here is driver location in SD w/ SD boot

/lib/modules/6.6.58-ti-01497-ga7758da17c28-dirty/kernel/drivers/remoteproc/ti_k3_m4_remoteproc.ko

Here is my build environment,

I install all driver under folder "SDK/targetNFS"

these are re-build drivers

gibbs@gibbs-HP-ZBook-15-G5:~/work/am62_lp/ti-processor-sdk-linux-am62xx-evm-10.01.10.04/targetNFS/lib/modules/6.6.58-ga7758da17c28-dirty/kernel/drivers/remoteproc$ ls -l
total 124
-rw-r--r-- 1 root root 29016  九   3 16:35 pru_rproc.ko
-rw-r--r-- 1 root root 26224  九   3 16:35 ti_k3_dsp_remoteproc.ko
-rw-r--r-- 1 root root 23344  九   3 16:35 ti_k3_m4_remoteproc.ko
-rw-r--r-- 1 root root 39752  九   3 16:35 ti_k3_r5_remoteproc.ko

Here is my kernel version.

root@am62xx-lp-evm:/lib/modules/6.6.58-ti-01497-ga7758da17c28-dirty/kernel/drivers/remoteproc# uname -r
6.6.58-ti-01497-ga7758da17c28-dirty

 

I download SDK source code, and direct buld it w/o Yocto

How to solve this problem?

Thank You.

Gibbs