UVC Webcam Issues

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

@edge2:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble
@edge2:~$ uname -a
Linux edge2 6.1.84 #1.7.3 SMP Fri Nov 29 13:13:59 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Please describe your issue below:

UVC Webcams do not appear to be working in this kernel. I have tried multiple webcams that work well on VIM4 and other Linux devices and they are not working here on the edge2. I am using the 6.1 kernel as that was recommended for dual monitor in this post:
https://forum.khadas.com/t/edge2-linux-dual-monitor-difficulties/24263/4

Post a console log of your issue below:


@edge2:~$ v4l2-ctl --list-formats-ext -d 0
Failed to open /dev/video0: No such device
@edge2:~$ v4l2-ctl --list-formats-ext -d 1
Failed to open /dev/video1: No such device
@edge2:~$ v4l2-ctl --list-formats-ext -d 2
Failed to open /dev/video2: No such device
@edge2:~$ v4l2-ctl --list-formats-ext -d 3
Failed to open /dev/video3: No such device

@edge2:~$ gst-device-monitor-1.0
Probing devices...


(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.722: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.722: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.722: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.725: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.725: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.725: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed

(gst-device-monitor-1.0:6077): GStreamer-CRITICAL **: 07:21:10.727: gst_element_message_full_with_details: assertion 'GST_IS_ELEMENT (element)' failed
Segmentation fault

@edge2:~$ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 001: Dev 002, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 001: Dev 003, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 001: Dev 003, If 1, Class=Video, Driver=uvcvideo, 480M

Hello @DoomMonkey

@Jacobe will help you later.

Hello @DoomMonkey

Connected to the ucv webcam, the video node should be /dev/video60.

And you can run command dmesg -w, watch the log while insert the uvc webcam, the log should like followings:

[   59.543073] usb 3-1: new high-speed USB device number 2 using ehci-platform
[   61.968881] usb 3-1: New USB device found, idVendor=046d, idProduct=082d, bcdDevice= 0.11
[   61.968898] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[   61.968905] usb 3-1: Product: HD Pro Webcam C920
[   61.968910] usb 3-1: SerialNumber: ECE6DD2F
[   61.969495] usb 3-1: Found UVC 1.00 device HD Pro Webcam C920 (046d:082d)