I use DKMS (Dynamic Kernel Module Support) for installing an adaptec driver (aacraid for Adaptec 3405).
I have the following problem. When I try to build the driver, DKMS ist unable to locate the kernel-sources. Looking at /lib/modules/<version>, there is NO build folder and no source folder.
I tried to locate the source, but without success.
Where do I find the kernel sources? If they are not on my machine, how can I get them locally?
DKMS-Error-Message:
root@eboxnas:/tmp# sudo dkms build -m aacraid -v 1.1.5.25500
Error! Your kernel source for kernel 2.6.24-28-server cannot be found at
/lib/modules/2.6.24-28-server/build or /lib/modules/2.6.24-28-server/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
root@eboxnas:/tmp#
Using the option --kernelsourcedir, I tried nearly every folder below /lib/modules, but the kernel sources are not found by dkms.
Can someone help me?