From owner-freebsd-usb@FreeBSD.ORG Sun Sep 21 17:04:55 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AF64C28 for ; Sun, 21 Sep 2014 17:04:55 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 042C1F14 for ; Sun, 21 Sep 2014 17:04:54 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0F0111FE027; Sun, 21 Sep 2014 19:04:50 +0200 (CEST) Message-ID: <541F052A.7000301@selasky.org> Date: Sun, 21 Sep 2014 19:04:42 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Denny Lin , freebsd-usb@freebsd.org Subject: Re: USB device repeatedly disconnected References: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> In-Reply-To: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 17:04:55 -0000 On 09/21/14 17:59, Denny Lin wrote: > Hi, > > I have a Texas Instruments OMAP4440 connected via a USB cable to my > laptop running FreeBSD 10.0-RELEASE amd64. > > This is the output of usbconfig -d 1.7 dump_device_desc: > ugen1.7: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0210 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x00ff > bDeviceProtocol = 0x00ff > bMaxPacketSize0 = 0x0040 > idVendor = 0x0451 > idProduct = 0xd010 > bcdDevice = 0x0000 > iManufacturer = 0x0021 > iProduct = 0x0025 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > For some reason, it repeatedly disconnects: > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > > These messages also appear in /var/log/messages: > Sep 21 17:46:56 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:46:56 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > Sep 21 17:46:56 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' > Sep 21 17:46:56 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 > Sep 21 17:46:59 localhost kernel: ugen1.7: at usbus1 (disconnected) > Sep 21 17:47:00 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:47:00 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > Sep 21 17:47:00 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' > Sep 21 17:47:00 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 > Sep 21 17:47:03 localhost kernel: ugen1.7: at usbus1 (disconnected) > Sep 21 17:47:04 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:47:04 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > > The problem seems similar to this one: https://www.mail-archive.com/freebsd-usb@freebsd.org/msg08372.html > > Would it be possible to fix this? Thanks. > Hi, You can try setting: hw.usb.no_cs_fail=1 Also run usbdump to capture the USB traffic. usbdump -i usbus1 -f 7 -vvv -s 65536 --HPS