i.MX35 PDK Camera Not Working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX35 PDK Camera Not Working

跳至解决方案
1,911 次查看
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 项奖励
回复
1 解答
1,163 次查看
mattias2
Contributor I

Problem solved!

 

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

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,164 次查看
mattias2
Contributor I

Problem solved!

 

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

 

0 项奖励
回复