v4l2 capture: slave not found

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

v4l2 capture: slave not found

6,830 Views
mcergun
Contributor III

I am developing a driver for our custom in house sensor. The sensor only supports grayscale color formatting and I somehow managed to get CSI port start pumping data into /dev/video0.

But the problem is when I try to use V4L with say gstreamer command

gst-launch-1.0 imxv4l2src num-buffers=1 device=/dev/video0 ! filesink location=/home/root/sample.raw

The answer is as below:

MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
MT6415CA: ioctl_s_power(2130787148, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
Error Notifier: received but ignored 0
MT6415CA: ioctl_g_chip_indent()
MT6415CA: ioctl_s_power(2130787148, 0)
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
====== IMXV4L2SRC: 4.0.9 build on Jul 11 2016 15:47:15. ======
Setting pipeline to PAUSED ...
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
MT6415CA: ioctl_s_power(2130787148, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
Error Notifier: received but ignored 0
MT6415CA: ioctl_g_chip_indent()
MT6415CA: ioctl_s_power(2130787148, 0)
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...

Most of the messages are my debug messages. I am making sure that I register my device with v4l2_int_device_register and result is not negative when the function is called within my _probe function.

I changed mxc_v4l_open in order to see which of the statement below returns true.

if(cam->sensor==NULL|| cam->sensor->type!=v4l2_int_type_slave)

and it seems cam->sensor is NULL and that's why mxc_v4l_open function prints slave not found message. 

I am now digging to see where this struct is registered to see what's wrong. Any ideas are welcome.

15 Replies

3,963 Views
mcergun
Contributor III

After switching to gstreamer-imx instead of imx-gst plugins, I was able to capture some data, but mostly gibberish. I somehow screwed up my build directory and accidentally compiled it with NONGATED clock mode settings and VOILA, I was able to capture frames from the camera. Now the only problem is sometimes mxc_capture gets into an endless loop of mxc_camera_callback function with no way out. If I can figure that out, too, the capture path is done.

0 Kudos

3,963 Views
igorpadykov
NXP Employee
NXP Employee

probably reason is that imx-gst plugins do not support grayscale
as valid format, also IPU/VPU doesn't make bayer conversion and
recognize bayer as a valid image format.

IPU - bayer pattern conversion 

https://community.nxp.com/thread/319780 

0 Kudos

3,963 Views
mcergun
Contributor III

After converting file pointers to file paths in mxc_v4l_open() in mxc_v4l2_capture.c it seems that when I use gst-launch pipelines like

gst-launch-1.0 imxv4l2src device=/dev/video0 ! fakesink

the system calls both /dev/video0 and /dev/video1, and since /dev/video1 is not populated, I get no slave found error. But that still does not solve my error. I should get a stream out of /dev/video0 in any case.

3,963 Views
igorpadykov
NXP Employee
NXP Employee

in general one should be able to specify the camera or video device number to use
as default when loading the mxc_v4l2_capture driver - this should be done by the
kernel module parameter 'video_nr':

    modprobe mxc_v4l2_capture video_nr=1

http://www.linuxtv.org/downloads/legacy/video4linux/API/V4L2_API/spec/ch01s01.html

3,963 Views
mcergun
Contributor III

Changing video_nr parameter only changes starting number of the 2 channels. For example, if I write 

modprobe mxc_v4l2_capture video_nr=1

I get /dev/video1 and /dev/video2, and if I write 

modprobe mxc_v4l2_capture video_nr=5

I get /dev/video5 and /dev/video6.

Today I discovered imxv4l2src was returning some errors but since gst-debug-level was not high enough I was not aware of them. The errors are as below:

0:00:01.529042001 1105 0xcb7e80 ERROR imxv4l2 gstimxv4l2.c:1007:gst_imx_v4l2capture_set_function: can't identify capture sensor type.

0:00:01.529174667 1105 0xcb7e80 ERROR imxv4l2 gstimxv4l2.c:1152:gst_imx_v4l2_open_device: v4l2 capture set function failed.

If I can get a lead on why these errors are returned, I may be able to fix them. 

Also I have another question. Right now I am using fsl-image-multimedia-full mage with mostly default settings with some extra installs. I can't seem to decipher bblayers well enough to make sure gstreamer-imx is included in the image as with its latest release. Since its last releases have some fixes for grayscale captures. Can you give some information about this, too?

0 Kudos

3,963 Views
mcergun
Contributor III

Replying to my own question; the errors mentioned are caused by some static string comparing inside imx-gstplugins.

#define MXC_V4L2_CAPTURE_NAME "mxc_v4l2"
#define MXC_V4L2_CAPTURE_CAMERA_NAME "ov"
#define MXC_V4L2_CAPTURE_TVIN_NAME "adv"
#define MXC_V4L2_CAPTURE_TVIN_VADC_NAME "vadc"
#define PXP_V4L2_CAPTURE_NAME "csi_v4l2"

if (!strncmp (chip.match.name, MXC_V4L2_CAPTURE_CAMERA_NAME, 2)) {
handle->dev_itf.v4l2capture_config = (V4l2captureConfig)gst_imx_v4l2capture_config_camera;
handle->support_format_table = g_camera_format_IPU;
} else if (!strncmp (chip.match.name, MXC_V4L2_CAPTURE_TVIN_NAME, 3)) {
handle->dev_itf.v4l2capture_config = (V4l2captureConfig)gst_imx_v4l2capture_config_camera;
handle->support_format_table = g_camera_format_IPU;
handle->is_tvin = TRUE;
if (gst_imx_v4l2capture_config_tvin_std (handle)) {
GST_ERROR ("can't set TV-In STD.\n");
return -1;
}
} else {
GST_ERROR ("can't identify capture sensor type.\n");
return -1;
}

So, module writes somehow had the weird idea that every capture device should be an omnivision made one, and every tvin device should be an adv made one.

Changed my camera name to "ovmt6415ca_camera" from "mt6415ca_camera" fixed those errors, but I still don't get a stream.

0 Kudos

3,963 Views
igorpadykov
NXP Employee
NXP Employee

I would suggest to check linux documentation (Freescale_Yocto_Project_User's_Guide.pdf)

http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.1.0_LINUX_DOCS&Parent_nodeId=133769948107170617... 

0 Kudos

3,962 Views
igorpadykov
NXP Employee
NXP Employee

please check sect.7.3.6 Video recording attached Linux Guide

and use L4.1.15

http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.1.0_LINUX_DOCS&Parent_nodeId=133769948107170617... 

~igor

0 Kudos

3,962 Views
mcergun
Contributor III

Pipeline launch string suggested in the document is similar to the one I use.

$GSTL imxv4l2src device=$DEVICE num-buffers=300 ! $INPUT_CAPS ! queue ! vpuenc_h264 ! $ $MUXER ! filesink location=output.$EXTENSION

Still, I tried that launch string with corresponding input caps (grayscale 64x64 30fps). No success yet, Slave not found error persists.

Also I'm on Freescale i.MX Release Distro 4.1.15-1.2.0

0 Kudos

3,962 Views
igorpadykov
NXP Employee
NXP Employee

Hi mert

please check gray camera bring-up steps on

https://community.freescale.com/message/309833#309833

https://community.freescale.com/message/331888

first please try with imx-test (.test/mxc_v4l2_test)

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

camera connections can be checked with Table 66. Camera Input Signal Cross

Reference, Format, and Bits Per Cycle i.MX6DQ Datasheet

http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQCEC.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,962 Views
mcergun
Contributor III

Hi Igor,

I checked the links you have posted, sadly most of them don't help to someone in my position as I am able to capture byte stream but not video stream. I can get bytes put into memory and see them with simple viewers such as 'cat'. The bytes and synchronization are not perfect but that'll have to do until I figure out how to get a "video data" out of those bytes.

Today I activated all debug messages and below is the result:

gst-launch-1.0 imxv4l2src ! fakesink
[INFO] Product Info: i.MX6Q/D/S
display(/dev/fb0) resolution is (1024x768).
v4l2_debug: in mxc_v4l_open, file = -1466735680
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466734912
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
v4l2_debug: in mxc_v4l_open, file = -1466110400
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466113856
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
v4l2_debug: in mxc_v4l_open, file = -1466084032
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
v4l2_debug: in mxc_v4l_open, file = -1466082112
v4l2_debug: in mxc_v4l_open, dev = -1468565504
v4l2_debug: in mxc_v4l_open, cam = -1464659968
v4l2_debug: in mxc_v4l_open, debug1 = 0
v4l2_debug: in mxc_v4l_open, debug2 = -1464657608
v4l2_debug: in mxc_v4l_open, debug3 = -1466216832
v4l2_debug: in mxc_v4l_open, debug21 = 0
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
cam->sensor == NULL
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
====== IMXV4L2SRC: 4.0.9 build on Jul 11 2016 15:47:15. ======
v4l2_debug: in mxc_v4l_open, file = -1466765120
Setting pipeline to PAUSED ...
v4l2_debug: in mxc_v4l_open, dev = -1468566528
v4l2_debug: in mxc_v4l_open, cam = -1471340544
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1471338184
v4l2_debug: in mxc_v4l_open, debug3 = -1463829632
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 80685600
case VIDIOC_QUERYCAP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
In MVC:mxc_v4l_close
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
root@imx6qpsabresd:~#

I still can't figure out why it closes the communication and tries to reopen it with wrong file pointer. Any help is appreciated.

EDIT: I forgot to add what those "debug1 2 3" variables are. They are added to check pointers to v4l2_int_device variables.

struct v4l2_int_device *debug1 = cam->sensor;

pr_info("v4l2_debug: in mxc_v4l_open, debug1 = %d\n", debug1);

struct v4l2_int_device **debug2 = cam->all_sensors;

pr_info("v4l2_debug: in mxc_v4l_open, debug2 = %d\n", debug2);

struct v4l2_int_device *debug3 = cam->self;

pr_info("v4l2_debug: in mxc_v4l_open, debug3 = %d\n", debug3);

pr_info("v4l2_debug: in mxc_v4l_open, debug21 = %d\n", *debug2);

pr_info("v4l2_debug: in mxc_v4l_open, debug22 = %d\n", *(debug2 + 1));

3,962 Views
igorpadykov
NXP Employee
NXP Employee

Hi mert

is imx-test working for you ?

~igor

0 Kudos

3,962 Views
mcergun
Contributor III

Today I tried to compile it, but instructions were for ltib and I use Yocto. So I had no success at getting it compiled.

3,962 Views
igorpadykov
NXP Employee
NXP Employee

it compiles fine with yocto too :

http://patches.openembedded.org/patch/110753/

3,962 Views
mcergun
Contributor III

Good news Igor, 

I found out that there is an image for imx-test tools and I compiled it with 

bitbake imx-test

After running mxc_v4l2_capture.out and mxc_v4l2_still.out tests I am getting some data recorded in "still.yuv" and extensionless "64" files. Their hexdump shows somewhat sensible data to me.

root@imx6qpsabresd:/unit_tests# ./mxc_v4l2_capture.out -iw 64 -ih 64 -ow 64 -oh 64
in_width = 64, in_height = 64
v4l2_debug: in mxc_v4l_open, file = -1466610304
out_width = 64, out_height = 64
v4l2_debug: in mxc_v4l_open, dev = -1465298944
top = 0, left = 0
v4l2_debug: in mxc_v4l_open, cam = -1465274368
v4l2_debug: in mxc_v4l_open, debug1 = 2130787116
v4l2_debug: in mxc_v4l_open, debug2 = -1465272008
v4l2_debug: in mxc_v4l_open, debug3 = -1462941120
v4l2_debug: in mxc_v4l_open, debug21 = 2130787116
v4l2_debug: in mxc_v4l_open, debug22 = 0

In MVC: mxc_v4l_open
device name is Mxc Camera
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
End of mxc_v4l_open: v2f pix widthxheight 64 x 64
End of mxc_v4l_open: crop_bounds widthxheight 64 x 64
End of mxc_v4l_open: crop_defrect widthxheight 64 x 64
End of mxc_v4l_open: crop_current widthxheight 64 x 64
On Open: Input to ipu size is 64 x 64
MT6415CA: ioctl_s_power(2130787116, 1)
MT6415CA: ioctl_init()
MT6415CA: ioctl_dev_init()
Sending CMD = e1 to slave = 0a
v4l2_debug: in mxc_v4l_open oops
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c5651
MT6415CA: ioctl_g_chip_indent()
sensor chip is mt6415ca_camera
In MVC:mxc_v4l_ioctl
sensor supported frame size:
In MVC: mxc_v4l_do_ioctl c02c564a
MT6415CA: ioctl_enum_framesizes()
64x64
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c564a
MT6415CA: ioctl_enum_framesizes()
64x64
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c02c564a
MT6415CA: ioctl_enum_framesizes()
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0405602
MT6415CA: ioctl_enum_fmt_cap()
sensor frame format: GREY
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0405602
MT6415CA: ioctl_enum_fmt_cap()
sensor frame format: GREY
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0405602
MT6415CA: ioctl_enum_fmt_cap()
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0cc5616
case VIDIOC_S_PARM
In mxc_v4l2_s_param
MT6415CA: ioctl_g_parm()
Current capabilities are 1001
Current capturemode is 0 change to 0
Current framerate is 30 change to 30
MT6415CA: ioctl_s_parm()
frame rate is not supported!
MT6415CA: ioctl_g_ifparm()
clock=mclk=40000000
clock_curr=mclk=40000000
MT6415CA: ioctl_g_fmt_cap()
g_fmt_cap returns widthxheight of input as 64 x 64
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0045627
case VIDIOC_S_INPUT
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c014563b
case VIDIOC_G_CROP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 4014563c
case VIDIOC_S_CROP
Cropping Input to ipu size 64 x 64
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c00c56c3
case VIDIOC_S_DEST_CROP
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0cc5605
case VIDIOC_S_FMT
In MVC: mxc_v4l2_s_fmt
type=V4L2_BUF_TYPE_VIDEO_CAPTURE
End of mxc_v4l2_s_fmt: v2f pix widthxheight 64 x 64
End of mxc_v4l2_s_fmt: crop_bounds widthxheight 64 x 64
End of mxc_v4l2_s_fmt: crop_defrect widthxheight 64 x 64
End of mxc_v4l2_s_fmt: crop_current widthxheight 64 x 64
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c008561c
case VIDIOC_S_CTRL
In MVC:mxc_v4l2_s_ctrl
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0145608
case VIDIOC_REQBUFS
In MVC:mxc_streamoff
MVC: In mxc_free_frame_buf
In MVC:mxc_allocate_frame_buf - size=4096
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0cc5604
case VIDIOC_G_FMT
In MVC: mxc_v4l2_g_fmt type=1
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
End of mxc_v4l2_g_fmt: v2f pix widthxheight 64 x 64
End of mxc_v4l2_g_fmt: crop_bounds widthxheight 64 x 64
End of mxc_v4l2_g_fmt: crop_defrect widthxheight 64 x 64
End of mxc_v4l2_g_fmt: crop_current widthxheight 64 x 64
Width = 64 Height = 64 In MVC:mxc_v4l_ioctl
Image size = 4096
pixelformat: In MVC: mxc_v4l_do_ioctl c0445609
GREY
case VIDIOC_QUERYBUF
In MVC:mxc_v4l2_buffer_status
In MVC:mxc_mmap
pgoff=0x3c17c, start=0x76f4c000, end=0x76f4d000
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445609
case VIDIOC_QUERYBUF
In MVC:mxc_v4l2_buffer_status
In MVC:mxc_mmap
pgoff=0x3c17f, start=0x76f4b000, end=0x76f4c000
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445609
case VIDIOC_QUERYBUF
In MVC:mxc_v4l2_buffer_status
In MVC:mxc_mmap
pgoff=0x3c180, start=0x76f4a000, end=0x76f4b000
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl 40045612
case VIDIOC_STREAMON
In MVC:mxc_streamon
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445611
In MVC:camera_callback
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
case VIDIOC_QBUF
In MVC:camera_callback
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:mxc_v4l_ioctl
In MVC:camera_callback
In MVC: mxc_v4l_do_ioctl c044560f
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:camera_callback
In MVC:mxc_v4l_dqueue
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
... more QBUF DQBUF Sequence ...
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC:camera_callback
In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c044560f
In MVC:camera_callback
case VIDIOC_QBUF
In MVC:mxc_v4l_ioctl
In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:camera_callback
buf.index 1In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:camera_callback
buf.index 2In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl c0445611
case VIDIOC_DQBUF
In MVC:mxc_v4l_dqueue
In MVC:camera_callback
buf.index 0In MVC:mxc_v4l_ioctl

In MVC: mxc_v4l_do_ioctl 40045613
case VIDIOC_STREAMOFF
In MVC:mxc_streamoff
In MVC:mxc_free_frames
In MVC:mxc_v4l_close
In MVC:mxc_streamoff
MT6415CA: ioctl_s_power(2130787116, 0)
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames

I am still getting no slave error on bootup and gst-launch commands

0 Kudos