I have a x86_64 box with a HighPoint RocketRaid 2320 card that I've just updated from FC 4 to FC 6. I've been struggeling for days to compile a kernel module for it from the source code provided by HighPoint. Didn't have any problems when I did it for FC4.
First was the problem with version.h that I solved with help from this thread
http://fedoraforum.org/forum/showthread.php?t=133540
Then the compilation failed on that it couldn't find config.h
[mli@zeus linux]$ make
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o
In file included from /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.c:6:
/home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/osm_linux.h:11:26: error: linux/config.h: No such file or directory
make[2]: *** [/home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o] Error 1
make[1]: *** [_module_/home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
make: *** [rr232x.ko] Error 2
There was a configfs.h but no config.h. I just tried to see what would happen if I made it use configfs.h instead of config.h. I made it a bit further
[mli@zeus linux]$ make
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/osm_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/div64.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/hptinfo.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/config.o
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.o
Building modules, stage 2.
MODPOST
WARNING: could not find /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/.os_linux.o.cmd for /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/os_linux.o
WARNING: "page_to_pfn" [/home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko] undefined!
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
So I googled a bit for page_to_pfn and found this note that page_to_pfn was a duplicate to be removed
http://lwn.net/Articles/186223/
I might also be reading it wrong.
So I mailed HighPoint a couple of days ago to ask for help, but haven't heard anything back yet.
Any one on the forum that might have some advice on how to make this compile?