From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 18:18:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E43016F2AE for ; Wed, 7 Jun 2006 16:25:24 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EEA743D46 for ; Wed, 7 Jun 2006 16:25:20 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id k57GPIlM035106 for ; Wed, 7 Jun 2006 09:25:19 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 7 Jun 2006 12:25:18 -0400 User-Agent: KMail/1.9.1 References: <20060607102809.GA61343@dogstar.jonze.com> <20060607124154.GB46313@catflap.slightlystrange.org> <200606071222.18217.john@jnielsen.net> In-Reply-To: <200606071222.18217.john@jnielsen.net> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606071225.18488.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Subject: Re: Kernel module path X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 18:18:16 -0000 On Wednesday 07 June 2006 12:22, John Nielsen wrote: > On Wednesday 07 June 2006 08:41, Daniel Bye wrote: > > On Wed, Jun 07, 2006 at 11:28:09AM +0100, Richard Jones wrote: > > > Hi, > > > > > > I'm having trouble loading kernel modules. Put simply "make > > > installkernel" seems install native kernel modules into /boot/kernel/, > > > but kldload seems to want to load them from /boot/modules. > > > > > > Obviously I can load modules by hand and/or copy the modules into > > > /boot/modules, but surely there's a better way - either by modifying > > > the installkernel behaviour or kldload. > > > > kldconfig(8) might be of help here. > > There is a sysctl that controls this. By default on my 6-STABLE it is: > > %sysctl kern.module_path > kern.module_path: /boot/kernel;/boot/modules;/usr/local/modules > > So the FreeBSD 5.x and newer default of putting kernel modules in > /boot/kernel is covered. Check the output of the above command on your > system and check /etc/sysctl.conf for any overrides. Oh, I don't think /usr/local/modules is there by default. It was added on my system by one of the FUSE ports I'm using. The first two are definitely there by default, though. Sorry for the misinformation. JN