From owner-freebsd-usb@FreeBSD.ORG Fri Dec 26 15:48:09 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E71FC1065670 for ; Fri, 26 Dec 2008 15:48:09 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4C78D8FC18 for ; Fri, 26 Dec 2008 15:48:08 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LGEux-0004ho-8E for freebsd-usb@freebsd.org; Fri, 26 Dec 2008 15:48:03 +0000 Received: from 77.22.112.43 ([77.22.112.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 15:48:03 +0000 Received: from ino-news by 77.22.112.43 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 15:48:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: clemens fischer Followup-To: gmane.os.freebsd.questions Date: Fri, 26 Dec 2008 16:43:27 +0100 Lines: 45 Message-ID: References: <200812221944.17694.hselasky@c2i.net> <20081224140532.GB2099@spotteswoode.de.eu.org> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77.22.112.43 X-Archive: encrypt=none User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/8.0-CURRENT (i386)) Sender: news Cc: freebsd-questions@freebsd.org Subject: Re: [solved] Re: usb-stick accessible, but doesn't boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2008 15:48:10 -0000 On Wed, 24 Dec 2008 16:53:00 +0100 clemens fischer wrote: > On Wed, 24 Dec 2008 15:05:32 +0100 clemens fischer wrote: > >>> Hans Petter Selasky: >> >>> Try the attached patch to "sys/kern/vfs_mount.c" >>> >>> Thanks for reporting. I have been aware about this issue for some >>> time now, but the patch has not been committed to current yet. >>> >>> I have FreeSBIE reliably up and running with USB2. >> >> Can you tell me what to do to the kernel configuration? Maybe I >> don't have to compile any USB functions into the kernel and can put >> them into loader.conf? I always get these dependency problems. > > I think I've found my problem. The kernel configuration really > needs the line marked "required", which builds support for the > USB bus: "device usb". Except this line, every usb related item > is a "nodevice" now. The USB2 modules needed are kldload'ed in > boot/loader.conf from the USB-stick, and this really works. > > Hans Petter: although I am not sure if my USB-stick needs it, the > kernel was built using your patch. So the least I can say about it: > It doesn't hurt, and it might sure help with more restive devices. Hans Petter pointed to me to the _real_ solution of my problem, and I want to set the record straight: The USB2 stack works fine, the patch to vfs_mount.c makes the booting process more robust. The easiest way to make a system booting from USB mass storage is to exclude every usb- related device from the kernel and kldload the needed modules in boot/loader.conf: # /boot/loader.conf usb2_controller_ehci_load="YES" usb2_controller_ohci_load="YES" usb2_controller_uhci_load="YES" usb2_storage_mass_load="YES" My problem was a left-over "device ucom" in the kernel configuration, or actually, since I have "include GENERIC" at the top, the missing "nodevice ucom" line. It pulled in dependencies on the old USB stack. -c