Open ghost opened 2 years ago
I am having the same issue, also on Ubuntu 22.04
Same issue, also on Ubuntu 22.04
As a workaround, you can add the -Wno-incompatible-pointer-types
flag to ignore the warning.
For example :
obj-m := ch340.o
KDIR := /lib/modules/$(shell uname -r)/build
CFLAGS_ch340.o := -Wno-incompatible-pointer-types
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
Edit : Nevermind, I didn't understand the README's disclaimer, you should use the ch341 kernel driver which is already shipped with most linux distributions. The ch340 driver was only used because ch341 had speed issues until kernel 5.5.
Remove callback return type has been changed to void since kernel 5.12 : https://github.com/torvalds/linux/commit/c5d1448fa353242635fa3e1fed6ab4558e0e7d9a
I'll try to throw in a PR tomorrow.
@joscherrer how do you use the ch341 driver? I have ubuntu 22.04.2 with 5.19.0-38-generic. lsusb
shows
Bus 003 Device 011: ID 1a86:7523 QinHeng Electronics CH340 serial converter
but I don't see any new devices in /dev
.
Should I be downloading the driver from https://www.wch.cn/downloads/CH341SER_LINUX_ZIP.html?
@joscherrer how do you use the ch341 driver? I have ubuntu 22.04.2 with 5.19.0-38-generic.
lsusb
shows
Bus 003 Device 011: ID 1a86:7523 QinHeng Electronics CH340 serial converter
but I don't see any new devices in
/dev
.Should I be downloading the driver from https://www.wch.cn/downloads/CH341SER_LINUX_ZIP.html?
you figure this out?
After updating my system to Ubuntu 22.04 I can connect anymore to your ESP32-POE board:
So I'm trying to compile this drivers but I get this error:
Here the full output of the log: