LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-08-2006, 06:41 AM   #1
rhauff
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25

Rep: Reputation: 15
Problems compiling zr364xx module for USB webcam


Hi,
I'm running VectorLinux 5.1 with 2.6.13 kernel, and the camera is a Concord EyeQ Duo 2000.

I have been struggling to get this compiled for awhile, and the author of the zr364xx driver seems stumped as well.

I have the source installed for my kernel 2.6.13, and created the symlink for /usr/src/linux -> /usr/src/linux-2.6.13.

Kernel headers are installed for 2.6.13 as well according to
" ls /lib/modules/`uname -r`/build/include/linux".

Following is the beginning of the make errors (it goes on a long ways):

[root@vector/home/roland/download/zr364xx-0.64]# make
Building zr364xx driver for 2.5/2.6 kernel.
PLEASE IGNORE THE "Overriding SUBDIRS" WARNING
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build/ SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.13'

WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/roland/download/zr364xx-0.64/zr364xx.o
In file included from include/linux/module.h:10,
from /home/roland/download/zr364xx-0.64/zr364xx.c:33:
include/linux/sched.h:4:37: asm/param.h: No such file or directory
In file included from include/linux/types.h:13,
from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/roland/download/zr364xx-0.64/zr364xx.c:33:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/roland/download/zr364xx-0.64/zr364xx.c:33:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/roland/download/zr364xx-0.64/zr364xx.c:33:
include/linux/types.h:18: error: parse error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: parse error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
include/linux/types.h:21: warning: data definition has no type or storage class
include/linux/types.h:22: error: parse error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration of `ino_t'
include/linux/types.h:22: warning: data definition has no type or storage class
include/linux/types.h:23: error: parse error before "mode_t"
include/linux/types.h:23: warning: type defaults to `int' in declaration of `mode_t'
include/linux/types.h:23: warning: data definition has no type or storage class
include/linux/types.h:24: error: parse error before "nlink_t"
include/linux/types.h:24: warning: type defaults to `int' in declaration of `nlink_t'
include/linux/types.h:24: warning: data definition has no type or storage class
include/linux/types.h:25: error: parse error before "off_t"
include/linux/types.h:25: warning: type defaults to `int' in declaration of `off_t'
include/linux/types.h:25: warning: data definition has no type or storage class
include/linux/types.h:26: error: parse error before "pid_t"
include/linux/types.h:26: warning: type defaults to `int' in declaration of `pid_t'
include/linux/types.h:26: warning: data definition has no type or storage class
include/linux/types.h:27: error: parse error before "daddr_t"
include/linux/types.h:27: warning: type defaults to `int' in declaration of `daddr_t'
include/linux/types.h:27: warning: data definition has no type or storage class
include/linux/types.h:29: error: parse error before "suseconds_t"
include/linux/types.h:29: warning: type defaults to `int' in declaration of `suseconds_t'
include/linux/types.h:29: warning: data definition has no type or storage classmake[2]:

Any ideas? Thanks!
 
Old 08-08-2006, 07:24 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Thats is easy !
Looks like you don't have the files "asm/param.h", "asm/posix_types.h" and "asm/types.h".

In FC5 theses files are in package "glibc-kernheaders-3.0-5.2".

good luck,
 
Old 08-08-2006, 10:19 AM   #3
rhauff
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks for the reply,

I find all three of those files in /usr/include/asm (linked to /usr/include/asm-i386)
AND in
/usr/src/linux/include/asm-i386 (linked to /usr/src/linux-2.6.13/include/asm-i386)
 
Old 08-10-2006, 07:11 AM   #4
rhauff
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
On the VectorLinux forum they suggested to actually make the kernel. I did this, and it went flawlessly. Now the zr364xx compiles and installs without error.

However, when I "modprobe zr364xx" I get: "Invalid module format"

Any ideas?
 
Old 08-10-2006, 07:20 AM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Did you install the module by running "make install" as root or by a direct copy from your source tree to /lib/modules/`uname -r`/kernel/whatever ?

Make sure there is not a duplicate module in the /lib/modules tree:
Code:
find /lib/modules/ -type f -iname "zr364*"
Also, make sure the module is not loaded by a previous attempt: "lsmod | grep -i zr364"
 
  


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
Problems using USB webcam on Linux stevesk Linux - Software 3 07-27-2006 05:49 AM
problems with USB printer (and webcam too) darksmiley Linux - Hardware 7 10-11-2004 07:50 PM
USB Webcam Howto? Problems with OV511 module... Goeland86 Linux - Hardware 14 02-16-2004 11:17 AM
SiS7012 module compiling problems orbitalistic Linux - Hardware 1 09-12-2003 02:56 PM
USB WEBCAM causes soundcard problems Meros Linux - Hardware 4 09-09-2003 03:17 AM

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

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