This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:add-ons:edge2-mipi-camera [2024/10/29 06:10] nick |
products:sbc:edge2:add-ons:edge2-mipi-camera [2025/09/02 04:01] (current) gray |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== Linux ===== | ===== Linux ===== | ||
+ | |||
<WRAP important > | <WRAP important > | ||
Line 20: | Line 21: | ||
ensure proper operation. If your device supports 4K@60fps, you can enable this mode by adding an overlay node '' | ensure proper operation. If your device supports 4K@60fps, you can enable this mode by adding an overlay node '' | ||
- | ```shell | + | |
- | $ sudo vim / | + | Edit '' |
- | fdt_overlays=cam2-4lane | + | |
- | ``` | + | <tabbox Fenix 1.7.4 or older version> |
About IMX585 and IMX678, the two cameras were disabled by default. So V11 or V12 hardware version should replace '' | About IMX585 and IMX678, the two cameras were disabled by default. So V11 or V12 hardware version should replace '' | ||
- | ```shell | + | Edit '' |
- | $ sudo vim / | + | |
- | fdt_overlays=imx585 | + | |
- | or | ||
- | fdt_overlays=imx678 | ||
- | ``` | ||
V13 or later hardware version should be set '' | V13 or later hardware version should be set '' | ||
- | ``` | ||
- | $ sudo vim / | ||
- | fdt_overlays=imx585-cam2-4lane | ||
- | or | + | Edit ''/ |
- | fdt_overlays=imx678-cam2-4lane | + | <tabbox Fenix 1.7.5 or later version> |
- | ``` | + | |
+ | We enbale imx585 and imx678 | ||
+ | |||
+ | </ | ||
You need to reboot the device to take effect. | You need to reboot the device to take effect. | ||
</ | </ | ||
- | |||
==== Upgrade System ==== | ==== Upgrade System ==== | ||
Line 59: | Line 54: | ||
You can find the video nodes from the table below. | You can find the video nodes from the table below. | ||
- | | ^ Video Node(5.10.66) | + | | ^ Video Node ^ |
- | ^ CAM1 | + | ^ CAM1 | / |
- | ^ CAM2 | + | ^ CAM2 | / |
- | ^ CAM3 | + | ^ CAM3 | / |
==== Record Video with Gstreamer ==== | ==== Record Video with Gstreamer ==== | ||
- | <tabbox kernel 5.10.66> | ||
Record video from '' | Record video from '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
Line 77: | Line 71: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
- | ``` | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | ``` | + | |
- | + | ||
- | <tabbox Other version> | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | ``` | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
``` | ``` | ||
For 4K@60fps, framerate should be set 60/1 | For 4K@60fps, framerate should be set 60/1 | ||
Line 104: | Line 78: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
- | </ | ||
/* | /* | ||
Line 196: | Line 169: | ||
sudo apt install v4l-utils | sudo apt install v4l-utils | ||
``` | ``` | ||
- | |||
- | <tabbox kernel 5.10.66> | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | <tabbox Other version> | ||
Capture frame from '' | Capture frame from '' | ||
Line 236: | Line 187: | ||
v4l2-ctl -d / | v4l2-ctl -d / | ||
``` | ``` | ||
- | |||
- | </ | ||
It will capture a '' | It will capture a '' | ||
Line 248: | Line 197: | ||
``` | ``` | ||
+ | |||
+ | ==== Camera Interfaces Performance ==== | ||
+ | |||
+ | <tabbox IMX415> | ||
+ | | ^ CAM2 2lane, connect one camera separately ^ CAM2 2lane, connect three camera simultaneously ^ CAM2 4lane, connect one camera separately ^ CAM2 4lane, connect three camera simultaneously ^ CMA2 4lane, connect 2 cameras to CAM3 and CAM2 separately ^ | ||
+ | ^ CAM1 | 4K@30fps | ||
+ | ^ CAM2 | 4K@30fps | ||
+ | ^ CAM3 | 4K@60fps | ||
+ | <tabbox OS08A10> | ||
+ | | ^ CAM2 2lane, connect one camera separately ^ CAM2 2lane, connect three camera simultaneously ^ CAM2 4lane, connect one camera separately ^ CAM2 4lane, connect three camera simultaneously ^ CMA2 4lane, connect 2 cameras to CAM3 and CAM2 separately ^ | ||
+ | ^ CAM1 | 4K@30fps | ||
+ | ^ CAM2 | 4K@30fps | ||
+ | ^ CAM3 | 4K@60fps | ||
+ | <tabbox IMX585> | ||
+ | | ^ CAM2 2lane, connect one camera separately ^ CAM2 2lane, connect three camera simultaneously ^ CAM2 4lane, connect one camera separately ^ CAM2 4lane, connect three camera simultaneously ^ CMA2 4lane, connect 2 cameras to CAM3 and CAM2 separately ^ | ||
+ | ^ CAM1 | 4K@30fps | ||
+ | ^ CAM2 | 4K@30fps | ||
+ | ^ CAM3 | 4K@60fps | ||
+ | <tabbox IMX678> | ||
+ | | ^ CAM2 2lane, connect one camera separately ^ CAM2 2lane, connect three camera simultaneously ^ CAM2 4lane, connect one camera separately ^ CAM2 4lane, connect three camera simultaneously ^ CMA2 4lane, connect 2 cameras to CAM3 and CAM2 separately ^ | ||
+ | ^ CAM1 | 4K@30fps | ||
+ | ^ CAM2 | 4K@30fps | ||
+ | ^ CAM3 | 4K@60fps | ||
+ | |||
+ | </ | ||
===== Android ===== | ===== Android ===== |