Skip to content
Contents
GuidesOpenWrt

Does your USB webcam need UVC or GSPCA on OpenWrt?

Trace from USB enumeration and driver binding to the V4L2 capture node, acquire the first frame in a supported format, and verify whether the camera is truly functional.

Cameras with the same model name might have been equipped with different chipsets. First, record the USB vendor and product ID. Then, examine the device interface's declared class and the actual driver bound in the kernel. Whether the application can retrieve the first frame should be verified at the end.

Distinguish between USB enumeration failure and video driver not binding

dmesg | tail -n 60
ls /sys/bus/usb/devices
ls -l /sys/class/video4linux

After insertion, there are no enumeration events. First check power supply, port, and cable. When lsusb is installed, use lsusb to record the ID, and use lsusb -t to inspect the interface driver. For standard USB Video Class devices, prioritize verifying the uvcvideo driver; for older dedicated chips, the specific USB ID must be supported by a corresponding GSPCA sub-driver; installing only the GSPCA core driver does not guarantee the appearance of a video device.

After video0, what is the next step to verify?

If v4l-utils is installed, execute v4l2-ctl --list-devices, and on the corresponding node run v4l2-ctl -d /dev/video0 --list-formats-ext. For multi-node setups, select a node that supports video capture and the target format, then in the application choose the resolution from the list and save a local frame. If a node exists but produces no image, check the format, permissions, and device occupancy. Do not stream the camera feed to the public internet for testing. If regression occurs after adding a new driver, first stop the capture service, then restore the previously known working driver combination.

Reference

Related guide · Can a security camera record to an SSD attached to OpenWrt?

Explore hardware

Comments