MX8 Basler Camera NXP: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- Set release according to "release" parameter in URL and use RELEASE_HARDKNOTT_V1.2_DART-MX8M-PLUS as default
<!-- Set release according to "release" parameter in URL and use RELEASE_HARDKNOTT_V1.2_DART-MX8M-PLUS as default
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release|RELEASE_HARDKNOTT_V1.2_DART-MX8M-PLUS}}}} <!--
--> {{INIT_RELEASE_PARAM|RELEASE_HARDKNOTT_V1.2_DART-MX8M-PLUS}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{#lst:B2QT_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{#lst:B2QT_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{PageHeader|{{#var:HARDWARE_NAME}} Basler Camera using native NXP support}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__
--> {{PageHeader|{{#var:HARDWARE_NAME}} Basler Camera using native NXP support}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__


Line 14: Line 15:
* [https://www.variscite.com/product/accessories/vcam-ar1335b-i-mx8-camera-board/ VCAM-AR1335B] (daA4200-30mci): '''not''' supported
* [https://www.variscite.com/product/accessories/vcam-ar1335b-i-mx8-camera-board/ VCAM-AR1335B] (daA4200-30mci): '''not''' supported
* [https://www.variscite.com/product/accessories/vcam-ar0821b-camera-board/ VCAM-AR0821B] (daA3840-mc): supported
* [https://www.variscite.com/product/accessories/vcam-ar0821b-camera-board/ VCAM-AR0821B] (daA3840-mc): supported
{{#if: {{#var:META_BASLER_NXP_LOCALCONF_SECTION}} |


= Download Variscite Yocto BSP =  
= Download Variscite Yocto BSP =  
Line 27: Line 29:
= Build Yocto image =
= Build Yocto image =
Continue following {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}} from where you left off, to bitbake and install an image.
Continue following {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}} from where you left off, to bitbake and install an image.
 
}}
{{#if: {{#var:BASLER_NXP_PREPARE_SECTION}} |
{{#if: {{#var:BASLER_NXP_SWITCH_CAM_SECTION}} |
= Preparing Yocto to use the Basler camera =
= Preparing Yocto to use the Basler camera =


The Yocto image built supports the standard camera by default.
{{#if: {{#var:META_BASLER_NXP_LOCALCONF_SECTION}} ||
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.<br>
}}
The Yocto image supports the standard camera by default.
In order to use the Basler camera an additional step is needed.
In order to use the Basler camera an additional step is needed.
Run the following commands at the shell prompt:
Run the following commands at the shell prompt:
{{#lst:Yocto_Platform_Customization|{{#var:BASLER_NXP_PREPARE_SECTION}}}}
{{#lst:Yocto_Platform_Customization|{{#var:BASLER_NXP_SWITCH_CAM_SECTION}}}}
}}
}}


{{#if: {{#var:BASLER_NXP_GSTREAMER_SECTION}} |
{{#if: {{#var:BASLER_NXP_GSTREAMER_SECTION}} |
= Running gstreamer =
= Running GStreamer =


Run the following command at the shell prompt:
Run the following command at the shell prompt:
Line 47: Line 52:
A prebuilt recovery SD card image with Basler camera support can be downloaded from:<br>
A prebuilt recovery SD card image with Basler camera support can be downloaded from:<br>


ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/{{#var:BASLER_RECOVERY_SD_PATH}}
https://variscite-public.nyc3.cdn.digitaloceanspaces.com/Basler/Software/{{#var:BASLER_NXP_RECOVERY_SD_PATH}}


'''Note:''' Some web browsers have removed FTP support. Please see our [[FTP|FTP wiki page]].<br>
'''Note:''' Some web browsers have removed FTP support. Please see our [[FTP|FTP wiki page]].<br>
}}
}}

Latest revision as of 16:56, 31 July 2024

Warning: This page is designed to be used with a 'release' URL parameter.

This page is using the default release RELEASE_HARDKNOTT_V1.2_DART-MX8M-PLUS.
To view this page for a specific Variscite SoM and software release, please follow these steps:

  1. Visit variwiki.com
  2. Select your SoM
  3. Select the software release
DART-MX8M-PLUS 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

Download Variscite Yocto BSP

Please follow Build Yocto from source code.
Execute steps 1-4.3 to download the BSP sources, but don't start bitbake yet.

Customize configuration files

Customize local.conf

Add the following to conf/local.conf under your Yocto build directory:

IMAGE_INSTALL_append_mx8mp = " \
       kernel-module-isp-vvcam \
       isp-imx \
       basler-camera \
"

Build Yocto image

Continue following Build Yocto from source code from where you left off, to bitbake and install an image.

Preparing Yocto to use 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-dt8mcustomboard-legacy.dtb imx8mp-var-dart-dt8mcustomboard-legacy-ov5640.dtb
# mv imx8mp-var-som-symphony.dtb imx8mp-var-som-symphony-ov5640.dtb
# ln -fs imx8mp-var-dart-dt8mcustomboard-basler-isp0.dtb imx8mp-var-dart-dt8mcustomboard.dtb
# ln -fs imx8mp-var-dart-dt8mcustomboard-legacy-basler-isp0.dtb imx8mp-var-dart-dt8mcustomboard-legacy.dtb
# ln -fs imx8mp-var-som-symphony-basler-isp0.dtb imx8mp-var-som-symphony.dtb

Running GStreamer

Run the following command at the shell prompt:

$ gst-launch-1.0 -v v4l2src device=/dev/video0 ! waylandsink

Prebuilt recovery SD card image

A prebuilt recovery SD card image with Basler camera support can be downloaded from:

https://variscite-public.nyc3.cdn.digitaloceanspaces.com/Basler/Software/DART-MX8M-PLUS/hardknott-fsl-5.10.35-mx8mp-v7.0/dart-mx8mp-basler-nxp-recovery-sd.v70.img.gz

Note: Some web browsers have removed FTP support. Please see our FTP wiki page.