raspberrypi-ch340-driver icon indicating copy to clipboard operation
raspberrypi-ch340-driver copied to clipboard

unknown symbol in module

Open jschoch opened this issue 7 years ago • 4 comments

not sure how to trouble shoot this.



pi@lchr:~/linux $ make kernelversion
4.9.13

pi@lchr:~/linux $ uname -a
Linux lchr 4.9.13-v7+ #974 SMP Wed Mar 1 20:09:48 GMT 2017 armv7l GNU/Linux

pi@lchr:~/driver/CH341SER_LINUX $ make
make -C /lib/modules/4.9.13-v7+/build  M=/home/pi/driver/CH341SER_LINUX
make[1]: Entering directory '/home/pi/linux-5d1da107bc619c1cc091ee5301f85cd89a6d92fb'
  LD      /home/pi/driver/CH341SER_LINUX/built-in.o
  CC [M]  /home/pi/driver/CH341SER_LINUX/ch34x.o
/home/pi/driver/CH341SER_LINUX/ch34x.c: In function âch34x_closeâ:
/home/pi/driver/CH341SER_LINUX/ch34x.c:566:15: warning: unused variable âwaitâ [-Wunused-variable]
  wait_queue_t wait;
               ^
/home/pi/driver/CH341SER_LINUX/ch34x.c:565:7: warning: unused variable âtimeoutâ [-Wunused-variable]
  long timeout;
       ^
/home/pi/driver/CH341SER_LINUX/ch34x.c:564:6: warning: unused variable âbpsâ [-Wunused-variable]
  int bps;
      ^
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/pi/driver/CH341SER_LINUX/ch34x.mod.o
  LD [M]  /home/pi/driver/CH341SER_LINUX/ch34x.ko
make[1]: Leaving directory '/home/pi/linux-5d1da107bc619c1cc091ee5301f85cd89a6d92fb'


pi@lchr:~/driver/CH341SER_LINUX $ sudo insmod ch34x.ko
insmod: ERROR: could not insert module ch34x.ko: Unknown symbol in module


jschoch avatar Mar 11 '17 20:03 jschoch

For recent kernels, use the source code provided at https://github.com/skyrocknroll/CH341SER_LINUX

hlehoux avatar Jun 08 '17 14:06 hlehoux

I have the same problem, and am running the latest RPi kernel for a Pi-Top notebook. This is after I recompiled the driver for my setup.

BKrobusek avatar Sep 20 '17 20:09 BKrobusek

I have forked repo and provided fixed source code and recompiled driver for NOOBS 3.0 here - https://github.com/koss822/raspberrypi-ch340-driver

koss822 avatar Mar 12 '19 14:03 koss822

I had the same issue, this link can help: https://github.com/juliagoda/CH341SER

ThomasDevoogdt avatar Apr 19 '20 15:04 ThomasDevoogdt