i.MX35 PDK Camera Not Working

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

i.MX35 PDK Camera Not Working

Jump to solution
1,161 Views
mattias2
Contributor I

Has anyone managed to get the camera to work on the i.MX35 PDK? Camera functionality is not included in the demo application and I have had a hard time figuring out how to use it in an application. 

 

I have written an application which uses video4linux according to their web site and according to the test program for the i.MX35 PDK. My application works fine (no error codes, pointers to image buffers not 0) but the image is all black. Every byte is zero (I have tried V4L2_PIX_FMT_RGB565 and V4L2_PIX_FMT_YVU420). OV2640 is loaded as a kernel module.

 

Any suggestions?

 

0 Kudos
1 Solution
413 Views
mattias2
Contributor I

Problem solved!

 

I forgot to set member m.offset in struct v4l2_buffer before calling ioctl VIDIOC_QBUF.

 

View solution in original post

0 Kudos
1 Reply
414 Views
mattias2
Contributor I

Problem solved!

 

I forgot to set member m.offset in struct v4l2_buffer before calling ioctl VIDIOC_QBUF.

 

0 Kudos