From owner-freebsd-questions@FreeBSD.ORG Wed Jan 26 20:00:14 2005 Return-Path: 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 E6A7D16A4CF for ; Wed, 26 Jan 2005 20:00:14 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8387E43D41 for ; Wed, 26 Jan 2005 20:00:14 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 05F24519EC; Wed, 26 Jan 2005 12:00:12 -0800 (PST) Date: Wed, 26 Jan 2005 12:00:12 -0800 From: Kris Kennaway To: Tim Buck Message-ID: <20050126200012.GE11116@xor.obsecurity.org> References: <24C5E16A-6EE8-11D9-85E0-000393C83AC4@rrinc.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HnQK338I3UIa/qiP" Content-Disposition: inline In-Reply-To: <24C5E16A-6EE8-11D9-85E0-000393C83AC4@rrinc.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: "Persistent" kernel module? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 20:00:15 -0000 --HnQK338I3UIa/qiP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 25, 2005 at 10:45:31AM -0500, Tim Buck wrote: > Is there a way to make a kernel module "persistent" between kernel > builds? I'm using a HighPoint SATA RAID controller on FreeBSD 5.3. > HighPoint provides a driver for this controller in the form of a > kernel module (hpt374.ko). Their instructions say to put the module > in /boot/kernel, and add 'hpt374_load=3D"YES"' to the file > /boot/defaults/loader.conf. >=20 > This works, but when I build a new kernel the /boot/kernel dir gets > renamed and recreated, and the hpt374.ko module doesn't get copied > to the new dir. I have to copy it manually each time I build the > kernel. >=20 > So is there a way to make the kernel build process know about third > party kernel modules and copy it over to the new /boot/kernel > automatically? This is somewhat intentional; if you update your kernel source and recompile the kernel without recompiling the module, there's a good chance your kernel will panic when you try and use it. If you're not planning to update your kernel sources but just want to recompile the kernel with different options, there are other directories that are checked for module loading - see the loader.conf manpage. Kris --HnQK338I3UIa/qiP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB9/bLWry0BWjoQKURAljuAJ9I/6B31Rmqp3y219OWfW6tU0bO4ACgu6U8 dwCFucI4jDod59wA+3Zs0KY= =wN1a -----END PGP SIGNATURE----- --HnQK338I3UIa/qiP--