-
Notifications
You must be signed in to change notification settings - Fork 18
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
insmod: ERROR: could not insert module ch34x.ko: Invalid module format #3
Comments
same problem here |
same problem raspberry pi 3 |
Same error on my Raspberry Pi 2 with Raspbian Jessie. |
Unfortunately, same here. RPI3 |
same here raspberry 2 jessie |
For recent kernel, you need to compile from source this specifically fixed driver: https://github.com/skyrocknroll/CH341SER_LINUX. |
Greetings |
And everytime you need, you will have to recharge them, like that: pi@raspberrypi:~ $ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial |
How do you get it to show up in lsusb? it is showing up now under usbserial. |
Sry, didn't get you point. I am not an english native speaker. Think I mentioned the way I tried to get it running. See my comments to the picture. |
Unfortunately I am on a headless raspberry pi lite “Sketch”. I decided to plug in the UNO I have and it’s recgonized no problem |
I have compiled the driver for the latest rpi kernel version. |
Thanks a lot, man!
Enviado do Yahoo Mail no Android
<div>Em Qui, 31 31e mai 31e 2018 às 12:57, KorraCatBerlin</div><div><[email protected]> escreveu:</div>
I have compiled the driver for the latest rpi kernel version.
wget https://dl.dropboxusercontent.com/s/nkglyp57i2vl7ao/ch34x.ko
sudo insmod ch34x.ko
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
full of thanks sir,,, |
Or use the mainline driver |
Thanks so much, this thread got me sorted connecting my nodeMCU board to Rasberry pi, never been so happy to see a simple LED flashing |
That's nice, friend!
The intention was help with a quite approach, ease and objective.
CheersAlex
Enviado do Yahoo Mail no Android
<div>Em dom, 3 3e mar 3e 2019 às 13:56, kadon70</div><div><[email protected]> escreveu:</div>
1. download
pi@raspberrypi:~ $ wget https://github.com/aperepel/raspberrypi-ch340-driver/releases/download/4.4.11-v7/ch34x.ko
2. check
pi@raspberrypi:~ $ lsmod
Module Size Used by
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 70
3. go towards
pi@raspberrypi:~ $ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial
4. Install first
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod usbserial.ko
5. Check once again
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
usbserial 29943 0 <===== Need be installed FIRST
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
6. NOW, install ch341.ko
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod ch341.ko
7. Voilá !!!
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
ch341 6086 0 <==== Must be here first
usbserial 29943 1 ch341 <==== Can you see me now ?
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
Greetings
Alexandre Toledo
[email protected]
full of thanks sir,,,
step by step as u describe was really help me...
i just followed exactly as it is, now i could say "viola" also,,,
thanks again,,,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
That's nice, friend!
The intention was help with a quite approach, ease and objective.
CheersAlex
Enviado do Yahoo Mail no Android
<div>Em dom, 3 3e mar 3e 2019 às 13:56, kadon70</div><div><[email protected]> escreveu:</div>
1. download
pi@raspberrypi:~ $ wget https://github.com/aperepel/raspberrypi-ch340-driver/releases/download/4.4.11-v7/ch34x.ko
2. check
pi@raspberrypi:~ $ lsmod
Module Size Used by
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 70
3. go towards
pi@raspberrypi:~ $ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial
4. Install first
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod usbserial.ko
5. Check once again
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
usbserial 29943 0 <===== Need be installed FIRST
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
6. NOW, install ch341.ko
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ sudo insmod ch341.ko
7. Voilá !!!
pi@raspberrypi:/lib/modules/4.9.35-v7+/kernel/drivers/usb/serial $ lsmod
Module Size Used by
ch341 6086 0 <==== Must be here first
usbserial 29943 1 ch341 <==== Can you see me now ?
bnep 12051 2
hci_uart 20020 1
btbcm 7916 1 hci_uart
bluetooth 365511 22 hci_uart,bnep,btbcm
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
rfkill 20851 4 bluetooth,cfg80211
snd_bcm2835 24427 1
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 5 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem 3940 0
evdev 12423 6
joydev 9988 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
i2c_dev 6913 0
fuse 99603 3
ipv6 408971 68
Greetings
Alexandre Toledo
[email protected]
full of thanks sir,,,
step by step as u describe was really help me...
i just followed exactly as it is, now i could say "viola" also,,,
thanks again,,,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
root@raspberrypi:/home/pi/Downloads/CH340_LINUX# cd CH341SER_LINUX/ /home/pi/Downloads/CH340_LINUX/CH341SER_LINUX/ch34x.c:578:5: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration] /home/pi/Downloads/CH340_LINUX/CH341SER_LINUX/ch34x.c: In function ‘wait_modem_info’: |
I have this same issue with a new Pi 5 on a clean install. I am trying to use a recently bought ch384 hub board. |
Raspberry pi3 with NOOBS Debian installed 2016 oct 19
did a reboot,
show "ch341 4932 0 at lsmod,
show "ch341.ko" at ls /lib/modules/$(uname -r)/kernel/drivers/usb/serial
nothing at sudo depmod -a
previously installed libusb-1.0.0-dev, mochad-0.1.15, usbutils
but got at command $ Isusb
bash: Isusb: command not found
Salutations
here the terminal output for ch34x
_> pi@raspberrypi:~ $ sudo insmod ch34x.ko
_
The text was updated successfully, but these errors were encountered: