Ubuntu 16.04 CH340G 驱动问题

Q:

在使用 Uart 转 USB 芯片为 CH340G 的开发板时,minicom 不能够正常显示串口发送的信息,换成 PL2303 或者 FT232 都可以正常使用,估计 CH340G 的驱动可能存在问题。但从 江苏沁恒 官网下载的 Linux 版本驱动最高只能支持 3.13.x 的内核,而 Ubuntu 16.04 使用的是 4.x 以上的内核。

A:

直接make之后显示两个错误:
1. ch34x.c:591:2: error: unknown type name ‘wait_queue_t’ 2. error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration]

第591行 wait_queue_t wait 这个变量没有用到,直接注释即可,然后缺少一个头文件,添加 #include

make load 加载驱动即可。

参考https://blog.csdn.net/nuttiny/article/details/79842900

你可能感兴趣的:(Linux)