I would like to compile a driver module from the standard linux kernel source (2.6.x in this case) and then load it into the kernel without rebooting.
I know this must be possible but my understanding of the details of kernel module loading are limited.
Is it just a matter of selecting the drivers as modules, compiling, doing "make modules_install", and then modprobe to load the module?
Where I'm confused is with updating the module dependencies etc.
Thanks.
John
On Thu, Oct 14, 2004 at 09:55:37AM -0500, John Lange wrote:
I would like to compile a driver module from the standard linux kernel source (2.6.x in this case) and then load it into the kernel without rebooting.
I know this must be possible but my understanding of the details of kernel module loading are limited.
Is it just a matter of selecting the drivers as modules, compiling, doing "make modules_install", and then modprobe to load the module?
Where I'm confused is with updating the module dependencies etc.
If I recall correctly, the "make modules_install" also runs depmod to update the module dependencies, so it may be as simple as you say.
Module unloading, say for updating a driver, might be stickier. I think there's a parameter to allow it, but may depend on nothing currently using it.
Tim