From owner-freebsd-usb@freebsd.org Tue Nov 10 17:14:28 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5B32A2C20F for ; Tue, 10 Nov 2015 17:14:28 +0000 (UTC) (envelope-from bsmply@gmail.com) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B9861E88 for ; Tue, 10 Nov 2015 17:14:28 +0000 (UTC) (envelope-from bsmply@gmail.com) Received: by obbww6 with SMTP id ww6so2618274obb.0 for ; Tue, 10 Nov 2015 09:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tAoY/ZevX9lIxaLFgtMeU/bO6GIQkBbn/mM9tnNJNHY=; b=zwwhFCYulI8bygD7jkV1imfC3Fz9IYSdddkJBuxQoD8HY2ZRwYPBYyokXSbTTPo7Ve airisd7wpun6Se/JfZufsv9AopIQ5CAQVWgqB6/KsnvKH84830uTRqMjrJW+bdHZBb32 5TLz/G+CbNWIGU5q5lkjJvq/MYpGPHaVpM0MwE5xmOaGQ4nUnZoTRZPf6W32IWHgzLAk O0aSbcxa1NxXIyhsDlSpMGMUPkMoGygJyAV4I9fqsd1/pQbJ2SRGxGieG1AV+u5kAul+ lHc2YMr9IkHBU7Cnym6hhgiZFdAje07hyxwakHFqGx5DIrBpCIqj4Pwf8kEQ3+ojBP1A hM+A== MIME-Version: 1.0 X-Received: by 10.182.88.165 with SMTP id bh5mr2299665obb.21.1447175667978; Tue, 10 Nov 2015 09:14:27 -0800 (PST) Received: by 10.76.44.145 with HTTP; Tue, 10 Nov 2015 09:14:27 -0800 (PST) In-Reply-To: <564222D8.6020900@selasky.org> References: <56421DFD.6070503@selasky.org> <564222D8.6020900@selasky.org> Date: Tue, 10 Nov 2015 12:14:27 -0500 Message-ID: Subject: Re: How to access a FTDI usb device with a custom vendor and product id's From: Burton Sampley To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 17:14:28 -0000 Thank you. I do not have the kernel source on this system, so I will need to setup the kernel source, then modify the table in uftdi.c with the custom entries, then recompile the module and reload it. It may take some time for me to complete these actions. Should I report back to this email list if this solution resolves my problem? Regards, -Burton On Tue, Nov 10, 2015 at 12:01 PM, Hans Petter Selasky wrote: > On 11/10/15 17:55, Burton Sampley wrote: > >> HPS, >> >> Thank you for your prompt response. I reviewed the webpage link you have >> provided. I assume that would be a template for an entry in >> /etc/devd.conf, however what I do not understand is what is the FreeBSD >> equivalent of "FTDI_SIO" that can be called in the "action" line? >> > > Hi, > > FreeBSD doesn't support that you add a VID and PID to a driver runtime. > > >> The first step I would like to accomplish is to simple make the device >> work >> at the command line, then I can automate the steps within /etc/devd.conf. >> Right now, I am struggling to find documentation that is fit-for-purpose >> for USB. I would like to figure out if libftdi is the proper solution or >> if I must use uftdi. If I need to use uftdi, then specifically how do I >> force uftdi to attach to a custom vid/pid? >> > > You will need to add a vendor/product entry in this table: > > > https://svnweb.freebsd.org/base/head/sys/dev/usb/serial/uftdi.c?revision=286385&view=markup#l273 > > --HPS > -- Your mind is like a parachute, it works much better when it is open.