我在为Silabs USB转UART桥安装驱动程序时遇到问题。
我从这里下载我的驱动程序: http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
我正在运行Ubuntu 12.04 32位内核Linux 3.5.0-27-通用
说明说make(你的cp2010x驱动程序)
cp cp2010x.ko to /libmodules/<kernel>/kernel/driver/usb/serial
insmod /libmodules/<kernel>/kernel/driver/usb/serial/usbserial.ko
insmod xp2010x.ko
但是,当我尝试调用make时出现此错误:
root@grace:/home/admin/Desktop/usb# make
make -C /lib/modules/3.5.0-27-generic/build M=/home/admin/Desktop/usb modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-27-generic'
CC [M] /home/admin/Desktop/usb/cp210x.o
/home/admin/Desktop/usb/cp210x.c:164:12: error: ‘usb_serial_probe’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c:165:16: error: ‘usb_serial_disconnect’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c: In function ‘cp210x_init’:
/home/admin/Desktop/usb/cp210x.c:989:2: error: implicit declaration of function ‘usb_serial_register’ [-Werror=implicit-function-declaration]
/home/admin/Desktop/usb/cp210x.c:996:3: error: implicit declaration of function ‘usb_serial_deregister’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/admin/Desktop/usb/cp210x.o] Error 1
make[1]: *** [_module_/home/admin/Desktop/usb] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-27-generic'
make: *** [all] Error 2
我是Linux新手。我已经用Google搜索了很多错误,但我找不到任何有用的答案。
答案 0 :(得分:1)
根据this forum post,自2009年3月以来,这些驱动程序实际上已成为内核的一部分。您可以在drivers / usb / serial / cp210x.c(here is a link中看到该文件到该文件中最新稳定版的内核)。