Hi Darren, On Monday 14 April 2008, Darren Longhorn wrote: > Hi, > > I've been trying to build svn 200 with a 2.6.10 kernel. Here is my result: > > [EMAIL PROTECTED]:~/fp/ext/lib/driver/linux/webcam/uvc$ make > CROSS_COMPILE=arm_v5t_le- uvcvideo > Building USB Video Class driver... > make[1]: Entering directory > `/home/guest/fp/ext/lib/kernel/linux/montavista/lsp/ti-davinci' > CC [M] /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.o > In file included from > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvcvideo.h:8, > from > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:45: > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:194: error: > parse error before "gfp_flags" > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:195: > warning: static declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:108: warning: 'kzalloc' declared inline after being > called > include/linux/slab.h:108: warning: previous declaration of 'kzalloc' was > here > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h: In function > `kzalloc': > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:195: error: > number of arguments doesn't match prototype > include/linux/slab.h:108: error: prototype declaration > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:196: error: > `size' undeclared (first use in this function) > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:196: error: > (Each undeclared identifier is reported only once > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:196: error: > for each function it appears in.) > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_compat.h:196: error: > `gfp_flags' undeclared (first use in this function) > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:46:21: > version.h: No such file or directory > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c: In function > `uvc_probe': > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1550: error: > structure has no member named `product' > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1551: error: > structure has no member named `product' > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1564: error: > structure has no member named `product' > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1564: error: > structure has no member named `product' > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c: At top level: > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1633: error: > parse error before "pm_message_t" > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1634: > warning: function declaration isn't a prototype > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c: In function > `uvc_suspend': > /home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.c:1635: error: > `intf' undeclared (first use in this function) > make[2]: *** > [/home/guest/fp/ext/lib/driver/linux/webcam/uvc/uvc_driver.o] Error 1 > make[1]: *** [_module_/home/guest/fp/ext/lib/driver/linux/webcam/uvc] > Error 2 > make[1]: Leaving directory > `/home/guest/fp/ext/lib/kernel/linux/montavista/lsp/ti-davinci' > make: *** [uvcvideo] Error 2 > > I realise that 2.6.10 is quite old now, but I don't really have the > choice to upgrade it right now.
2.6.10 is indeed quite old, and definitely unsupported by the Linux UVC driver. You might be able to make it work, but I can't guarantee anything. > The first problem appears to be that I have another definition of > kzalloc, so I guess I could just remove the one in uvc_driver.c ? This is strange, as kzalloc has been introduced in 2.6.14. Are you using a patched version of the 2.6.10 kernel ? If the kzalloc implementation in your kernel sources is compatible with what the Linux UVC driver expects it should be safe to remove it from uvc_compat.h. Cheers, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
