Silabs Usb CP210x驱动程序错误
问题描述:
我尝试为我的Silabs USB转UART桥接器安装驱动程序时出现问题。Silabs Usb CP210x驱动程序错误
我下载从这里司机:http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
我试图安装在我的覆盆子具有内核3.6.11
在说明中,我可以看到以下内容:
make (your cp2010x driver)
cp cp2010x.ko to /libmodules/<kernel>/kernel/driver/usb/serial
insmod /libmodules/<kernel>/kernel/driver/usb/serial/usbserial.ko
insmod xp2010x.ko
不过,我得到这个错误,当我尝试调用MAKE:
[email protected]:/home/pi/Desktop/vcp/Linux1# make
make -C /lib/modules/3.6.11+/build M=/home/pi/Desktop/vcp/Linux1 modules
make[1]: Entering directory `/usr/src/linux'
CC [M] /home/pi/Desktop/vcp/Linux1/cp210x.o
/home/pi/Desktop/vcp/Linux1/cp210x.c:164:12: error: ´usb_serial_probe´ undeclared here (not in a function)
/home/pi/Desktop/vcp/Linux1/cp210x.c:165:16: error: ´usb_serial_disconnect´ undeclared here (not in a function)
/home/pi/Desktop/vcp/Linux1/cp210x.c: In function ´cp210x_init´:
/home/pi/Desktop/vcp/Linux1/cp210x.c:989:2: error: implicit declaration of function ´usb_serial_register´ [-Werror=implicit-function-declaration]
/home/pi/Desktop/vcp/Linux1/cp210x.c:996:3: error: implicit declaration of function ´usb_serial_deregister´ [-Werror=implicit-function-declaration]
cc1:某些警告被视为错误
make[2]: *** [/home/pi/Desktop/vcp/Linux1/cp210x.o] Error 1
make[1]: *** [_module_/home/pi/Desktop/vcp/Linux1] Error 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [all] Error 2
这里有什么问题?
答
是的 - Silicon Labs网站上的驱动程序就是一个例子。
这里推荐的路径是进入内核的源代码,并在那里获取驱动程序。或者,如果您可以执行'make menuconfig',则可以为您的发行版添加CP210x USB串行驱动程序。从3.x开始,内核是最新的,并保持所有CP210x设备的正确串行通信。
答
我相信答案是与此相关的帖子:USB Driver Compilation Error
的USB串口驱动程序API出现在Linux内核已经改变,并且正在编制SILABS驱动程序是为较旧的内核。有一些数据结构已经改变,所以我相信silab驱动必须修改才能在linux 3.6.x及更高版本上运行。
发布此问题后,您有任何进展吗?
任何想法??是否有任何问题的cp210x.c文件?不幸的是我不能编辑它!请帮助,如果你知道! – dali1985 2013-05-06 06:30:43