imx6q camera preview failed

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

imx6q camera preview failed

Jump to solution
1,980 Views
dirtyrain
Contributor II

platform : imx6q android

 

After porting camera driver, there is the camera.apk showed in lanucher.Opened the apk, there is no preview image, as showed blew.

 

184933_184933.pngQQ图片20170518101821.png

 

Here is the kernel.log and logcat.log

Can you tell me how to debug this issue???

Original Attachment has been moved to: kernel.log.zip

Original Attachment has been moved to: log20170526.rar

Original Attachment has been moved to: logcat.log.zip

Labels (3)
0 Kudos
1 Solution
1,656 Views
dirtyrain
Contributor II

Thanks for Joan's supporting, I have fixed the issue.It's because of using wrong ipu. Changing from ipu1 to ipu0, it works normally.

View solution in original post

0 Kudos
12 Replies
1,657 Views
dirtyrain
Contributor II

Thanks for Joan's supporting, I have fixed the issue.It's because of using wrong ipu. Changing from ipu1 to ipu0, it works normally.

0 Kudos
1,656 Views
dirtyrain
Contributor II

Dear Joan,

         Now I found the camera progress hung at the (\kernel_imx\driver\mxc\ipu3\ipu_device.c):

         static int ipu_task_thread(void *argv)
         {...

line3245:            printk("befor wait event interrupt...\n");
                           wait_event_interruptible(thread_waitq, find_task(&tsk, curr_thread_id));
                           printk("after wait event interrupt...\n");

         ... 

         }           

         always waiting event interrupt, is this the normal issue??????

0 Kudos
1,656 Views
joanxie
NXP TechSupport
NXP TechSupport

mipi can support yuv422, could you tell me what mx6q board you use and andorid bsp? and send the log file to check.

0 Kudos
1,656 Views
dirtyrain
Contributor II

Dear Joan,

         After I changed the ipu_id from 0 to 1, there was ipu task in kernel log. But the preview couldn't work any more, there was no data after previewing.And the log said, "ERROR: v4l2 capture: mxc_p4l_dqueue timeout enc_counter 0".

         How to slove this issue?????Here is the kernel log in "20170531.rar".

0 Kudos
1,656 Views
dirtyrain
Contributor II

Dear Joan,

           Here is the "log20170526.rar" ,   including  logcat "logcat.txt" and kernel mesg "driver.txt".

           We use the board imx6qbresd, and android bsp "The i.MX Android. L5.0.0_1.0.0-ga ".

Thx

0 Kudos
1,656 Views
dirtyrain
Contributor II

I have measure the MIPI singal, output normal .So I thought it was because of the platform. Maybe I forgot some confirgrations.Does anyone can help???

0 Kudos
1,656 Views
joanxie
NXP TechSupport
NXP TechSupport

if  you use mipi camera, first ,pls refer to the enclosed file to check if your mipi setting is correct or not, then you can use the unit test to test the camera.

0 Kudos
1,656 Views
dirtyrain
Contributor II

QQ图片20170522110430.jpg

Dear Joan,

            after check ,the mipi single is output and reviced. But it split for 4 parts, how to debug this issue???

0 Kudos
1,656 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use rgb565 interlaced mode? if yes, pls check if you set the correct register, for unit test, you can find it in the bsp.

0 Kudos
1,656 Views
dirtyrain
Contributor II

No, I use the yuv422. 

BTW, I find there is no use to change fmt setting V4L2_PIX_FMT_UYVY/V4L2_PIX_FMT_YVYU/...

Did we support the yuv422 pixel fmt for changing?????

0 Kudos
1,656 Views
dirtyrain
Contributor II

Dear Joan,

         Could you please show me the way about unit test????

0 Kudos
1,656 Views
dirtyrain
Contributor II

Thanks for your reply, let me check it out and feeding back to you ASAP.

0 Kudos