* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-05 18:18 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-05 18:18 UTC (permalink / raw) To: hardware egorov_stas wrote: > Приветствую, > > Хотел завести сам эту камеру, но не могу собрать драйвер от > Microdia(sn9c20x) под ядро 2.6.25(сама система: ALT Linux Desktop > 4.0+ядро и gcc из 4.1 Desktop). Кто сможет помочь с решением данной > проблемы? > > Привожу логи: > > /home/rs/src/microdia/sn9c20x.h:57:1: warning: "V4L2_CID_EXPOSURE_AUTO" > redefined > In file included from include/media/v4l2-dev.h:17, > from include/media/v4l2-common.h:29, > from /home/rs/src/microdia/sn9c20x.h:33, > from /home/rs/src/microdia/sn9c20x-v4l2.c:38: > include/linux/videodev2.h:1091:1: warning: this is the location of the > previous definition > /home/rs/src/microdia/sn9c20x-v4l2.c: In function ‘v4l_sn9c20x_ioctl’: > /home/rs/src/microdia/sn9c20x-v4l2.c:1350: error: implicit declaration > of function ‘video_ioctl2’ > /home/rs/src/microdia/sn9c20x-v4l2.c: In function > ‘v4l_sn9c20x_register_video_device’: > /home/rs/src/microdia/sn9c20x-v4l2.c:1399: error: incompatible types in > assignment > /home/rs/src/microdia/sn9c20x-v4l2.c:1400: error: ‘struct video_device’ > has no member named ‘owner’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: ‘struct video_device’ > has no member named ‘type’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: ‘VID_TYPE_CAPTURE’ > undeclared (first use in this function) > /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: (Each undeclared > identifier is reported only once > /home/rs/src/microdia/sn9c20x-v4l2.c:1401: error: for each function it > appears in.) > /home/rs/src/microdia/sn9c20x-v4l2.c:1412: error: ‘V4L2_DEBUG_IOCTL_ARG’ > undeclared (first use in this function) > /home/rs/src/microdia/sn9c20x-v4l2.c:1415: error: ‘struct video_device’ > has no member named ‘vidioc_querycap’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1416: error: ‘struct video_device’ > has no member named ‘vidioc_enum_fmt_cap’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1417: error: ‘struct video_device’ > has no member named ‘vidioc_try_fmt_cap’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1418: error: ‘struct video_device’ > has no member named ‘vidioc_s_fmt_cap’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1419: error: ‘struct video_device’ > has no member named ‘vidioc_g_fmt_cap’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1420: error: ‘struct video_device’ > has no member named ‘vidioc_enum_input’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1421: error: ‘struct video_device’ > has no member named ‘vidioc_g_input’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1422: error: ‘struct video_device’ > has no member named ‘vidioc_s_input’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1423: error: ‘struct video_device’ > has no member named ‘vidioc_streamon’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1424: error: ‘struct video_device’ > has no member named ‘vidioc_streamoff’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1425: error: ‘struct video_device’ > has no member named ‘vidioc_queryctrl’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1426: error: ‘struct video_device’ > has no member named ‘vidioc_g_ctrl’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1427: error: ‘struct video_device’ > has no member named ‘vidioc_s_ctrl’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1428: error: ‘struct video_device’ > has no member named ‘vidioc_g_parm’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1429: error: ‘struct video_device’ > has no member named ‘vidioc_s_parm’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1430: error: ‘struct video_device’ > has no member named ‘vidioc_reqbufs’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1431: error: ‘struct video_device’ > has no member named ‘vidioc_qbuf’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1432: error: ‘struct video_device’ > has no member named ‘vidioc_dqbuf’ > /home/rs/src/microdia/sn9c20x-v4l2.c:1433: error: ‘struct video_device’ > has no member named ‘vidioc_querybuf’ > make[2]: *** [/home/rs/src/microdia/sn9c20x-v4l2.o] Error 1 > make[1]: *** [_module_/home/rs/src/microdia] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.6.25-std-def-alt8.M41.4' > make: *** [driver] Error 2 > > Этот драйвер нормально собрался под Федорой с ядром 2.6.25. А тут что-то > не получается. Возможно это из-за нового V4L в нашем ядре. А поробуйте откопать в архивах версию M41.1 . ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904051353p1b9912c5n21719c2d17ede89d@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-06 5:42 ` Michail Yakushin 2009-04-06 7:18 ` Konstantin A. Lepikhov 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-06 5:42 UTC (permalink / raw) To: hardware egorov_stas wrote: > Попробовал откатится до М41.1, теперь другая ошибка: [skip] > Кто сможет нормально собрать драйвер под какую-нибудь версию? Дайте урл на драйвер. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Hardware] Драйвер для Genius Look 320S 2009-04-06 5:42 ` Michail Yakushin @ 2009-04-06 7:18 ` Konstantin A. Lepikhov 0 siblings, 1 reply; 10+ messages in thread From: Konstantin A. Lepikhov @ 2009-04-06 7:18 UTC (permalink / raw) To: hardware Hi Michail! Monday 06, at 09:42:27 AM you wrote: > egorov_stas wrote: > > Попробовал откатится до М41.1, теперь другая ошибка: > [skip] > > Кто сможет нормально собрать драйвер под какую-нибудь версию? > Дайте урл на драйвер. http://repo.or.cz/w/microdia.git -- WBR et al. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904060630u15ad9c8dxa7171831fa59d72@mail.gmail.com>]
[parent not found: <4c23cefe0904080053t2fd3f0a2m5eb8ab3f752c6450@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 7:55 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 7:55 UTC (permalink / raw) To: hardware On 08.04.2009 11:53, Stanislav_Egorov wrote: > Драйвер собрался после изучения вопроса и наложения патча самодельного. Может вы его и опакетите сразу. хотя бы kernel-source-microdia ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080116v4d69b410ufe43547bb6d5d1d4@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 8:28 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 8:28 UTC (permalink / raw) To: hardware On 08.04.2009 12:16, Stanislav_Egorov wrote: > Не знаю как правильно, расскажете? http://www.altlinux.org/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D0%B5%D0%B9_%D1%8F%D0%B4%D1%80%D0%B0 Там неможко устарело. 1. kernel-source-.... собирается так же 2. Сделайте template и попробуйте у себя собрать. До текущего состояния я доведу. Я так понимаю вы знакомы со сборкой пакетов и git? ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080138j61a66618m321ca63870757261@mail.gmail.com>]
[parent not found: <4c23cefe0904080144h43cc381av9a014d2d68285a40@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 8:47 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 8:47 UTC (permalink / raw) To: hardware On 08.04.2009 12:44, Stanislav_Egorov wrote: > Для начала думаю потестить. Что-то не получается взять картинку с > камеры. Пробую mplayer'ом: Может каким нибудь uvcview ? ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080157mf2120fdj5cf0fbc8aac44ba2@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 9:03 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 9:03 UTC (permalink / raw) To: hardware On 08.04.2009 12:57, Stanislav_Egorov wrote: > Попробовал uvcview, черный экран, сама прога виснет, окно закрыть можно, > процесс убить нельзя. Тоже с mplayer'ом. Видимо драйвер не работает. А какой статус процесса? (D?S? R?) а strace -p <pid> что говорит? ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080205n9debb85w148f054fe3781b47@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 9:15 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 9:15 UTC (permalink / raw) To: hardware On 08.04.2009 13:05, Stanislav_Egorov wrote: > В dmesg'е: sn9c20x: No ack from I2C slave 0x11 for write to address 0x25 > > В ps'е: D+ 12:55 0:03 uvcview > > strace: > strace -p 8083 > Process 8083 attached - interrupt to quit > И висим А где нибудь эта камера работает? Тость тут дальше 2 варианта: либо где-то вдрайвере баг либо железяка глючит. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080216w15ce765cm247c241c8fef82b5@mail.gmail.com>]
[parent not found: <4c23cefe0904080409s5c26afb6ud901ed9e13d8d03c@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 11:21 ` Michail Yakushin 0 siblings, 1 reply; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 11:21 UTC (permalink / raw) To: hardware On 08.04.2009 15:09, Stanislav_Egorov wrote: > Такой вопросик по зависимостям модулей. Вот собраный драйвер sn9c20x > зависит от v4l1_compat, хотя внутри он использует функции v4l2 уровня. > Как такое может быть? Или может я чего-то недопонимаю? Видимо что то использует из v4l1_compat. А он там явно нигде не прописан? ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4c23cefe0904080428h118ca482s736915140539ad7d@mail.gmail.com>]
* Re: [Hardware] Драйвер для Genius Look 320S @ 2009-04-08 11:51 ` Michail Yakushin 0 siblings, 0 replies; 10+ messages in thread From: Michail Yakushin @ 2009-04-08 11:51 UTC (permalink / raw) To: hardware On 08.04.2009 15:28, Stanislav_Egorov wrote: > В исходниках драйвера подключен <media/v4l2-common.h> Но в зависимостях > в modinfo нету v4l2-comon, как вроде бы должно быть Видимо не использует. Так бывает. Кстати там ещё можно сделать mount -t debugfs /sys/kernel/debug Может через него удастся что-то выяснить? ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-04-08 11:51 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-04-05 18:18 ` [Hardware] Драйвер для Genius Look 320S Michail Yakushin 2009-04-06 5:42 ` Michail Yakushin 2009-04-06 7:18 ` Konstantin A. Lepikhov 2009-04-08 7:55 ` Michail Yakushin 2009-04-08 8:28 ` Michail Yakushin 2009-04-08 8:47 ` Michail Yakushin 2009-04-08 9:03 ` Michail Yakushin 2009-04-08 9:15 ` Michail Yakushin 2009-04-08 11:21 ` Michail Yakushin 2009-04-08 11:51 ` Michail Yakushin
ALT Linux hardware support This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \ hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org public-inbox-index hardware Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.hardware AGPL code for this site: git clone https://public-inbox.org/public-inbox.git