From owner-freebsd-usb@FreeBSD.ORG Sun Feb 6 09:18:54 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCCE0106564A for ; Sun, 6 Feb 2011 09:18:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 69F268FC12 for ; Sun, 6 Feb 2011 09:18:54 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0KkIQGagYCvnrzE3Z2Lmid87OPdbX6VLcZYwAuLMZ50= c=1 sm=1 a=TBm2-QTcs5sA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=TrLAQggYAAAA:8 a=HOcC2C60dDQkzVDtIu8A:9 a=cQeRBy5MF-yaZQVnc6nLUmiFCRsA:4 a=PUjeQqilurYA:10 a=oNu6B_0C1CkA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 84246351; Sun, 06 Feb 2011 10:18:52 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 6 Feb 2011 10:18:49 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4D4DC06B.3070708@clear.net.nz> In-Reply-To: <4D4DC06B.3070708@clear.net.nz> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201102061018.49161.hselasky@c2i.net> Cc: Benjamin Subject: Re: FTDI device "Olimex AVRISP-500" does not show up under FreeBSD. Linux driver source code available, translating this to changes in FreeBSD uftdi kern module? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2011 09:18:54 -0000 On Saturday 05 February 2011 22:26:03 Benjamin wrote: > The Olimex is a programmer for AVR microcontrollers. It is apparently an > FTDI device and works under Linux. The product page at > http://www.olimex.com/dev/avr-isp500.html provides source code for a > Linux FTDI kernel module. > > I have the looked through the Linux FTDI driver source code and have > even been given a patch by a helpful member at the FreeBSD forums > (wblock) but so far no luck. > > Here is what it is identified as when plugged in to USB: > > Feb 5 13:30:07 blackbox kernel: ugen1.2: at usbus1 > > It should ideally show up as cuaU0 or ttyUSB0 as far as I understand. > > A quick search through the Linux driver source code to find all > > instances of OLIMEX: > > grep OLIMEX ftdi_*.[c,h] > > ftdi_sio.c: { USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_PID), > ftdi_sio.c: { USB_DEVICE(OLIMEX_VID, OLIMEX_AVR_ISP500_ISO_PID) }, > ftdi_sio_ids.h:#define OLIMEX_VID 0x15BA > ftdi_sio_ids.h:#define OLIMEX_ARM_USB_OCD_PID 0x0003 > ftdi_sio_ids.h:#define OLIMEX_AVR_ISP500_ISO_PID 0x000B > > Note that the above is Linux kernel module source. Myself and wblock > have tried to hack the FreeBSD uftdi kernel module to no avail. He > offered the attached patch which did not seem to work. > > The Linux driver source is available here: > http://www.olimex.com/dev/soft/avr/AVR-ISP500/AVR-ISP500_linux_driver.zip > > Does this look like something that could easily be changed in the > FreeBSD uftdi kern module? > > Cheers, > Benjamin Your patch looks OK. Can you create a PR so that your patch doesn't get lost? --HPS