skyrocknroll / ch341ser_linux Goto Github PK
View Code? Open in Web Editor NEWnodemcu esp8266 serial linux driver with latest kernel support ubuntu 16.04
nodemcu esp8266 serial linux driver with latest kernel support ubuntu 16.04
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
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.