From owner-freebsd-usb@FreeBSD.ORG Thu Aug 13 14:21:55 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 C16471065674; Thu, 13 Aug 2009 14:21:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swipnet.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id CD45C8FC55; Thu, 13 Aug 2009 14:21:54 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=dlwttS5sZ5EA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=9I5xiGouAAAA:8 a=qxxMOkJawPEcHz25rw0A:9 a=aIh_f17IdQCX5QTYh5UICmK5DJ0A:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 553092958; Thu, 13 Aug 2009 16:21:53 +0200 From: Hans Petter Selasky To: Michal Hajduk , Andrew Thompson Date: Thu, 13 Aug 2009 16:21:58 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <4A841697.2080909@semihalf.com> In-Reply-To: <4A841697.2080909@semihalf.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908131622.00203.hselasky@c2i.net> Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Mounting rootfs from USB - problem. 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, 13 Aug 2009 14:21:56 -0000 On Thursday 13 August 2009 15:35:19 Michal Hajduk wrote: > Hello Hans, > > I've observed problem with mounting root filesystem from USB device at > ARM platform. In my case the da0 device has showed too late > (after Manual root filesystem specification). > > I've read the previous threads about USB booting problem but > there was no final solution for this issue. > > http://www.nabble.com/new-usb-stack---boot-problem-from-usb-hdd-td23100089. >html > > > Maybe you know the best way how to deal with it ? or somebody > is trying to fix it? Hi, The problem is in: src/sys/kern/vfs_mount.c I have suggested a solution where the mount root code is polling for the given device until it arrives. The current device behaviour is the opposite: To wait until all devices are present until mounting anything. I'm currently not involved in any work on this. I would not recommend adding more delay during startup to catch all kinds of USB devices enumerating. --HPS