msan
deepin
2022-01-14 07:21 Reply Like 0 View the author
发一下出错信息
发一下出错信息
There was an error creating the child process for this terminal.
Failed to execute child process "/data/home/iii/CH341SER_LINUX/CH341SER_LINUX/Makefile"(可执行文件格式错误)!
编译报错是是缺少一堆系统调用文件像init.h等
CH341SER_LINUX.ZIP里的源代码太老了,不支持内核5.x。
最新版的支持内核5.14. 试了一下,该本在内核5.15下,可以顺利编译。
$ make
make -C /lib/modules/5.15.1-amd64-desktop/build M=/tmp/src/CH34x-Driver-Linux
make[1]: Entering directory '/usr/src/linux-headers-5.15.1-amd64-desktop'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Uos 8.3.0.6-1+dde) 8.3.0
You are using: gcc (Uos 8.3.0.3-3+rebuild) 8.3.0
CC [M] /tmp/src/CH34x-Driver-Linux/ch34x.o
MODPOST /tmp/src/CH34x-Driver-Linux/Module.symvers
CC [M] /tmp/src/CH34x-Driver-Linux/ch34x.mod.o
LD [M] /tmp/src/CH34x-Driver-Linux/ch34x.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.15.1-amd64-desktop'
从这个链接下载最新版本: https://github.com/gorgiaxx/CH34x-Driver-Linux
对内核5.x的支持是一个月之前才加上的。
下载命令:
git clone https://github.com/gorgiaxx/CH34x-Driver-Linux
cd CH34x-Driver-Linux
make
CH341SER_LINUX.ZIP里的源代码太老了,不支持内核5.x。
最新版的支持内核5.14. 试了一下,该本在内核5.15下,可以顺利编译。
$ make
make -C /lib/modules/5.15.1-amd64-desktop/build M=/tmp/src/CH34x-Driver-Linux
make[1]: Entering directory '/usr/src/linux-headers-5.15.1-amd64-desktop'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Uos 8.3.0.6-1+dde) 8.3.0
You are using: gcc (Uos 8.3.0.3-3+rebuild) 8.3.0
CC [M] /tmp/src/CH34x-Driver-Linux/ch34x.o
MODPOST /tmp/src/CH34x-Driver-Linux/Module.symvers
CC [M] /tmp/src/CH34x-Driver-Linux/ch34x.mod.o
LD [M] /tmp/src/CH34x-Driver-Linux/ch34x.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.15.1-amd64-desktop'
从这个链接下载最新版本: https://github.com/gorgiaxx/CH34x-Driver-Linux
对内核5.x的支持是一个月之前才加上的。
下载命令:
git clone https://github.com/gorgiaxx/CH34x-Driver-Linux
cd CH34x-Driver-Linux
make
你给的命令全都报错,我估计是系统出了问题,我执完班后把系统重装一遍
再试试
你给的命令全都报错,我估计是系统出了问题,我执完班后把系统重装一遍
再试试
报错信息发上来看看
报错信息发上来看看
谢谢,跟新了系统后,代码可以编译了,驱动也可以打上了,虽然切片软件和硬件还是不能建立联系
分别重启打印机,机器看看。 可以用命令dmesg查看。
Popular Ranking
ChangePopular Events
More
deepin系统无法编译和安装开源驱动CH341SER_LINUX.ZIP
这是prusa i3 3D打印机驱动