From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 18:20:42 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 AD07916E4E7 for ; Wed, 7 Jun 2006 16:22:21 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE79543D49 for ; Wed, 7 Jun 2006 16:22:20 +0000 (GMT) (envelope-from john@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 k57GMIlM033611 for ; Wed, 7 Jun 2006 09:22:19 -0700 (PDT) (envelope-from john@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Wed, 7 Jun 2006 12:22:18 -0400 User-Agent: KMail/1.9.1 References: <20060607102809.GA61343@dogstar.jonze.com> <20060607124154.GB46313@catflap.slightlystrange.org> In-Reply-To: <20060607124154.GB46313@catflap.slightlystrange.org> 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: <200606071222.18217.john@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:20:47 -0000 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. JN