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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-08-2006, 06:41 AM
|
#1
|
LQ Newbie
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25
Rep:
|
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!
|
|
|
08-08-2006, 07:24 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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,
|
|
|
08-08-2006, 10:19 AM
|
#3
|
LQ Newbie
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25
Original Poster
Rep:
|
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)
|
|
|
08-10-2006, 07:11 AM
|
#4
|
LQ Newbie
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25
Original Poster
Rep:
|
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?
|
|
|
08-10-2006, 07:20 AM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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"
|
|
|
All times are GMT -5. The time now is 02:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|