You are not logged in.

#1 2007-02-28 15:33:50

AlmaMater
Member
Registered: 2007-02-28
Posts: 92

Cant get my webcam, to work :/ (OmniVision) *SOLVED*

**PROBLEM SOLVED**  thanks to skottish and johnisevil

-----------------------------------------------------------------------------------------------------------------------------
Hi all, im having this problem trying to install the ov51x driver for my dlink c310 webcam

[root@boX /]# lsusb
Bus 005 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 004 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 004 Device 003: ID 058f:9254 Alcor Micro Corp. Hub
Bus 004 Device 002: ID 0b38:0010  
Bus 004 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 004: ID 05a9:8519 OmniVision Technologies, Inc. 
Bus 001 Device 001: ID 0000:0000

I realize that arch comes whit ov511, but those dosnt work whit this webcam, im trying to install "ov51x JPEG hacked linux driver" which worked fine in my other distr (Vector linux)
but when i try to install i get

make -C /lib/modules/2.6.20-ARCH/build M=/mnt/Files/Files/Drivers/D-Link Webcam/Linux/ov51x-jpeg-1.0~beta1 modules
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
make[1]: *** No rule to make target `Webcam/Linux/ov51x-jpeg-1.0~beta1'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'
make: *** [all] Error 2

and when i try whit the ov51x drivers

make -C /lib/modules/2.6.20-ARCH/build M=/home/almamater/Desktop/ov51x-1.65-1.12-mark modules
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
  CC [M]  /home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.o
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:42:26: error: linux/config.h: No such file or directory
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:207: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:209: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:211: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:213: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:216: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:220: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:223: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:227: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:229: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:231: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:234: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:236: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:239: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:242: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:244: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:246: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:248: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:250: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:252: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:254: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:256: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:258: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:260: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:262: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:264: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:267: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:270: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:272: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:274: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:276: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:278: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:280: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:282: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:285: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:288: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:290: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:292: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:294: error: expected ')' before string constant
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_init_isoc':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5449: warning: assignment from incompatible pointer type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_open':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5705: warning: implicit declaration of function 'video_devdata'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5705: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5707: warning: implicit declaration of function 'video_get_drvdata'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5707: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_close':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5784: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_ioctl_internal':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:5842: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6246: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_ioctl':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6358: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6364: warning: implicit declaration of function 'video_usercopy'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_read':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6384: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_v4l1_mmap':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6554: warning: initialization makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: At top level:
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6625: error: variable 'vdev_template' has initializer but incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6626: error: unknown field 'owner' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6626: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6626: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6627: error: unknown field 'name' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6627: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6627: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6628: error: unknown field 'type' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6628: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6628: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6629: error: unknown field 'hardware' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6629: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6629: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6630: error: unknown field 'fops' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6630: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6630: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6632: error: unknown field 'release' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6632: error: 'video_device_release' undeclared here (not in a function)
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6632: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6632: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6634: error: unknown field 'minor' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6634: warning: excess elements in struct initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:6634: warning: (near initialization for 'vdev_template')
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: In function 'ov51x_probe':
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8298: warning: implicit declaration of function 'video_device_alloc'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8298: warning: assignment makes pointer from integer without a cast
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8302: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8302: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8302: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8304: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8306: warning: implicit declaration of function 'video_set_drvdata'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8314: warning: implicit declaration of function 'video_register_device'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8314: error: 'VFL_TYPE_GRABBER' undeclared (first use in this function)
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8314: error: (Each undeclared identifier is reported only once
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8314: error: for each function it appears in.)
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8321: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8331: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8354: error: dereferencing pointer to incomplete type
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8355: warning: implicit declaration of function 'video_device_release'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8357: warning: implicit declaration of function 'video_unregister_device'
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c: At top level:
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8464: error: unknown field 'owner' specified in initializer
/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.c:8464: warning: initialization from incompatible pointer type
make[2]: *** [/home/almamater/Desktop/ov51x-1.65-1.12-mark/ov51x.o] Error 1
make[1]: *** [_module_/home/almamater/Desktop/ov51x-1.65-1.12-mark] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'
make: *** [all] Error 2

im a n00b, any help will be greatly aprecciated, cheers

Last edited by AlmaMater (2007-03-01 11:56:34)

Offline

#2 2007-03-01 02:53:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

Go through the '.c' files in the ov51x-<what ever version you have> directory, and comment out or delete the first #include <linux/config.h>. That file no longer exists in newer kernels. The version that I built my webcam drivers is ov51x-jpeg-0.5.4. Their devs should have done this. If you read down through the files, you'll see a bunch of conditional statements for different kernels that should have handled this.

Last edited by skottish (2007-03-01 02:57:45)

Offline

#3 2007-03-01 04:49:27

AlmaMater
Member
Registered: 2007-02-28
Posts: 92

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

Thanks skottish for your answer, i did as you told me and delete the "#include <linux/config.h>" line

this is what i got:

[almamater@boX ov51x-jpeg-0.5.4]$ make
make -C /lib/modules/2.6.20-ARCH/build M=/home/almamater/Desktop/ov51x-jpeg-0.5.4 modules
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
  CC [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.o
/home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.c: In function 'ov51x_init_isoc':
/home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.c:5575: warning: assignment from incompatible pointer type
  CC [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov511_decomp.o
  CC [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov518_decomp.o
  CC [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov519_decomp.o
  Building modules, stage 2.
  MODPOST 4 modules
  CC      /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov511_decomp.mod.o
  LD [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov511_decomp.ko
  CC      /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov518_decomp.mod.o
  LD [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov518_decomp.ko
  CC      /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov519_decomp.mod.o
  LD [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov519_decomp.ko
  CC      /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.mod.o
  LD [M]  /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.ko
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'

and then as root

[root@boX ov51x-jpeg-0.5.4]# make install
make -C /lib/modules/2.6.20-ARCH/build M=/home/almamater/Desktop/ov51x-jpeg-0.5.4 modules
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
  Building modules, stage 2.
  MODPOST 4 modules
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'
make KERNELRELEASE=2.6.20-ARCH -C /lib/modules/2.6.20-ARCH/build M=/home/almamater/Desktop/ov51x-jpeg-0.5.4 modules_install
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
  INSTALL /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov511_decomp.ko
  INSTALL /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov518_decomp.ko
  INSTALL /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov519_decomp.ko
  INSTALL /home/almamater/Desktop/ov51x-jpeg-0.5.4/ov51x.ko
  DEPMOD  2.6.20-ARCH
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'

It looks like it installed correctly, but when i try to load the modules, no luck hmm

[root@boX ov51x-jpeg-0.5.4]# modprobe ov51x
FATAL: Module ov51x not found.

Sorry to bother again, but did you do anything else to install this drivers?? like you mencionet, im olso trying whit the 0.5.4 version, im very new to linux, just need a little more direcction if you dont mind : )

cheers

Offline

#4 2007-03-01 05:36:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

Use the insmod option. For my camera, as root I used:

insmod ov51x.ko
insmod ov519_decomp.ko

Then in modules array in rc.conf, I added:

MODULES=(ov51x ov519_decomp)

Last edited by skottish (2007-03-01 05:37:11)

Offline

#5 2007-03-01 06:49:37

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

It looks like it installed correctly, but when i try to load the modules, no luck hmm

If you're manually building additional modules, depmod -a should fix the problem with it not being found.

Offline

#6 2007-03-01 07:44:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

johnisevil wrote:

depmod -a should fix the problem with it not being found.

That jogged my last brain cell. I went back to the page and found (remembered) the newer driver:

http://www.rastageeks.org/downloads/ov5 … ta1.tar.gz

Then the make, make install, depmod -a

John... you're basically good in my book <<johnisbasicallygood>>

Last edited by skottish (2007-03-01 07:45:45)

Offline

#7 2007-03-01 11:52:13

AlmaMater
Member
Registered: 2007-02-28
Posts: 92

Re: Cant get my webcam, to work :/ (OmniVision) *SOLVED*

skottish, johnisevil, thanks very much dudes : )

depmod -a fixed the problem

i couldnt install the ov51x-jpeg-1.0

[almamater@boX ov51x-jpeg-1.0~beta1]$ make
make -C /lib/modules/2.6.20-ARCH/build M=/mnt/Files/Files/Drivers/D-Link Webcam/Linux/ov51x-jpeg-1.0~beta1 modules
make[1]: Entering directory `/usr/src/linux-2.6.20-ARCH'
make[1]: *** No rule to make target `Webcam/Linux/ov51x-jpeg-1.0~beta1'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.20-ARCH'
make: *** [all] Error 2
[almamater@boX ov51x-jpeg-1.0~beta1]$

but whit the ov51x-jpeg-0.5.4 i did, and now my webcam is working

Thanks again

cheers

Last edited by AlmaMater (2007-03-01 11:54:26)

Offline

Board footer

Powered by FluxBB