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=8802<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 <lgco...@pfsense.org>: > Hi Rick, > > 2011/6/10 Rick van der Zwet <i...@rickvanderzwet.nl>: >> On 10 June 2011 14:17, Luiz Gustavo S. Costa <lgco...@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: >> usbconfig dump_all_config_desc > > Yes... I will find here the link that describes this: > > http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=commit;h=67158cebde60edb1a11cf4743f1cb9ded847c5fc > >> >>> 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=linux/kernel/git/stable/linux-2.6.38.y.git;a=blob;f=drivers/net/usb/dm9601.c;h=5002f5be47be7dcbd95e0fd9cee2a80910046a81;hb=HEAD > >> >> Br. /Rick >> -- >> http://rickvanderzwet.nl >> > > Thanks > > > -- > /\ Luiz Gustavo S. Costa > / \ Programmer at BSD Perimeter > / \ /\/\/\ Visit the pfSense Project > / \ \ \ http://www.pfsense.org > --------------------------------------------------------------------- > BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv) > Contatos: luizgust...@luizgustavo.pro.br / lgco...@pfsense.org > Blog: http://www.luizgustavo.pro.br > -- /\ Luiz Gustavo S. Costa / \ Programmer at BSD Perimeter / \ /\/\/\ Visit the pfSense Project / \ \ \ http://www.pfsense.org --------------------------------------------------------------------- BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv) Contatos: luizgust...@luizgustavo.pro.br / lgco...@pfsense.org Blog: http://www.luizgustavo.pro.br
diff -r 18f25adaa9dd dev/usb/if_udav.c --- a/dev/usb/if_udav.c Fri Jun 17 10:39:30 2011 -0300 +++ b/dev/usb/if_udav.c Fri Jun 17 10:43:51 2011 -0300 @@ -167,7 +167,8 @@ {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0 }, {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ZT6688 }, 0 }, {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515 }, 0 }, - {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 } + {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 }, + {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_JP1082 }, 0 } }; #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p)) diff -r 18f25adaa9dd dev/usb/usbdevs --- a/dev/usb/usbdevs Fri Jun 17 10:39:30 2011 -0300 +++ b/dev/usb/usbdevs Fri Jun 17 10:43:51 2011 -0300 @@ -3744,6 +3744,7 @@ /* Unknown vendor 4 */ product UNKNOWN4 DM9601 0x8101 DM9601 +product UNKNOWN4 JP1082 0x9700 JP1082 /* Unknown vendor 5 */ product UNKNOWN5 NF_RIC 0x0001 NF RIC diff -r 18f25adaa9dd dev/usb/usbdevs.h --- a/dev/usb/usbdevs.h Fri Jun 17 10:39:30 2011 -0300 +++ b/dev/usb/usbdevs.h Fri Jun 17 10:43:51 2011 -0300 @@ -3751,6 +3751,7 @@ /* Unknown vendor 4 */ #define USB_PRODUCT_UNKNOWN4_DM9601 0x8101 /* DM9601 */ +#define USB_PRODUCT_UNKNOWN4_JP1082 0x9700 /* DM9601 */ /* Unknown vendor 5 */ #define USB_PRODUCT_UNKNOWN5_NF_RIC 0x0001 /* NF RIC */
_______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"