This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Segmentation fault when requesting V4L2 video out buffer

Hi!

I have a problem with the v4l2 omap display driver. I hope that someone can help me out!

When i request v4l2 buffers with the ioctl VIDIOC_REQBUFS, I get an error: Segmentation fault.

The code looks like this:

     // Request buffers
    printf(" request buffers\n");
    struct v4l2_requestbuffers reqbuf;
    CLEAR(reqbuf);
    reqbuf.count = BUFFERCOUNT;
    reqbuf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
    reqbuf.memory = V4L2_MEMORY_MMAP;
    CTL(omapv4l2.fd, VIDIOC_REQBUFS, &reqbuf);

--> Segmentation fault

I checked kernel bootargs, and I think they are fine:

omap_vout.video1_numbuffers=3 omap_vout.video1_bufsize=3686400 omap_vout.vid1_static_vrfb_alloc=y

 

I am looking forward to any suggestions!