EG25G Driver installation not working in RapberryPi Compute Module 4

I have been trying to install Quectel_Linux&Android_QMI_WWAN_Driver_V1.1 and Quectel_Linux&Android_GobiNet_Driver_V1.6 on RapberryPi Compute Module 4. But as soon as I try to run sudo make install I get following error in both of them

make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.4.0-1062-raspi/build M=/home/ubuntu/lte_driver/Quectel_Linux&Android_QMI_WWAN_Driver_V1.1 modules
/bin/sh: 1: Android_QMI_WWAN_Driver_V1.1: not found
make: *** [Makefile:22: default] Error 127
make[1]: Entering directory ‘/usr/src/linux-headers-5.4.0-1062-raspi’
Makefile:698: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/aarch64/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-5.4.0-1062-raspi’

Why is it failing? Am I using right driver here?
I am using Ubuntu Server 20.04 LTS as the OS and Kernel is 5.4.0-1062-raspi

Also the Quectel_Linux_USB_Serial_Option_Driver_V1.0 driver does not have a version for 5.4 Kernel, it only has till 5.3

And also how do I know which of these driver I need and which I don’t need?
I have looked at Quectel_LTE&5G_Linux_USB_Driver_User_Guide_V2.0.pdf and I didn’t get these answers there.

please using make ARCH=ARM64 comamnd to try.
I will send a newer Serial_Option_Driver to you via email.

hello the same error is being thrown to me while installing QMI_WWAN_Driver in my raspberry pi. Kindly tell me or send the usual material.

root@raspberrypi:/boot/bosch/Quectel_Linux&Android_QMI_WWAN_Driver_V1.1# make install
Makefile:52: warning: overriding recipe for target ‘default’
Makefile:22: warning: ignoring old recipe for target ‘default’
Makefile:55: warning: overriding recipe for target ‘install’
Makefile:25: warning: ignoring old recipe for target ‘install’
Makefile:59: warning: overriding recipe for target ‘clean’
Makefile:29: warning: ignoring old recipe for target ‘clean’
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.15.32-v7+/build M=/boot/bosch/Quectel_Linux&Android_QMI_WWAN_Driver_V1.1 modules
/bin/sh: 1: Android_QMI_WWAN_Driver_V1.1: not found
make: *** [Makefile:52: default] Error 127
root@raspberrypi:/boot/bosch/Quectel_Linux&Android_QMI_WWAN_Driver_V1.1# make[1]: Entering directory ‘/usr/src/linux-headers-5.15.32-v7+’
scripts/Makefile.build:44: /boot/bosch/Quectel_Linux/Makefile: No such file or directory
make[2]: *** No rule to make target ‘/boot/bosch/Quectel_Linux/Makefile’. Stop.
make[1]: *** [Makefile:1868: /boot/bosch/Quectel_Linux] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.15.32-v7+’
client_loop: send disconnect: Connection reset

kindly make me correct this.

Hi,
I am getting following error while installing usb driver on Raspberry Pi Raspbian OS

CC [M] /home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.o
/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2147:23: error: initialization of ‘int (*)(struct tty_struct )’ from incompatible pointer type ‘unsigned int ()(struct tty_struct )’ [-Werror=incompatible-pointer-types]
.write_room = usb_wwan_write_room,
^~~~~~~~~~~~~~~~~~~
/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2147:23: note: (near initialization for ‘option_1port_device.write_room’)
/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2148:23: error: initialization of ‘int (
)(struct tty_struct )’ from incompatible pointer type ‘unsigned int ()(struct tty_struct )’ [-Werror=incompatible-pointer-types]
.chars_in_buffer = usb_wwan_chars_in_buffer,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2148:23: note: (near initialization for ‘option_1port_device.chars_in_buffer’)
/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2154:20: error: initialization of ‘int (
)(struct usb_serial_port )’ from incompatible pointer type ‘void ()(struct usb_serial_port *)’ [-Werror=incompatible-pointer-types]
.port_remove = usb_wwan_port_remove,

/home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.c:2154:20: note: (near initialization for ‘option_1port_device.port_remove’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:280: /home/pi/shared/usb_driver/20211204/v5.15.1/./drivers/usb/serial/option.o] Error 1
make[1]: *** [Makefile:1825: /home/pi/shared/usb_driver/20211204/v5.15.1] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.10.103+’
make: *** [Makefile:9: modules] Error 2


Please help me to fix this.

Thanks

This modem vid:pid is supported by standard Linux driver(s).