Driver installation problem with modprobe

Hello,

I want to install capture card driver on AGX Orin DevKit. I was compiling the driver and when I entered the command sudo modprobe <module name> for installation, it was giving the error modprobe: ERROR: could not insert '<module name>': Invalid argument. To learn the details of the error, when I enter the dmesg command from the terminal, it gives an output as I have shared below. Is this error due to kernel incompatibility? What is the exact cause of the error? How can I resolve this error? Thank you in advance for your help.

[   69.525758] cn312s: disagrees about version of symbol v4l2_device_put
[   69.525981] cn312s: Unknown symbol v4l2_device_put (err -22)
[   69.526330] cn312s: disagrees about version of symbol video_devdata
[   69.526508] cn312s: Unknown symbol video_devdata (err -22)
[   69.526772] cn312s: disagrees about version of symbol video_unregister_device
[   69.526986] cn312s: Unknown symbol video_unregister_device (err -22)
[   69.527190] cn312s: disagrees about version of symbol v4l2_device_disconnect
[   69.527378] cn312s: Unknown symbol v4l2_device_disconnect (err -22)
[   69.527560] cn312s: disagrees about version of symbol v4l2_device_register
[   69.527742] cn312s: Unknown symbol v4l2_device_register (err -22)
[   69.527937] cn312s: disagrees about version of symbol __video_register_device
[   69.528128] cn312s: Unknown symbol __video_register_device (err -22)
[   69.528707] cn312s: disagrees about version of symbol v4l2_device_unregister
[   69.529713] cn312s: Unknown symbol v4l2_device_unregister (err -22)
[   69.530649] cn312s: disagrees about version of symbol video_device_release_empty
[   69.532963] cn312s: Unknown symbol video_device_release_empty (err -22)

hello ugurk,

it’s returning bad_version failure, and it looks like an invalid argument.
you may see-also kernel sources,
for example, $public_sources/kernel_src/kernel/kernel-5.10/kernel/module.c

static int check_version(...)
{
...
bad_version:
  	pr_warn("%s: disagrees about version of symbol %s\n", info->name, symname);

you may examine your driver implementation.
please refer to developer guide as see-also,
for example, Loadable Kernel Module (LKM), and Debugging Tips.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.