On 7/8/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
On Fri, 2006-07-07 at 13:35 -0700, mayank rana wrote: > hi > I am trying simple kernel module program 'HELLO WORLD'. for 2.6.5-EL > kernel. > It compiled successfully but when i am trying to insmod it is giving > error like > -1 invalid module format. > I also try to see output using modinfo but it is not showing > anything....... > Please help me out how to overcome this error. > Thnx
Are you sure that you have compiled with the same gcc version that you compiled the kernel with? Also, are you inserting on the same kernel version that you compiled your module for? Rajat -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/