Difference between revisions of "Camera interface"
From ArmadeusWiki
(→Driver) |
(→Driver) |
||
Line 18: | Line 18: | ||
==Driver== | ==Driver== | ||
* From now we consider that you have a supported camera module plugged on you development board | * From now we consider that you have a supported camera module plugged on you development board | ||
− | * CSI interface can be driven through the V4L2 (Video For Linux) standard interface as soon as CSI driver is loaded: | + | * CSI interface can be driven through the V4L2 (Video For Linux) standard interface as soon as CSI/MIPI driver is loaded: |
− | {| | + | {| border="1" cellpadding="10" cellspacing="0" summary="Camera drivers" class="wikitable" |
− | ! APF27 | + | |- style="background:#efefef;" align="center" |
− | | | + | ! APF27 || APF6 |
− | <pre class="apf"> | + | |--- |
+ | |<pre class="apf"> | ||
# modprobe mx27_camera | # modprobe mx27_camera | ||
+ | </pre> | ||
+ | * Then you have to load your camera driver in order for him to "attach" to the CSI one (for example for the OV9653): | ||
+ | <pre class="apf"> | ||
+ | # modprobe ov96xx | ||
</pre> | </pre> | ||
| | | | ||
Line 30: | Line 35: | ||
</pre> | </pre> | ||
|} | |} | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
* Now it's up to you to configure your camera with the tools/API the camera driver is offering... | * Now it's up to you to configure your camera with the tools/API the camera driver is offering... | ||
Revision as of 16:29, 14 July 2015
Page under construction... Informations on this page are not guaranteed !!
On this page you will find useful informations on how to use the Camera/CMOS Sensor Interface (CSI) of the i.MX chip found on your APF board. Currently only the APF27 & APF6 are supported.
Hardware
APF27
- All the signals of the i.MX27 CSI interface can be found on the J9 connector of the APF27Dev development board.
- You should connect an external camera/sensor compatible with the CSI interface (8bits data bus) to see something ;-). Here are the tested sensor models:
- All these sensors are controllable through an I2C interface. The one on J8 connector of APF27Dev can for example be used.
APF6
- APF6Dev boards have a wandcam compatible connector (near the PCIexpress one).
Driver
- From now we consider that you have a supported camera module plugged on you development board
- CSI interface can be driven through the V4L2 (Video For Linux) standard interface as soon as CSI/MIPI driver is loaded:
APF27 | APF6 |
---|---|
# modprobe mx27_camera
# modprobe ov96xx |
# modprobe ov5640-mipi |
- Now it's up to you to configure your camera with the tools/API the camera driver is offering...
Test
- We have a small SDL/V4L2 app to quickly test that your camera is working properly: target/demos/camera/capture/