Trying to install drivers for EC-25 & can't find them/install them

Trying to find driver for EC-25AF for a Raspberry PI cm4. Tried the drivers here: Quectel EC25 LTE but I get this error:

[root@pikvm v5.3.1]# make install
rm -rf *~ .tmp_versions modules.order Module.symvers
find . -type f -name *~ -o -name *.o -o -name *.ko -o -name *.cmd -o -name *.mod.c |  xargs rm -rf
make -C /lib/modules/5.15.68-3-rpi-ARCH/build M=/root/v5.3.1 modules
  CC [M]  /root/v5.3.1/./drivers/usb/serial/option.o
/root/v5.3.1/./drivers/usb/serial/option.c:2031:30: error: initialization of 'unsigned int (*)(struct tty_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
 2031 |         .write_room        = usb_wwan_write_room,
      |                              ^~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2031:30: note: (near initialization for 'option_1port_device.write_room')
/root/v5.3.1/./drivers/usb/serial/option.c:2032:30: error: initialization of 'unsigned int (*)(struct tty_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
 2032 |         .chars_in_buffer   = usb_wwan_chars_in_buffer,
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2032:30: note: (near initialization for 'option_1port_device.chars_in_buffer')
/root/v5.3.1/./drivers/usb/serial/option.c:2035:30: error: initialization of 'void (*)(struct tty_struct *, struct serial_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *, struct serial_struct *)' [-Werror=incompatible-pointer-types]
 2035 |         .get_serial        = usb_wwan_get_serial_info,
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2035:30: note: (near initialization for 'option_1port_device.get_serial')
/root/v5.3.1/./drivers/usb/serial/option.c:2040:30: error: initialization of 'void (*)(struct usb_serial_port *)' from incompatible pointer type 'int (*)(struct usb_serial_port *)' [-Werror=incompatible-pointer-types]
 2040 |         .port_remove       = usb_wwan_port_remove,
      |                              ^~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2040:30: note: (near initialization for 'option_1port_device.port_remove')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /root/v5.3.1/./drivers/usb/serial/option.o] Error 1
make[1]: *** [Makefile:1898: /root/v5.3.1] Error 2
make: *** [Makefile:9: modules] Error 2
[root@pikvm v5.3.1]# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any guidance?

The current kernel version is 5.15.68 but you choose the 5.3.

@Bean.Wang-Q Where can I get the latest drivers? The latest one I see in the download is 5.3.1.

I think you can try the commands like:

modprobe option;
echo 2C7C 0125 | tee /sys/bus/usb-serial/drivers/option1/new_id

@Bean.Wang-Q

So the latest drivers available to build from source are 5.4.1 correct? That doesn’t sound right.

Please email me the latest drivers for the EC-25AF. I’ve seen others on this form get emailed the latest copy of drivers. I will most likely need this because I am on arch Linux.

@Bean.Wang-Q
I did that:

[root@pikvm ~]# echo "2C7C 0125" | tee /sys/bus/usb-serial/drivers/option1/new_id
2C7C 0125

Still the same error because the latest drivers you have are 5.3.1:

[root@pikvm v5.3.1]# make install
rm -rf *~ .tmp_versions modules.order Module.symvers
find . -type f -name *~ -o -name *.o -o -name *.ko -o -name *.cmd -o -name *.mod.c |  xargs rm -rf
make -C /lib/modules/5.15.68-3-rpi-ARCH/build M=/root/v5.3.1 modules
  CC [M]  /root/v5.3.1/./drivers/usb/serial/option.o
/root/v5.3.1/./drivers/usb/serial/option.c:2031:30: error: initialization of 'unsigned int (*)(struct tty_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
 2031 |         .write_room        = usb_wwan_write_room,
      |                              ^~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2031:30: note: (near initialization for 'option_1port_device.write_room')
/root/v5.3.1/./drivers/usb/serial/option.c:2032:30: error: initialization of 'unsigned int (*)(struct tty_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
 2032 |         .chars_in_buffer   = usb_wwan_chars_in_buffer,
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2032:30: note: (near initialization for 'option_1port_device.chars_in_buffer')
/root/v5.3.1/./drivers/usb/serial/option.c:2035:30: error: initialization of 'void (*)(struct tty_struct *, struct serial_struct *)' from incompatible pointer type 'int (*)(struct tty_struct *, struct serial_struct *)' [-Werror=incompatible-pointer-types]
 2035 |         .get_serial        = usb_wwan_get_serial_info,
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2035:30: note: (near initialization for 'option_1port_device.get_serial')
/root/v5.3.1/./drivers/usb/serial/option.c:2040:30: error: initialization of 'void (*)(struct usb_serial_port *)' from incompatible pointer type 'int (*)(struct usb_serial_port *)' [-Werror=incompatible-pointer-types]
 2040 |         .port_remove       = usb_wwan_port_remove,
      |                              ^~~~~~~~~~~~~~~~~~~~
/root/v5.3.1/./drivers/usb/serial/option.c:2040:30: note: (near initialization for 'option_1port_device.port_remove')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /root/v5.3.1/./drivers/usb/serial/option.o] Error 1
make[1]: *** [Makefile:1898: /root/v5.3.1] Error 2
make: *** [Makefile:9: modules] Error 2

Please send me the latest EC-25 linux drivers for kernel 5.15.68.

@Bean.Wang-Q Can you please send me the drivers for EC-25-AF for linux 5.15.68? Thanks.

Please check the message.

Your modem is supported by the standard drivers, you do not need to build anything.

@Bean.Wang-Q can i get the quectel-cm tool? I can’t connect on serial

Please check the website message.