From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 14:47:45 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 0603716D0F1 for ; Wed, 7 Jun 2006 12:55:22 +0000 (UTC) (envelope-from freebsd@jonze.com) Received: from dogstar.jonze.com (87-194-33-21.bethere.co.uk [87.194.33.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 723E443D45 for ; Wed, 7 Jun 2006 12:55:21 +0000 (GMT) (envelope-from freebsd@jonze.com) Received: from dogstar.jonze.com (localhost [127.0.0.1]) by dogstar.jonze.com (8.13.6/8.13.4) with ESMTP id k57CtJE7062176; Wed, 7 Jun 2006 13:55:19 +0100 (BST) (envelope-from freebsd@jonze.com) Received: (from richard@localhost) by dogstar.jonze.com (8.13.6/8.13.4/Submit) id k57CtJgB062175; Wed, 7 Jun 2006 13:55:19 +0100 (BST) (envelope-from freebsd@jonze.com) Date: Wed, 7 Jun 2006 13:55:19 +0100 From: Richard Jones To: Nick Withers Message-ID: <20060607125519.GA62057@dogstar.jonze.com> References: <20060607102809.GA61343@dogstar.jonze.com> <20060607224054.09545db8.nick@nickwithers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20060607224054.09545db8.nick@nickwithers.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org 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 14:47:48 -0000 On Wed, Jun 07, 2006 at 10:40:54PM +1000, Nick Withers wrote: > On Wed, 7 Jun 2006 11:28:09 +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. > > From kldload's man page: > ________ > > FILES > /boot/kernel directory containing loadable modules. > Modules must have an extension of .ko. > ________ > > This having been said, it _does_ look in /boot/modules as well. > > I'm able to load a module from either directory without > specifying the full path and / or extension and without either > directory being my current working directory on 6.1-RELEASE. > > What's the problem you're actually having? What version of > FreeBSD are you running? Yes, sorry, that wasn't the most infomational email. FreeBSD-6.1-RELEASE. me ~ # ls -1 /boot/kernel fire_saver.ko if_tun.ko ipfw.ko kernel libiconv.ko libmchain.ko linker.hints linux.ko smbfs.ko me ~ # ls -1 /boot/kernel nvidia.ko linker.hints me ~ # kldload smbfs kldload: can't load smbfs: No such file or directory me ~ # cp /boot/kernel/{smbfs.ko,libiconv.ko,libmchain.ko} /boot/modules/ me ~ # kldload smbfs me ~ # kldstat Id Refs Address Size Name 1 12 0xc0400000 3c68c4 kernel 2 2 0xc07c7000 1f280 linux.ko 3 1 0xc07e7000 3f2e00 nvidia.ko 6 1 0xc50e0000 20000 smbfs.ko 7 2 0xc4f51000 4000 libiconv.ko 8 2 0xc4154000 3000 libmchain.ko -- Richard Jones MSN: msn.co.uk@jonze.com Y!M: rwkjones http://www.jonze.com