From owner-freebsd-current@FreeBSD.ORG Mon Mar 30 15:04:19 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 E7897106566C; Mon, 30 Mar 2009 15:04:19 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id ECDEE8FC0A; Mon, 30 Mar 2009 15:04:18 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1910657ewy.43 for ; Mon, 30 Mar 2009 08:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fgKkxNEd5WidEKzCjOwu3EqX8dPGcweAqfFI9jlHrnY=; b=tvFyrY7gYLYAOvSlsS2XL+0lgcstusonffcZqFlYirdv8bzMPwxK83nToaHkymKaew fShcxYWYmKBFwOkSe4UPGdSGBS55SiP32i3NBIzFXVJb4/gT8hD6itl8YYQ1eUyRPzCR b8KWVUPL6c+SUyC1iUsFZqanC6KWjiyHWCsGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hRbBmHbTQ/fL/PM6LrWCtQ+LKvfl2brErbWGGTkgwXdb+QBm+E3Vd0lwG2Y1vpKTKz MSkmh1x+57Mm6/pxuPWtNGIBxbpp5bNtfe8xVYJRdJhz6oQjlZg0FOpou4U65mQdXthi Q5jQcG+NnYInYZXyDJsl/pzVfBwevb5+MEt8Y= MIME-Version: 1.0 Received: by 10.210.139.15 with SMTP id m15mr4185052ebd.32.1238425457730; Mon, 30 Mar 2009 08:04:17 -0700 (PDT) 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: Mon, 30 Mar 2009 16:04:17 +0100 Message-ID: <3a142e750903300804r75d6ef81kae69cdfdb618b719@mail.gmail.com> From: "Paul B. Mahol" To: Andrew Thompson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Nenhum_de_Nos , 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: Mon, 30 Mar 2009 15:04:20 -0000 On 3/30/09, 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 Hmm, this is supposed to fix issue when trying to boot from usb disk with UP kernel? -- Paul