LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linspire/Freespire
User Name
Password
Linspire/Freespire This Forum is for the discussion of Linspire and Freespire.

Notices


Reply
  Search this Thread
Old 10-11-2006, 06:27 AM   #1
chatan
Member
 
Registered: Jul 2005
Location: Okinawa, Japan
Distribution: Manjaro KDE
Posts: 35

Rep: Reputation: 17
spca webcam driver: Invalid module format- SOLVED


I tried on the Linspire Forum, but no luck there so I'll try here.

I had my pixart webcam working before on Linspire 5.1.427 by installing the spca5xx driver (http://mxhaard.free.fr/spca5xx.html). For a different reason I had to re-install Linspire 5.1.427 (upgrade install). But now I get can't get it working again. I'm sure it is something stupid but I'm stumped.

I compiled the spca5xx drivers with no errors. (make clean, make, make install)
but when I modprobe spca5xx it says:

Code:
FATAL: Error inserting spca5xx (/lib/modules/2.6.14/kernel/drivers/usb/media/spca5xx.ko): Invalid module format
output of dmesg says:
Code:
[17189617.912000] spca5xx: disagrees about version of symbol struct_module
[17190259.236000] spca5xx: disagrees about version of symbol struct_module
[17190264.216000] spca5xx: disagrees about version of symbol struct_module
My web searches yields answers to this problem like:
Quote:
Sounds like you didn't do a clean build.

Yeah, sounds like you built against the wrong headers or something.

seems like you build your module with a "wrong" kernel (means, the kernel you're using differs from that you've compiled the module)...
my cat /proc/version:
Code:
Linux version 2.6.14 (root@khokhaine) (gcc version 3.3.5 (Debian 1:3.3.5-3)) #1 PREEMPT Mon Apr 1016:49:04 PDT 2006
...so I got the kernel sources 2.6.14 from Linspire's CNR and my g++ is 3.3

Here is output of the make process:
Code:
northgate:/tmp/spca5xx-20060402# make clean
rm -r -f drivers/usb/*.o drivers/usb/.spcadecoder.o.cmd \
drivers/usb/.spca5xx.o.cmd  *.o *.ko *.mod.* .[a-z]* core *.i

northgate:/tmp/spca5xx-20060402# make
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/spca5xx-20060402 CC=cc modules
make[1]: Entering directory `/usr/src/kernel-source-2.6.14'
  CC [M]  /tmp/spca5xx-20060402/drivers/usb/spca5xx.o
  CC [M]  /tmp/spca5xx-20060402/drivers/usb/spcadecoder.o
  LD [M]  /tmp/spca5xx-20060402/spca5xx.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/spca5xx-20060402/spca5xx.mod.o
  LD [M]  /tmp/spca5xx-20060402/spca5xx.ko
make[1]: Leaving directory `/usr/src/kernel-source-2.6.14'

northgate:/tmp/spca5xx-20060402# make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca50x.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/et61x.ko
install -c -m 0644 spca5xx.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
/sbin/depmod -ae
I tried various versions for the drivers from the spca5xx website and I'm also getting the same errors on my other new LOS 5.1.427 computer.

I'm not sure what else to check. ( I'm still real inexperienced with kernels, compiling and the like )

Thanks-
-Bill

Last edited by chatan; 11-03-2006 at 11:29 PM. Reason: solved
 
Old 11-03-2006, 11:28 PM   #2
chatan
Member
 
Registered: Jul 2005
Location: Okinawa, Japan
Distribution: Manjaro KDE
Posts: 35

Original Poster
Rep: Reputation: 17
Thumbs up

I ended up reinstalling the OS. The spca5xx driver is already in the kernel or whatever the right terminology is, so I did modprobe spca5xx and I'm in business.
-Cheers
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Module Format Sava Linux - Kernel 16 11-16-2006 12:58 AM
insmod: error inserting 'module.o': -1 Invalid module format ksrinivas Linux - Newbie 5 10-11-2006 07:29 AM
Invalid module format king111 Linux - Newbie 4 07-19-2005 01:14 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 - Distributions > Linspire/Freespire

All times are GMT -5. The time now is 04:44 PM.

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