Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi 4 - Invalid module format #21

Closed
antwal opened this issue Feb 26, 2022 · 1 comment
Closed

RPi 4 - Invalid module format #21

antwal opened this issue Feb 26, 2022 · 1 comment

Comments

@antwal
Copy link

antwal commented Feb 26, 2022

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

@juliagoda
Copy link
Owner

juliagoda commented Mar 21, 2022

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

@antwal antwal closed this as completed Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants