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.

TDA4VM: insmod x3c.ko:Invalid module format

Part Number: TDA4VM


Tool/software:

Hi,

I was previously using SDK 9.1 and now want to test on version 10.1, but encountered a kernel version mismatch issue when loading the driver. Which file should I modify, please? Thanks!

[   42.191458] ox03c10: version magic '6.6.44-ti-g541c20281af7-dirty SMP preempt mod_unload aarch64' should be '6.6.44-ti-01478-g541c20281af7-dirty SMP preempt mod_unload aarch64'
insmod: ERROR: could not insert module /home/ox03c10.ko: Invalid module format

  • Hi,

    You will need to compile the module along with 10.1 Based kernel. The kernel version and module version should match else the insmod will fail.

    In 10.1 try 'make linux' command. This should build all. In case this is out of tree please rebuild the specific module that you are trying.

    - Keerthy

  • Hi,

    I followed the method you described. However, when compiling the driver with SDK version 10.1, the resulting kernel version is '6.6.44-ti-g541c20281af7-dirty'. I'm unsure which file to modify to change the version number to '6.6.44-ti-01478-g541c20281af7-dirty'. I found where to modify the '6.6.44-' part in the Makefile, but I can't determine where to adjust the 'ti-01478-g541c20281af7' segment. Could you please assist me? Thank you!

  • Hello Ying,

    Is the module source code compiled under the Linux directory? If you compile module as part of the 'make linux'. That is good enough.

    - Keerthy