Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

problems with cdce and/or usb?



It had been a while and a number of source updates since I last plugged
my OpenMoko Neo Freerunner into a USB port for anything other than
charging.

The cdce? interface used to work fine, but I tried again today and got
the following logged in /var/log/messages:

[...]
Aug 16 13:35:19 shadow /netbsd: ehci0: handing over full speed device on port 1 
to uhci0
Aug 16 13:35:21 shadow /netbsd: cdce0 at uhub0 port 1 configuration 2 interface 0
Aug 16 13:35:21 shadow /netbsd: cdce0: Linux 2.6.34.7-v31 with s3c2410_udc 
RNDIS/Ethernet Gadget, rev 2.00/3.12, addr 2
Aug 16 13:35:21 shadow /netbsd: cdce0: could not find data bulk in
Aug 16 13:35:21 shadow /netbsd: cdce1 at uhub0 port 1 configuration 2 interface 
1
Aug 16 13:35:21 shadow /netbsd: cdce1: Linux 2.6.34.7-v31 with s3c2410_udc 
RNDIS/Ethernet Gadget, rev 2.00/3.12, addr 2
Aug 16 13:35:21 shadow /netbsd: cdce1: faking address
Aug 16 13:35:21 shadow /netbsd: cdce1: address 2a:bd:34:01:00:01
Aug 16 13:35:21 shadow ifwatchd[378]: calling: /etc/cdce_arrive cdce1 /dev/null 9600 Aug 16 13:35:27 shadow /netbsd: cdce1: watchdog timeout
Aug 16 13:35:31 shadow /netbsd: cdce1: usb error on tx: TIMEOUT
[...]

The output of 'ifconfig -a' shows only "cdce1" (which is why I had
'ifwatchd' monitoring cdce1).  When unplugging the cable, I get:

[...]
Aug 16 14:38:31 shadow /netbsd: cdce1: usb error on rx: IOERROR
Aug 16 14:38:31 shadow /netbsd: cdce0: detached
Aug 16 14:38:31 shadow /netbsd: cdce0: at uhub0 port 1 (addr 2) disconnected
Aug 16 14:38:31 shadow /netbsd: cdce1: detached
Aug 16 14:38:31 shadow /netbsd: cdce1: at uhub0 port 1 (addr 2) disconnected
Aug 16 14:38:31 shadow ifwatchd[378]: calling: /etc/cdce_depart cdce1 /dev/null 9600 [...]

The machine in question is:

NetBSD shadow.bozonet.ntc 5.99.55 NetBSD 5.99.55 (SHADOW) #1: Tue Aug 16 
12:51:11 CDT 2011  
sysop%shadow.bozonet.ntc@localhost:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/SHADOW
 i386

built from sources updated just minutes before the timestamp in
the output of 'uname -a'.

In the past, it would attach at cdce0, my ifwatchd script would
configure it, and I could use it just fine.  I'm not sure when
things broke.  I first noticed the problem with sources from 3
August on the same machine.

I need to double-check operation on netbsd-5.

Thanks.

--
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index