Date: Wed, 26 Jan 2005 12:00:12 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Tim Buck <tbuck@rrinc.com> Cc: freebsd-questions@freebsd.org Subject: Re: "Persistent" kernel module? Message-ID: <20050126200012.GE11116@xor.obsecurity.org> In-Reply-To: <24C5E16A-6EE8-11D9-85E0-000393C83AC4@rrinc.com> References: <24C5E16A-6EE8-11D9-85E0-000393C83AC4@rrinc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050126200012.GE11116>