在調試handsfree時,ubuntu tk1板卡識別不出ttyUSB端口
通過dmesg -c查看,
Product: CP2102 USB to UART Bridge Controller
但是cp210x沒有attached to ttyUSB0
這個我們需要更新cp210x的driver
從http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx#linux下載 cp210x的驅動
編譯生成cp210x.ko
insmod cp210x.ko,就可以看到ttyUSB0了。
另外我們還需要ubuntu上電自動加載驅動模塊
步驟如下
1. depmod -a
2. 在/etc/modules加入cp210x
3. 拷貝cp210x.ko到/lib/modules/.../kernel/drivers/usb/serial