From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 8 15:36:54 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 866351065672 for ; Thu, 8 Dec 2011 15:36:54 +0000 (UTC) (envelope-from miciamail@hotmail.it) Received: from blu0-omc1-s8.blu0.hotmail.com (blu0-omc1-s8.blu0.hotmail.com [65.55.116.19]) by mx1.freebsd.org (Postfix) with ESMTP id 45D6B8FC0C for ; Thu, 8 Dec 2011 15:36:54 +0000 (UTC) Received: from BLU0-SMTP147 ([65.55.116.9]) by blu0-omc1-s8.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Dec 2011 07:36: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-SMTP147.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Dec 2011 07:36:52 -0800 From: Lorenzo Cogotti To: freebsd-hackers@freebsd.org Date: Thu, 8 Dec 2011 16:35:47 +0100 In-Reply-To: <201112081539.11014.hselasky@c2i.net> References: <201112081539.11014.hselasky@c2i.net> 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 15:36:52.0321 (UTC) FILETIME=[3538FD10:01CCB5BF] Cc: Hans Petter Selasky Subject: Re: 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 15:36:54 -0000 Il giorno gio, 08/12/2011 alle 15.39 +0100, Hans Petter Selasky ha scritto: > Typically you need to select configuration 1 for dual RNDIS/CDCE devices to > work. > > 1) Locate your device: > > usbconfig > > 2) Set config 1 > > usbconfig -d X.Y set_config 1 > > To permanently do this, you can set the configuration index 1 quirk for your > device. > I tried editing if_cdce.c adding to the static array mentioned in my first mail: {USB_VPI(USB_VENDOR_TI, 0x6060, 0)}, obviously if this edit is necessary, a nice good little #define for 0x6060 should be added where appropriate. The device get detected and properly claimed by the cdce module. It is all good unless I actually try to connect with: dhclient ue0 When I try this, the DHCP request just hangs and times out. I tried usbconfig -d 0.2 set_config 1 This produces: cdce0: at uhub0, port 3, addr 2 (disconnected) cdce0: on usbus0 ue0: on cdce0 ue0: Ethernet address: 00:e1:a7:76:76:81 cdce1: on usbus0 cdce1: No valid alternate setting found device_attach: cdce1 attach returned 6 cdce1: on usbus0 cdce1: No valid alternate setting found device_attach: cdce1 attach returned 6 Despite this moltitude of scary messages, dhclient now works good and I can surf with my USB modem on FreeBSD, which is as awesome as it sounds. So, the questions now are: 1) was the if_cdce.c edit necessary, or the usbconfig is more than enough? 2) how/should could this stuff be made in an automagic way by FreeBSD? Since everything I have on this desktop has been detected flawlessly, this was the only thing that made me suffer. -- Lorenzo Cogotti