hello,dear all I having problem when using uvcvideo.ko ,Would any one help me in this.
I got error as : videodev: has no release callback. Please fix your driver for proper sysfs support I am using linux 2.6.24 kernel . And download latest uvc driver .I am using cross compiler gcc- 4.2.2-eabi while I am compiling uvc driver using this compiler and kernel path I got error in v4l2-dev.h file that In file included from /home/rajiv/6410/ExperimentUVC/UVC/uvcvideo-033b5968aa1a/v4l/../linux/include/media/v4l2-common.h:30, from /home/rajiv/6410/ExperimentUVC/UVC/uvcvideo-033b5968aa1a/v4l/uvc_driver.c:37: /home/rajiv/6410/ExperimentUVC/UVC/uvcvideo-033b5968aa1a/v4l/../linux/include/media/v4l2-dev.h: In function 'video_device_node_name': /home/rajiv/6410/ExperimentUVC/UVC/uvcvideo-033b5968aa1a/v4l/../linux/include/media/v4l2-dev.h:159: error: implicit declaration of function 'dev_name' /home/rajiv/6410/ExperimentUVC/UVC/uvcvideo-033b5968aa1a/v4l/../linux/include/media/v4l2-dev.h:159: warning: return makes pointer from integer without a cast after getting this error I change function video_device_node_name as: old function is static inline const char *video_device_node_name(struct video_device *vdev) { #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) return vdev->dev.class_id; #else return dev_name(&vdev->dev); #endif } I have changed this function as static inline const char *video_device_node_name(struct video_device *vdev) { #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) return vdev->dev.class_id; #else return "/dev/video0"; #endif } after replacing this dev_name it is got compiled easily. and when I loaded it and trying to execute test program for dev/video0 then I got error as Unable to handle kernel NULL pointer dereference at virtual address 00000004 pgd=c6a54000 [00000004] *pgd=56b57031, *pte=00000000,*ppte=00000000 internal error:Oops:17[#1] Modules linked in : uvcvideo .....so many lines and last line is Sementation fault If any one knows the solution for this problem Please guide me
_______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel