NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-evbarm/61028: Logitech HD WebCam C270 attaches OK but "Input/Output Error" on capture / earmv7hf-GENERIC 11.1 and 11.0
>Number: 61028
>Category: port-evbarm
>Synopsis: Logitech HD WebCam C270 attaches OK but "Input/Output Error" on capture / earmv7hf-GENERIC 11.1 and 11.0
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: port-evbarm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 19 11:50:00 +0000 2026
>Originator: requiem.
>Release: 11.1 and 11.0 armv7
>Organization:
>Environment:
NetBSD armv7 11.1 NetBSD 11.1 (GENERIC) #0: Mon Nov 2 16:34:32 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm
>Description:
Running 11.1 on a BeagleBone Black.
The C270 webcam attaches OK. [1] It is listed under usbdevs [2] and videoctl seems to provide accurate information. [3] The device is owned by the user. [4]
However when I try to capture anything I get i/o errors:
```
$ fswebcam -v
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
src_v4l2_get_capability,91: /dev/video0 information:
src_v4l2_get_capability,92: cap.driver: "uvideo"
src_v4l2_get_capability,93: cap.card: "HD WebCam C270 (0x046d) HD WebC"
src_v4l2_get_capability,94: cap.bus_info: "usb:00000003"
src_v4l2_get_capability,95: cap.capabilities=0x05000001
src_v4l2_get_capability,96: - VIDEO_CAPTURE
src_v4l2_get_capability,105: - READWRITE
src_v4l2_get_capability,107: - STREAMING
No input was specified, using the first.
src_v4l2_set_input,185: /dev/video0: Input 0 information:
src_v4l2_set_input,186: name = "Camera"
src_v4l2_set_input,187: type = 00000002
src_v4l2_set_input,189: - CAMERA
src_v4l2_set_input,190: audioset = 00000000
src_v4l2_set_input,191: tuner = 00000000
src_v4l2_set_input,192: status = 00000000
src_v4l2_set_pix_format,523: Device offers the following V4L2 pixel formats:
src_v4l2_set_pix_format,532: 0: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 1: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 2: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 3: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 4: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 5: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 6: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 7: [0x47504A4D] 'MJPG' (MJPEG)
src_v4l2_set_pix_format,532: 8: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 9: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 10: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 11: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 12: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 13: [0x56595559] 'YUYV' (YUYV)
src_v4l2_set_pix_format,532: 14: [0x56595559] 'YUYV' (YUYV)
Using palette MJPEG
Adjusting resolution from 384x288 to 320x240.
src_v4l2_set_mmap,675: mmap information:
src_v4l2_set_mmap,676: frames=4
src_v4l2_set_mmap,725: 0 length=155648
src_v4l2_set_mmap,725: 1 length=155648
src_v4l2_set_mmap,725: 2 length=155648
src_v4l2_set_mmap,725: 3 length=155648
Error starting stream.
VIDIOC_STREAMON: Input/output error
Unable to use mmap. Using read instead.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.
```
Same happens if I try to use it with ffmpeg:
```
$ ffmpeg9 -f v4l2 -video_size 640x480 -i /dev/video0 -r 0.2 -qscale:v 2 -update 1 ~/capture.jpg
ffmpeg version 9.0.1 Copyright (c) 2000-2026 the FFmpeg developers
built with gcc 12.5.0 (nb3 20260326)
configuration: --enable-avfilter --disable-ffplay --enable-rpath --enable-fontconfig --enable-libfreetype --enable-libass --enable-libaom --disable-librav1e --enable-libdav1d --disable-htmlpages --enable-gnutls --disable-mbedtls --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-openssl --disable-libjack --disable-libpulse --disable-libtesseract --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libxvid --enable-libx264 --enable-libx265 --disable-vdpau --enable-vaapi --enable-libvpx --enable-libwebp --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-libbluray --arch=earmv7hf --cc=gcc --disable-debug --disable-optimizations --disable-stripping --enable-gpl --enable-libxml2 --enable-pthreads --enable-shared --mandir=/usr/pkg/man --prefix=/usr/pkg --progs-suffix=9 --enable-runtime-cpudetect --datadir=/usr/pkg/share/ffmpeg9 --docdir=/usr/pkg/share/doc/ffmpeg9 --incdir=/usr/pkg/inclu
de/ffmpeg9 --libdir=/usr/pkg/lib/ffmpeg9 --shlibdir=/usr/pkg/lib/ffmpeg9
libavutil 61. 1.101 / 61. 1.101
libavcodec 63. 1.101 / 63. 1.101
libavformat 63. 1.101 / 63. 1.101
libavdevice 63. 1.101 / 63. 1.101
libavfilter 12. 1.101 / 12. 1.101
libswscale 10. 1.101 / 10. 1.101
libswresample 7. 1.101 / 7. 1.101
[in#0 @ 0x6fff4000] Time per frame unknown
[in#0 @ 0x6fff4000] ioctl(VIDIOC_STREAMON): Input/output error
[in#0 @ 0x7006a280] Error opening input: Input/output error
Error opening input file /dev/video0.
Error opening input files: Input/output error
```
The webcam has been tested on OpenBSD and NetBSD-i386(11.0) and is confirmed working. Fswebcam and ffmpeg can capture frames from it on both platforms.
I tried attaching the webcam via an active/powered USB hub to the BeagleBone Black to prevent brownouts but the same issue persists.
This happened on 11.0 as well as on 11.1.
I have no other boards with this architecture to test.
Can you please advise?
Thanks,
requiem
---
[1] relevant dmesg bits below:
```
$ dmesg | grep C270
[ 2.243722] uvideo0 at uhub1 port 1 configuration 1 interface 0: HD WebCam C270 (0x046d) HD WebCam C270 (0x0825), rev 2.00/11.10, addr 2
[ 2.265378] video0 at uvideo0: HD WebCam C270 (0x046d) HD WebCam C270 (0x0825), rev 2.00/11.10, addr 2
[ 2.284001] uaudio0: HD WebCam C270 (0x046d) HD WebCam C270 (0x0825), rev 2.00/11.10, addr 2
```
[2] usbdevs output below
```
$ sudo usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, MOTG root hub(0x0000), NetBSD(0x0000), rev 1.00(0x0100)
port 1 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, MOTG root hub(0x0000), NetBSD(0x0000), rev 1.00(0x0100)
port 1 addr 2: high speed, power 500 mA, config 1, HD WebCam C270(0x0825), HD WebCam C270(0x046d), rev 11.10(0x1110), serial SN0001
```
[3] videoctl output below:
```
$ sudo videoctl -d /dev/video0 -a
info.cap.card=HD WebCam C270 (0x046d) HD WebC
info.cap.driver=uvideo
info.cap.bus_info=usb:00000003
info.cap.version=11.1.0
info.cap.capabilities=0x5000001<VIDEO_CAPTURE,READWRITE,STREAMING>
info.format.0=MJPEG
info.format.0.size.0=1280x960
info.format.0.size.1=1280x720
info.format.0.size.2=1024x768
info.format.0.size.3=800x600
info.format.0.size.4=640x480
info.format.0.size.5=640x360
info.format.0.size.6=320x240
info.format.0.size.7=1280x960
info.format.1=MJPEG
info.format.1.size.0=1280x960
info.format.1.size.1=1280x720
info.format.1.size.2=1024x768
info.format.1.size.3=800x600
info.format.1.size.4=640x480
info.format.1.size.5=640x360
info.format.1.size.6=320x240
info.format.1.size.7=1280x960
info.format.2=MJPEG
info.format.2.size.0=1280x960
info.format.2.size.1=1280x720
info.format.2.size.2=1024x768
info.format.2.size.3=800x600
info.format.2.size.4=640x480
info.format.2.size.5=640x360
info.format.2.size.6=320x240
info.format.2.size.7=1280x960
info.format.3=MJPEG
info.format.3.size.0=1280x960
info.format.3.size.1=1280x720
info.format.3.size.2=1024x768
info.format.3.size.3=800x600
info.format.3.size.4=640x480
info.format.3.size.5=640x360
info.format.3.size.6=320x240
info.format.3.size.7=1280x960
info.format.4=MJPEG
info.format.4.size.0=1280x960
info.format.4.size.1=1280x720
info.format.4.size.2=1024x768
info.format.4.size.3=800x600
info.format.4.size.4=640x480
info.format.4.size.5=640x360
info.format.4.size.6=320x240
info.format.4.size.7=1280x960
info.format.5=MJPEG
info.format.5.size.0=1280x960
info.format.5.size.1=1280x720
info.format.5.size.2=1024x768
info.format.5.size.3=800x600
info.format.5.size.4=640x480
info.format.5.size.5=640x360
info.format.5.size.6=320x240
info.format.5.size.7=1280x960
info.format.6=MJPEG
info.format.6.size.0=1280x960
info.format.6.size.1=1280x720
info.format.6.size.2=1024x768
info.format.6.size.3=800x600
info.format.6.size.4=640x480
info.format.6.size.5=640x360
info.format.6.size.6=320x240
info.format.6.size.7=1280x960
info.format.7=MJPEG
info.format.7.size.0=1280x960
info.format.7.size.1=1280x720
info.format.7.size.2=1024x768
info.format.7.size.3=800x600
info.format.7.size.4=640x480
info.format.7.size.5=640x360
info.format.7.size.6=320x240
info.format.7.size.7=1280x960
info.format.8=YUYV
info.format.8.size.0=640x480
info.format.8.size.1=1280x960
info.format.8.size.2=1280x720
info.format.8.size.3=1024x768
info.format.8.size.4=800x600
info.format.8.size.5=320x240
info.format.8.size.6=640x480
info.format.9=YUYV
info.format.9.size.0=640x480
info.format.9.size.1=1280x960
info.format.9.size.2=1280x720
info.format.9.size.3=1024x768
info.format.9.size.4=800x600
info.format.9.size.5=320x240
info.format.9.size.6=640x480
info.format.10=YUYV
info.format.10.size.0=640x480
info.format.10.size.1=1280x960
info.format.10.size.2=1280x720
info.format.10.size.3=1024x768
info.format.10.size.4=800x600
info.format.10.size.5=320x240
info.format.10.size.6=640x480
info.format.11=YUYV
info.format.11.size.0=640x480
info.format.11.size.1=1280x960
info.format.11.size.2=1280x720
info.format.11.size.3=1024x768
info.format.11.size.4=800x600
info.format.11.size.5=320x240
info.format.11.size.6=640x480
info.format.12=YUYV
info.format.12.size.0=640x480
info.format.12.size.1=1280x960
info.format.12.size.2=1280x720
info.format.12.size.3=1024x768
info.format.12.size.4=800x600
info.format.12.size.5=320x240
info.format.12.size.6=640x480
info.format.13=YUYV
info.format.13.size.0=640x480
info.format.13.size.1=1280x960
info.format.13.size.2=1280x720
info.format.13.size.3=1024x768
info.format.13.size.4=800x600
info.format.13.size.5=320x240
info.format.13.size.6=640x480
info.format.14=YUYV
info.format.14.size.0=640x480
info.format.14.size.1=1280x960
info.format.14.size.2=1280x720
info.format.14.size.3=1024x768
info.format.14.size.4=800x600
info.format.14.size.5=320x240
info.format.14.size.6=640x480
info.input.0=Camera
info.input.0.type=baseband
info.standard.0=webcam
ctrl.sharpness=4
```
[4] /dev/video devices ownerships below:
```
$ ls -alh /dev/video*
crw-rw-rw- 1 myuser users 193, 0 Jul 30 15:23 /dev/video0
crw-rw-rw- 1 root wheel 193, 1 Jul 30 15:23 /dev/video1
crw-rw-rw- 1 root wheel 193, 2 Jul 30 15:23 /dev/video2
crw-rw-rw- 1 root wheel 193, 3 Jul 30 15:23 /dev/video3
```
>How-To-Repeat:
Attach webcam to BeagleBoneBlack USB port; try to use it as a webcam.
>Fix:
Not known.
Home |
Main Index |
Thread Index |
Old Index