Modprobe: ERROR: could not insert 'ix_usb_can': Invalid argument

Hi, i’m running into this issue while trying to install the driver.

Ubuntu 20.04.5 LTS
Kernel 5.15.0-67-generic

htcc@pc32:~/Downloads/SocketCAN_2_0_378_Modified_PeWu_2022-07-12/ix_usb_can_2.0.367-MOD$ sudo make all [sudo] password for htcc: make -C /lib/modules/5.15.0-67-generic/build M=/home/htcc/Downloads/SocketCAN_2_0_378_Modified_PeWu_2022-07-12/ix_usb_can_2.0.367-MOD/kernel/drivers/net/can/usb/ixxat_usb CONFIG_CAN_IXXAT_USB=m modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-67-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-67-generic' htcc@pc32:~/Downloads/SocketCAN_2_0_378_Modified_PeWu_2022-07-12/ix_usb_can_2.0.367-MOD$ sudo make install make -C /lib/modules/5.15.0-67-generic/build M=/home/htcc/Downloads/SocketCAN_2_0_378_Modified_PeWu_2022-07-12/ix_usb_can_2.0.367-MOD/kernel/drivers/net/can/usb/ixxat_usb CONFIG_CAN_IXXAT_USB=m modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-67-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-67-generic' install -d "/lib/modules/5.15.0-67-generic/kernel/drivers/net/can/usb/ixxat_usb" install "/home/htcc/Downloads/SocketCAN_2_0_378_Modified_PeWu_2022-07-12/ix_usb_can_2.0.367-MOD/kernel/drivers/net/can/usb/ixxat_usb/ix_usb_can.ko" "/lib/modules/5.15.0-67-generic/kernel/drivers/net/can/usb/ixxat_usb" depmod -a modprobe ix_usb_can modprobe: ERROR: could not insert 'ix_usb_can': Invalid argument

KR

Hi, i figured it out whats going on.
I ran apt get update and it caused the driver to stop working. I tried to uninstall (worked) and install what cause the “modprobe: ERROR: could not insert ‘ix_usb_can’: Invalid argument”

To fix this issue,
make clean, make uninstall, restart, make all and make install

Thanks for the update @Hytac. Yes, you need to keep in mind that there is a version of SocketCAN included in the Linux kernel so if you update, you will lose our version.