[i.MX8MPEVK] UVC Gadget Function not working properly in imx-linux-langdale(6.1.1)

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

[i.MX8MPEVK] UVC Gadget Function not working properly in imx-linux-langdale(6.1.1)

610 Views
SK-Soft
Contributor I
Hi,
 
I'm developing an UVC Gadget Device on imx8mp-lpddr4-evk board.
 
About 6 months ago, I successfully tested the uvc-gadget function according to the instruction in the following link:
 
At that time, I used kernel-5.10.72 (imx-linux-hardknott)
 
 
Now I'm testing the same uvc-gadget function in kernel-6.1.1 (imx-linux-langdale)
Because I'm using 3rd-party device drivers based on the linux-kernel-6.1.
 
But UVC Gadget function doesn't work properly.
After some further tests, I found that UVC streaming data is randomly broken.
 
To simplify the case, I tested UVC-Gadget Function using 3 NXP's Demo Images without any changes.
 
Demo ImageLF_v5.10.72-2.2.2_image_IMX8MPEVKLF_v6.1.1_1.0.0_images_IMX8MPEVK
  LF_v6.6.3-1.0.0_images_IMX8MPEVK
   
TestOKNG
   
/sys/class/udc38100000.dwc338100000.usb
   
Rx Data in Host PCFF D8 FF E0 00 10 4A 46  49 46 00 01 01 01 00 6000 00 00 00 00 00 00 00  02 F0 05 00 00 00 00 00
(example)00 60 00 00 FF DB 00 43  00 03 02 02 03 02 02 03FF D8 FF E0 00 10 4A 46  49 46 00 01 01 01 00 60
 03 03 03 04 03 03 04 05  08 05 05 04 04 05 0A 0700 60 00 00 FF DB 00 43  00 03 02 02 03 02 02 03
 03 03 03 04 03 03 04 05  08 05 05 04 04 05 0A 07
   
 ( Same data as wallpaper.jpg )( Data Broken in various positions and sizes )
 
 
Please check this problems and give me any suggestions.
 
thanks in advance.
Andy Yang

 

Labels (1)
0 Kudos
Reply
2 Replies

565 Views
jimmychan
NXP TechSupport
NXP TechSupport

When you plug the camera, is the driver loaded properly?

When you using the camera, is there any error message come out in the console log?

Could you tell me more test steps? so we could try it on our evk board.

0 Kudos
Reply

558 Views
SK-Soft
Contributor I

I'm not testing UVC Web Camera.
[X] WebCAM <--- UVC ---> i.MX8MPEVK

I'm testing UVC-Gadget Function in standalone mode.
[O] i.MX8MPEVK <--- UVC ---> Host PC

The detailed test steps are in the link above in my first message.
(https://community.nxp.com/t5/i-MX-Processors/UVC-webcam-gadget-on-i-MX8-HW/td-p/1371140)

After this configuration, I can see the camera device in the Host PC's device manager.

But it's working properly only with the kernel 5.10.72.

0 Kudos
Reply