insmod problem -

Hello
i have Beagleboard-xm with angstrom image on it
root@beagleboard:~# cat /proc/version
Linux version 2.6.32 (mohit@mohit-desktop) (gcc version 4.3.3 (GCC) ) #3 PREEM1

Now i have downloaded same kernel source from internet and compiled a kernel module with it
and i got g_file_storage.ko

root@beagleboard:~# modinfo g_file_storage.ko
filename: g_file_storage.ko
license: Dual BSD/GPL
author: Alan Stern
description: File-backed Storage Gadget
srcversion: 72E35C1FB53B89518F5FB90
depends:
vermagic: 2.6.32 mod_unload modversions ARMv7
parm: file:names of backing files or devices (array of charp)
parm: ro:true to force read-only (array of bool)
parm: luns:number of LUNs (uint)
parm: removable:true to simulate removable media (bool)
parm: stall:false to prevent bulk stalls (bool)
parm: cdrom:true to emulate cdrom instead of disk (bool)

root@beagleboard:~# insmod g_file_storage.ko
[ 3515.802459] g_file_storage: disagrees about version of symbol module_layout
insmod: error inserting ‘g_file_storage.ko’: -1 Invalid module format

i have used same kernel version …then why this error is coming .

Nidhi

One possible reason could be the module .ko is compiled for some other
Linux version or u didnt copied the modules for that linux version
in /lib/modules/
After compiling the your kernel you can do this
make modules_install INSTALL_MODPATH=<your arm root directory>

Try this and see.

Even i get that error… Have you figured out any solution??

Thank You.