Добрый день!
Имею SK-AT91SAM9260 от Павла. Ядро 2.6.32.9.
В конфиге ядра :
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_CAPTURE_DRIVERS=y
CONFIG_VIDEO_HELPER_CHIPS_AUTO=y
CONFIG_USB_VIDEO_CLASS=y
/dev/video0 создается udev'ом. Камера Genius :
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device iSlim 1300AF V2 (0458:7067)
ffmpeg ругается :
ffmpeg -s 320x240 -r 1 -f video4linux2 -i /dev/video0 -y -t 1 test%d.jpg
FFmpeg version SVN-r22758, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 2 2010 16:20:23 with gcc 4.3.4
configuration: --sysroot=/home/atanov/arm/buildroot-2010.02/output/staging --arch=arm-linux --enable-cross-compile --target-os=linux --host-cc=gcc --prefix=/root/arm --disable-asm --as=/home/atanov/arm/buildroot-2010.02/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc --ld=/home/atanov/arm/buildroot-2010.02/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc --cc=/home/atanov/arm/buildroot-2010.02/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc --disable-mmx --disable-mmx2 --cross-prefix=arm-linux-uclibcgnueabi- --prefix=/root/arm
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.60. 0 / 52.60. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[video4linux2 @ 0xb0ac50][3]Capabilities: 4000001
[video4linux2 @ 0xb0ac50]ioctl(VIDIOC_STREAMON): Input/output error
/dev/video0: Input/output error
вот кусочек strace от запуска ffmpeg:
open("/dev/video0", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0xbe9878a8) = 0
write(2, "[video4linux2 @ 0xb0ac50][3]Capab"..., 50[video4linux2 @ 0xb0ac50][3]Capabilities: 4000001
) = 50
...........
ioctl(3, VIDIOC_S_FMT or VT_RELDISP, 0xbe98779c) = -1 EINVAL (Invalid argument)
ioctl(3, VIDIOC_S_FMT or VT_RELDISP, 0xbe98779c) = -1 EINVAL (Invalid argument)
ioctl(3, VIDIOC_S_FMT or VT_RELDISP, 0xbe98779c) = 0
ioctl(3, VIDIOC_ENUMINPUT, 0xbe987910) = 0
ioctl(3, VIDIOC_S_INPUT, 0xbe987910) = 0
ioctl(3, VIDIOC_REQBUFS or VT_DISALLOCATE, 0xbe987a34) = 0
ioctl(3, VIDIOC_QUERYBUF or VT_RESIZE, 0xbe9879f0) = 0
mmap2(NULL, 77389, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x400b4000
...........
ioctl(3, VIDIOC_QBUF, 0xbe9879ac) = 0
ioctl(3, VIDIOC_QBUF, 0xbe9879ac) = 0
ioctl(3, VIDIOC_QBUF, 0xbe9879ac) = 0
ioctl(3, VIDIOC_STREAMON, 0xbe987a54) = -1 EIO (Input/output error)
write(2, "[video4linux2 @ 0xb0ac50]ioctl(VI"..., 68[video4linux2 @ 0xb0ac50]ioctl(VIDIOC_STREAMON): Input/output error
) = 68
close(3) = 0
write(2, "/dev/video0"..., 11/dev/video0) = 11
write(2, ": "..., 2: ) = 2
write(2, "Input/output error"..., 18Input/output error) = 18
write(2, "\n"..., 1
) = 1
exit(1)
У кого-то получалось завести камеру на девайсе? Та же камера на ядре 2.6.31.12 на большом брате работает без проблем. |