Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2015 14:32:14 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Burton Sampley <bsmply@gmail.com>, Ian Lepore <ian@freebsd.org>, freebsd-usb@freebsd.org
Subject:   Re: How to access a FTDI usb device with a custom vendor and product id's
Message-ID:  <CANCZdfq3vvY=uDmhr1CEt0yqEW=P1zT6CYRnhZ7%2BNW4gpqccyw@mail.gmail.com>
In-Reply-To: <56422167.6050803@selasky.org>
References:  <CANV5k3rW62rGoXKD4m5meegEJ04T4b_v=QGCqBV5wuGxZjzCbg@mail.gmail.com> <56421DFD.6070503@selasky.org> <1447174212.91061.9.camel@freebsd.org> <56422167.6050803@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 10, 2015 9:53 AM, "Hans Petter Selasky" <hps@selasky.org> wrote:
>
> On 11/10/15 17:50, Ian Lepore wrote:
>>
>> On Tue, 2015-11-10 at 17:40 +0100, Hans Petter Selasky wrote:
>>>
>>> On 11/10/15 17:28, Burton Sampley wrote:
>>>>
>>>> SYSFS{idVendor}=="2100", SYSFS{idProduct}=="9e56",
>>>> RUN+="/sbin/modprobe -q
>>>> ftdi_sio vendor=0x2100 product=0x9e56"
>>>>
>>>> How do I accomplish the same in FreeBSD?  When the cable is plugged
>>>> in, I
>>>> get the following in /var/log/messages:
>>>
>>>
>>> Hi,
>>>
>>> See examples here:
>>>
>>> https://svnweb.freebsd.org/ports/head/multimedia/webcamd/files/webcam
>>> d.conf.in?view=markup
>>>
>>> --HPS
>>
>>
>> But the info in those examples won't cause the uftdi driver to attach
>> to the device (as shown in the linux-based example), that can only
>> happen if the vid/pid are added to the table in the driver itself,
>> right?  I don't remember any mechanism in our usb world for forcing a
>> driver to attach to a device that isn't compiled into the driver's
>> usb_device_id array.
>>
>> On the other hand, if the device is going to be accessed via libusb
>> and/or libftdi, I'm not sure the tty driver needs to attach to it at
>> all; don't those libraries work purely through the ugen device?
>>
>
> Right. This might be a feature for:
>
> https://reviews.freebsd.org/D3458

No. That's different. I need to integrate the code from my talk a few years
ago
that did the right mappings so the device driver knew what to do with the
device.

Warner
> --HPS
>
>
> _______________________________________________
> freebsd-usb@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq3vvY=uDmhr1CEt0yqEW=P1zT6CYRnhZ7%2BNW4gpqccyw>