2

help compiling a driver

view story
linux-howto

http://forums.opensuse.org – I have a couple errors that I can not figure out when trying to compile a driver for a raid card. I have all the needed packages for C and kernel development (make, kernel-headers, etc). Out put below Code: jason@D610:~/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux> make make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/default' make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/i386/default/. modules   CC [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/os_linux.o   CC [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/osm_linux.o   CC [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/div64.o   CC [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/hptinfo.o   CC [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/config.o   LD [M]  /home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/rr26xx.o ld: Relocatable linking with relocations from format elf64-x86-64 (/home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/him_odin.o) to format elf32-i386 (/home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/rr26xx.o) is not supported make[4]: *** [/home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build/rr26xx.o] Error 1 make[3]: *** [_module_/home/jason/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux/.build] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/i386/default' make: *** [rr26xx.ko] Error 2 jason@D610:~/Download/Opensource/rr2640-linux-src-v1.2/product/rr2640/linux> What is error 2? when I run Code: make install I get a a few errors but the driver is built and installed. Using the card and have a raid 5 volume set up in but CPU usage is at 100% when do heavy read/write. Maybe if I figure out the errors in the make process I could get better performance? Thanks for any help..... (Distributions)