From owner-freebsd-current@FreeBSD.ORG Thu Feb 19 02:49:04 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 4B120106564A for ; Thu, 19 Feb 2009 02:49:04 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id 172718FC0C for ; Thu, 19 Feb 2009 02:49:03 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from parancell.ongs.co.jp (dullmdaler.ongs.co.jp [202.216.246.94]) by natial.ongs.co.jp (Postfix) with ESMTPSA id C53C5125422; Thu, 19 Feb 2009 11:49:02 +0900 (JST) Message-ID: <499CC89E.2040408@ongs.co.jp> Date: Thu, 19 Feb 2009 11:49:02 +0900 From: Daichi GOTO User-Agent: Thunderbird 2.0.0.19 (X11/20090201) MIME-Version: 1.0 To: FreeBSD Current , Masanori OZAWA , Hans Petter Selasky Content-Type: multipart/mixed; boundary="------------090004080300070505020900" Cc: Subject: USB2: booting from usb memory issue, including a foolish patch 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: Thu, 19 Feb 2009 02:49:04 -0000 This is a multi-part message in MIME format. --------------090004080300070505020900 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi usb2 folks, first please give me a time to say congratulations! I'm very glad that usb2 is default usb stack right now :) Well but, bad news I have. I have known that usb2 stack have a issue around boot from usb devices. System has been engaging root filesystem mount treatment before completion of device proving in kernel main thread. It leads root mount fail, then system boot fails from usb device. So I have made a patch included. That patch sleeps 30 seconds before root mount treatment while a kernel thread doing usb2 device probing. Yes you know, very foolish patch but I have no idea to fix it in other way. If you have better ideas, please try and commit that. Thanks -- Daichi GOTO, http://people.freebsd.org/~daichi --------------090004080300070505020900 Content-Type: text/plain; name="init_main.c.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="init_main.c.diff" LS0tIHN5cy9rZXJuL2luaXRfbWFpbi5jLm9yaWcJMjAwOS0wMi0xMSAwMTowMjowNy4wMDAw MDAwMDAgKzA5MDAKKysrIHN5cy9rZXJuL2luaXRfbWFpbi5jCTIwMDktMDItMTEgMDE6MDA6 NTMuMDAwMDAwMDAwICswOTAwCkBAIC02MDgsNiArNjA4LDggQEAKIAlzdHJ1Y3QgdGhyZWFk ICp0ZDsKIAlzdHJ1Y3QgcHJvYyAqcDsKIAorCXBhdXNlKCJXYWl0aW5nIGZvciBVU0IyIGRl dmljZXMuIiwgMzAwMDApOworCiAJbXR4X2xvY2soJkdpYW50KTsKIAogCUdJQU5UX1JFUVVJ UkVEOwo= --------------090004080300070505020900--