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
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.