From nobody@FreeBSD.org Thu Feb 11 07:50:58 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D21391065692 for ; Thu, 11 Feb 2010 07:50:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C17DB8FC19 for ; Thu, 11 Feb 2010 07:50:58 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o1B7owea099500 for ; Thu, 11 Feb 2010 07:50:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o1B7owQE099499; Thu, 11 Feb 2010 07:50:58 GMT (envelope-from nobody) Message-Id: <201002110750.o1B7owQE099499@www.freebsd.org> Date: Thu, 11 Feb 2010 07:50:58 GMT From: Crazy Alex To: freebsd-gnats-submit@FreeBSD.org Subject: can not boot from usb hdd X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 143790 >Category: usb >Synopsis: [boot] [cam] can not boot from usb hdd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: analyzed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 11 08:00:01 UTC 2010 >Closed-Date: >Last-Modified: Wed Oct 20 16:10:10 UTC 2010 >Originator: Crazy Alex >Release: 8.0-STABLE-201001 >Organization: Atlantis >Environment: FreeBSD 8.0-STABLE-201001 FreeBSD 8.0-STABLE-201001 #0: Mon Feb 8 20:44:06 YEKT 2010 root@:/usr/src/sys/i386/compile/ALEX_USB i386 >Description: I can not boot installed on the usb hdd (da0) system. An attempt to mount the root system is to define the system usb hdd: Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a eg. cd9660:/dev/acd0 This is equivalent to: mount -t cd9660 /dev/acd0 / ? List valid disk boot devices Abort manual input >How-To-Repeat: >Fix: edit /usr/src/sys/kern/vfs_mount.c in 1655 line: .... options = NULL; + pause("usbwait", hz * 10); root_mount_prepare(); Add a pause of 10 seconds to mount the root filesystem during this time usb hdd will have time to define the system. Then recompile the kernel. >Release-Note: >Audit-Trail: From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Crazy Alex , freebsd-gnats-submit@freebsd.org Subject: Re: usb/143790: can not boot from usb hdd Date: Thu, 11 Feb 2010 10:14:20 +0100 This is a known issue. --HPS From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= To: bug-followup@freebsd.org Cc: crazyalexnt@inbox.ru Subject: Re: usb/143790: [boot] can not boot from usb hdd Date: Fri, 9 Jul 2010 10:42:44 +0200 Hi, Why the severity of this bug is "non-critical" ? This is a critical problem that prevent to use "embedded" FreeBSD (like NanoBSD) to boot from USB devices. Will this bug be fix for the 8.1-release ? Can I help you to resolve this bug by providing some debug output ? Meanwhile, thanks a lot's for your working patch Crazy Alex ! Regards, Olivier From: Alexander Motin To: bug-followup@FreeBSD.org, crazyalexnt@inbox.ru Cc: Subject: Re: usb/143790: [boot] can not boot from usb hdd Date: Sat, 10 Jul 2010 19:02:28 +0300 Since few month ago it is possible to workaround the issue on 8-STABLE without patching kernel, just by adding to /boot/loader.conf line: kern.cam.boot_delay=10000 It makes CAM subsystem to wait at least specified time (in ms) for delayed bus registration. -- Alexander Motin From: Hans Petter Selasky To: bug-followup@freebsd.org Cc: gavin@freebsd.org Subject: usb/143790: [boot] can not boot from usb hdd Date: Sun, 25 Jul 2010 13:39:09 +0200 Hi, Is this still an issue? --HPS State-Changed-From-To: open->analyzed State-Changed-By: arundel State-Changed-When: Wed Oct 20 01:11:21 UTC 2010 State-Changed-Why: As mav@ pointed out it is possible to fix this issue by setting kern.cam.boot_delay so devices/controllers on slow systems have time to initialize. However what needs to be done is to add a default entry to conf/GENERIC on platforms like mips or arm. Right now however kern.cam.boot_delay is only a sysctl tunable and no kern option. http://www.freebsd.org/cgi/query-pr.cgi?pr=143790 From: AlexNT To: bug-followup@FreeBSD.org, crazyalexnt@inbox.ru Cc: Subject: Re: usb/143790: [boot] [cam] can not boot from usb hdd Date: Wed, 20 Oct 2010 13:58:35 +0600 I checked the option "kern.cam.boot_delay = 10000", pointed it in / boot / loader.conf in FreeBSD 8.1 - works fine in the patch is not necessary. >Unformatted: