From owner-freebsd-current@FreeBSD.ORG Tue Mar 31 03:30:44 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 E504C1065675 for ; Tue, 31 Mar 2009 03:30:44 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF698FC22 for ; Tue, 31 Mar 2009 03:30:44 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: by an-out-0708.google.com with SMTP id d11so1556845and.13 for ; Mon, 30 Mar 2009 20:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:received :message-id:in-reply-to:references:date:subject:from:to:user-agent :mime-version:content-type:content-transfer-encoding:x-priority :importance; bh=nZEHUKoO+gLwDd5Oh7jcqOhqZJ9IpAEecN8qYQIlX+o=; b=D+ytCtfycU5AEmuV859k2SA1y0V5HnBZh9MZvxyhC8BvQJlYi1NOLXmz8NEeFO8Qet u6ZQ8uMPOM3Muwa9XRVikUwkTTGtOKLmdYA6mFv00zMki55vb62GjYjCLAMBQ5sfAfgx kGkYUyc6PkvEA+PxESrhhU4r131PsryUymbtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:in-reply-to:references:date:subject:from:to :user-agent:mime-version:content-type:content-transfer-encoding :x-priority:importance; b=cIYdfgtKp1hJw5iy0xJru9+ZfyILmpb2vw2oodL3zaObCyM1Jn0Iup5ECUpcPkrVN6 t/JdloE6rm+osXEsXV8RHw/6RkO9G5k5V35pqpTUXt5UNNYC4nwZ8WdqAdbqz1RqeJnR iwbrJbmp6iMWns5mMxcQR7jzEnC7LjU/XbrsE= Received: by 10.100.178.9 with SMTP id a9mr1523192anf.116.1238470243795; Mon, 30 Mar 2009 20:30:43 -0700 (PDT) Received: from cygnus.homeunix.com ([189.71.52.220]) by mx.google.com with ESMTPS id c29sm2894758anc.59.2009.03.30.20.30.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 30 Mar 2009 20:30:43 -0700 (PDT) Sender: Nenhum_de_Nos Received: by cygnus.homeunix.com (Postfix, from userid 80) id 7F348B8074; Tue, 31 Mar 2009 00:30:39 -0300 (BRT) Received: from 10.1.1.80 (SquirrelMail authenticated user matheus) by 10.1.1.10 with HTTP; Tue, 31 Mar 2009 00:30:39 -0300 (BRT) Message-ID: In-Reply-To: <20090330061036.GA83528@citylink.fud.org.nz> References: <1237804575.1771.7.camel@balrog.2hip.net> <1237884572.1771.28.camel@balrog.2hip.net> <20090330061036.GA83528@citylink.fud.org.nz> Date: Tue, 31 Mar 2009 00:30:39 -0300 (BRT) From: "Nenhum_de_Nos" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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, 31 Mar 2009 03:30:45 -0000 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: >> > On Mon, March 23, 2009 07:36, Robert Noland wrote: >> > > So I have my i386 install on a usb hard disk, which I can only boot >> on >> > > one machine now. The one machine that I can make work has a bios >> option >> > > that reads "BIOS ehci handoff". This used to work with the old usb >> > > stack. The machines that it doesn't work on, boot the kernel, but >> fail >> > > to mount root, giving me the forbidding mountroot> prompt, which is >> > > immediately followed by the message saying that da0 is attached. >> da0 is >> > > however not listed in the available boot devices list. I tried >> playing >> > > around with the timeout in vfs_mount.c, but that didn't seem to have >> any >> > > impact. It has been suggested that this may be a "geom" timeout, >> but I >> > > don't know anything about the boot system really. >> > >> > 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 sorry for the delay. I had work issues. Thanks for the patch, I'll try it as soon as possible (plnas for Wednesday) thanks, matheus -- We will call you cygnus, The God of balance you shall be