Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2011 10:46:17 -0300
From:      "Luiz Gustavo S. Costa" <lgcosta@pfsense.org>
To:        Rick van der Zwet <info@rickvanderzwet.nl>
Cc:        freebsd-current@freebsd.org
Subject:   Re: udav: vendor 0x0fe6, product: 0x9700
Message-ID:  <BANLkTinj%2ByVDoZ5ha0==_b8nQ%2B_kt=N1wQ@mail.gmail.com>
In-Reply-To: <BANLkTimAYv7moaBQ0VyFjEt6qgBq8Hk9Yw@mail.gmail.com>
References:  <BANLkTi=siZJmpxveD201PrFt3XPb%2BCNMFQ@mail.gmail.com> <BANLkTi=1iHxBj-5zkbCj7Ab50m1__aAUTg@mail.gmail.com> <BANLkTimaiqbn4V9=HYnkmAw7xcDBJVYU=g@mail.gmail.com> <BANLkTimAYv7moaBQ0VyFjEt6qgBq8Hk9Yw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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<BROADCAST,SIMPLEX,MULTICAST> 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 <lgcosta@pfsense.org>:
> Hi Rick,
>
> 2011/6/10 Rick van der Zwet <info@rickvanderzwet.nl>:
>> On 10 June 2011 14:17, Luiz Gustavo S. Costa <lgcosta@pfsense.org> 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
X1NIQU5UT1VfQURNODUxNSB9LCAwIH0sCi0gICAgICAge3sgVVNCX1ZFTkRPUl9VTktOT1dONCwg
VVNCX1BST0RVQ1RfVU5LTk9XTjRfRE05NjAxIH0sIDAgfQorICAgICAgIHt7IFVTQl9WRU5ET1Jf
VU5LTk9XTjQsIFVTQl9QUk9EVUNUX1VOS05PV040X0RNOTYwMSB9LCAwIH0sCisgICAgICAge3sg
VVNCX1ZFTkRPUl9VTktOT1dONCwgVVNCX1BST0RVQ1RfVU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qLwogCiAvKiBVbmtub3duIHZlbmRvciA1ICovCiAjZGVmaW5lICAgICAgICBVU0JfUFJPRFVD
VF9VTktOT1dONV9ORl9SSUMgICAgIDB4MDAwMSAgICAgICAgICAvKiBORiBSSUMgKi8K
--bcaec53aedd6298db604a5e89cc5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinj%2ByVDoZ5ha0==_b8nQ%2B_kt=N1wQ>