MX8 Basler Camera: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 22: Line 22:
  $ git clone https://github.com/varigit/meta-basler-tools -b 1.2.0.12-imx8mp-5.4.70-2.3.0 ../sources/meta-basler-tools
  $ git clone https://github.com/varigit/meta-basler-tools -b 1.2.0.12-imx8mp-5.4.70-2.3.0 ../sources/meta-basler-tools
|
|
{{#ifeq: {{#var:YOCTO_NAME}} | Sumo |
= Download and install Basler meta layers =  
= Download and install Basler meta layers =  


Line 33: Line 34:
  $ wget ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/sumo-fsl-4.14.98-cep-1.5.0/meta-variscite-imx-basler.tar.gz
  $ wget ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/sumo-fsl-4.14.98-cep-1.5.0/meta-variscite-imx-basler.tar.gz
  $ tar xf meta-variscite-imx-basler.tar.gz -C ../sources/
  $ tar xf meta-variscite-imx-basler.tar.gz -C ../sources/
}}
| {{#ifeq: {{#var:YOCTO_NAME}} | Dunfell |
= Download and install Basler meta layers =
 
$ git clone https://github.com/varigit/meta-basler-imx8 -b 1.6.0-imx8m-5.4-2.1.x ../sources/meta-basler-imx8
$ git clone https://github.com/varigit/meta-basler-tools -b 1.6.0-imx8m-5.4-2.1.x ../sources/meta-basler-tools
}}}}}}


{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
Line 65: Line 71:
PREFERRED_VERSION_kernel-module-isp-vvcam = "4.2.2.8+basler"
PREFERRED_VERSION_kernel-module-isp-vvcam = "4.2.2.8+basler"
</pre>
</pre>
|
| {{#ifeq: {{#var:YOCTO_NAME}} | Sumo |
= Customize configuration files =
= Customize configuration files =


Line 75: Line 81:
BBLAYERS += " ${BSPDIR}/sources/meta-variscite-imx-basler "
BBLAYERS += " ${BSPDIR}/sources/meta-variscite-imx-basler "
</pre>
</pre>
 
|
Add the following lines to conf/bblayers.conf
<pre>
${BSPDIR}/sources/meta-basler-imx8 \
${BSPDIR}/sources/meta-basler-tools/meta-basler-common \
</pre>
}}
== Customize local.conf ==
== Customize local.conf ==
Add the following to conf/local.conf under your Yocto build directory:<br>
Add the following to conf/local.conf under your Yocto build directory:<br>
Line 100: Line 112:


  $ export DISPLAY=:0.0
  $ export DISPLAY=:0.0
  $ GENICAM_GENTL64_PATH=/opt/dart-bcon-mipi/lib /opt/pylon6/bin/pylonviewer 2>/dev/null &
  $ GENICAM_GENTL64_PATH=/opt/dart-bcon-mipi/lib /opt/{{#ifeq: {{#var:YOCTO_NAME}}|Dunfell|pylon|pylon6}}/bin/pylonviewer 2>/dev/null &


{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
Line 111: Line 123:
= Using prebuilt recovery SD card images =
= Using prebuilt recovery SD card images =


Prebuilt recovery SD card image with Basler camera support can be downloaded from ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M | DART-MX8M/sumo-fsl-4.14.98-mx8mq-v2.2 | {{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI | DART-MX8M-MINI/sumo-fsl-4.14.98-mx8mm-v2.5| {{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS | DART-MX8M-PLUS/zeus-fsl-5.4.70-mx8mp-v2.1}}}}}}
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
Prebuilt recovery SD card image with Basler camera support can be downloaded from ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/DART-MX8M-MINI/{{#ifeq: {{#var:YOCTO_NAME}} | Sumo |
sumo-fsl-4.14.98-mx8mm-v2.5 | {{#ifeq: {{#var:YOCTO_NAME}} | Dunfell | dunfell-fsl-5.4.x-mx8mm-v6.5}}}}
 
|{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M |
Prebuilt recovery SD card image with Basler camera support can be downloaded from ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/DART-MX8M/{{#ifeq: {{#var:YOCTO_NAME}} | Sumo | sumo-fsl-4.14.98-mx8mq-v2.5 | {{#ifeq: {{#var:YOCTO_NAME}} | Dunfell |dunfell-fsl-5.4.x-mx8mq-v6.2 }}}}
 
|{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
Prebuilt recovery SD card image with Basler camera support can be downloaded from ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/DART-MX8M-PLUS/zeus-fsl-5.4.70-mx8mp-v2.1
}}}}}}

Revision as of 15:16, 16 March 2021

DART-MX8M-MINI Basler Camera

Introduction

The following instructions will help you to integrate Basler MIPI camera support into Variscite Yocto images for i.MX8M and i.MX8MM platforms.
This will allow you to stream images/video from a Basler camera(s) connected to Variscite evaluation platforms.
You can save the camera output to a storage device and process it using the Basler pylon SDK and the pylonViewer app.

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.

Download and install Basler meta layers

$ wget ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo.tar.gz
$ mkdir basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo
$ tar xf basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo.tar.gz -C basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo
$ mv basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo/meta-basler* ../sources

Download and install Variscite kernel patches

$ wget ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/sumo-fsl-4.14.98-cep-1.5.0/meta-variscite-imx-basler.tar.gz
$ tar xf meta-variscite-imx-basler.tar.gz -C ../sources/

Customize configuration files

Customize bblayers.conf

Add the following lines to conf/bblayers.conf

BBLAYERS += " ${BSPDIR}/sources/meta-basler-imx8 "
BBLAYERS += " ${BSPDIR}/sources/meta-basler-tools/meta-basler-common "
BBLAYERS += " ${BSPDIR}/sources/meta-variscite-imx-basler "

Customize local.conf

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

Add Basler software and driver:

IMAGE_INSTALL_append = " \
        basler-camera-driver \
        pylon \
        python3-pypylon \
        gentl-producer \
        xauth \
"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-basler-camera-driver"

Build Yocto image

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

Running Basler camera application

Run the following commands at the shell prompt:

$ export DISPLAY=:0.0
$ GENICAM_GENTL64_PATH=/opt/dart-bcon-mipi/lib /opt/pylon6/bin/pylonviewer 2>/dev/null &


Using prebuilt recovery SD card images

Prebuilt recovery SD card image with Basler camera support can be downloaded from ftp://customerv:Variscite1@ftp.variscite.com/Basler/Software/DART-MX8M-MINI/sumo-fsl-4.14.98-mx8mm-v2.5