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 |
||
Line 2: | Line 2: | ||
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | ||
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V2.4_DART-MX8M-MINI}}}} <!-- | --> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_SUMO_V2.4_DART-MX8M-MINI}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} | --> {{PageHeader|{{#var:HARDWARE_NAME}} e-con Systems Camera}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__ | ||
= Introduction = | = Introduction = | ||
The instructions on this page add e-con Systems MIPI cameras support to Yocto images for Variscite i.MX8M and i.MX8MM platforms.<br> | |||
= Download the Variscite Yocto BSP = | |||
= 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 | Execute steps 1-4.3 to download the BSP sources, but don't run bitbake yet. | ||
= Download and install the e-con meta layer = | |||
$ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/econ-4.14.98.tar.gz | $ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/econ-4.14.98.tar.gz | ||
$ tar xf econ-4.14.98.tar.gz | $ tar xf econ-4.14.98.tar.gz | ||
$ mv econ-4.14.98/meta-econ-imx8 ../sources | $ mv econ-4.14.98/meta-econ-imx8 ../sources | ||
= Download and install Variscite kernel patches = | = Download and install the appropriate Variscite kernel patches = | ||
$ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/sumo-fsl-4.14.98/recipes-kernel/linux.tar.gz | $ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/sumo-fsl-4.14.98/recipes-kernel/linux.tar.gz | ||
$ rm -rf ../sources/meta-variscite-imx/recipes-kernel/linux | $ rm -rf ../sources/meta-variscite-imx/recipes-kernel/linux | ||
$ tar xf linux.tar.gz -C ../sources/meta-variscite-imx/recipes-kernel | $ tar xf linux.tar.gz -C ../sources/meta-variscite-imx/recipes-kernel | ||
= | = Adjust the relevant Yocto configuration files = | ||
== | == Edit bblayers.conf == | ||
Add the following lines to conf/bblayers.conf | Add the following lines to conf/bblayers.conf | ||
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 " | |||
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 " | |||
== | == Edit 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> | ||
<br> | <br> | ||
Add | Add the e-con Systems camera driver: | ||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-econ-camera-driver" | |||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-econ-camera-driver" | |||
Add | Add the relevant device tree files to the build:<br> | ||
{{#ifeq: {{#var:SOC}}|mx8mq| | {{#ifeq: {{#var:SOC}}|mx8mq| | ||
KERNEL_DEVICETREE_append_imx8mq-var-dart = " \ | |||
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 \ | |||
" | |||
" | |||
|{{#ifeq: {{#var:SOC}}|mx8mm| | |{{#ifeq: {{#var:SOC}}|mx8mm| | ||
KERNEL_DEVICETREE_append_imx8mm-var-dart = " \ | |||
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 \ | |||
" | |||
" | |||
|}}}} | |}}}} | ||
= Build Yocto image = | = Build a Yocto image = | ||
Continue following {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}} from where you left off | Continue following {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|Build Yocto from source code}} from where you left off to bitbake and install a Yocto image. | ||
Follow {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|DART-MX8M CSI}} to test | = Testing the e-con Systems camera = | ||
Follow {{Varlink|Yocto_Build_Release|{{#var:RELEASE_LINK}}|DART-MX8M CSI}} to test the camera. |
Revision as of 12:51, 12 March 2020
DART-MX8M-MINI e-con Systems Camera
Introduction
The instructions on this page add e-con Systems MIPI cameras support to Yocto images for Variscite i.MX8M and i.MX8MM platforms.
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 layer
$ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/econ-4.14.98.tar.gz $ tar xf econ-4.14.98.tar.gz $ mv econ-4.14.98/meta-econ-imx8 ../sources
Download and install the appropriate Variscite kernel patches
$ wget ftp://customerv:Variscite1@ftp.variscite.com/E-Con/sumo-fsl-4.14.98/recipes-kernel/linux.tar.gz $ rm -rf ../sources/meta-variscite-imx/recipes-kernel/linux $ tar xf linux.tar.gz -C ../sources/meta-variscite-imx/recipes-kernel
Adjust the relevant Yocto configuration files
Edit bblayers.conf
Add the following lines to conf/bblayers.conf
BBLAYERS += " ${BSPDIR}/sources/meta-econ-imx8 "
Edit local.conf
Add the following to conf/local.conf under your Yocto build directory:
Add the e-con Systems camera driver:
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-econ-camera-driver"
Add the relevant device tree files to the build:
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 \ "
Build a Yocto image
Continue following Build Yocto from source code from where you left off to bitbake and install a Yocto image.
Testing the e-con Systems camera
Follow DART-MX8M CSI to test the camera.