From owner-freebsd-current@FreeBSD.ORG Tue Apr 7 23:12:23 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 E4546106566B; Tue, 7 Apr 2009 23:12:23 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 86F088FC16; Tue, 7 Apr 2009 23:12:23 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id C55F0FF2B; Wed, 8 Apr 2009 11:12:22 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kKb3zZeOZKmU; Wed, 8 Apr 2009 11:12:18 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Wed, 8 Apr 2009 11:12:18 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 81CCE1142F; Wed, 8 Apr 2009 11:12:18 +1200 (NZST) Date: Tue, 7 Apr 2009 16:12:18 -0700 From: Andrew Thompson To: Nenhum_de_Nos Message-ID: <20090407231218.GC14561@citylink.fud.org.nz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org, Robert Noland Subject: Re: Booting from usb hard disk 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: Tue, 07 Apr 2009 23:12:24 -0000 On Sun, Apr 05, 2009 at 03:54:35PM -0300, Nenhum_de_Nos wrote: > On Mon, March 30, 2009 03:10, Andrew Thompson wrote: > > On Tue, Mar 24, 2009 at 03:49:32AM -0500, Robert Noland wrote: > >> On Mon, 2009-03-23 at 19:40 -0300, Nenhum_de_Nos wrote: > >> > I had problem a while ago with via mini itx hardware, that was quite > close. If I try boot from usb (installed in usb hdd), I get to the > >> point > >> > of loader not finding my disk. > >> > > >> > I then used a small flash disk attached to the ata (44 pin ide) > >> channel > >> > and formatted /boot in there. this way I get to the point of mount > >> root > >> > you said, and da0 not being alive soon enough to mount root. list > >> disks > >> > also couldn't find da0 though. > >> > > >> > I tried current from that time, and no good. > >> > > >> > if this is solved, I'll be happy to try whatever patch to current. > (as > >> > long as I can install it from another box/or its ata channel, as it > >> can't > >> > boot vanilla 7.1R) > >> So, my solution was to set kern.cam.scsi_delay=10000 > >> in /boot/loader.conf > > > > The following patch should work. It creates interleaving root hold > tokens from the CAM probe to disk_create and geom providor tasting. I > had to add a malloc type flag as sleeping isnt allowed at the point I > added the token alloc in CAM. > > > > http://people.freebsd.org/~thompsa/root_wait.diff > > > > It needs review by the various geom/cam ppls. > > > > > > Andrew > > phoenix# patch < ../root_wait.diff > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |Index: kern/vfs_mount.c > |=================================================================== |--- > kern/vfs_mount.c (revision 190540) > |+++ kern/vfs_mount.c (working copy) > -------------------------- > Patching file kern/vfs_mount.c using Plan A... > Reversed (or previously applied) patch detected! Assume -R? [y] The patch was committed and by applying it again you have reverted it. Just use the current sources without the patch. Andrew