Problem with compiling the module driver
I'm newbie at driver module programming.... I've written a very simple hello world module then I wanna compile it , I got this result :
Code:
make -C /lib/modules/2.6.38-8-generic/build M=/root/ker modules Code:
apt-get install linux-headers-2.6.38-8-generic Code:
obj-m += hello.o my source code : Code:
#include <linux/module.h> |
Is Makefile in the linux src directory? You might need a different package for Ubuntu.
|
Also, while we're at it. Your hello world should look more like this:
Code:
#include <linux/kernel.h> |
Sorry man , I got the problem solved by removing all of the linux source headers and re-install the proper one.... so all the lnk links are correct now :)
yeah I got that hello world missing lines added ;) thanks |
All times are GMT -5. The time now is 07:24 AM. |