From owner-freebsd-current@FreeBSD.ORG Fri Jun 24 21:44:28 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7A7B106564A; Fri, 24 Jun 2011 21:44:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 01CB08FC0A; Fri, 24 Jun 2011 21:44:27 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=D/a7r8P9hO61Jx2CeejZiK+y1MY0zppvClPbOUfMbas= c=1 sm=1 a=IhcFkomVjv8A:10 a=zAUNhcuXF24A:10 a=WQU8e4WWZSUA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=_WwQDrTK4Zcs7DC-hKQA:9 a=CjuIK1q_8ugA:10 a=fD0mGm6cLqlEjWg2QYkA:9 a=_9x7rulcj6ViCjXPGbUA:7 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 144138748; Fri, 24 Jun 2011 23:44:25 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 24 Jun 2011 23:42:47 +0200 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.4.5; amd64; ; ) X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_XTQBO5vQcKK3QyD" Message-Id: <201106242342.47194.hselasky@c2i.net> Cc: Robert Millan , freebsd-usb@freebsd.org, Warner Losh Subject: [RFT] Automatic load of USB kernel modules 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: Fri, 24 Jun 2011 21:44:28 -0000 --Boundary-00=_XTQBO5vQcKK3QyD Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I've been working today on getting auto load of USB kernel modules working properly. I've identified and fixed several issues since the initial patch by Robert Millan was posted. I would like to request testing of the attached patch before I commit it. The patch is about only having ukbd, ums and umass per default in the kernel GENERIC config file(s). The 9-current kernel version you need to checkout is: http://svn.freebsd.org/changeset/base/223519 And you need to make sure you have the file mentioned in the commit above under /etc/devd/ else the new stuff will not work. No userspace changes except the bus_auto.conf file is required. At the present moment ukbd and ums will not auto load because they don't export any USB device entries. This will get fixed before the final auto load commit. --HPS --Boundary-00=_XTQBO5vQcKK3QyD Content-Type: text/x-patch; charset="us-ascii"; name="final_auto_load.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="final_auto_load.patch" === sys/i386/conf/GENERIC ================================================================== --- sys/i386/conf/GENERIC (revision 223494) +++ sys/i386/conf/GENERIC (local) @@ -310,39 +310,9 @@ device ehci # EHCI PCI->USB interface (USB 2.0) device xhci # XHCI PCI->USB interface (USB 3.0) device usb # USB Bus (required) -#device udbp # USB Double Bulk Pipe devices (needs netgraph) -device uhid # "Human Interface Devices" -device ukbd # Keyboard -device ulpt # Printer -device umass # Disks/Mass storage - Requires scbus and da -device ums # Mouse -device urio # Diamond Rio 500 MP3 player -# USB Serial devices -device u3g # USB-based 3G modems (Option, Huawei, Sierra) -device uark # Technologies ARK3116 based serial adapters -device ubsa # Belkin F5U103 and compatible serial adapters -device uftdi # For FTDI usb serial adapters -device uipaq # Some WinCE based devices -device uplcom # Prolific PL-2303 serial adapters -device uslcom # SI Labs CP2101/CP2102 serial adapters -device uvisor # Visor and Palm devices -device uvscom # USB serial support for DDI pocket's PHS -# USB Ethernet, requires miibus -device aue # ADMtek USB Ethernet -device axe # ASIX Electronics USB Ethernet -device cdce # Generic USB over Ethernet -device cue # CATC USB Ethernet -device kue # Kawasaki LSI USB Ethernet -device rue # RealTek RTL8150 USB Ethernet -device udav # Davicom DM9601E USB -# USB Wireless -device rum # Ralink Technology RT2501USB wireless NICs -device run # Ralink Technology RT2700/RT2800/RT3000 NICs. -device uath # Atheros AR5523 wireless NICs -device upgt # Conexant/Intersil PrismGT wireless NICs. -device ural # Ralink Technology RT2500USB wireless NICs -device urtw # Realtek RTL8187B/L wireless NICs -device zyd # ZyDAS zb1211/zb1211b wireless NICs +device ukbd # USB Keyboard +device ums # USB Mouse +device umass # USB Disks/Mass storage - Requires scbus and da # FireWire support device firewire # FireWire bus code @@ -357,5 +327,4 @@ device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio -device snd_uaudio # USB Audio device snd_via8233 # VIA VT8233x Audio === sys/amd64/conf/GENERIC ================================================================== --- sys/amd64/conf/GENERIC (revision 223494) +++ sys/amd64/conf/GENERIC (local) @@ -297,39 +297,9 @@ device ehci # EHCI PCI->USB interface (USB 2.0) device xhci # XHCI PCI->USB interface (USB 3.0) device usb # USB Bus (required) -#device udbp # USB Double Bulk Pipe devices (needs netgraph) -device uhid # "Human Interface Devices" -device ukbd # Keyboard -device ulpt # Printer -device umass # Disks/Mass storage - Requires scbus and da -device ums # Mouse -device urio # Diamond Rio 500 MP3 player -# USB Serial devices -device u3g # USB-based 3G modems (Option, Huawei, Sierra) -device uark # Technologies ARK3116 based serial adapters -device ubsa # Belkin F5U103 and compatible serial adapters -device uftdi # For FTDI usb serial adapters -device uipaq # Some WinCE based devices -device uplcom # Prolific PL-2303 serial adapters -device uslcom # SI Labs CP2101/CP2102 serial adapters -device uvisor # Visor and Palm devices -device uvscom # USB serial support for DDI pocket's PHS -# USB Ethernet, requires miibus -device aue # ADMtek USB Ethernet -device axe # ASIX Electronics USB Ethernet -device cdce # Generic USB over Ethernet -device cue # CATC USB Ethernet -device kue # Kawasaki LSI USB Ethernet -device rue # RealTek RTL8150 USB Ethernet -device udav # Davicom DM9601E USB -# USB Wireless -device rum # Ralink Technology RT2501USB wireless NICs -device run # Ralink Technology RT2700/RT2800/RT3000 NICs. -device uath # Atheros AR5523 wireless NICs -device upgt # Conexant/Intersil PrismGT wireless NICs. -device ural # Ralink Technology RT2500USB wireless NICs -device urtw # Realtek RTL8187B/L wireless NICs -device zyd # ZyDAS zb1211/zb1211b wireless NICs +device ukbd # USB Keyboard +device ums # USB Mouse +device umass # USB Disks/Mass storage - Requires scbus and da # FireWire support device firewire # FireWire bus code @@ -344,5 +314,4 @@ device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio -device snd_uaudio # USB Audio device snd_via8233 # VIA VT8233x Audio --Boundary-00=_XTQBO5vQcKK3QyD--