LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 01-21-2005, 10:25 AM   #1
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269
Thanked: 0
insmod invalid module format


[Log in to get rid of this advertisement]
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.
csfalcon is offline     Reply With Quote
Old 01-22-2005, 02:23 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
i got this error when i treid to load drivers compiled on other kernel/system and tried to load it on another system

regards
masand is offline     Reply With Quote
Old 01-22-2005, 07:07 PM   #3
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169
Thanked: 0
recompile locally.
ValidiusMaximus is offline     Reply With Quote
Old 01-22-2005, 11:49 PM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
Quote:
Originally posted by ValidiusMaximus
recompile locally.
this surely will solve the problem

regards
masand is offline     Reply With Quote
Old 01-23-2005, 12:45 PM   #5
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169
Thanked: 0
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.
ValidiusMaximus is offline     Reply With Quote
Old 01-23-2005, 01:08 PM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
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
masand is offline     Reply With Quote
Old 01-24-2005, 12:03 PM   #7
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269
Thanked: 0

Original Poster
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.
csfalcon is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 02:14 AM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-26-2005 11:52 AM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-24-2005 11:42 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-28-2004 12:40 AM
invalid module format powadha Slackware 5 12-25-2003 05:19 PM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration