ModProbe ftdi_sio doesnt work

Issues related to hardware problems
Post Reply
matej
Posts: 1
Joined: 2015/01/01 19:16:47

ModProbe ftdi_sio doesnt work

Post by matej » 2015/01/01 19:22:11

Hello,

I have hardware that I am connecting with serial2usb adapter.

lsusb recognize it

Code: Select all

Bus 002 Device 006: ID 0403:f248 Future Technology Devices International, Ltd 
when I try to modprobe it

Code: Select all

sudo modprobe ftdi_sio vendor=0x0403 product=0xf248
I get

Code: Select all

modprobe: ERROR: could not insert 'ftdi_sio': Unknown symbol in module, or unknown parameter (see dmesg)
dmesg

Code: Select all

[ 1902.415305] ftdi_sio: Unknown parameter `vendor'
dmesg when I connect the device

Code: Select all

[ 2019.460593] usb 2-2.2: USB disconnect, device number 6
[ 2034.656848] usb 2-2.2: new full-speed USB device number 7 using uhci_hcd
[ 2034.878821] usb 2-2.2: New USB device found, idVendor=0403, idProduct=f248
[ 2034.878825] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2034.878827] usb 2-2.2: Product: DA2 Adapter Kit
[ 2034.878829] usb 2-2.2: Manufacturer: ITL
[ 2034.878830] usb 2-2.2: SerialNumber: FT5UN01W
please help

User avatar
Super Jamie
Posts: 310
Joined: 2014/01/10 23:44:51

Re: ModProbe ftdi_sio doesnt work

Post by Super Jamie » 2015/01/02 00:18:46

That module does not have a parameter called vendor or product:

Code: Select all

# modinfo ftdi_sio | grep parm
parm:           ndi_latency_timer:NDI device latency timer override (int)
If you just insert the device, do you get a new serial port like /dev/ttyUSB0? If so, everything is working fine.

If not, it looks like someone else has solved the same problem here:

http://ubuntuforums.org/showthread.php?t=2259068
here is something that I found, 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:

Code: Select all

# modprobe ftdi-sio
# echo 0403 f248 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
Ok it worked after all. What I had to do is:

Code: Select all

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: Select all

0304 f248
plug and unplug device
Presumably this will work if you do this as the root user:

Code: Select all

echo "0403 f248" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
And amusingly, now that I look at the names, I just gave you your own answer. Log a bug to have F248 added to this driver's USB IDs.

Post Reply

Return to “CentOS 7 - Hardware Support”