From owner-freebsd-current@FreeBSD.ORG Fri Jun 17 13:46:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97648106566B for ; Fri, 17 Jun 2011 13:46:18 +0000 (UTC) (envelope-from luizgustavo@luizgustavo.pro.br) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 721EB8FC15 for ; Fri, 17 Jun 2011 13:46:18 +0000 (UTC) Received: by pzk27 with SMTP id 27so2406701pzk.13 for ; Fri, 17 Jun 2011 06:46:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.64.106 with SMTP id n10mr162189pbs.88.1308318377806; Fri, 17 Jun 2011 06:46:17 -0700 (PDT) Sender: luizgustavo@luizgustavo.pro.br Received: by 10.68.51.104 with HTTP; Fri, 17 Jun 2011 06:46:17 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Jun 2011 10:46:17 -0300 X-Google-Sender-Auth: ajoGwXxN-AB8IcdrXURcShZ0jAM Message-ID: From: "Luiz Gustavo S. Costa" To: Rick van der Zwet Content-Type: multipart/mixed; boundary=bcaec53aedd6298db604a5e89cc5 Cc: freebsd-current@freebsd.org Subject: Re: udav: vendor 0x0fe6, product: 0x9700 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2011 13:46:18 -0000 --bcaec53aedd6298db604a5e89cc5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all I was venturing more on the idea of running this adapter, I decided to test on OpenBSD 4.9 OpenBSD 4.9 RELEASE is already entry for id 0x8180, equal to FreeBSD 9.0-CURRENT. What I did (see attached diff file) was to do the same, I tried to do in freebsd, add the id of the new adapter based on 0x8180 And everything worked as I expected, I managed to get a MAC address and use the ifconfig output as below: udav0: flags=3D8802 mtu 1500 lladdr 00:e0:4c:53:44:58 priority: 0 media: Ethernet none inet6 fe80::2e0:4cff:fe53:4458%udav0 prefixlen 64 scopeid 0x5 Do I have to specify the id somewhere else, some input to the PHY? Thanks 2011/6/10 Luiz Gustavo S. Costa : > Hi Rick, > > 2011/6/10 Rick van der Zwet : >> On 10 June 2011 14:17, Luiz Gustavo S. Costa wrote= : >>> I'm trying to add a new product id [1] to the driver udav and am >>> having a little trouble. >>> >>> At first, this is similar to id 0x8180 and there should be no >>> problems, but I still can not get a PHY for it. >> >> Assuming you mean 0x8181 --looking at your patch-- How do you know >> they have similar chip-sets? Can you get the full interface >> description list for both to see if they have the same endpoints: >> =A0 =A0usbconfig dump_all_config_desc > > Yes... I will find here the link that describes this: > > http://git.kernel.org/?p=3Dlinux/kernel/git/stable/linux-2.6.38.y.git;a= =3Dcommit;h=3D67158cebde60edb1a11cf4743f1cb9ded847c5fc > >> >>> Can someone help me? >> ... >>>About adapter: >>> [1] http://www.luizgustavo.pro.br/~lgcosta/jp1080/ >> >> Looking at the picture these kind of USB dongles (various chipsets) >> tend to die. I suspect the build quality is not that great. Just >> checking you did check it the device is functioning properly using the >> official (linux) drivers? > > Yes, it's a very cheap adapter, can be found on ebay easily. > > And yes, he normally works in linux, I am posting a link to the code > and it is observed, the only difference are exactly the entries "id" > of the product. > > http://git.kernel.org/?p=3Dlinux/kernel/git/stable/linux-2.6.38.y.git;a= =3Dblob;f=3Ddrivers/net/usb/dm9601.c;h=3D5002f5be47be7dcbd95e0fd9cee2a80910= 046a81;hb=3DHEAD > >> >> Br. /Rick >> -- >> http://rickvanderzwet.nl >> > > Thanks > > > -- > =A0 /\ =A0 =A0 =A0 =A0 =A0 =A0 Luiz Gustavo S. Costa > =A0/ =A0\ =A0 =A0 =A0 =A0 =A0 =A0Programmer at BSD Perimeter > / =A0 =A0\ /\/\/\ =A0 =A0Visit the pfSense Project > / =A0 =A0 =A0\ =A0 =A0\ \ =A0 http://www.pfsense.org > --------------------------------------------------------------------- > BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv) > Contatos: luizgustavo@luizgustavo.pro.br / lgcosta@pfsense.org > Blog: http://www.luizgustavo.pro.br > --=20 =A0 /\ =A0 =A0 =A0 =A0 =A0 =A0 Luiz Gustavo S. Costa =A0/ =A0\ =A0 =A0 =A0 =A0 =A0 =A0Programmer at BSD Perimeter / =A0 =A0\ /\/\/\ =A0 =A0Visit the pfSense Project / =A0 =A0 =A0\ =A0 =A0\ \ =A0 http://www.pfsense.org --------------------------------------------------------------------- BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv) Contatos: luizgustavo@luizgustavo.pro.br / lgcosta@pfsense.org Blog: http://www.luizgustavo.pro.br --bcaec53aedd6298db604a5e89cc5 Content-Type: text/x-patch; charset=US-ASCII; name="udav-9700.diff" Content-Disposition: attachment; filename="udav-9700.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gp16xw400 ZGlmZiAtciAxOGYyNWFkYWE5ZGQgZGV2L3VzYi9pZl91ZGF2LmMKLS0tIGEvZGV2L3VzYi9pZl91 ZGF2LmMgRnJpIEp1biAxNyAxMDozOTozMCAyMDExIC0wMzAwCisrKyBiL2Rldi91c2IvaWZfdWRh di5jIEZyaSBKdW4gMTcgMTA6NDM6NTEgMjAxMSAtMDMwMApAQCAtMTY3LDcgKzE2Nyw4IEBACiAg ICAgICAge3sgVVNCX1ZFTkRPUl9TSEFOVE9VLCBVU0JfUFJPRFVDVF9TSEFOVE9VX1NUMjY4IH0s IDAgfSwKICAgICAgICB7eyBVU0JfVkVORE9SX1NIQU5UT1UsIFVTQl9QUk9EVUNUX1NIQU5UT1Vf WlQ2Njg4IH0sIDAgfSwKICAgICAgICB7eyBVU0JfVkVORE9SX1NIQU5UT1UsIFVTQl9QUk9EVUNU X1NIQU5UT1VfQURNODUxNSB9LCAwIH0sCi0gICAgICAge3sgVVNCX1ZFTk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m93biB2ZW5kb3IgNCAqLwogI2RlZmluZSAgICAgICAgVVNCX1BST0RVQ1Rf VU5LTk9XTjRfRE05NjAxICAgICAweDgxMDEgICAgICAgICAgLyogRE05NjAxICovCisjZGVmaW5l IFVTQl9QUk9EVUNUX1VOS05PV040X0pQMTA4MiAgICAgMHg5NzAwICAgICAgICAgIC8qIERNOTYw MSAqLwogCiAvKiBVbmtub3duIHZlbmRvciA1ICovCiAjZGVmaW5lICAgICAgICBVU0JfUFJPRFVD VF9VTktOT1dONV9ORl9SSUMgICAgIDB4MDAwMSAgICAgICAgICAvKiBORiBSSUMgKi8K --bcaec53aedd6298db604a5e89cc5--