Comments (9)
I changed the code a litte bit to make it compile on those systems. Just change the types of ch34x_write_room and
ch34x_chars_in_buffer to int instead of unsiged int.
from ch341ser.
Same issue in Ubuntu 20.04 LTS on raspberry pi arm64.
from ch341ser.
This does indeed fix compilation. Thanks !
from ch341ser.
Also getting this on:
20.04.3 LTS (Focal Fossa)
CPU: Intel x64 i3-6100
from ch341ser.
I was able to fix the issue by downloading the official driver and then only replacing wait_queue_t wait; with wait_queue_entry_t wait; before running the make command.
from ch341ser.
sorry for the late response
from ch341ser.
Hey, just wanted to let you know that I had to revert the changes of 45074ab to make it work on my Arch system.
Otherwise I get the initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’
error.
Arch Linux, Kernel: 5.14.14-zen1-1-zen
Should I open a new issue? Would make sense I guess in case other Arch users get stuck on this and can fix it themselves without you having to work on it right now.
Edit: I just did it, won't hurt I guess.
from ch341ser.
Question for Ubuntu/Mint users. As a change made by the maintainer of this repository makes it impossible to build this on Arch Linux and therefore we would like to determine the culprit. I have two leads and would like to eliminate one of them.
Could you see if this solution works for you?
If it doesn't build up in you after this change, we can probably pinpoint the real cause of the problem.
from ch341ser.
I have tested for both cases - when there is a newer kernel with gcc and an older one, and it looks like the condition from the pull request adjusts correctly. Nevertheless, it would be good if others would confirm this. Users no longer need to clone the repo from @sirlucjan if they don't want to, because the changes were accepted in the pull request
from ch341ser.
Related Issues (20)
- RPi 4 - Invalid module format HOT 1
- test ok in ubuntu 22.04
- Missing instructions for SecureBoot HOT 1
- on manjaro linux device detected but not initialized. HOT 3
- `make` error on Linux Mint 20.2 HOT 24
- make error on arch linux —— ch34x.c:1294:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb HOT 5
- Repo transfer
- CH340G
- incompatible-pointer-types error near ch34x_device.set_termios
- Build failed on PopOS 22.04
- Build failed on kernel 5.14.21 HOT 1
- initialization of ‘unsigned int - Werror=incompatible-pointer-types HOT 1
- CH340 keeps repetedly connecting and disconnecting HOT 1
- Device not recognized HOT 1
- brltty driver blocks use of CH340
- Segmentation Fault when accessing the tty device after load
- can`t make HOT 2
- This driver is too old, please refer to the new repo: https://github.com/WCHSoftGroup/ch341ser_linux HOT 2
- insmod: ERROR: could not insert module ch34x.ko: Key was rejected by service
- Can't make file on Ubuntu
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.
from ch341ser.