View previous topic :: View next topic |
Author |
Message |
Saturn Tux's lil' helper
Joined: 31 May 2002 Posts: 83
|
Posted: Sun Nov 17, 2002 9:14 pm Post subject: Problem to install driver for my usb QuickCam express |
|
|
Hi,
I had no problem to install this driver under RH-8.0 but with Gentoo it gives me trouble...
Ok first, I compiled my kernel with video4linux (not as module) and usb stuff. Then I downloaded "qce-ga-0.40c.tar.gz" file and compiled it.
When I type ./quickcam.sh I get theses lines:
[root@mymachine qce-ga-0.40c]# ./quickcam.sh
insmod: videodev: no module by that name found
insmod: usbcore: no module by that name found
insmod: usb-uhci: no module by that name found
insmod: usb-ohci: no module by that name found
insmod: uhci: no module by that name found
./quickcam.sh: /proc/sys/kernel/sysrq: No such file or directory
insmod: a module named mod_quickcam already exists
Module Size Used by Tainted: P
mod_quickcam 41264 0 (unused)
NVdriver 1067104 10 (autoclean)
via686a 8256 0
i2c-isa 1228 0 (unused)
snd-pcm-oss 37348 0 (unused)
snd-mixer-oss 11448 1 [snd-pcm-oss]
tulip 42080 1
snd-ens1371 11852 1
snd-rawmidi 14624 0 [snd-ens1371]
snd-seq-device 4352 0 [snd-rawmidi]
snd-pcm 57376 0 [snd-pcm-oss snd-ens1371]
snd-timer 11848 0 [snd-pcm]
snd-ac97-codec 28356 0 [snd-ens1371]
snd 30028 0 [snd-pcm-oss snd-mixer-oss snd-ens1371 snd-raw
midi snd-seq-device snd-pcm snd-timer snd-ac97-codec]
What does it mean?
Thanks. |
|
Back to top |
|
|
qwkbrnfox Apprentice
Joined: 05 Nov 2002 Posts: 231 Location: Vancouver, BC, Canada
|
Posted: Sun Nov 17, 2002 10:05 pm Post subject: |
|
|
Hi,
I use the same module. The install script (quickcam.sh) is looking to install the usb modules, but they are compiled right into the kernel, so it can't find usb*, and videodev. I don't use the script. I compile the quickcam module, move mod_quickcam.o to /lib/modules/2.x.x/kernel/drivers/usb/. My /etc/modules/autoload has Code: | bttv
mod_quickcam
uhci
|
That loads up everything I need. Funny, I just noticed now that uhci is after mod_quickcam, but it still works.
If you recompile your kernel, you will have to put mod_quickcam.o back into the modules directory.
T |
|
Back to top |
|
|
Saturn Tux's lil' helper
Joined: 31 May 2002 Posts: 83
|
Posted: Sun Nov 17, 2002 11:43 pm Post subject: |
|
|
qwkbrnfox wrote: | Hi,
I use the same module. The install script (quickcam.sh) is looking to install the usb modules, but they are compiled right into the kernel, so it can't find usb*, and videodev. I don't use the script. I compile the quickcam module, move mod_quickcam.o to /lib/modules/2.x.x/kernel/drivers/usb/. My /etc/modules/autoload has Code: | bttv
mod_quickcam
uhci
|
That loads up everything I need. Funny, I just noticed now that uhci is after mod_quickcam, but it still works.
If you recompile your kernel, you will have to put mod_quickcam.o back into the modules directory.
T |
Thanks for your quick answer! I wanted to try that but my /lib/modules/2.4.19/kernel/drivers/usb/ directory does not exist...Did I forget to compile something into my kernel?
Thanks. |
|
Back to top |
|
|
qwkbrnfox Apprentice
Joined: 05 Nov 2002 Posts: 231 Location: Vancouver, BC, Canada
|
Posted: Mon Nov 18, 2002 12:18 am Post subject: |
|
|
Whoops, brain fart by me. If you compiled the usb right into the kernel, there won't be a usb directory. Actually, I believe you can put it anywhere the kernel will look for modules. So, stick it in with some other drivers in the tree.
Let us know how it goes.
T |
|
Back to top |
|
|
nouse66 Apprentice
Joined: 09 Jan 2003 Posts: 194
|
Posted: Sat Jan 25, 2003 4:46 am Post subject: |
|
|
I'm having a problem actually compiling the module. This is what I get:
Code: |
bash-2.05b$ make
gcc -I/usr/src/linux/drivers/usb -I/usr/src/linux/include -include /usr/src/linux/include/linux/config.h -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c quickcam.c
In file included from quickcam.c:58:
quickcam.h:80: parse error before "urb_t"
quickcam.h:80: warning: no semicolon at end of struct or union
quickcam.h:190: field `sbuf' has incomplete type
quickcam.c:429: confused by earlier errors, bailing out
make: *** [quickcam.o] Error 1
|
I was able to compile it on redhat 7.3 a while back.
Anyone know how to how to fix this?
i've done some c programming in the past so I took a look at the quickcam.h file but i dont see any problems...
lines 76-87:
Code: |
struct usb_device;
struct quickcam_sbuf {
char *data;
urb_t *urb;
};
struct palette_list {
int num;
char *name;
int supported;
};
|
|
|
Back to top |
|
|
Matje l33t
Joined: 29 Oct 2002 Posts: 619 Location: Hasselt, Belgium
|
Posted: Sat Jan 25, 2003 10:26 am Post subject: |
|
|
I'm not sure about this, because I have only basic c++ knowledge. These are the questions I ask myself:
Doesn't the struct usb_device need some definitions of components?
Is there a data type urb_t, I presume it doesn't exist by default, so is it defined in the lines before? _________________ Life is like a box of chocolates... Before you know it, it's empty... |
|
Back to top |
|
|
|