2013-05-03 406 views
0

我嘗試爲我的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 

這裏有什麼問題?

+0

任何想法??是否有任何問題的cp210x.c文件?不幸的是我不能編輯它!請幫助,如果你知道! – dali1985 2013-05-06 06:30:43

回答

1

是的 - Silicon Labs網站上的驅動程序就是一個例子。

這裏推薦的路徑是進入內核的源代碼,並在那裏獲取驅動程序。或者,如果您可以執行'make menuconfig',則可以爲您的發行版添加CP210x USB串行驅動程序。從3.x開始,內核是最新的,並保持所有CP210x設備的正確串行通信。

1

我相信答案是與此相關的帖子:USB Driver Compilation Error

的USB串口驅動程序API出現在Linux內核已經改變,並且正在編制SILABS驅動程序是爲較舊的內核。有一些數據結構已經改變,所以我相信silab驅動必須修改才能在linux 3.6.x及更高版本上運行。

發佈此問題後,您有任何進展嗎?