Coder Social home page Coder Social logo

ch341ser_linux's People

Contributors

skyrocknroll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ch341ser_linux's Issues

Unable to compile the latest CH341SER_LINUX driver for nodemcu

make -C /lib/modules/4.4.0-28-generic/build  M=/home/yuva/embedded/CH341SER_LINUX  
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-28-generic'
  CC [M]  /home/yuva/embedded/CH341SER_LINUX/ch34x.o
/home/yuva/embedded/CH341SER_LINUX/ch34x.c: In function ‘wait_modem_info’:
/home/yuva/embedded/CH341SER_LINUX/ch34x.c:756:3: error: implicit declaration of function ‘interruptible_sleep_on’ [-Werror=implicit-function-declaration]
   interruptible_sleep_on( &priv->delta_msr_wait );
   ^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/home/yuva/embedded/CH341SER_LINUX/ch34x.o' failed
make[2]: *** [/home/yuva/embedded/CH341SER_LINUX/ch34x.o] Error 1
Makefile:1403: recipe for target '_module_/home/yuva/embedded/CH341SER_LINUX' failed
make[1]: *** [_module_/home/yuva/embedded/CH341SER_LINUX] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-28-generic'
Makefile:5: recipe for target 'default' failed
make: *** [default] Error 2

If you have received this error then clone the repo and execute
make
make load

error: initialization of ‘void (*)(struct usb_serial_port *)’ from incompatible pointer type ‘int (*)(struct usb_serial_port *)’

Hi I'm getting this error on ubuntu Ubuntu 22.04.1 LTS running the 5.15.0-53-generic kernel. Seems like something changed here?

sudo make
make -C /lib/modules/5.15.0-53-generic/build  M=/home/dominik/CH341SER_LINUX  
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-53-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
  CC [M]  /home/dominik/CH341SER_LINUX/ch34x.o
/home/dominik/CH341SER_LINUX/ch34x.c:570:30: error: initialization of ‘void (*)(struct usb_serial_port *)’ from incompatible pointer type ‘int (*)(struct usb_serial_port *)’ [-Werror=incompatible-pointer-types]
  570 |         .port_remove       = ch341_port_remove,
      |                              ^~~~~~~~~~~~~~~~~
/home/dominik/CH341SER_LINUX/ch34x.c:570:30: note: (near initialization for ‘ch341_device.port_remove’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/dominik/CH341SER_LINUX/ch34x.o] Error 1
make[1]: *** [Makefile:1903: /home/dominik/CH341SER_LINUX] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-53-generic'
make: *** [Makefile:5: default] Error 2

> I was getting

          > I was getting
insmod: ERROR: could not insert module ch34x.ko: Device or resource busy

and just rebooted Ubuntu and it worked.

Funny. I am getting the same thing and try rebooting Ubuntu but it still doesn't work for me. Help, please.

Originally posted by @IvanMejico in #1 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.