Toon posts:

[debian] philips toucam

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik probeer een philips toucam aan de gang te krijgen, ik heb een driver kunnen apt-getten maar die werkt niet helemaal.

code:
1
2
3
4
5
ov511.c: USB OV518 camera found
ov511.c: Device revision 1
ov511.c: Sensor is an OV6630
ov511.c: Device registered on minor 0
ov511.c: No decompressor available


Als ik ga kijken op http://alpha.dyndns.org/ov511/install.html, blijkt dat er een decompressor module geladen moet worden bij sommige camera's. Als ik de driver (ov511-1.65) download en uitpak bestaat hij uit de volgende bestanden:

code:
1
2
3
debian:/temp/ov511-1.65# ls
COPYING   README   ov511.h    ov511_decomp.c
Makefile  ov511.c  ov511.txt  ov518_decomp.c


Ik heb in de Makefile het juiste path aangepast:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#################################### OPTIONS ##################################
# Change this to /usr/include if you get header file errors
INCLUDEDIR = /lib/modules/2.4.18-bf2.4/kernel/drivers/usb

CFLAGS = -D__KERNEL__ -DMODULE -DOUTSIDE_KERNEL -O2 -Wall -Wstrict-prototypes \
        -fomit-frame-pointer -I$(INCLUDEDIR)

CC = gcc

MODULES = ov511.o ov511_decomp.o ov518_decomp.o

INSTALL_PATH_2.2   = /lib/modules/`uname -r`/usb/
INSTALL_PATH_2.4   = /lib/modules/2.4.18-bf2.4/kernel/drivers/usb
INSTALL_PATH_2.4RH = /lib/modules/`uname -r`/kernel/drivers/usb/ov511/
INSTALL_PATH_2.5   = /lib/modules/`uname -r`/kernel/drivers/usb/media/

#################################### TARGETS ##################################

# Make with standard options for cameras and video capture. No tuner support.
all: $(MODULES)

install:
        @echo 'You must specify an appropriate install command for your kernel:'
        @echo '   make install-2.2'
        @echo '   make install-2.4'
        @echo '   make install-2.4rh  (for RedHat kernels 2.4.9-31 thru 2.4.18)'
        @echo '   make install-2.5'

# Install on a 2.2 system
install-2.2: all
        $(MAKE) _do_install _INSTALL_PATH_="$(INSTALL_PATH_2.2)"

# Install on a 2.4 system
install-2.4: all
        $(MAKE) _do_install _INSTALL_PATH_="$(INSTALL_PATH_2.4)"

# Install on a RedHat 2.4.9-31 - 2.4.18 system
install-2.4rh: all
        $(MAKE) _do_install _INSTALL_PATH_="$(INSTALL_PATH_2.4RH)"

# Install on a 2.5 system
install-2.5: all
        $(MAKE) _do_install _INSTALL_PATH_="$(INSTALL_PATH_2.5)"

clean:
        rm -f *.o *~ core *.i

#################################### RULES ####################################

_do_install:
        install $(MODULES) $(_INSTALL_PATH_)
        /sbin/depmod -ae

ov511.o: ov511.c ov511.h
        $(CC) -c $(CFLAGS) -DEXPORT_SYMTAB ov511.c

ov511_decomp.o: ov511_decomp.c ov511.h
        $(CC) -c $(CFLAGS) ov511_decomp.c

ov518_decomp.o: ov518_decomp.c ov511.h
        $(CC) -c $(CFLAGS) ov518_decomp.c
debian:/temp/ov511-1.65#


Als ik vervolgens make install-2.4 uitvoer:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
lude/linux/videodev.h:12,
                 from ov511.h:5,
                 from ov511.c:112:
/usr/include/linux/device.h:87: error: field `attr' has incomplete type
/usr/include/linux/device.h:88: error: parse error before "ssize_t"
/usr/include/linux/device.h:89: error: parse error before '*' token
/usr/include/linux/device.h:89: error: parse error before "size_t"
/usr/include/linux/device.h:89: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:128: error: field `attr' has incomplete type
/usr/include/linux/device.h:129: error: parse error before "ssize_t"
/usr/include/linux/device.h:130: error: parse error before '*' token
/usr/include/linux/device.h:130: error: parse error before "size_t"
/usr/include/linux/device.h:130: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:168: error: field `attr' has incomplete type
/usr/include/linux/device.h:169: error: parse error before "ssize_t"
/usr/include/linux/device.h:170: error: parse error before '*' token
/usr/include/linux/device.h:170: error: parse error before "size_t"
/usr/include/linux/device.h:170: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h:220: error: field `attr' has incomplete type
/usr/include/linux/device.h:221: error: parse error before "ssize_t"
/usr/include/linux/device.h:222: error: parse error before '*' token
/usr/include/linux/device.h:222: error: parse error before "size_t"
/usr/include/linux/device.h:222: error: `ssize_t' declared as function returning a function
/usr/include/linux/device.h: In function `list_to_dev':
/usr/include/linux/device.h:285: error: `size_t' undeclared (first use in this function)
/usr/include/linux/device.h: At top level:
/usr/include/linux/device.h:324: error: field `attr' has incomplete type
/usr/include/linux/device.h:325: error: parse error before "ssize_t"
/usr/include/linux/device.h:326: error: parse error before '*' token
/usr/include/linux/device.h:326: error: parse error before "size_t"
/usr/include/linux/device.h:326: error: `ssize_t' declared as function returning a function
In file included from ov511.h:6,
                 from ov511.c:112:
/usr/include/linux/smp_lock.h: In function `release_kernel_lock':
/usr/include/linux/smp_lock.h:22: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `reacquire_kernel_lock':
/usr/include/linux/smp_lock.h:31: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `lock_kernel':
/usr/include/linux/smp_lock.h:44: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h:47: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h: In function `unlock_kernel':
/usr/include/linux/smp_lock.h:52: error: dereferencing pointer to incomplete type
/usr/include/linux/smp_lock.h:54: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/irq.h:20,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/usb.h:14,
                 from ov511.h:7,
                 from ov511.c:112:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/usb.h:14,
                 from ov511.h:7,
                 from ov511.c:112:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:11,
                 from /usr/include/linux/usb.h:14,
                 from ov511.h:7,
                 from ov511.c:112:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from ov511.h:7,
                 from ov511.c:112:
/usr/include/linux/usb.h: In function `wait_ms':
/usr/include/linux/usb.h:26: error: dereferencing pointer to incomplete type
/usr/include/linux/usb.h: At top level:
/usr/include/linux/usb.h:326: error: parse error before "size_t"
/usr/include/linux/usb.h: In function `usb_make_path':
/usr/include/linux/usb.h:329: error: `dev' undeclared (first use in this function)
/usr/include/linux/usb.h: At top level:
/usr/include/linux/usb.h:476: error: parse error before "mode_t"
/usr/include/linux/usb.h:478: error: parse error before '}' token
/usr/include/linux/usb.h:833: error: parse error before "size_t"
/usr/include/linux/usb.h:835: error: parse error before "size_t"
/usr/include/linux/usb.h:870: error: parse error before "size_t"
/usr/include/linux/usb.h:906: error: parse error before "size_t"
/usr/include/linux/usb.h:912: error: conflicting types for `lock'
/usr/include/linux/fs.h:809: error: previous declaration of `lock'
/usr/include/linux/usb.h:914: error: `dev' used prior to declaration
/usr/include/linux/usb.h:922: error: conflicting types for `count'
/usr/include/linux/proc_fs.h:72: error: previous declaration of `count'
/usr/include/linux/usb.h:923: error: `complete' redeclared as different kind of symbol
/usr/include/linux/completion.h:31: error: previous declaration of `complete'
/usr/include/linux/usb.h:924: error: parse error before '}' token
/usr/include/linux/usb.h:933: error: parse error before "size_t"
ov511.c: In function `rvmalloc':
ov511.c:448: warning: implicit declaration of function `mem_map_reserve'
ov511.c: In function `rvfree':
ov511.c:466: warning: implicit declaration of function `mem_map_unreserve'
ov511.c: In function `ov51x_wait_frames_inactive':
ov511.c:1564: error: dereferencing pointer to incomplete type
ov511.c:1564: error: dereferencing pointer to incomplete type
ov511.c:1564: error: dereferencing pointer to incomplete type
ov511.c:1564: warning: type defaults to `int' in declaration of `type name'
ov511.c:1564: error: dereferencing pointer to incomplete type
ov511.c: In function `request_decompressor':
ov511.c:3651: warning: implicit declaration of function `__MOD_INC_USE_COUNT'
ov511.c: In function `release_decompressor':
ov511.c:3674: warning: implicit declaration of function `__MOD_DEC_USE_COUNT'
ov511.c: In function `ov51x_postprocess':
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c:4018: error: invalid application of `sizeof' to an incomplete type
ov511.c: In function `ov51x_init_isoc':
ov511.c:4547: warning: assignment from incompatible pointer type
ov511.c: In function `ov51x_do_dealloc':
ov511.c:4672: error: invalid application of `sizeof' to an incomplete type
ov511.c: In function `ov51x_alloc':
ov511.c:4714: error: invalid application of `sizeof' to an incomplete type
ov511.c:4749: error: invalid application of `sizeof' to an incomplete type
ov511.c: In function `ov51x_v4l1_open':
ov511.c:4851: error: dereferencing pointer to incomplete type
ov511.c: In function `ov51x_v4l1_close':
ov511.c:4876: error: dereferencing pointer to incomplete type
ov511.c:4920: error: dereferencing pointer to incomplete type
ov511.c: In function `ov51x_v4l1_ioctl_internal':
ov511.c:4935: error: dereferencing pointer to incomplete type
ov511.c:5175: error: invalid application of `sizeof' to an incomplete type
ov511.c:5181: error: invalid application of `sizeof' to an incomplete type
ov511.c:5283: error: dereferencing pointer to incomplete type
ov511.c:5283: error: dereferencing pointer to incomplete type
ov511.c:5283: error: dereferencing pointer to incomplete type
ov511.c:5283: warning: type defaults to `int' in declaration of `type name'
ov511.c:5283: error: dereferencing pointer to incomplete type
ov511.c: In function `ov51x_v4l1_ioctl':
ov511.c:5449: error: dereferencing pointer to incomplete type
ov511.c: At top level:
ov511.c:5470: error: parse error before "size_t"
ov511.c:5471: warning: function declaration isn't a prototype
ov511.c: In function `ov51x_v4l1_read':
ov511.c:5472: error: `file' undeclared (first use in this function)
ov511.c:5474: error: `cnt' undeclared (first use in this function)
ov511.c:5535: error: dereferencing pointer to incomplete type
ov511.c:5535: error: dereferencing pointer to incomplete type
ov511.c:5535: error: dereferencing pointer to incomplete type
ov511.c:5535: warning: type defaults to `int' in declaration of `type name'
ov511.c:5535: error: dereferencing pointer to incomplete type
ov511.c: In function `ov51x_v4l1_mmap':
ov511.c:5639: error: dereferencing pointer to incomplete type
ov511.c:5653: error: invalid application of `sizeof' to an incomplete type
ov511.c: At top level:
ov511.c:5701: error: variable `ov511_fops' has initializer but incomplete type
ov511.c:5702: error: unknown field `owner' specified in initializer
ov511.c:5702: warning: excess elements in struct initializer
ov511.c:5702: warning: (near initialization for `ov511_fops')
ov511.c:5703: error: unknown field `open' specified in initializer
ov511.c:5703: warning: excess elements in struct initializer
ov511.c:5703: warning: (near initialization for `ov511_fops')
ov511.c:5704: error: unknown field `release' specified in initializer
ov511.c:5704: warning: excess elements in struct initializer
ov511.c:5704: warning: (near initialization for `ov511_fops')
ov511.c:5705: error: unknown field `read' specified in initializer
ov511.c:5705: warning: excess elements in struct initializer
ov511.c:5705: warning: (near initialization for `ov511_fops')
ov511.c:5706: error: unknown field `mmap' specified in initializer
ov511.c:5706: warning: excess elements in struct initializer
ov511.c:5706: warning: (near initialization for `ov511_fops')
ov511.c:5707: error: unknown field `ioctl' specified in initializer
ov511.c:5707: warning: excess elements in struct initializer
ov511.c:5707: warning: (near initialization for `ov511_fops')
ov511.c:5708: error: unknown field `llseek' specified in initializer
ov511.c:5708: warning: excess elements in struct initializer
ov511.c:5708: warning: (near initialization for `ov511_fops')
ov511.c: In function `ov518_configure':
ov511.c:6677: warning: initialization from incompatible pointer type
ov511.c:6678: error: structure has no member named `wMaxPacketSize'
ov511.c: In function `ov51x_probe':
ov511.c:6760: error: `size_t' undeclared (first use in this function)
ov511.c:6782: warning: assignment from incompatible pointer type
ov511.c:7096: error: initializer element is not constant
ov511.c:7096: error: (near initialization for `ov511_driver.disconnect')
ov511.c: In function `ov511_register_decomp_module':
ov511.c:7152: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:482)
ov511.c: In function `ov511_deregister_decomp_module':
ov511.c:7179: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:494)
ov511.c: In function `ov51x_probe':
ov511.c:7218: error: initializer element is not constant
ov511.c:7218: error: (near initialization for `__ksymtab_ov511_register_decomp_module.value')
ov511.c:7219: error: initializer element is not constant
ov511.c:7219: error: (near initialization for `__ksymtab_ov511_deregister_decomp_module.value')
ov511.c:7219: error: parse error at end of input
/usr/include/asm-generic/siginfo.h:53: error: storage size of `_pad' isn't known
/usr/include/linux/stat.h:68: error: storage size of `atime' isn't known
/usr/include/linux/stat.h:69: error: storage size of `mtime' isn't known
/usr/include/linux/stat.h:70: error: storage size of `ctime' isn't known
/usr/include/linux/fs.h:262: error: storage size of `ia_atime' isn't known
/usr/include/linux/fs.h:263: error: storage size of `ia_mtime' isn't known
/usr/include/linux/fs.h:264: error: storage size of `ia_ctime' isn't known
/usr/include/linux/quota.h:226: error: storage size of `dq_dqb' isn't known
/usr/include/linux/fs.h:381: error: storage size of `i_atime' isn't known
/usr/include/linux/fs.h:382: error: storage size of `i_mtime' isn't known
/usr/include/linux/fs.h:383: error: storage size of `i_ctime' isn't known
/usr/include/linux/fs.h:515: error: storage size of `f_owner' isn't known
ov511.c:5701: error: storage size of `ov511_fops' isn't known
ov511.c:287: warning: `ov511_driver' defined but not used
make: *** [ov511.o] Error 1
debian:/temp/ov511-1.65#


honderden fouten dus maar nu zie ik op de onderste regel
code:
1
2
ov511.c:5701: error: storage size of `ov511_fops' isn't known
ov511.c:287: warning: `ov511_driver' defined but not used


die ov511 driver werkt al, ik wil eigenlijk alleen die decompressor installeren.
weet iemand hoe dit moet? of heeft iemand een soortgelijke camera aan de praat?

  • mOrPhie
  • Registratie: September 2000
  • Laatst online: 29-01 12:00

mOrPhie

❤️❤️❤️❤️🤍

Het staat er bijna letterlijk:

code:
1
2
# Change this to /usr/include if you get header file errors
INCLUDEDIR = /lib/modules/2.4.18-bf2.4/kernel/drivers/usb


Heb je dat al geprobeerd, wat erboven staat? Je includedir nu klopt helemaal niet. De path die je opgeeft is namelijk geen includedir. :)

Een experimentele community-site: https://technobabblenerdtalk.nl/. DM voor invite code.


  • Parasietje
  • Registratie: Juli 2004
  • Laatst online: 10-06-2024

Parasietje

linux-geek

En zorg ook dat je kernel die in die directory staat helemaal geconfigureerd is en gecompileerd is. Je _moet_ een goed geconfigureerde kernel source hebben als je modules wilt bakken.

WebDAV in Vista is horribly broken. Ik wil het fixen, maar ben nog steeds op zoek naar de tarball met de source...


  • alt-92
  • Registratie: Maart 2000
  • Niet online

alt-92

ye olde farte

En ik zou dat sowieso al niet doen met de standaard bootkernel van debian (oud antiek ding die 2.4.18, als je in aanmerking neemt dat 2.4.29 de meest recente is).

ik heb een 864 GB floppydrive! - certified prutser - the social skills of a thermonuclear device