[OpenIndiana-discuss] FTDI FT232R support In Hipster?

Jean-Pierre André jean-pierre.andre at wanadoo.fr
Wed Mar 13 09:26:35 UTC 2019


Jean-Pierre André wrote:
> Reginald Beardsley via openindiana-discuss wrote:
>> google was not useful, so I thought I'd ask here.  I need some USB to
>> serial interfaces.
>>
>
> I have a rfxcom USB device to collect temperature data from several
> sensors. It advertises an FTDI FT230XQ interface and appears as
> usb403,6015.
>
> When I associate it with the driver usbftdi, I get an error
> (roughly "driver successfully added, but failed to attach").
> I do not see any /dev/cua interface created.
>
> The device runs properly on Windows and Linux, so I have to
> suppose usbftdi is not fit for purpose (its standard association
> is for usb403,6001 which must be an older interface).
>

I have finally dug into the usbftdi driver code and found that
it has hard coded limitations to specific devices.
I just had to add the one I needed (usb403,6015) to the
hard coded list and recompile.

Below is the significant diff.

Compiling this relies on a file sys/usb/usbdevs.h defining
the vendor/product ids, which is apparently built from some
source file whose OpenIndiana variant I could not find.
I used one from FreeBSD, but it does not contain the one
for MARVELL_SHEEVAPLUG_JTAG.

Jean-Pierre

--- uftdi_dsd.0 2019-03-12 12:04:08.095929800 +0000
+++ uftdi_dsd.c 2019-03-13 09:43:54.242637100 +0000
@@ -245,6 +254,7 @@
                 case USB_PRODUCT_FTDI_EMCU2D:
                 case USB_PRODUCT_FTDI_PCMSFU:
                 case USB_PRODUCT_FTDI_EMCU2H:
+               case USB_PRODUCT_FTDI_232EX: /* JPA */
                         break;
                 default:
                         recognized = B_FALSE;







More information about the openindiana-discuss mailing list