From owner-cvs-src@FreeBSD.ORG Fri Mar 25 21:52:20 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29A7A16A4CE; Fri, 25 Mar 2005 21:52:20 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id C50B043D39; Fri, 25 Mar 2005 21:52:18 +0000 (GMT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 25 Mar 2005 21:52:18 +0000 (GMT) To: Maxim Sobolev In-Reply-To: Your message of "Fri, 25 Mar 2005 20:51:57 GMT." <200503252051.aa57514@salmon.maths.tcd.ie> Date: Fri, 25 Mar 2005 21:52:17 +0000 From: Ian Dowse Message-ID: <200503252152.aa84241@salmon.maths.tcd.ie> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/usb usb.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 21:52:20 -0000 In message <200503252051.aa57514@salmon.maths.tcd.ie>, Ian Dowse writes: >In message <424473BB.4010607@portaone.com>, Maxim Sobolev writes: >>This is still suboptimal, since even after this change when ehci is >>enabled some (if not most) USB devices are detected after system goes >>into milti-user mode. Obviously, this makes it impossible to mount root >>fs off the USB HDD/FDD/CD. The simplest way to solve this problem is to >>add some sufficiently long and configurable delay before mounting root >>fs (similar to one used by the SCSI) when ehci is enabled to let those >>devices to be detected and attached. > >Could you send me an example dmesg that shows this? As far as I >know, doing the explore when cold == 1 should attach all USB devices >before even interrupts are enabled. > >This should be the case with PCI USB host controllers that are >compiled into the kernel or pre-loaded by the loader - if you load >the module later and I think also with cardbus USB controllers, >then the USB host controller won't get attached with cold == 1 so >none of the early exploration code runs. Booting from a USB disk and using it as the root filesystem works on my laptop anyway: sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 umass0: USB Flash Disk, rev 2.00/2.00, addr 2 Timecounter "TSC" frequency 1000038929 Hz quality 800 Timecounters tick every 1.000 msec ad0: 38154MB [77520/16/63] at ata0-master UDMA100 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C) Trying to mount root from ufs:/dev/da0s1a Pre-seeding PRNG: Ian