I'm working with a board which has Linux installed. Eventually it will be used as a USB webcam. I built the kernel and added a UVC driver to it.
I'm following these instructions to test it. Unfortunately when I connect my host and run the application, I get the following error:
v4l2_core: (jpeg decoder) error while decoding frame
I'd like to test the application that I'm using on my host machine. There are several issues with that.
On the linux board that I use, when I execute modrobe g_webcam
, I get a new video device appears in /dev
, /dev/video0
. When I execute it on my host, Linux ubuntu 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
, nothing happens. I google around but I wasn't able to find an answer to why this is happening.
- So how do I create a video device on linux and bind it to UVC gadget with
g_webcam
? - Let's say we figured out step 1. After I execute
uvc-gadget -u /dev/video<uvc video node #> -v /dev/video<vivid video node #>
, how would I read data from the gadget?
Any help is appreciated.