mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-05 22:07:14 +02:00
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> |
||
---|---|---|
.. | ||
files | ||
manifest.yaml | ||
pkg.yaml | ||
README.md | ||
vars.yaml |
Video4Linux USB Video Class extension
Installation
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