From owner-freebsd-usb@FreeBSD.ORG Thu May 28 22:22:15 2009 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 A9A6310656FA; Thu, 28 May 2009 22:22:15 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 373EA8FC29; Thu, 28 May 2009 22:22:13 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7c8a.q.ppp-pool.de [89.53.124.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id 6A00712884B; Thu, 28 May 2009 23:56:32 +0200 (CEST) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by mail.vtec.ipme.de (Postfix) with ESMTP id 2403033F8F; Thu, 28 May 2009 23:56:11 +0200 (CEST) Message-ID: <4A1F087E.8030409@vwsoft.com> Date: Thu, 28 May 2009 23:56:14 +0200 From: Volker User-Agent: Thunderbird 2.0.0.21 (X11/20090417) MIME-Version: 1.0 To: Andriy Gapon References: <4A1D321F.7060907@icyb.net.ua> In-Reply-To: <4A1D321F.7060907@icyb.net.ua> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-MailScanner-ID: 2403033F8F.11E26 X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com MailScanner-NULL-Check: 1244152585.55403@w1KrzkY1/s62ykmRU+Y1mw X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb keyboard detected after 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, 28 May 2009 22:22:16 -0000 On 12/23/-58 20:59, Andriy Gapon wrote: > I think it's time to remind of this issue again. > I have no clue why it happens but on my system I consistently see that my USB > keyboard is detected after mountroot. This worries me because this is a "legacy > free" system, i.e. it has no PS/2 ports. So if something unexpected happens I > won't be able to enter different boot device should kernel boot ever stop at > mountroot prompt. > > Some details. > With stable/7 I see that my USB mouse is consistently detected way before > mountroot. But the USB keyboard most often is detected after mountroot. But > sometimes, very infrequently, it is detected at the same time as the mouse. > > With recent current (and HPS USB, of course) I see that both of the USB devices > are consistently detected after mountroot: > ... > Trying to mount root from zfs:pond/ROOT/original > ct_to_ts([2009-05-26 18:17:07]) = 1243361827.000000000 > start_init: trying /sbin/init > ugen2.2: at usbus2 > ugen6.2: at usbus6 > ukbd0: on usbus6 > kbd2 at ukbd0 > kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 > ums0: on usbus2 > ums0: 8 buttons and [XYZ] coordinates ID=0 > uhid0: on usbus6 > > Andriy, I think this is related to an issue I was experiencing two days ago. I tried to boot an 8.0-CURRENT system off an USB thumb drive and it worked fine on some machines, but failed with mounting root (off the thumb drive) on some others. I think we need some more delay to give drivers the chance to complete device probing before the root mount is being tried but I hate to just blindly hack a delay somewhere. Will check that issue, eventually next week. Volker