From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 18:06:17 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 B382216CEC2 for ; Wed, 7 Jun 2006 15:58:10 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3238B43D49 for ; Wed, 7 Jun 2006 15:58:09 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id m7so185322nzf for ; Wed, 07 Jun 2006 08:58:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SSWp9E6U4kPIiZ0m82nlamo9snQ/HiJJN56xzOf82DPFKZE7q0NDgqQCppBHEjlsj+sUwDw/5dC7W0vg45hAIzrsegrSB30oJADMc62usKMMMJSzHdwVVDK3kuCMLJTuMv239u/T4VStaHfOE+hAnSm9Qe2EI29K8b4AvRC9icg= Received: by 10.37.18.37 with SMTP id v37mr885462nzi; Wed, 07 Jun 2006 08:58:06 -0700 (PDT) Received: by 10.36.104.17 with HTTP; Wed, 7 Jun 2006 08:58:06 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2006 10:58:06 -0500 From: "Nikolas Britton" To: "Richard Jones" In-Reply-To: <20060607102809.GA61343@dogstar.jonze.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060607102809.GA61343@dogstar.jonze.com> 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 18:06:18 -0000 On 6/7/06, 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. > 3rd party kernel modules go in /boot/modules and /boot/kernel is for FreeBSD only. > 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. > Yes, this drives me nuts too. For example the kqemu port gets installed in /boot/kernel and highpoint's manuals tell you to install drivers there too. The problem is that if you rebuild your kernel or do a buildworld et. al. it will wipeout everything in /boot/kernel... This is why we have /boot/modules, everything in here will survive a kernel rebuild, buildworld, etc... >From the loader man page (FreeBSD 6.1): "module_path Sets the list of directories which will be searched for modules named in a load command or implicitly required by a dependency. The default value for this variable is ``/boot/kernel;/boot/modules''." >From the hier man page (FreeBSD 6.1): " /boot/ programs and configuration files used during operating system bootstrap defaults/ default bootstrapping configuration files; see loader.conf(5) kernel/ pure kernel executable (the operating system loaded into memory at boot time). modules/ third-party loadable kernel modules; see kldstat(8)" -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/