From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 8 13:23:18 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88F1F1065778 for ; Thu, 8 Dec 2011 13:23:18 +0000 (UTC) (envelope-from miciamail@hotmail.it) Received: from blu0-omc2-s36.blu0.hotmail.com (blu0-omc2-s36.blu0.hotmail.com [65.55.111.111]) by mx1.freebsd.org (Postfix) with ESMTP id 0C25B8FC08 for ; Thu, 8 Dec 2011 13:23:17 +0000 (UTC) Received: from BLU0-SMTP315 ([65.55.111.72]) by blu0-omc2-s36.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Dec 2011 05:10:53 -0800 X-Originating-IP: [78.13.148.220] X-Originating-Email: [miciamail@hotmail.it] Message-ID: Received: from [192.168.1.102] ([78.13.148.220]) by BLU0-SMTP315.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Dec 2011 05:10:51 -0800 From: Lorenzo Cogotti To: freebsd-hackers Date: Thu, 8 Dec 2011 14:09:47 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-OriginalArrivalTime: 08 Dec 2011 13:10:51.0886 (UTC) FILETIME=[CF98B0E0:01CCB5AA] Subject: USB Texas Instruments CDCE modem not recognized by cdce X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 13:23:18 -0000 Dear all, I am new to this list and to FreeBSD in general, so first of all hi everyone and thank you for providing this awesome and rock solid OS. I have a CDC compliant (at least this is what the manufacturer claims) USB Modem, which doesn't get detected by cdce module. /var/log/messages reports: root: Unknown USB device: vendor 0x0451 product 0x6060 bus uhub0 kernel: ugen0.2: at usbus0 usbconfig list reports: ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON I tested this with FreeBSD 8.2 and FreeBSD 9.0RC2, the situation doesn't change. I tested this modem on Linux, which is able to detect and properly use this modem via USB with module: cdc_ether I suspect that some trivial changes to cdce module would get this modem up and running, but I am too newbie to do this on my own, so I thought to ask this ML for help on this topic. I took a look to cdce, on kernel sources included with FreeBSD 8.2 release, more precisely to: dev/usb/net/if_cdce.c I assume that a device specific entry to: static const struct usb_device_id cdce_devs[] would do the trick, wouldn't it? How should I edit this file in a sane way and test if this device get recognized? I tried some USB_VPI combinations adding the afore mentioned identifiers from /var/log/messages, the device got recognized correctly by cdce, but the dhclient command hanged as if the communication with the device failed. I am currently on a fresh, just installed, FreeBSD 8.2 AMD64 system. Sorry if I missed to report some crucial information, if so, please let me know. Regards. -- Lorenzo Cogotti