In order to have kernel source code I downloaded kernel-2.6.15.1.2054_FC5.src.rpm from
http://download.fedora.redhat.com/. After that installed the kernel source using following commands:
rpm -ivh kernel-2.6.15.1.2054_FC5.src.rpm
Then I navigated to /usr/src/redhat/SPECS/
rpmbuild –bp –target `uname -p`kernel –2.6.specs
Created Symbolic link to kernel source directory
ln –s /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15/ /usr/src/linux
Finally I executed these commands at /usr/src/linux/:
1.make
2.make modules
3.make modules_install
Now I wrote simple module & while trying to insert it faced the problem.
Please reply if anyone knows the solution.
ashish