From 2c8fcd08a5a0afda57373792c4ca8575073c605c Mon Sep 17 00:00:00 2001 From: Daniel Morais Date: Mon, 28 Jan 2019 10:12:50 -0200 Subject: toradex: add support for colibri-imx7-emmc All u-boot scripts were updated and one added. Colibri-imx7-emmc only supports tezi, so dumb toradex u-boot scripts were created. Change-Id: I39c4472d781da03e60ef992eb2974f9f764c29ee Reviewed-by: Samuli Piippo --- b2qt-init-build-env | 2 +- .../conf/distro/include/colibri-imx7-emmc.conf | 48 ++++++++++++++++++++++ .../0001-Update-only-u-boot.patch | 0 .../colibri-imx7-emmc/flash_blk.scr | 2 + .../colibri-imx7-emmc/flash_eth.scr | 2 + scripts/setup-environment.sh | 2 +- 6 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 meta-boot2qt-distro/conf/distro/include/colibri-imx7-emmc.conf create mode 100644 meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/0001-Update-only-u-boot.patch create mode 100644 meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_blk.scr create mode 100644 meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_eth.scr diff --git a/b2qt-init-build-env b/b2qt-init-build-env index 66ae73b..3919b99 100755 --- a/b2qt-init-build-env +++ b/b2qt-init-build-env @@ -118,7 +118,7 @@ get_groups() { apalis-imx8|imx8qmlpddr4arm2) PROJECT_GROUPS="fsl-imx8" ;; - apalis-imx6|colibri-imx6|colibri-imx6ull|colibri-vf|colibri-imx7) + apalis-imx6|colibri-imx6|colibri-imx6ull|colibri-vf|colibri-imx7|colibri-imx7-emmc) PROJECT_GROUPS="toradex" ;; nitrogen6x|nitrogen7) diff --git a/meta-boot2qt-distro/conf/distro/include/colibri-imx7-emmc.conf b/meta-boot2qt-distro/conf/distro/include/colibri-imx7-emmc.conf new file mode 100644 index 0000000..7bfb388 --- /dev/null +++ b/meta-boot2qt-distro/conf/distro/include/colibri-imx7-emmc.conf @@ -0,0 +1,48 @@ +############################################################################ +## +## Copyright (C) 2016 The Qt Company Ltd. +## Contact: https://www.qt.io/licensing/ +## +## This file is part of the Boot to Qt meta layer. +## +## $QT_BEGIN_LICENSE:GPL$ +## Commercial License Usage +## Licensees holding valid commercial Qt licenses may use this file in +## accordance with the commercial license agreement provided with the +## Software or, alternatively, in accordance with the terms contained in +## a written agreement between you and The Qt Company. For licensing terms +## and conditions see https://www.qt.io/terms-conditions. For further +## information use the contact form at https://www.qt.io/contact-us. +## +## GNU General Public License Usage +## Alternatively, this file may be used under the terms of the GNU +## General Public License version 3 or (at your option) any later version +## approved by the KDE Free Qt Foundation. The licenses are as published by +## the Free Software Foundation and appearing in the file LICENSE.GPL3 +## included in the packaging of this file. Please review the following +## information to ensure the GNU General Public License requirements will +## be met: https://www.gnu.org/licenses/gpl-3.0.html. +## +## $QT_END_LICENSE$ +## +############################################################################ + +include conf/distro/include/toradex.inc + +DEPLOY_CONF_NAME = "Toradex Colibri iMX7 eMMC" + +QBSP_IMAGE_CONTENT += "\ + ${IMAGE_LINK_NAME}.tezi.tar \ + " + +IMAGE_BOOT_FILES += " \ + u-boot.imx;${MACHINEDIR}/u-boot.imx \ + " + +PREFERRED_PROVIDER_virtual/egl = "opengldummy" +PREFERRED_PROVIDER_virtual/libgles2 = "opengldummy" + +DISTRO_FEATURES_remove = "webengine wayland vulkan" + +# try to limit the maximum size of the tezi image +RDEPENDS_packagegroup-b2qt-embedded-base_remove_pn-packagegroup-b2qt-embedded-base = "linux-firmware" diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/0001-Update-only-u-boot.patch b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/0001-Update-only-u-boot.patch new file mode 100644 index 0000000..e69de29 diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_blk.scr b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_blk.scr new file mode 100644 index 0000000..8524cef --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_blk.scr @@ -0,0 +1,2 @@ +echo 'Legacy update is not supported for this module type' + diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_eth.scr b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_eth.scr new file mode 100644 index 0000000..8524cef --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-imx7-emmc/flash_eth.scr @@ -0,0 +1,2 @@ +echo 'Legacy update is not supported for this module type' + diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index 5520f53..febda41 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh @@ -59,7 +59,7 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then apalis-imx8|imx8qmlpddr4arm2) LAYERSCONF="bblayers.conf.fsl-imx8.sample" ;; - apalis-imx6|colibri-imx6|colibri-imx6ull|colibri-vf|colibri-imx7) + apalis-imx6|colibri-imx6|colibri-imx6ull|colibri-vf|colibri-imx7|colibri-imx7-emmc) LAYERSCONF="bblayers.conf.toradex.sample" ;; nitrogen6x|nitrogen7) -- cgit v1.2.3-54-g00ecf