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.

DM6446 Camera sensor driver

Hi,

I'm trying to write a driver and V4l2 ioctl support for a Micron camera
(CMOS sensor) that outputs Bayer RGB color pattern as output. This is on
a TI Davinci DM6446 based platform.

So far, I have been able to support a few basic V4L2 ioctls() so that I
can write a user program which opens a video device and finally calls a
VIDIOC_STREAMON ioctl(). In the user program, the raw data received is
dumped into a file. I can see that the raw data (hex values) changes
upon putting different colors in front of the micron sensor.

The problem is to make sense of this data. I guess the data needs to be
passed through the previewer and resizer module since the raw data is in
bayer format. Is there a reference (code/document/pointers) on how to go
about writing this driver to output sensible data and also calling the
video modules (Previewer) of DM6446 for conversion from bayer to an appropriate
format ?

Also, if anyone has prior experience with a similar sensor and
would like to share some thoughts/pitfalls on writing a camera driver,
would really appreciate.

thanks,
-sid

  • Did you know that Leopard Imaging builds a board with Micron sendor that sits right on top of our DM6446 EVM?

    https://www.leopardimaging.com/5M_HD_Camera_Board.html

    At the site above you can even download patches that can be applied to the kernel included in our DVSDK 1.30 to support this board (no need to purchase).  Optionally, you can download the entire Linux kernel (which includes the patches) at

    https://www.leopardimaging.com/Download.html

    Please note that these patches or Linux Kernel is compatible with our DVSDK 1.30 (a.k.a. dvsdk_1_30_00_41) available from our software update site (www.ti.com/davincisoftwareupdates ); access to our update site requires you register your DM6446 EVM at www.ti.com/davinciregistration

  • Hello Siddharth,

    I am currently working on a similar application with dm6446 where in I want to capture an image from the sensor and store as a file. This is with a non-micron sensor (cmos vga sensor, progressive with 10-bit parallel data). It will take some time for me to test with the hardware, currently I am in the process of making code changes.

    I went through the 'capture' example of v4l2 and understood that you can access the stored image using VIDIOC_DQBUF ioctl but I would like to see some example implementation. It will be of great help if you could you please share your code if possible. For now I want to skip previewer and store raw data in a file.

    I really appreciate your help in this regard.

    --

    Best Regards

    Arun