LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-21-2005, 09:25 AM   #1
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
insmod invalid module format


Hi,

Does anyone know what can cause this error?

Code:
# insmod qla2xxx_conf.ko ; insmod qla2xxx.ko ; insmod qla2300.ko
insmod: error inserting 'qla2xxx_conf.ko': -1 Invalid module format
insmod: error inserting 'qla2xxx.ko': -1 Invalid module format
insmod: error inserting 'qla2300.ko': -1 Invalid module format
I get this when I try to load the driver for QLogic HBA on a SuSe 9 system. I compiled the driver on the system. Here are some info about the system:

Code:
# uname -a
Linux linux 2.6.5-7.97-default #1 Fri Jul 2 14:21:59 UTC 2004 i686 i686 i386 GNU/Linux
kernel source:

Code:
linux:/usr/src # pwd
/usr/src
linux:/usr/src # ls -l
lrwxrwxrwx   1 root root  16 Jan 18 10:05 linux -> linux-2.6.5-7.97
drwxr-xr-x  20 root root 744 Jan 20 09:50 linux-2.6.5-7.97
Does it matter the running kernel is 2.6.5-7.97-default and the kernel source is linux-2.6.5-7.97? It is the source that came with the installation CDs. Any help is appricated.
 
Old 01-22-2005, 01:23 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i got this error when i treid to load drivers compiled on other kernel/system and tried to load it on another system

regards
 
Old 01-22-2005, 06:07 PM   #3
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169

Rep: Reputation: 30
recompile locally.
 
Old 01-22-2005, 10:49 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by ValidiusMaximus
recompile locally.
this surely will solve the problem

regards
 
Old 01-23-2005, 11:45 AM   #5
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169

Rep: Reputation: 30
Quote:
Originally posted by masand
this surely will solve the problem

regards
Yea, it solves most problems and maked the system run MUCH faster. It is amazning what the optimizing features of compiling locally (Specifically selecing processor type and disableing the overhead of generic x86 support). Not only that but you can make it MUCH smaller by getting rid of unneeded features.
 
Old 01-23-2005, 12:08 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
that is the reason that gentoo is such is a great OS
i am have aheard a lot about it and i am waiting to get my hands on it!!
and i am still workling on LFS

regards
 
Old 01-24-2005, 11:03 AM   #7
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Original Poster
Rep: Reputation: 31
It was compiled on the local system, but I found the problem. I was using the SMP configuration instead of Default, I used
Code:
dmesg
to find the problem. Thanks for all your input.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid module format king111 Linux - Newbie 4 07-19-2005 01:14 AM
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
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
invalid module format powadha Slackware 5 12-25-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:48 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