Hello sir,
I have latest kernel 2.6.38.6 and working on mandriva. Now i am trying with example hello world as available in book (linux device driver by Rubini, corbet)
But I am surprised here "insmod" is not supporting ".ko " file format. previously i was working by this method only.
so please give me solution with explanation( if possible)
Exact error is mentioned here for reference
Quote:
root@localhost ldd]# make
make -C /home/dipan/linux/linux-2.6.38.6 SUBDIRS=/home/dipan/ldd modules
make[1]: Entering directory `/home/dipan/linux/linux-2.6.38.6'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/home/dipan/linux/linux-2.6.38.6'
[root@localhost ldd]# insmod ./hello.ko
insmod: error inserting './hello.ko': -1 Invalid module format
|
Thank you
[EMAIL="modipan@gmail.com"]