MX8 Basler Camera: Difference between revisions
Line 15: | Line 15: | ||
Execute steps 1-4.3 to download the BSP sources, but don't start bitbake yet. | Execute steps 1-4.3 to download the BSP sources, but don't start bitbake yet. | ||
= Download and install Basler meta layers = | = Download and install Basler meta layers = | ||
{{# | {{#if: {{#var:META_BASLER_BRANCH}}| | ||
$ git clone https://github.com/varigit/meta-basler-imx8 -b {{#var:META_BASLER_BRANCH}} ../sources/meta-basler-imx8 | |||
$ git clone https://github.com/varigit/meta-basler-imx8 -b | $ git clone https://github.com/varigit/meta-basler-tools -b {{#var:META_BASLER_BRANCH}} ../sources/meta-basler-tools | ||
$ git clone https://github.com/varigit/meta-basler-tools -b | | | ||
$ 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 | $ 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 | $ 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 | $ 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 | $ mv basler-dart-bcon-mipi-imx8-cep_1.5.0-for-imx-4.14.98-2.0.0_ga_sumo/meta-basler* ../sources | ||
$ 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:HARDWARE_NAME}} | DART-MX8M-PLUS | | {{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS | |
Revision as of 12:10, 10 November 2021
Introduction
The following instructions will allow you to add support for the Basler MIPI camera to your Yocto images.
This will allow you to stream images/video from a Basler camera(s) connected to a Variscite evaluation kit.
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 $ 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 $ /usr/bin/pylon
Prebuilt recovery SD card image
A 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/
Note: Some web browsers have removed FTP support. Please see our FTP wiki page.