From owner-freebsd-arm@FreeBSD.ORG Mon Feb 7 16:13:43 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86470106566B for ; Mon, 7 Feb 2011 16:13:43 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 417398FC15 for ; Mon, 7 Feb 2011 16:13:43 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id CFF7DCD; Mon, 7 Feb 2011 16:57:19 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JD5e80MSik4d; Mon, 7 Feb 2011 16:57:16 +0100 (CET) Received: from snifi.laptop (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id F1446B9; Mon, 7 Feb 2011 16:57:15 +0100 (CET) From: Maciej Milewski To: freebsd-arm@freebsd.org Date: Mon, 7 Feb 2011 16:56:11 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.5; i386; ; ) References: <20110206181659.869861bf.torfinn.ingolfsen@broadpark.no> <201102062331.01760.hselasky@c2i.net> <20110207163835.41be5884.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110207163835.41be5884.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Message-Id: <201102071656.11633.milu@dat.pl> Cc: Subject: Re: Re: FreeBSD on a DockStar - doesn't mount root X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 16:13:43 -0000 Monday 07 of February 2011 16:38:35 Torfinn Ingolfsen napisa=B3(a): > Hello, =2E.. > So it seems like this isn't a "delay" type problem. =46rom these dmesg lines you posted in your first mail it looked that is to= o=20 short time for kernel to recognize the usb device. I had similar problems o= n=20 mips RS/RSPRO boards and had to use small patch to make the delay longer. I= =20 admit that I didn't know of kern.cam.boot_delay that time and haven't tried= it=20 on my boards. I don't know the real author of that patch. Additionally I'm booting my board using ufs label this way: ufs:ufs/rootfs diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c index 496ea70..1956419 100644 =2D-- a/sys/kern/vfs_mountroot.c +++ b/sys/kern/vfs_mountroot.c @@ -87,6 +87,8 @@ __FBSDID("$FreeBSD$"); =20 static int parse_mount(char **); static struct mntarg *parse_mountroot_options(struct mntarg *, const char = *); +static int mount_root_delay =3D 4; +TUNABLE_INT("mount_root_delay", &mount_root_delay); =20 /* * The vnode of the system's root (/ in the filesystem, without chroot @@ -917,13 +919,17 @@ vfs_mountroot_wait(void) PICKUP_GIANT(); mtx_lock(&mountlist_mtx); if (LIST_EMPTY(&root_holds)) { =2D mtx_unlock(&mountlist_mtx); =2D break; + if(0 =3D=3D 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=20 secs...",mount_root_delay); printf("\n"); } msleep(&root_holds, &mountlist_mtx, PZERO | PDROP, "roothol= d", Regards, Maciej Milewski