USB camera support for s32g-vnp-rdb2 board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB camera support for s32g-vnp-rdb2 board

272 Views
walking1
Contributor I

I need to connect "logitech hd pro webcam c920" to s32g-vnp-rdb2's usb port (I am using micro usb to type-A convertor). Board is detecting the camera as a USB device but not as USB camera. I cloned github.com/nxp-auto-linux/auto-yocto-bsp (bsp35.0) and enabled uvc and v4l2 in kernel and tried doing yocto build for "fsl-image-auto". But, after successful building, I am not finding "CONFIG_USB_VIDEO_CLASS" macro in kernel config file. Please let me know necessary steps to

  1. Enable usb camera, so that kernel creates device node under /dev directory.
  2. Include Gstreamer library in the yocto build.

 

0 Kudos
Reply
1 Reply

239 Views
chenyin_h
NXP Employee
NXP Employee

Hello,@walking1

Thanks for the question.

I did some tests on our local RDB2 with BSP35, following are my comments for your reference:

  1. Besides the def config of the BSP35, select the following:

First:

Device Drivers --->

Multimedia support --->

Media drivers --->

[*] Media USB Adapters --->

USB Video Class (UVC)

Then:

Device Drivers --->

[*] USB support --->

USB Gadget Support --->

[*] USB Webcam function

Then building the kernel images, after reboot, I could see the /dev/video0&1 device node. I tested it and found that an in-hand camera work fine.

 

  1. For the gstreamer, it is common yocto issue than NXP specific one, you may reference the Yocto official guide for adding new packages.

Hope it helps.

 

Best Regards

Chenyin

0 Kudos
Reply