From owner-freebsd-usb@FreeBSD.ORG Thu Feb 2 08:05:11 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 034131065676 for ; Thu, 2 Feb 2012 08:05:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 087D28FC17 for ; Thu, 2 Feb 2012 08:05:05 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 233772507; Thu, 02 Feb 2012 09:04:58 +0100 From: Hans Petter Selasky To: Anthony Lemmer Date: Thu, 2 Feb 2012 09:03:00 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201202011721.02039.hselasky@c2i.net> In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201202020903.00508.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT, then stuck @ mountroot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 08:05:11 -0000 On Wednesday 01 February 2012 23:04:04 Anthony Lemmer wrote: > Hello Hans, > > Thank you for your assistance. > > Various Linux distros I've tried works on this machine via USB, of course I > assume by "broken" you just refer to the fact that BSD lacks the shotgunned > USB compatibility of more popular operating systems. > > Umass does not print any error messages. The only errors I get are > regarding the following: > > usb_alloc_device: set addr 2 failed (USB_ERR_TIMEOUT) > usbd_setup_device_desc: getting device descriptor failed (USB_ERR_TIMEOUT). > ugen0.2 @ usbus 0 (Disconnect) > > Then root waits/fails on USB1. > > Oh, another, single, error popped up: *run_interrupt_driven_hooks still > waiting 60 seconds for xpt-config*. > > Regards, > Anthony Lemmer Hi, That means the UMASS driver has not yet attached, and we are failing at a much earlier level. Could you try using an external USB HUB in between or buy a KINGSTON USB memory stick which you could try as a reference? The timeout means the USB device is NAK-ing some important USB messages. That indidicates a firmware failure on the USB device! Regarding "Various Linux distros works with ...": The FreeBSD USB stack is fully USB compliant. Some USB devices are never tested with anything, but XP. They assume certain timing and order of operation. I'm sorry to say, but if your USB device fails at this point then I would guess it is also broken in more ways and you should not use non-USB certified USB devices for important purposes like installing an OS. Does your USB device or package for this device have the USB-LOGO like on the usb.org website? For your curosity, you can build a USB kernel with options USB_DEBUG and then play with the following sysctl, increasing, decreasing their values and then try to attach the USB device. hw.usb.pr_recovery_delay: 250 hw.usb.pr_poll_delay: 50 --HPS