RPi 4 - Invalid module format
antwal opened this issue · comments
Hi,
i have tried it but not working:
root@3dprinters:~/CH341SER_FIX# export LANG=c
root@3dprinters:~/CH341SER_FIX# make
make -C /lib/modules/5.15.24-v7l+/build M=/root/CH341SER_FIX
make[1]: Entering directory '/usr/src/linux'
CC [M] /root/CH341SER_FIX/ch34x.o
MODPOST /root/CH341SER_FIX/Module.symvers
CC [M] /root/CH341SER_FIX/ch34x.mod.o
LD [M] /root/CH341SER_FIX/ch34x.ko
make[1]: Leaving directory '/usr/src/linux'
root@3dprinters:~/CH341SER_FIX# make load
modprobe usbserial
insmod ch34x.ko
insmod: ERROR: could not insert module ch34x.ko: Invalid module format
make: *** [Makefile:12: load] Error 1
how can resolve?
Thanks
Sorry for the late response. This seems to be a common problem with the Rapsberry Pi - not just version 4. It is possible that the module associated with the usb is missing. This can be checked via the command:
lsmod
Try following these steps:
aperepel/raspberrypi-ch340-driver#3 (comment)
using the driver in my repository, instead of the one in the tutorial in the link