Попробовал откатится до М41.1, теперь другая ошибка:<br><br>In file included from /home/rs/src/microdia/sn9c20x-sysfs.c:39:<br>/home/rs/src/microdia/sn9c20x.h:57:1: warning: "V4L2_CID_EXPOSURE_AUTO" redefined<br>
In file included from include/media/v4l2-dev.h:29,<br> from include/media/v4l2-common.h:29,<br> from /home/rs/src/microdia/sn9c20x-sysfs.c:37:<br>include/linux/videodev2.h:1077:1: warning: this is the location of the previous definition<br>
/home/rs/src/microdia/sn9c20x-sysfs.c: In function ‘sn9c20x_create_sysfs_files’:<br>/home/rs/src/microdia/sn9c20x-sysfs.c:947: error: implicit declaration of function ‘video_device_create_file’<br>/home/rs/src/microdia/sn9c20x-sysfs.c: In function ‘sn9c20x_remove_sysfs_files’:<br>
/home/rs/src/microdia/sn9c20x-sysfs.c:1014: error: implicit declaration of function ‘video_device_remove_file’<br>make[2]: *** [/home/rs/src/microdia/sn9c20x-sysfs.o] Error 1<br>make[1]: *** [_module_/home/rs/src/microdia] Error 2<br>
make[1]: Leaving directory `/usr/src/linux-2.6.25-std-def-alt8.M41.1'<br>make: *** [driver] Error 2<br><br>Кто сможет нормально собрать драйвер под какую-нибудь версию?<br><br><div class="gmail_quote">2009/4/5 Michail Yakushin <span dir="ltr"><<a href="mailto:silicium@altlinux.ru" target="_blank">silicium@altlinux.ru</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>egorov_stas wrote:<br>
> Приветствую,<br>
><br>
> Хотел завести сам эту камеру, но не могу собрать драйвер от<br>
> Microdia(sn9c20x) под ядро 2.6.25(сама система: ALT Linux Desktop<br>
> 4.0+ядро и gcc из 4.1 Desktop). Кто сможет помочь с решением данной<br>
> проблемы?<br>
><br>
> Привожу логи:<br>
><br>
> /home/rs/src/microdia/sn9c20x.h:57:1: warning: "V4L2_CID_EXPOSURE_AUTO"<br>
> redefined<br>
> In file included from include/media/v4l2-dev.h:17,<br>
> from include/media/v4l2-common.h:29,<br>
> from /home/rs/src/microdia/sn9c20x.h:33,<br>
> from /home/rs/src/microdia/sn9c20x-v4l2.c:38:<br>
> include/linux/videodev2.h:1091:1: warning: this is the location of the<br>
> previous definition<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c: In function ‘v4l_sn9c20x_ioctl’:<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1350: error: implicit declaration<br>
> of function ‘video_ioctl2’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c: In function<br>
> ‘v4l_sn9c20x_register_video_device’:<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1399: error: incompatible types in<br>
> assignment<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1400: error: ‘struct video_device’<br>
> has no member named ‘owner’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: ‘struct video_device’<br>
> has no member named ‘type’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: ‘VID_TYPE_CAPTURE’<br>
> undeclared (first use in this function)<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: (Each undeclared<br>
> identifier is reported only once<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: for each function it<br>
> appears in.)<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1412: error: ‘V4L2_DEBUG_IOCTL_ARG’<br>
> undeclared (first use in this function)<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1415: error: ‘struct video_device’<br>
> has no member named ‘vidioc_querycap’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1416: error: ‘struct video_device’<br>
> has no member named ‘vidioc_enum_fmt_cap’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1417: error: ‘struct video_device’<br>
> has no member named ‘vidioc_try_fmt_cap’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1418: error: ‘struct video_device’<br>
> has no member named ‘vidioc_s_fmt_cap’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1419: error: ‘struct video_device’<br>
> has no member named ‘vidioc_g_fmt_cap’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1420: error: ‘struct video_device’<br>
> has no member named ‘vidioc_enum_input’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1421: error: ‘struct video_device’<br>
> has no member named ‘vidioc_g_input’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1422: error: ‘struct video_device’<br>
> has no member named ‘vidioc_s_input’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1423: error: ‘struct video_device’<br>
> has no member named ‘vidioc_streamon’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1424: error: ‘struct video_device’<br>
> has no member named ‘vidioc_streamoff’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1425: error: ‘struct video_device’<br>
> has no member named ‘vidioc_queryctrl’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1426: error: ‘struct video_device’<br>
> has no member named ‘vidioc_g_ctrl’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1427: error: ‘struct video_device’<br>
> has no member named ‘vidioc_s_ctrl’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1428: error: ‘struct video_device’<br>
> has no member named ‘vidioc_g_parm’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1429: error: ‘struct video_device’<br>
> has no member named ‘vidioc_s_parm’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1430: error: ‘struct video_device’<br>
> has no member named ‘vidioc_reqbufs’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1431: error: ‘struct video_device’<br>
> has no member named ‘vidioc_qbuf’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1432: error: ‘struct video_device’<br>
> has no member named ‘vidioc_dqbuf’<br>
> /home/rs/src/microdia/sn9c20x-v4l2.c:1433: error: ‘struct video_device’<br>
> has no member named ‘vidioc_querybuf’<br>
> make[2]: *** [/home/rs/src/microdia/sn9c20x-v4l2.o] Error 1<br>
> make[1]: *** [_module_/home/rs/src/microdia] Error 2<br>
> make[1]: Leaving directory `/usr/src/linux-2.6.25-std-def-alt8.M41.4'<br>
> make: *** [driver] Error 2<br>
><br>
> Этот драйвер нормально собрался под Федорой с ядром 2.6.25. А тут что-то<br>
> не получается.<br>
</div></div>Возможно это из-за нового V4L в нашем ядре. А поробуйте откопать в<br>
архивах версию M41.1 .<br>
_______________________________________________<br>
Hardware mailing list<br>
<a href="mailto:Hardware@lists.altlinux.org" target="_blank">Hardware@lists.altlinux.org</a><br>
<a href="https://lists.altlinux.org/mailman/listinfo/hardware" target="_blank">https://lists.altlinux.org/mailman/listinfo/hardware</a></blockquote></div><br><br clear="all"><br>-- <br>Stanislav Egorov<br>Cisco Systems, Inc.<br>
Cell: +79276230169<br>ICQ: 270805968<br>