From owner-freebsd-usb@FreeBSD.ORG Mon Apr 16 08:54:51 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DC70106564A for ; Mon, 16 Apr 2012 08:54:51 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id B1CE48FC12 for ; Mon, 16 Apr 2012 08:54:50 +0000 (UTC) Received: from [89.204.130.147] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SJhhu-00077a-Qi for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 10:54:47 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q3G8shvJ001733 for ; Mon, 16 Apr 2012 10:54:44 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q3G8shCP001732 for freebsd-usb@freebsd.org; Mon, 16 Apr 2012 10:54:43 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Mon, 16 Apr 2012 10:54:43 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Message-ID: <20120416085441.GA1723@tiny> References: <20120416041431.GA2604@tinyCurrent> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120416041431.GA2604@tinyCurrent> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.147 Subject: Re: USB ethernet ue0 stops working X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2012 08:54:51 -0000 El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz escribió: > > Hello, > > I have updated my Linux based cellphone from Linux 2.6.29-rc3 to 2.6.39.4; > > with the old software version on same hardware TCP/IP over interface ue0 > worked fine; on attach it said: > > ... > now, after the update to 2.6.39.4, it says: > > Apr 16 05:50:17 tinyCurrent kernel: ugen0.2: at usbus0 > Apr 16 05:50:17 tinyCurrent kernel: cdce0: on usbus0 > Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found > Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6 > Apr 16 05:50:17 tinyCurrent kernel: cdce0: on usbus0 > Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Apr 16 05:50:17 tinyCurrent kernel: cdce0: on usbus0 > Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address > Apr 16 05:50:17 tinyCurrent kernel: ue0: on cdce0 > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address: 2a:ac:fc:03:00:00 > > the devd(8) hook script is not executed, > and even doing the work it should do by hand does not bring the interface > to work: > > # usbconfig -u 0 -a 2 set_config 1 > # ifconfig ue0 192.168.7.1 netmask 255.255.255.0 > # ifconfig ue0 ue0: flags=8843 metric 0 mtu 1500 > ether 2a:17:91:08:00:00 > inet 192.168.7.1 netmask 0xffffff00 broadcast 192.168.7.255 > # ping 192.168.7.2 > PING 192.168.7.2 (192.168.7.2): 56 data bytes > ping: sendto: Host is down > ping: sendto: Host is down I could resolve the problem in part; for some reason (which I have to bring up in the SHR mailing list) the interface 'usb0' in the Linux has no IP addr: when I do in addition in Linux # ifconfig usb0 inet 192.168.7.2/24 I can ping and ssh into the phone fine; the question remains: what does the above error Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6 means and why device_attach returnes 6? Thanks matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5