From owner-freebsd-current@FreeBSD.ORG Sat Jun 27 08:19:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F40501065672; Sat, 27 Jun 2009 08:19:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.tele2.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id AC5368FC1D; Sat, 27 Jun 2009 08:19:24 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=pgm8JvlNwPMA:10 a=hlIU1J3LQChSjWV/CGRL5g==:17 a=r3dW5EJ6X6lgK2pyLTYA:9 a=FhFIHiNjXiG3bqSNoj_m8khf2c0A:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1095637523; Sat, 27 Jun 2009 10:19:22 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Andrew Thompson Date: Sat, 27 Jun 2009 10:11:51 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <49E895CB.2040407@lissyara.su> <20090418023632.GJ13564@dereel.lemis.com> <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> In-Reply-To: <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906271011.53436.hselasky@c2i.net> Cc: Alex Keda , rbgarga@freebsd.org, Vinicius Abrahao , Greg 'groggy' Lehey Subject: Re: new usb stack - boot problem from usb hdd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2009 08:19:26 -0000 On Saturday 27 June 2009 06:32:54 Vinicius Abrahao wrote: > 9) What I'm doing wrong? I don't think this is your fault. My initial patch for this problem had a loop in the mount root code, trying to mount the root device several times. Now several other people did not agree about that, and made the USB enumeration synchronous instead. That does not always work, because USB devices do not always show up immediately when the power is turned on. I would strongly suggest to add a flag to the mount root code in sys/kern/, allowing the mount root code to automatically retry the medium. It is also important that the mountroot code calls pause() and do not spin in a while loop. --HPS