Quote:
Originally Posted by nikhil86
Hi
I've written a simple helloworld kernel module, and tried insmod on it and it worked perfectly.
I'd like to put this module into the kernel automatically at bootup, without manually typing #insmod hello.ko
I've inserted an entry into rc.local as
modprobe hello.ko
But where do i put the hello.ko file?? For now i've left it in the same dir as rc.local but it doesn't work.
I'm using Fedora 8...
thanks
Nikhil
|
The kernel modules directory is
/lib/modules/<kernel-version>/
(for booth 32 or 64-bit versions)
It's recommended to put your custom modules in
/lib/modules/<kernel-version>/misc
directory.