MX8 e-con Camera: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V2.4_DART-MX8M-MINI as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#l...")
 
No edit summary
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V2.4_DART-MX8M-MINI as default
<!-- Set release according to "release" parameter in URL and use RELEASE_SUMO_V2.4_DART-MX8M-MINI as default
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release|RELEASE_SUMO_V2.4_DART-MX8M-MINI}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V2.4_DART-MX8M-MINI}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{PageHeader|{{#var:HARDWARE_NAME}} E-Con Camera}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__
--> {{#lst:B2QT_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
--> {{PageHeader|{{#var:HARDWARE_NAME}} e-con Systems Camera}} {{DocImage|category1=Yocto|category2=DART-MX8M}}[[Category:DART-MX8M-MINI]] __toc__


= Introduction =
= Introduction =
The following instructions will allow you to add support for the e-con Systems MIPI camera [https://www.variscite.com/product/accessories/vcam-ar1335e/ VCAM-AR1335E] to your Yocto images.<br>
This will allow you to stream images/video from a e-con Systems camera [https://www.variscite.com/product/accessories/vcam-ar1335e/ VCAM-AR1335E] connected to a Variscite evaluation kit.<br>


The following instructions will help you to integrate E-Con MIPI camera support into Variscite Yocto images for i.MX8M and i.MX8MM platforms.<br>
= Download the Variscite Yocto BSP =  
This will allow you to stream images/video from a E-con camera(s) connected to Variscite evaluation platforms.<br>
 
= Download Variscite Yocto BSP =  
 
Please follow {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}}.<br>
Please follow {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}}.<br>
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 run bitbake yet.


= Download and install E-con meta layers =  
= Download and install the e-con meta layers =  
 
{{#if: {{#var:META_ECON_BRANCH}}|
  $ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/econ-4.14.98.tar.gz
  $ git clone https://github.com/varigit/meta-econ-imx -b {{#var:META_ECON_BRANCH}} ../sources/meta-econ-imx
  $ tar xf econ-4.14.98.tar.gz
}}<!--
$ mv econ-4.14.98/meta-econ-imx8 ../sources
-->{{#ifeq: {{#var:YOCTO_NAME}} | Sumo |
 
$ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/sumo-fsl-4.14.98/meta-econ-imx8.tar.gz
= Download and install Variscite kernel patches =
  $ tar xf meta-econ-imx8.tar.gz -C ../sources
 
  $ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/sumo-fsl-4.14.98/meta-variscite-imx-econ.tar.gz
  $ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/sumo-fsl-4.14.98/recipes-kernel/linux.tar.gz
  $ tar xf meta-variscite-imx-econ.tar.gz -C ../sources
  $ rm -rf ../sources/meta-variscite-imx/recipes-kernel/linux
}}
$ tar xf linux.tar.gz -C ../sources/meta-variscite-imx/recipes-kernel


= Customize configuration files =
= Customize configuration files =


== Customize bblayers.conf ==
== Customize bblayers.conf ==
Add the following lines to conf/bblayers.conf
Add the following lines to conf/bblayers.conf under your Yocto build directory:
<pre>
{{#if: {{#var:META_ECON_BRANCH}}|
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 "
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx "
</pre>
}}<!--
-->{{#ifeq: {{#var:YOCTO_NAME}} | Sumo |
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 "
BBLAYERS += " ${BSPDIR}/sources/meta-variscite-imx-econ "
}}
{{#if: {{#var:META_ECON_LOCALCONF_SECTION}} |
== Customize local.conf ==
Add the following to conf/local.conf under your Yocto build directory:
{{#lst:Yocto_Platform_Customization|{{#var:META_ECON_LOCALCONF_SECTION}}}}
}}


== Customize local.conf ==
= Build a Yocto image =
Add the following to conf/local.conf under your Yocto build directory:<br>
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.
<br>
Add E-con driver:
<pre>
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-econ-camera-driver"
</pre>


Add E-Con DTB files:
= Testing the e-con Systems camera =
{{#ifeq: {{#var:SOC}}|mx8mq|
Follow the {{Varlink|DART-MX8M CSI|{{#var:RELEASE_LINK}}|{{#var:HARDWARE_NAME}} Camera}} page to test the camera.
<pre>
KERNEL_DEVICETREE_append_imx8mq-var-dart = " \
        freescale/fsl-imx8mq-var-dart-sd-dp-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-sd-hdmi-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-sd-lvds-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-sd-lvds-dp-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-sd-lvds-hdmi-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-wifi-dp-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-wifi-hdmi-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-wifi-lvds-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-wifi-lvds-dp-econ-camera.dtb \
        freescale/fsl-imx8mq-var-dart-wifi-lvds-hdmi-econ-camera.dtb \
"
</pre>
|{{#ifeq: {{#var:SOC}}|mx8mm|
<pre>
KERNEL_DEVICETREE_append_imx8mm-var-dart = " \
        freescale/fsl-imx8mm-var-dart-econ-camera.dtb \
        freescale/fsl-imx8mm-var-som-econ-camera.dtb \
        freescale/fsl-imx8mm-var-som-econ-camera-rev10.dtb \
"
</pre>
|}}}}


= Build Yocto image =
{{#if: {{#var:ECON_RECOVERY_SD_PATH}} |
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.
= Prebuilt recovery SD card image =
A prebuilt recovery SD card image with e-con camera support can be downloaded from:<br>


= Testing E-Con camera =
https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/{{#var:ECON_RECOVERY_SD_PATH}}


Follow {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|DART-MX8M CSI}} to test e-Con camera
'''Note:''' Some web browsers have removed FTP support. Please see our [[FTP|FTP wiki page]].<br>
}}

Latest revision as of 21:25, 22 August 2024

DART-MX8M-MINI e-con Systems Camera

Introduction

The following instructions will allow you to add support for the e-con Systems MIPI camera VCAM-AR1335E to your Yocto images.
This will allow you to stream images/video from a e-con Systems camera VCAM-AR1335E connected to a Variscite evaluation kit.

Download the Variscite Yocto BSP

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

Download and install the e-con meta layers

$ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/sumo-fsl-4.14.98/meta-econ-imx8.tar.gz
$ tar xf meta-econ-imx8.tar.gz -C ../sources
$ wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/sumo-fsl-4.14.98/meta-variscite-imx-econ.tar.gz
$ tar xf meta-variscite-imx-econ.tar.gz -C ../sources

Customize configuration files

Customize bblayers.conf

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

BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 "
BBLAYERS += " ${BSPDIR}/sources/meta-variscite-imx-econ "

Customize local.conf

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

IMAGE_INSTALL_append = " \
       econ-camera-driver \
"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-econ-camera-driver"

Build a Yocto image

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

Testing the e-con Systems camera

Follow the DART-MX8M-MINI Camera page to test the camera.

Prebuilt recovery SD card image

A prebuilt recovery SD card image with e-con camera support can be downloaded from:

https://variscite-public.nyc3.cdn.digitaloceanspaces.com/e-con/Software/DART-MX8M-MINI/sumo-fsl-4.14.98/dart-mx8mm-econ-recovery-sd.v24.img.gz

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