LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   AODV kernel with linux kernel 2.6 (https://www.linuxquestions.org/questions/linux-newbie-8/aodv-kernel-with-linux-kernel-2-6-a-883970/)

Khyatikapoor 06-01-2011 10:54 AM

AODV kernel with linux kernel 2.6
 
hi can any one plz tell me how to integrate AODV with linux kernel 2.6...
im using the make command but it shows so many errors..

errors:

gcc -O3 -DMODULE -D__KERNEL__ -DLINUX -DMESSAGES -DAODV_GATEWAY -DAODV_SIGNAL -I/lib/modules/`uname -r`/build/include/ -c aodv_dev.c -o aodv_dev.o
In file included from /lib/modules/2.6.38-8-generic/build/include/linux/list.h:7:0,
from /lib/modules/2.6.38-8-generic/build/include/linux/module.h:9,
from aodv_dev.h:12,
from aodv_dev.c:9:
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory
compilation terminated.
make: *** [aodv_dev.o] Error 1
khyati@khyati-VirtualBox:~/Desktop/kernel/kernel-aodv_v2.2.2$



please can anyone help me out with this problem..

TB0ne 06-02-2011 03:24 PM

Quote:

Originally Posted by Khyatikapoor (Post 4373216)
hi can any one plz tell me how to integrate AODV with linux kernel 2.6...im using the make command but it shows so many errors..

errors:
gcc -O3 -DMODULE -D__KERNEL__ -DLINUX -DMESSAGES -DAODV_GATEWAY -DAODV_SIGNAL -I/lib/modules/`uname -r`/build/include/ -c aodv_dev.c -o aodv_dev.o
In file included from /lib/modules/2.6.38-8-generic/build/include/linux/list.h:7:0,
from /lib/modules/2.6.38-8-generic/build/include/linux/module.h:9,
from aodv_dev.h:12,
from aodv_dev.c:9:
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory
compilation terminated.
make: *** [aodv_dev.o] Error 1
khyati@khyati-VirtualBox:~/Desktop/kernel/kernel-aodv_v2.2.2$

please can anyone help me out with this problem..

You're not getting "so many errors"...just one. And did you READ that error? Did you see the part where it tells you there is a missing include file, and what the name of that missing file is???.
Quote:

Originally Posted by Khyatikapoor
/lib/modules/2.6.38-8-generic/build/include/linux/prefetch.h:14:27: fatal error: asm/processor.h: No such file or directory

Install the source header files, or correct the location in your code.

Tinkster 06-02-2011 03:39 PM

I think the problem stems from the fact that the AODV driver
was written for kernels 2.2, migrated to 2.4, but never to
2.6, and the directory structures have seriously changed ...


All times are GMT -5. The time now is 05:27 AM.