MIPI CSI-2 camera input on iMX6Q

cancel
Showing results for 
Search instead for 
Did you mean: 

MIPI CSI-2 camera input on iMX6Q

Jump to solution
2,580 Views
hyunhoshin
Contributor III

I'm using iMX6Q custom board(base on mx6q_sabresd)

8mega pixel(3264x2448) MIPI CSI-2 camera input

 

camera module output is 3264x2446@11fps, UYVY

 

I can get only below 1024 x 1024 size image via V4L2 interface.

(i couldn't get 1920x1080 or 3264x2448 pixel size image)

 

i don't know what is wrong...

 

I'm using 3.0.15 kernel..

 

help me... please...

Original Attachment has been moved to: v4l_sample_app.zip

Labels (2)
1 Solution
142 Views
hyunhoshin
Contributor III

this problem is solved

it was problem of IC(Image Converter) limitation.

i can get more than 1024 x 1024 pixel image without IC

thanks for your concern

View solution in original post

0 Kudos
10 Replies
142 Views
johnturnur
Contributor III


Hi,

hyunho shin

What changes does it requires to do this?

Can you provide the patch?

0 Kudos
142 Views
hyunhoshin
Contributor III

Hi john,

you can disable IC(Image Converter) by below code

struct v4l2_control ctrl;

ctrl.id = V4L2_CID_MXC_SWITCH_CAM;

ctrl.value = 1;

ioctl(fd, VIDIOC_S_CTRL, &ctrl);


fd is device number of v4l2 camera device node

(also "ctrl.value = 0" is enable IC)

good luck!

142 Views
yingtaoqian
Contributor I

Thinks!

This's I need.

0 Kudos
142 Views
LeonardoSandova
Specialist I

could you show the command you are using to capture the data?

0 Kudos
142 Views
hyunhoshin
Contributor III

I attached v4l2 sample application("v4l_sample_app.zip")

this application work fine with UVC camera

you see only "capture_raw_frames.c" in zip file

command line is : $ ./capture_test -c 5 -w 3264 -e 2400 -o

(option description -c [capture frame number] -w [output image width] -e [output image height] -o(output to yuv file)

0 Kudos
142 Views
yossishukron
Contributor III

-m i is defining the sensor resolution did you try to use it ?

0 Kudos
142 Views
hyunhoshin
Contributor III


i try to -m option but it's same result.

0 Kudos
142 Views
yossishukron
Contributor III

those are the options for -m which one did you try.

VGA_640_480       -iw 640 -ih 480     -m 0
QVGA_320_240     -iw 320 -ih 240       -m 1
NTSC_720_480  -iw 720 -ih 480        -m 2
PAL_720_576        -iw 720 -ih 576 -m 3
720P_1280_720  -iw 1280 -ih 720 -m 4

1080P_1920_1080  -iw 1920 -ih 1080 -m 5

QSXGA_2592_1944   -iw 2592 -ih 1944 -m 6

QCIF_176_144      -iw 176 -ih144 -m  7

XGA_1024_768       -iw 1024 -ih 768 -m 8


did you check if the CSI registers  change ?


CSI_SENS_FRM_SIZE_ suppose to change.




143 Views
hyunhoshin
Contributor III

this problem is solved

it was problem of IC(Image Converter) limitation.

i can get more than 1024 x 1024 pixel image without IC

thanks for your concern

View solution in original post

0 Kudos
142 Views
karina_valencia
NXP Apps Support
NXP Apps Support

LeonardoSandovalGonzalez / hyunhoshin  can you answer the  question from Yossi?

0 Kudos