ubuntu 11.4 insmod failed operation not permitted
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ cat hello.c
#include<kernel.h>
#include<linux/module.h>
#include<linux/init.h>
int my_init(void)
{
printk("Hello world \n");
return 0;
}
void my_cleanup(void)
{
printk("Goodbye world \n");
}
module_init(my_init);
module_exit(my_cleanup);
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ make
make -C /lib/modules/2.6.35-22-generic/build M=/home/rajesh/raja/dev_drivers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ sudo insmod hello.ko
[sudo] password for rajesh:
insmod: error inserting 'hello.ko': -1 File exists
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ ls
hello.c hello.ko hello.mod.c hello.mod.o hello.o Makefile module.ko module.mod.c module.mod.o module.o modules.order Module.symvers
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ sudo insmod he
he hecubafb hed hexium_gemini hexium_orion
rajesh@rajesh-Inspiron-N5110:~/raja/dev_drivers$ ls
hello.c hello.ko hello.mod.c hello.mod.o hello.o Makefile module.ko module.mod.c module.mod.o module.o modules.order Module.symvers
please help me out in solving
Last edited by rpittala; 01-26-2012 at 11:35 AM.
Reason: not recied a proper answer
|