Basler Camera using native NXP support¶
Introduction¶
The following instructions will allow you to add support for the Basler MIPI camera to your Yocto images using the software modules already present in the Yocto BSP.
This will allow you to stream images/video from a Basler camera(s) connected to a Variscite evaluation kit.
Available cameras¶
- VCAM-AR1335B (daA4200-30mci): not supported
- VCAM-AR0821B (daA3840-mc): supported
Preparing Yocto to use the Basler camera¶
There is no need to build a special Yocto image. The default Yocto build, as installed from a standard recovery SD card, already supports the Basler camera.
The Yocto image supports the standard camera by default.
In order to use the Basler camera an additional step is needed.
Run the following commands at the shell prompt:
# cd /boot
# mv imx8mp-var-dart-dt8mcustomboard.dtb imx8mp-var-dart-dt8mcustomboard-ov5640.dtb
# mv imx8mp-var-dart-wbe-dt8mcustomboard.dtb imx8mp-var-dart-wbe-dt8mcustomboard-ov5640.dtb
# mv imx8mp-var-dart-1.x-dt8mcustomboard.dtb imx8mp-var-dart-1.x-dt8mcustomboard-ov5640.dtb
# mv imx8mp-var-som-symphony.dtb imx8mp-var-som-symphony-ov5640.dtb
# mv imx8mp-var-som-wbe-symphony.dtb imx8mp-var-som-wbe-symphony-ov5640.dtb
# mv imx8mp-var-som-1.x-symphony.dtb imx8mp-var-som-1.x-symphony-ov5640.dtb
# ln -fs imx8mp-var-dart-dt8mcustomboard-basler-isp0.dtb imx8mp-var-dart-dt8mcustomboard.dtb
# ln -fs imx8mp-var-dart-wbe-dt8mcustomboard-basler-isp0.dtb imx8mp-var-dart-wbe-dt8mcustomboard.dtb
# ln -fs imx8mp-var-dart-1.x-dt8mcustomboard-basler-isp0.dtb imx8mp-var-dart-1.x-dt8mcustomboard.dtb
# ln -fs imx8mp-var-som-symphony-basler-isp0.dtb imx8mp-var-som-symphony.dtb
# ln -fs imx8mp-var-som-wbe-symphony-basler-isp0.dtb imx8mp-var-som-wbe-symphony.dtb
# ln -fs imx8mp-var-som-1.x-symphony-basler-isp0.dtb imx8mp-var-som-1.x-symphony.dtb
and reboot.
Running GStreamer¶
Run the following command at the shell prompt:
On boards with 2 cameras you can use the 2nd camera by replacing /dev/video2 with /dev/video3 in the above command. Dual camera currently can only work on VAR-DT8MCustomBoard due to hardware limitations of Symphony board.
The following command will simultaneously record two video streams from both cameras: