About preview function in i.MX6SL.

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

About preview function in i.MX6SL.

Jump to solution
8,548 Views
keitanagashima
Senior Contributor I

Dear All,

Hello. I tested the preview function on MCIMX6SLEVK.

But, the preview didn't function.

Could you tell me the how to preview on MCIMX6SLEVK?

[Board] : MCIMX6SLEVK (LCD: MCIMX28LCD)

[Camera] : OV5642 module

[Image] : L3.10.53_1.0.0 (PreBuild Image)

[gst-launch command line]

$ modprobe ov5642_camera

$ modprobe mxc_v4l2_capture

$ gst-launch-1.0 imxv4l2src device=/dev/video0 ! 'video/x-raw,format=(string)UYVY,width=640,height=480,framerate=(fraction)30/1' ! imxv4l2sink

[Error message]

Can't get caps from capture device, use the default setting.

Perhaps haven't capture device.

====== IMXV4L2SRC: 4.0.2 build on Jan  5 2015 13:31:02. ======

set color key:00010203

====== IMXV4L2SINK: 4.0.2 build on Jan  5 2015 13:31:02. ======

WARNING: erroneous pipeline: could not link imxv4l2src0 to imxv4l2sink0

Best Regards,

Keita

Labels (3)
1 Solution
4,811 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

View solution in original post

0 Kudos
31 Replies
1,097 Views
norishinozaki
Contributor V

Hi Qiang,

I tried to run mx6s_v4l2_capture.out, but I can't find csi_v4l2_capture.ko in my sdcard.

I configured exactly as you showed us in the last mail.

Here is the all media modules created by bitbake linux-imx -c compile -f && bitbake linux-imx -c deploy.

./media/platform/mxc/capture/ov5640_camera_mipi.ko

./media/platform/mxc/capture/mxc_v4l2_capture.ko

./media/platform/mxc/capture/v4l2-int-device.ko

./media/platform/mxc/capture/ov5640_camera_int.ko

./media/platform/mxc/capture/ipu_fg_overlay_sdc.ko

./media/platform/mxc/capture/adv7180_tvin.ko

./media/platform/mxc/capture/ipu_csi_enc.ko

./media/platform/mxc/capture/ipu_bg_overlay_sdc.ko

./media/platform/mxc/capture/ipu_still.ko

./media/platform/mxc/capture/ipu_prp_enc.ko

./media/platform/mxc/capture/ov5642_camera.ko

./media/platform/mxc/subdev/ov5640_camera.ko

./media/platform/mxc/subdev/mx6s_capture.ko

./media/platform/mxc/subdev/mxc_vadc.ko

./media/platform/mxc/subdev/ov5642_camera.ko

./media/usb/uvc/uvcvideo.ko

./media/usb/gspca/gspca_main.ko

./media/v4l2-core/videobuf2-vmalloc.ko

Do I miss other configurations in kernel?

Attached is my .config and the captures.

Best regards,

Nori Shinozaki

0 Kudos
1,097 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Since you had built in the driver, just run the test command directly: /unit_tests/mx6s_v4l2_capture.out -m 0 -d /dev/video0

The csi_v4l2_capture.ko was replaced by mx6s_capture.ko in 3.14.28 kernel.

1,097 Views
norishinozaki
Contributor V

Hello Qiang,

Confirmed working finally.

I didn't need any modules in this configuration.

Now how can I run it with gstreamer?

Customers need it with gstreamer.

Thank you!

Nori Shinozaki

0 Kudos
1,097 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

When the camera driver is built in kernel, it is /dev/video0 and the v4l2 output device is the /dev/video1, so the gstreamer test command is:

     gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink device=/dev/video1

For default BSP, it will build camera driver as modules, so v4l2 output device is the /dev/video0, and the camera is /dev/video1, so the test commands are:

$ insmod mx6s_capture.ko

$ insmod ov5642_camera.ko

$ gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink device=/dev/video0

1,106 Views
karina_valencia
NXP Apps Support
NXP Apps Support

robby​  please continue with the follow up,

0 Kudos
1,106 Views
robby
NXP Employee
NXP Employee

Hi Karina,


We are now busy with NPI projects and have no resource to support this. Could you please ask AE to support this?

0 Kudos
1,106 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Qiang_FSL​ are you able to continue with the follow up here?

0 Kudos
1,106 Views
keitanagashima
Senior Contributor I

Dear Yuri,

Hello. I added the "csi" parameter in mmcargs.

But, the OV5642 wasn't recognized by i.MX6.

I think that .dtb (.dts) is wrong in L3.14.28 for i.MX6SLEVK.

Please tell me the how to operate the OV5642 in L3.14.28.

We must resolve the issue asap.

Best Regards,

Keita

0 Kudos
1,106 Views
Yuri
NXP Employee
NXP Employee

Hi,

I forwarded request to the team.

About preview function in i.MX6SL EVK under L3.14.28_1.0.0

Regards,

Yuri

0 Kudos
1,106 Views
keitanagashima
Senior Contributor I

Hi Yuri,

I tested qt5 image.

My build image and pre-build image didn't operate correctly.

Best Regards,

Keita

0 Kudos
1,106 Views
keitanagashima
Senior Contributor I

Dear Yuri,

Hello. Thank you for your advice.

I replace the dtb file and i.MX6SL preview was success!

i.MX6SL_Preview.JPG

Best Regards,

Keita

0 Kudos