LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2017, 10:54 AM   #1
kalai_karthick
LQ Newbie
 
Registered: Apr 2016
Posts: 2

Rep: Reputation: Disabled
insmod: error inserting '../../../kernel/crypto/twofish_common.ko': -1 Invalid module format


I am getting errors related to insmod of few modules during the boot-up of my system. It was working fine in my previous image. The only difference between my current image and the previous one is the change in kernel config file. I enabled the CONFIG_DEBUG_RCU_HEAD.

dmesg shows the following
twofish_common: disagrees about version of symbol module_layout


Note: insmod is successful after the system completes the boot-up
 
Old 02-10-2017, 11:39 AM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by kalai_karthick View Post
I am getting errors related to insmod of few modules during the boot-up of my system. It was working fine in my previous image. The only difference between my current image and the previous one is the change in kernel config file. I enabled the CONFIG_DEBUG_RCU_HEAD.

dmesg shows the following
twofish_common: disagrees about version of symbol module_layout


Note: insmod is successful after the system completes the boot-up
likely your gcc compiling wasn't successfull. I would recheck the compiling, maybe there was some errors.

check maybe also lsinitramfs which looks into initrd.img
 
Old 02-10-2017, 12:12 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,640
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
As I commented in another thread, I always reset everything before compiling so that I know that I have, in fact, recompiled everything. It sounds to me like one or more of the modules were not recompiled. The Linux module-insertion logic contains aggressive module-compatibility tests, for obvious reasons.
 
  


Reply

Tags
insmod, kernel, kernel config, kernel headers, kernel module


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod: error inserting './hello.ko': -1 Invalid module format dipanmodi Linux - Embedded & Single-board computer 3 05-14-2011 02:44 PM
[SOLVED] insmod: error inserting 'vntwusb.ko' : -1 Invalid module format NightHorse Slackware 4 06-23-2009 11:33 AM
insmod: error inserting 'usbip.ko': -1 Invalid module format barunparichha Linux - Software 1 01-13-2007 08:51 PM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-26-2005 10:52 AM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-24-2005 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration