Difference between revisions of "How to Use MIPI Camera"
(add camera) |
|||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
|- | |- | ||
| style="width: 120px;" | cn39 | | style="width: 120px;" | cn39 | ||
− | | style="width: 139px;" | | + | | style="width: 139px;" | 4-wire |
|- | |- | ||
| style="width: 120px;" | cn40 | | style="width: 120px;" | cn40 | ||
− | | style="width: 139px;" | | + | | style="width: 139px;" | 2-wire |
|} | |} | ||
Line 21: | Line 21: | ||
= 2-wire ov8858 = | = 2-wire ov8858 = | ||
− | To turn on 2-wire ov8858, ROM5780 requires controlling the Camera reset and power pins. <br/>If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO0, the reset pin is multiplexed with GPIO2. <br/>So we need to dial GPIO0 and GPIO2 on CN22 to cameras power and reset pin. And then we can open the Camera in terminal console. | + | To turn on 2-wire ov8858, ROM5780 requires controlling the Camera reset and power pins. <br/>If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO0, the reset pin is multiplexed with GPIO2.<br/>So we need to dial GPIO0 and GPIO2 on CN22 to cameras power and reset pin. And then we can open the Camera in terminal console. |
<pre>root@linaro-alip:~# export DISPLAY=:0.0 | <pre>root@linaro-alip:~# export DISPLAY=:0.0 | ||
root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- | root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- | ||
linux-gnu/gstreamer-1.0 | linux-gnu/gstreamer-1.0 | ||
− | root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video0 ! | + | root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video0 ! |
− | video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink" </pre> | + | video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink" </pre> |
= 4-wire ov8858 = | = 4-wire ov8858 = | ||
− | To turn on 4-wire ov8858, ROM5780 requires controlling the Camera reset and power pins. <br/> | + | To turn on 4-wire ov8858, ROM5780 requires controlling the Camera reset and power pins. <br/>If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO1, the reset pin is multiplexed with GPIO3.<br/>So we need to dial GPIO1 and GPIO3 on CN22 to camera's power and reset pin. And then we can open the Camera in terminal console. |
<pre>root@linaro-alip:~# export DISPLAY=:0.0 | <pre>root@linaro-alip:~# export DISPLAY=:0.0 | ||
root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- | root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- | ||
linux-gnu/gstreamer-1.0 | linux-gnu/gstreamer-1.0 | ||
− | root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video5 ! | + | root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video5 ! |
− | video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink" </pre> | + | video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink" </pre> |
Latest revision as of 06:54, 13 November 2020
Overview
ROM-5780 supports 2-wire and 4-wire OV8858.
If rom5901 is used as the rom5780 carrery board.The interface is as shown in the following table.
INTERFACE | |
cn39 | 4-wire |
cn40 | 2-wire |
NOTE: At present, Only one camera can be connected at a time. Do not connect two cameras at the same time
2-wire ov8858
To turn on 2-wire ov8858, ROM5780 requires controlling the Camera reset and power pins.
If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO0, the reset pin is multiplexed with GPIO2.
So we need to dial GPIO0 and GPIO2 on CN22 to cameras power and reset pin. And then we can open the Camera in terminal console.
root@linaro-alip:~# export DISPLAY=:0.0 root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- linux-gnu/gstreamer-1.0 root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink"
4-wire ov8858
To turn on 4-wire ov8858, ROM5780 requires controlling the Camera reset and power pins.
If rom5901 is used as the rom5780 base plate, the power pin is multiplexed with GPIO1, the reset pin is multiplexed with GPIO3.
So we need to dial GPIO1 and GPIO3 on CN22 to camera's power and reset pin. And then we can open the Camera in terminal console.
root@linaro-alip:~# export DISPLAY=:0.0 root@linaro-alip:~# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64- linux-gnu/gstreamer-1.0 root@linaro-alip:~# su linaro -c "gst-launch-1.0 v4l2src device=/dev/video5 ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink"