I first booted a Knoppix live USB stick to see if it works as it should and it worked perfectly. I was able to use it with some uvc testing program and I saw it filming. I then went ahead to check what kernel modules it was using and found out that it is using the uvcvideo kernel module.
The problem was when I tried to compile it in the Gentoo kernel. I searched for "uvc" with nconfig/menuconfig/xconfig and the results i get were:
Code: Select all
│ Symbol: USB_CONFIGFS_F_UVC [=y]
│ Type : bool
│ Prompt: USB Webcam function
│ Location:
│ -> Device Drivers
│ -> USB support (USB_SUPPORT [=y])
│ -> USB Gadget Support (USB_GADGET [=y])
│ -> USB Gadget functions configurable through configfs (USB_CONFIGFS [=y]) │
│ Defined at drivers/usb/gadget/Kconfig:445 │
│ Depends on: USB_SUPPORT [=y] && USB_GADGET [=y] && USB_CONFIGFS [=y] && VIDEO_V4L2 [=y] && VIDEO_DEV [=y] │
│ Selects: VIDEOBUF2_VMALLOC [=y] && USB_F_UVC [=y] │
│
│
│ Symbol: USB_F_UVC [=y]
│ Type : tristate
│ Defined at drivers/usb/gadget/Kconfig:203
│ Depends on: USB_SUPPORT [=y] && USB_GADGET [=y]
│ Selected by [y]:
│ - USB_CONFIGFS_F_UVC [=y] && USB_SUPPORT [=y] && USB_GADGET [=y] && USB_CONFIGFS [=y] && VIDEO_V4L2 [=y] && VIDEO_DEV [=│
│ - USB_G_WEBCAM [=y] && <choice> && VIDEO_V4L2 [=y]
As you can see, there is no "uvcvideo" in the kernel, so I can not compile it. I tried searching around, both in the kernel and trough portage and couldn't find any "uvcvideo". Anyway the required files are in the kernel, as this command shows:
Code: Select all
$ locate uvcvideo | grep src
/usr/src/linux-4.17.13-gentoo/Documentation/media/v4l-drivers/uvcvideo.rst
/usr/src/linux-4.17.13-gentoo/drivers/media/usb/uvc/uvcvideo.h
/usr/src/linux-4.17.13-gentoo/include/uapi/linux/uvcvideo.h
Here is the output of dmesg related to the webcam:
Code: Select all
[ 1.112095] usb 8-2: new high-speed USB device number 2 using xhci_hcd
[ 1.391971] usb 8-2: New USB device found, idVendor=0458, idProduct=708f, bcdDevice= 0.04
[ 1.392214] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.392363] usb 8-2: Product: FaceCam 1000X
[ 1.392502] usb 8-2: Manufacturer: KYE Systems Corp.
[ 86.856484] usb 8-2: USB disconnect, device number 2
[ 89.327034] usb 8-2: new high-speed USB device number 3 using xhci_hcd
[ 89.605706] usb 8-2: New USB device found, idVendor=0458, idProduct=708f, bcdDevice= 0.04
[ 89.605709] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 89.605711] usb 8-2: Product: FaceCam 1000X
[ 89.605713] usb 8-2: Manufacturer: KYE Systems Corp.
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


