Results 1 to 4 of 4
Hello all, I am new to linux and i am sorry if i posted a silly question. I have an x86 pc and installed lucid these are the details of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-26-2010 #1
- Join Date
- Sep 2010
Building and Running new kernel modules in an x86 pc
I am new to linux and i am sorry if i posted a silly question.
I have an x86 pc and installed lucid these are the details of my distribution version
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
i am trying to build a kernel module i am getting the following error
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux/include -D__SMP__ -DSMP -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -O2 -I.. -M *.c > .depend
cc1: error: /usr/src/linux/include/linux/modversions.h: No such file or directory
main.c:25:26: error: linux/config.h: No such file or directory
Can somebody help me how to build kernel modules
- 09-26-2010 #2
- Join Date
- Mar 2010
- 09-26-2010 #3
Methinks you need to enable CONFIG_MODVERSIONS in kernel conf and modversions.h will be created during kernel build.
- 09-26-2010 #4
also, make sure you have installed kernel headers package for your running kernel