gpt4 book ai didi

linux - Silabs Usb CP210x 驱动错误

转载 作者:太空宇宙 更新时间:2023-11-04 09:45:57 25 4
gpt4 key购买 nike

我在尝试为我的 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

这里有什么问题?

最佳答案

是 - Silicon Labs 网站上的驱动程序仅作为示例。

此处推荐的路径是进入内核的源代码,并在那里获取驱动程序。或者,如果您可以执行“make menuconfig”,则可以为您的分发添加 CP210x USB 串行驱动程序。从 3.x 开始,内核是最新的,并为所有 CP210x 设备的正确串行通信进行了维护。

关于linux - Silabs Usb CP210x 驱动错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16358813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com