Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    insmod: error inserting 'hello_cdev.ko': -1 Invalid module format

    Hey Guys, i am new in Linux and am having the above error when loading my compiled module. Someone asked me to compare the module version and kernel version to find out whether they are the same : I did the comparisons but the problem is i don't know how to interpret my results, please assist: the sample run is show below :

    uname -r

    modinfo hello_cdev.ko

    filename: hello_cdev.ko
    license: GPL
    srcversion: 46A6BD6708886186C0A7FC8
    vermagic: SMP mod_unload modversions 686

    sudo insmod hello_cdev.ko
    [sudo] password for kanisious:
    insmod: error inserting 'hello_cdev.ko': -1 Invalid module format

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Is it possible that the module was built for either a different architecture or word size (64-bit module vs. 32-bit OS)?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts