Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2012 10:54:43 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-usb@freebsd.org
Subject:   Re: USB ethernet ue0 stops working
Message-ID:  <20120416085441.GA1723@tiny>
In-Reply-To: <20120416041431.GA2604@tinyCurrent>
References:  <20120416041431.GA2604@tinyCurrent>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Linux 2.6.39.4 with s3c2410udc> at usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: <RNDIS Communications Control> 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: <RNDIS Communications Control> 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: <RNDIS Ethernet Data> on usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> Apr 16 05:50:17 tinyCurrent kernel: ue0: <USB Ethernet> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <guru@unixarea.de> - 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120416085441.GA1723>