USB to CAN Analyzer Adapter newset Kali Linux driver

Hi, i’m trying to get this adapter running on new Kali instance, but i guess the driver might be to old, any solution available? Gotta admit, that i’m not so much a pro in linux, but the CAN book i read, is for linux environment. Would be greatfull for any kind of help

┌──(root㉿kali)-[/home/kali/Downloads/CH341SER_LINUX]
└─# make     
make -C /lib/modules/6.0.0-kali3-amd64/build  M=/home/kali/Downloads/CH341SER_LINUX  
make[1]: *** /lib/modules/6.0.0-kali3-amd64/build: No such file or directory.  Stop.
make: *** [Makefile:5: default] Error 2

Ok, so i was missing linux-headers… Now i got them installed, if i try to compile drivers i get this. Can someone helpt to rewrite this driver for newest kernel?

┌──(kali㉿kali)-[~/Downloads/CH341SER_LINUX]
└─$ make       
make -C /lib/modules/6.1.0-kali5-amd64/build  M=/home/kali/Downloads/CH341SER_LINUX  
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-kali5-amd64'
  CC [M]  /home/kali/Downloads/CH341SER_LINUX/ch34x.o
/home/kali/Downloads/CH341SER_LINUX/ch34x.c: In function ‘ch34x_close’:
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:566:9: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
  566 |         wait_queue_t wait;
      |         ^~~~~~~~~~~~
      |         wait_event
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:566:22: warning: unused variable ‘wait’ [-Wunused-variable]
  566 |         wait_queue_t wait;
      |                      ^~~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:565:14: warning: unused variable ‘timeout’ [-Wunused-variable]
  565 |         long timeout;
      |              ^~~~~~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:564:13: warning: unused variable ‘bps’ [-Wunused-variable]
  564 |         int bps;
      |             ^~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c: At top level:
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1266:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb_serial_port *, const struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct usb_serial_port *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
 1266 |         .set_termios    = ch34x_set_termios,
      |                           ^~~~~~~~~~~~~~~~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1266:27: note: (near initialization for ‘ch34x_device.set_termios’)
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1272:27: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
 1272 |         .write_room     = ch34x_write_room,
      |                           ^~~~~~~~~~~~~~~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1272:27: note: (near initialization for ‘ch34x_device.write_room’)
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1273:28: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
 1273 |         .chars_in_buffer = ch34x_chars_in_buffer,
      |                            ^~~~~~~~~~~~~~~~~~~~~
/home/kali/Downloads/CH341SER_LINUX/ch34x.c:1273:28: note: (near initialization for ‘ch34x_device.chars_in_buffer’)
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-kali5-common/scripts/Makefile.build:255: /home/kali/Downloads/CH341SER_LINUX/ch34x.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-kali5-common/Makefile:2030: /home/kali/Downloads/CH341SER_LINUX] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-kali5-amd64'
make: *** [Makefile:5: default] Error 2

Another progres, i found fresh driver CH341SER_LINUX.ZIP - 南京沁恒微电子股份有限公司
make works ok, but make load not so much

─$ make load
insmod ch341.ko
insmod: ERROR: could not insert module ch341.ko: Operation not permitted
make: *** [Makefile:9: load] Error 1

Ok, it was somehow loaded, after “sudo su” and “make unload” then “make load” it runs without errors but still cant get ifconfig can0. Any ideas>?

EDIT
After reboot, still cant “make load” only after i “make unload”

┌──(kali㉿kali)-[~/Downloads/CH341SER_LINUX]
└─$ sudo su 
[sudo] password for kali: 
┌──(root㉿kali)-[/home/kali/Downloads/CH341SER_LINUX]
└─# make load
insmod ch341.ko
insmod: ERROR: could not insert module ch341.ko: File exists
make: *** [Makefile:9: load] Error 1
                                                                             
┌──(root㉿kali)-[/home/kali/Downloads/CH341SER_LINUX]
└─# make unload
rmmod ch341
                                                                             
┌──(root㉿kali)-[/home/kali/Downloads/CH341SER_LINUX]
└─# make load  
insmod ch341.ko
                                                                             
┌──(root㉿kali)-[/home/kali/Downloads/CH341SER_LINUX]
└─#