From owner-freebsd-mips@FreeBSD.ORG Fri Feb 5 19:34:25 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 735E91065670 for ; Fri, 5 Feb 2010 19:34:25 +0000 (UTC) (envelope-from smeagle@bsdler.de) Received: from hell.bsdler.de (hell-fe0.v6.bsdler.de [IPv6:2001:780:0:19::1]) by mx1.freebsd.org (Postfix) with ESMTP id F3DF68FC1C for ; Fri, 5 Feb 2010 19:34:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hell.bsdler.de (Postfix) with ESMTP id DEC37B872; Fri, 5 Feb 2010 20:34:22 +0100 (CET) X-Virus-Scanned: amavisd-new at bsdler.de Received: from hell.bsdler.de ([127.0.0.1]) by localhost (hell.bsdler.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BmBL+kLaiwAo; Fri, 5 Feb 2010 20:34:17 +0100 (CET) Received: from kiste.lan.terror.local (p4FF0BBE8.dip.t-dialin.net [79.240.187.232]) by hell.bsdler.de (Postfix) with ESMTPSA id 0FA95B83D; Fri, 5 Feb 2010 20:34:17 +0100 (CET) Received: from [172.17.21.80] (brain.lan.terror.local [172.17.21.80]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by kiste.lan.terror.local (Postfix) with ESMTPS id 1B8BB535B7; Fri, 5 Feb 2010 20:34:16 +0100 (CET) From: Florian Kruegl To: Adrian Chadd In-Reply-To: References: <20100204.222438.246077296855181113.imp@bsdimp.com> Content-Type: text/plain; charset="us-ascii" Date: Fri, 05 Feb 2010 20:31:32 +0100 Message-ID: <1265398292.2149.3.camel@brain.lan.terror.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: rspro board and mounting root from SD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: smeagle@bsdler.de List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2010 19:34:25 -0000 Hi Adrian, got it running from sd card for a few month now without probs. Flash seemed to small for putting freebsd on. seems to be a reace condition until usb mas registers scsi device. one second is nuff... brain:head> svn diff Index: sys/kern/vfs_mount.c =================================================================== --- sys/kern/vfs_mount.c (revision 203445) +++ sys/kern/vfs_mount.c (working copy) @@ -72,6 +72,9 @@ #define ROOTNAME "root_device" #define VFS_MOUNTARG_SIZE_MAX (1024 * 64) +static int mount_root_delay = 4; +TUNABLE_INT("mount_root_delay", &mount_root_delay); + static void set_rootvnode(void); static int vfs_domount(struct thread *td, const char *fstype, char *fspath, int fsflags, void *fsdata); @@ -1409,13 +1412,18 @@ PICKUP_GIANT(); mtx_lock(&mountlist_mtx); if (LIST_EMPTY(&root_holds)) { - mtx_unlock(&mountlist_mtx); - break; + if(0 == mount_root_delay--) { + mtx_unlock(&mountlist_mtx); + break; + } } if (ppsratecheck(&lastfail, &curfail, 1)) { printf("Root mount waiting for:"); LIST_FOREACH(h, &root_holds, list) printf(" %s", h->who); + if(LIST_EMPTY(&root_holds)) { + printf(" %d secs...", mount_root_delay); + } printf("\n"); } msleep(&root_holds, &mountlist_mtx, PZERO | PDROP, "roothold", On Fri, 2010-02-05 at 13:28 +0800, Adrian Chadd wrote: > On 5 February 2010 13:24, M. Warner Losh wrote: > > > : If I stick a root_mount_hold() call in umass_attach(), the umass > > : device is given the opportunity to complete probe/attach but obviously > > : then a lack of root_mount_rel() results in nothing completing. > > > > Where did you put this? > > After the call to umass_cam_attach() in umass_attach() > > > > > Adrian > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >