Re: udav: vendor 0x0fe6, product: 0x9700
Hi Hans ! theoretically would only do this, put the id's in the files for the udav.c work, but was not so, the driver did not work with these entries, simply could not allocate a PHY. Dmesg: ugen0.2: vendor 0x0fe6 at usbus0 udav0: vendor 0x0fe6 USB 2.0 10100M Ethernet Adaptor, class 0/0, rev 1.10/1.01, addr 2 on usbus0 udav0: attaching PHYs failed In OpenBSD working normally. 2011/6/19 Hans Petter Selasky hsela...@c2i.net: On Friday 17 June 2011 15:46:17 Luiz Gustavo S. Costa wrote: 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=8802BROADCAST,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 Hi, Your patch has been committed with some modifications: http://svn.freebsd.org/changeset/base/223288 --HPS -- /\ 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 ___ 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
Re: udav: vendor 0x0fe6, product: 0x9700
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=8802BROADCAST,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 DM96010x8101 DM9601 +product UNKNOWN4 JP1082 0x9700 JP1082 /* Unknown vendor 5 */ product UNKNOWN5 NF_RIC0x0001 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 */ #defineUSB_PRODUCT_UNKNOWN4_DM9601 0x8101 /* DM9601 */ +#define USB_PRODUCT_UNKNOWN4_JP1082 0x9700 /* DM9601 */ /* Unknown vendor 5 */ #defineUSB_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
udav: vendor 0x0fe6, product: 0x9700
Hi list, 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. Can someone help me? System: freekazoide# uname -a FreeBSD freekazoide.luizgustavo.pro.br 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r222586M: Thu Jun 2 12:11:33 BRT 2011 r...@freekazoide.luizgustavo.pro.br:/usr/obj/usr/src/sys/GENERIC i386 Dmesg: ugen0.2: vendor 0x0fe6 at usbus0 udav0: vendor 0x0fe6 USB 2.0 10100M Ethernet Adaptor, class 0/0, rev 1.10/1.01, addr 2 on usbus0 udav0: attaching PHYs failed About adapter: [1] http://www.luizgustavo.pro.br/~lgcosta/jp1080/ Patch: diff -r 4dc08fdbcf2f sys/dev/usb/net/if_udav.c --- a/sys/dev/usb/net/if_udav.c Thu Jun 09 18:32:21 2011 -0300 +++ b/sys/dev/usb/net/if_udav.c Thu Jun 09 18:30:38 2011 -0300 @@ -210,6 +210,7 @@ {USB_VPI(USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515, 0)}, /* Kontron AG USB Ethernet */ {USB_VPI(USB_VENDOR_KONTRON, USB_PRODUCT_KONTRON_DM9601, 0)}, + {USB_VPI(USB_VENDOR_KONTRON, USB_PRODUCT_KONTRON_JP1082, 0)}, }; static void diff -r 4dc08fdbcf2f sys/dev/usb/usbdevs --- a/sys/dev/usb/usbdevs Thu Jun 09 18:32:21 2011 -0300 +++ b/sys/dev/usb/usbdevs Thu Jun 09 18:30:38 2011 -0300 @@ -2014,6 +2014,7 @@ /* Kontron AG products */ product KONTRON DM9601 0x8101 USB Ethernet +product KONTRON JP1082 0x9700 USB Ethernet /* Konica Corp. Products */ product KONICA CAMERA 0x0720 Digital Color Camera -- /\ 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 ___ 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
Re: udav: vendor 0x0fe6, product: 0x9700
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 ___ 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
Re: udav: vendor 0x0fe6, product: 0x9700
usbconfig dump_all_config_desc: http://www.luizgustavo.pro.br/~lgcosta/jp1080/usbconfig_all_desc.txt 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 ___ 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
Playing with Vnet in Jail on FreeBSD
I just published in my recent blog (this is the first post) about the use of Vnet Jail in FreeBSD. See and know what you think. http://world-unix.com/blog/2010/07/29/playing-with-vnet-in-jail-on-freebsd/ Thank you. -- Luiz Gustavo Costa (Powered by BSD) *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ mundoUnix - Consultoria em Software Livre http://www.mundounix.com.br ICQ: 2890831 / MSN: cont...@mundounix.com.br Tel: 55 (41) 9844-3701 Blog: http://www.luizgustavo.pro.br ___ 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