From owner-freebsd-questions@FreeBSD.ORG Wed Mar 19 19:58:40 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC5A44BD for ; Wed, 19 Mar 2014 19:58:40 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E9D86D4 for ; Wed, 19 Mar 2014 19:58:40 +0000 (UTC) Received: from r56.edvax.de (port-92-195-67-138.dynamic.qsc.de [92.195.67.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 779DE3D1C5; Wed, 19 Mar 2014 20:53:27 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s2JJr3VI002392; Wed, 19 Mar 2014 20:53:03 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 19 Mar 2014 20:53:03 +0100 From: Polytropon To: rclayton@monmouth.edu (R. Clayton) Subject: Re: Listing kernel models. Message-Id: <20140319205303.5ecbb030.freebsd@edvax.de> In-Reply-To: <878us839kt.fsf@UlanBator.myhome.westell.com> References: <878us839kt.fsf@UlanBator.myhome.westell.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 19:58:40 -0000 On Mon, 17 Mar 2014 15:32:18 -0400, R. Clayton wrote: > How do I list the modules available in the (10.0 release generic, > in my case) > kernel? In linux I'd use the lsmod command. On FreeBSD you can use the "kldstat" command. Use "kldstat -v" for more verbosity. In the section "kernel... Contains modules:" you can see which are already included in the kernel. Additionally loaded modules will be listed afterwards. You can find the documentation in "man kldstat". > In freebsd does "ls /boot/kernel" > do the trick? This command will list the modules that have been built (usually along with the kernel) and can be loaded. > Is it the case that /boot/kernel/*ko are included as modules? If you want to find out which components are included in the kernel itself, see /usr/src/sys/i386/conf/GENERIC resp. /usr/src/sys/amd64/conf/GENERIC, which is the configuration file from which the kernel has been built. Examining "kldstat -v" will reflect this. > In particular, I'm trying figure out if the instructions given in > > www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html > > to put > > if_ath_load="YES" > wlan_wep_load="YES" > wlan_ccmp_load="YES" > wlan_tkip_load="YES" > > in /boot/loader.conf are redundant. If you have a setting in /boot/loader.conf to load a module which is already present in the kernel, the module will not be loaded (for obvious reasons). You only can load modules which are not present in the kernel. Again, consult the GENERIC configuration file to see which of them are already part of the kernel. The instructions in the handbook are correct if you're running the GENERIC kernel. If you have a custom kernel which already contains those modules, as defined in the appropriate configuration file, those settings are not needed. If you still have them in /boot/loader.conf, they won't cause problems (as explained). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...