当我尝试为我的 Silabs USB 到 UART 桥接器安装驱动程序时遇到问题。
我从这里下载了驱动程序: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 时出现此错误:
root@raspberrypi:/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
这里有什么问题?