Skip to content

Webcam detected in my own wsl2 but still no /dev/video0 #353

Description

@Katzeee

On kernel 5.10.102.1
I can find my cameras by lsusb and dmesg but there is no /dev/video*

xac-lenovo@Xac-lenovo:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1b3f:2247 Generalplus Technology Inc. GENERAL WEBCAM
Bus 001 Device 002: ID 174f:2459 Syntek Integrated Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[   39.808193] usb 1-1: new high-speed USB device number 2 using vhci_hcd
[   39.958332] usb 1-1: SetAddress Request (2) to port 0
[   39.998173] usb 1-1: New USB device found, idVendor=174f, idProduct=2459, bcdDevice= 0.08
[   39.998175] usb 1-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[   39.998175] usb 1-1: Product: Integrated Camera
[   39.998176] usb 1-1: Manufacturer:
[   39.998176] usb 1-1: SerialNumber: 0001
[   42.276715] vhci_hcd vhci_hcd.0: pdev(0) rhport(1) sockfd(3)
[   42.276717] vhci_hcd vhci_hcd.0: devid(131082) speed(3) speed_str(high-speed)
[   42.276740] vhci_hcd vhci_hcd.0: Device attached
[   42.618364] usb 1-2: new high-speed USB device number 3 using vhci_hcd
[   42.768229] usb 1-2: SetAddress Request (3) to port 1
[   42.800316] usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x83 has an invalid bInterval 32, changing to 9
[   42.801390] usb 1-2: New USB device found, idVendor=1b3f, idProduct=2247, bcdDevice= 1.00
[   42.801392] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   42.801393] usb 1-2: Product: GENERAL WEBCAM
[   42.801394] usb 1-2: Manufacturer: GENERAL
[   49.139456] hv_balloon: Max. dynamic memory size: 3986 MB

I compiled my own WSL followed by the instructions in https://github.com/dorssel/usbipd-win/wiki/WSL-support#building-your-own-usbip-enabled-wsl-2-kernel. and #257

xac-lenovo@Xac-lenovo:/usr/src/4.19.43-microsoft-standard$ sudo make modules_install -j 12
  INSTALL drivers/hid/usbhid/usbhid.ko
  INSTALL drivers/media/common/videobuf2/videobuf2-common.ko
  INSTALL drivers/media/common/videobuf2/videobuf2-dma-contig.ko
  INSTALL drivers/media/common/videobuf2/videobuf2-memops.ko
  INSTALL drivers/media/common/videobuf2/videobuf2-v4l2.ko
  INSTALL drivers/media/common/videobuf2/videobuf2-vmalloc.ko
  INSTALL drivers/media/dvb-core/dvb-core.ko
  INSTALL drivers/media/mc/mc.ko
  INSTALL drivers/media/platform/aspeed-video.ko
  INSTALL drivers/media/platform/cadence/cdns-csi2rx.ko
  INSTALL drivers/media/platform/cadence/cdns-csi2tx.ko
  INSTALL drivers/media/usb/gspca/gspca_main.ko
  INSTALL drivers/media/usb/gspca/gspca_stk014.ko
  INSTALL drivers/media/usb/gspca/gspca_stk1135.ko
  INSTALL drivers/media/usb/pwc/pwc.ko
  INSTALL drivers/media/usb/stkwebcam/stkwebcam.ko
  INSTALL drivers/media/usb/uvc/uvcvideo.ko
  INSTALL drivers/media/v4l2-core/v4l2-dv-timings.ko
  INSTALL drivers/media/v4l2-core/v4l2-fwnode.ko
  INSTALL drivers/media/v4l2-core/videodev.ko
  INSTALL drivers/net/mii.ko
  INSTALL drivers/net/usb/cdc_ether.ko
  INSTALL drivers/net/usb/cdc_ncm.ko
  INSTALL drivers/net/usb/rndis_host.ko
  INSTALL drivers/net/usb/usbnet.ko
  INSTALL drivers/usb/class/cdc-acm.ko
  INSTALL drivers/usb/core/usbcore.ko
  INSTALL drivers/usb/common/usb-common.ko
  INSTALL drivers/usb/phy/phy-generic.ko
  INSTALL drivers/usb/serial/ch341.ko
  INSTALL drivers/usb/serial/cp210x.ko
  INSTALL drivers/usb/serial/ftdi_sio.ko
  INSTALL drivers/usb/serial/usbserial.ko
  INSTALL drivers/usb/storage/usb-storage.ko
  INSTALL drivers/usb/usbip/usbip-core.ko
  INSTALL drivers/usb/usbip/vhci-hcd.ko
  DEPMOD  5.10.102.1-microsoft-standard-WSL2+
xac-lenovo@Xac-lenovo:/usr/src/4.19.43-microsoft-standard$ sudo make install -j12
sh ./arch/x86/boot/install.sh 5.10.102.1-microsoft-standard-WSL2+ arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.10.102.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.102.1-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.10.102.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.102.1-microsoft-standard-WSL2+
update-initramfs: Generating /boot/initrd.img-5.10.102.1-microsoft-standard-WSL2+
W: Couldn't identify type of root file system for fsck hook
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.10.102.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.102.1-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.10.102.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.102.1-microsoft-standard-WSL2+
run-parts: executing /etc/kernel/postinst.d/xx-update-initrd-links 5.10.102.1-microsoft-standard-WSL2+ /boot/vmlinuz-5.10.102.1-microsoft-standard-WSL2+

I don't know how to do to fix it.
please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WSLApplies to WSL only

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions