Page 1 of 1

Insert module into 6.1.63 kernel doesn't work

Posted: Tue Dec 17, 2024 11:04 pm
by rosshac
Hello!

I'm using the rk3328-XYZ-ubuntu-noble-core-6.1-arm64 image on my NanoPi NEO3, which has the Linux 6.1.63 kernel.

I'm trying to compile and insert a third party driver for a USB to UART interface (Max Linear XR21V1414). At first driver compilation was unsuccessful, but after manually adding the linux headers for 6.1.63 and installing, I was successful.

However, this driver requires me to use "insmod" to load the driver into the kernel, and it always fails at this step.

Code: Select all

sudo insmod xr_usb_serial_common.ko

Code: Select all

insmod: ERROR: could not insert module xr_usb_serial_common.ko: Invalid module format


How can I fix this?