talos-extensions/drivers/v4l-uvc
Dmitry Sharshakov 5cd226e3ea
chore: build with new toolchain
Move modules, firmware and libraries to accommodate usrmerged rootfs

Only use network where needed via new bldr, pre-download Go dependencies in prepare step, improve Go cache

Bump xen-guest-agent to make it build with current Alpine Rust

Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com>
2025-02-10 16:00:19 +01:00
..
files feat: update extensions for Linux 6.6.x 2024-01-26 14:22:11 +04:00
manifest.yaml fix: extension name in manifests 2024-05-08 19:26:30 +04:00
pkg.yaml chore: build with new toolchain 2025-02-10 16:00:19 +01:00
README.md feat: usb video class (webcam) extension 2024-01-16 19:55:48 +05:30
vars.yaml feat: usb video class (webcam) extension 2024-01-16 19:55:48 +05:30

Video4Linux USB Video Class extension

Installation

See Installing Extensions.

Usage

Enable the uvcvideo module in Talos machine config to enable /dev/video devices from USB devices supporting the USB video device class.

machine:
  kernel:
    modules:
      - name: uvcvideo

Verifiying

You can verify the modules are enabled by reading the /proc/modules where it should show the module is live.

For example:

 talosctl -n 192.168.42.15  read /proc/modules
uvcvideo 122880 - - Live 0xffffffffc065f000
videobuf2_vmalloc 16384 - - Live 0xffffffffc063b000
videobuf2_memops 16384 - - Live 0xffffffffc0588000
videobuf2_v4l2 28672 - - Live 0xffffffffc05b3000
videobuf2_common 61440 - - Live 0xffffffffc064f000
videodev 237568 - - Live 0xffffffffc0600000
mc 49152 - - Live 0xffffffffc05f3000

In addition, you should be able to verify presence of the video device if the USB device is plugged in, checking /dev directory.

For example:

 talosctl -n 192.168.42.15 ls /dev | grep video
192.168.42.15   video0
192.168.42.15   video1

You can also verify everything in dmesg:

 talosctl -n 192.168.42.15 dmesg
# look for lines like these:
kern:    info: [2024-01-15T19:37:30.689914441Z]: videodev: Linux video capture interface: v2.00
kern:    info: [2024-01-15T19:37:34.222751441Z]: usbcore: registered new interface driver uvcvideo