ttyUSB not showing up, modprobe unknown parameter 'vendor' & 'product'
2015-07-19 20:00
387 查看
Hello,
I have tried this on Ubuntu 12.04.5 and 14.04
I have one evice that I connect with usb adapter. The instruction states that I should do this:
Code:
this should create ttyUSB0, but there is no ttyUSB0 in /dev/
this is step by step for 14.04
so step by step:
1. connect usb
dmesg:
Code:
lsusb:
Code:
2. after I try to remove ftdi_sio
[CODE
Bus 002 Device 005: ID 0403:f248 Future Technology Devices International, Ltd
][/CODE]
3. when I try to modprobe it I get no error, but there is no ttyUSB in dev
dmesg:
Code:
help please
EDIT: here is something that I fond, but this solution didnt work.
From kernel 3.12, the ftdi-sio module no longer accepts the "vendor" and "product" parameters (commit link). I think it was assumed that this was a debugging feature
that should not be used by end users, and so the change was not at all publicised.
The new way to add a new VID/PID pair for the ftdi-sio driver is to write them both, one after the other, to /sys/bus/usb-serial/drivers/ftdi_sio/new_id:
# modprobe ftdi-sio
# echo 0403 f248 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
EDIT2: I also updated the repo to include lateset repo, and I deleted usb-serial and install the latest
Ok it worked after all. What I had to do is:
Code:
type my vendor and product id and save file with CTRL+x > yes
Code:
plug and unplug device
I have tried this on Ubuntu 12.04.5 and 14.04
I have one evice that I connect with usb adapter. The instruction states that I should do this:
Code:
rmmod ftdi_sio modprobe ftdi_sio vendor=0x0403 product=0xf248
this should create ttyUSB0, but there is no ttyUSB0 in /dev/
this is step by step for 14.04
so step by step:
1. connect usb
dmesg:
Code:
[ 273.398522] usb 2-2.2: new full-speed USB device number 5 using uhci_hcd [ 273.582354] usb 2-2.2: New USB device found, idVendor=0403, idProduct=f248 [ 273.582360] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 273.582364] usb 2-2.2: Product: DA2 Adapter Kit [ 273.582366] usb 2-2.2: Manufacturer: ITL [ 273.582368] usb 2-2.2: SerialNumber: FT5UN01W
lsusb:
Code:
Bus 002 Device 005: ID 0403:f248 Future Technology Devices International, Ltd
2. after I try to remove ftdi_sio
[CODE
Bus 002 Device 005: ID 0403:f248 Future Technology Devices International, Ltd
][/CODE]
3. when I try to modprobe it I get no error, but there is no ttyUSB in dev
dmesg:
Code:
[ 952.847812] usbcore: registered new interface driver usbserial [ 952.847848] usbcore: registered new interface driver usbserial_generic [ 952.847863] usbserial: USB Serial support registered for generic [ 952.888754] ftdi_sio: unknown parameter 'vendor' ignored [ 952.888762] ftdi_sio: unknown parameter 'product' ignored [ 952.889247] usbcore: registered new interface driver ftdi_sio [ 952.889265] usbserial: USB Serial support registered for FTDI USB Serial Device
help please
EDIT: here is something that I fond, but this solution didnt work.
From kernel 3.12, the ftdi-sio module no longer accepts the "vendor" and "product" parameters (commit link). I think it was assumed that this was a debugging feature
that should not be used by end users, and so the change was not at all publicised.
The new way to add a new VID/PID pair for the ftdi-sio driver is to write them both, one after the other, to /sys/bus/usb-serial/drivers/ftdi_sio/new_id:
# modprobe ftdi-sio
# echo 0403 f248 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
EDIT2: I also updated the repo to include lateset repo, and I deleted usb-serial and install the latest
Ok it worked after all. What I had to do is:
Code:
sudo chmod 666 /sys/bus/usb-serial/drivers/ftdi_sio/new_id nano /sys/bus/usb-serial/drivers/ftdi_sio/new_id
type my vendor and product id and save file with CTRL+x > yes
Code:
0304 f248
plug and unplug device
相关文章推荐
- POJ 1149 PIGS(最大流)
- bzoj-4196 NOI-2015 软件包管理器
- 类似DiaLog的Activity
- https原理:证书传递、验证和数据加密、解密过程解析
- HDU-5284
- js简单记录
- 疯狂html5演讲(两):HTML5简经常使用的元素和属性(一个):html5保留经常使用的元素
- [置顶] 优秀的相关网站留存-实时更新
- vc获得窗口并枚举其子窗口
- 【leetcode】Delete Node in a Linked List
- https原理:证书传递、验证和数据加密、解密过程解析
- android学习之LayoutInflater的用法,在myAdapter getView()里将多个TextView组件压缩成一个View控件,并在listView里显示
- hdu 4035 可能性DP 成都网络游戏
- B树的生成
- LeetCode#171 Excel Sheet Column Number
- Servlet生命周期与Servlet容器
- Swing-JPopupMenu弹出菜单用法-入门
- 2015年7月工作经验总结
- OpenFlow分析
- JVM系列七:执行引擎