On Thu, 2006-01-26 at 14:58 +0530, Sunil Agham wrote: > > > On 1/26/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote: > On Thu, 2006-01-26 at 14:32 +0530, Sunil Agham wrote: > > Hi, > > > > I am using SUSE 9.2 (kernel 2.6.8-24). i am having problem > with > > inserting modules in the kernel.i am getting following error > message > > > > "insmod: error inserting 'abc.ko' : -1 Invalid Format" > > > > the most common cause of this is a wrong Makefile; could you > post the > one you used? > > Also usually the "dmesg" output will have additional reasons > on why > things failed... > > > hi, > the Makefile contains > > obj-m := abc.o > > and for compling i used > make -C /usr/src/linux SUBDIRS=$PWD modules ok it sort of looks fine; it's better to use /lib/modules/<version>/build than /usr/src/linux though.. the /lib one is guaranteed to point to the right source (by the distro or by "make install").. just to rule out accidents -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/