我需要在Linux LMDE 3 Cindy中安装MySmartUSB Light作为Linux中avr的编程器,因此我从此链接下载了该驱动程序(Linux_3.x.x_4.x.x_VCP_Driver_Source):基于它的注释如下所示:
上次修改时间为2019年7月12日
该捆绑软件包含用于4.10.0内核(Ubuntu 17.04)的经过修改的CP210x驱动程序。
它包含:
- 支持CP2102N
注意:此驱动程序是如何在CP210x驱动程序中执行GPIO操作的示例,因为kernel.org上的驱动程序目前不支持GPIO。仅在Ubuntu 14.04的Linux 3.13.0内核上编写和测试了该驱动程序。该驱动程序是Linux 3.13.0内核中现有驱动程序的修改版本,该内核已在kernel.org上维护。建议在那里使用与您特定内核版本匹配的驱动程序:
www.kernel.org
建立指令:
Ubuntu:1.制作(您的cp210x驱动程序)2. cp cp210x.ko到/ lib / modules // kernel / drivers / usb / serial 3. insmod / lib / modules /
当我想sudo make
在驱动程序文件夹中运行时,出现此错误:
so@notebook:~/Downloads/Compressed/Linux_3.x.x_4.x.x_VCP_Driver_Source$ sudo make
[sudo] password for so:
Sorry, try again.
[sudo] password for so:
make -C /lib/modules/`uname -r`/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-9-amd64'
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:44: /usr/src/linux-headers-4.9.0-9-common/scripts/basic/Makefile: No such file or directory
make[5]: *** No rule to make target '/usr/src/linux-headers-4.9.0-9-common/scripts/basic/Makefile'. Stop.
/usr/src/linux-headers-4.9.0-9-common/Makefile:444: recipe for target 'scripts_basic' failed
make[4]: *** [scripts_basic] Error 2
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:44: /usr/src/linux-headers-4.9.0-9-common/arch/x86/entry/syscalls/Makefile: No such file or directory
make[4]: *** No rule to make target '/usr/src/linux-headers-4.9.0-9-common/arch/x86/entry/syscalls/Makefile'. Stop.
arch/x86/Makefile:231: recipe for target 'archheaders' failed
make[3]: *** [archheaders] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-9-amd64'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
那么我该如何解决这个问题呢?
您是否曾经使用过该系统来运行make来构建驱动程序?您可能需要一些额外的软件包。
该指南可能会有所帮助,因为它描述了编译软件包之前的必要步骤,尽管您所考虑的最重要的步骤可能是第一步:
sudo apt-get install build-essential checkinstall
一旦运行,尝试sudo make
再次编译驱动程序。
如果它不起作用,则可能是您没有正确的内核头文件。内核头文件基本上只是内核本身的C头文件,这对于编译与内核接口的事物(例如驱动程序)是必需的。这是一个安装指南,解释了升级/安装内核标头与运行一样容易:
sudo apt update
sudo apt install linux-headers-$(uname -r)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句