ch340-driver's People
ch340-driver's Issues
Linux driver does not compile
As indicated on the repository for the Cheetah 1.2 board, I'm trying to compile and install a new driver for the CH340, however I'm not being able to do that. I get the message below:
make -C /lib/modules/5.10.0-15-amd64/build M=/home/pi/CH341SER_LINUX
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-15-amd64'
CC [M] /home/pi/CH341SER_LINUX/ch34x.o
/home/pi/CH341SER_LINUX/ch34x.c: In function ‘ch34x_close’:
/home/pi/CH341SER_LINUX/ch34x.c:593:2: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
593 | wait_queue_t wait;
| ^~~~~~~~~~~~
| wait_event
/home/pi/CH341SER_LINUX/ch34x.c:593:15: warning: unused variable ‘wait’ [-Wunused-variable]
593 | wait_queue_t wait;
| ^~~~
/home/pi/CH341SER_LINUX/ch34x.c:592:7: warning: unused variable ‘timeout’ [-Wunused-variable]
592 | long timeout;
| ^~~~~~~
/home/pi/CH341SER_LINUX/ch34x.c:591:6: warning: unused variable ‘bps’ [-Wunused-variable]
591 | int bps;
| ^~~
make[3]: *** [/usr/src/linux-headers-5.10.0-15-common/scripts/Makefile.build:285: /home/pi/CH341SER_LINUX/ch34x.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-15-common/Makefile:1846: /home/pi/CH341SER_LINUX] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-15-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-15-amd64'
make: *** [Makefile:5: default] Error 2
I'm on Debian 11.3, using gcc 10.2.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.