Results 1 to 3 of 3
i am trying to create a character driver.
i have compiled it using make command and created .ko and .o file
but whn i am trying to inssert module usinf ...
- 10-01-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 1
error in inserting the module
i am trying to create a character driver.
i have compiled it using make command and created .ko and .o file
but whn i am trying to inssert module usinf insmod command . i am getting error
insmod cannt read "memory.ko":no such file or directory.
please help in insering this module,
thanks
- 10-01-2009 #2are you sure .ko file is present at specified directory?"memory.ko":no such file or directory
Try using absoulte path name -
insmod /path/to/your_module.ko- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 10-06-2009 #3
Try to put this Makefile in directory where your files are,
and type make, just put your module name instead of
module_name.o
obj-m += module_name.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


Reply With Quote
