Commit Graph

4564 Commits

Author SHA1 Message Date
Gabriel Valcazar d1c5919298 qt5: set default QT_QPA_PLATFORM values for mp1 platforms
Otherwise, launching a Qt5 app will result in errors and the QPA platform will
need to be set manually to get it to work.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-23 11:35:32 +01:00
Gabriel Valcazar 54c9de6a74 qt5: set default QT_QPA_PLATFORM values for mp1 platforms
Otherwise, launching a Qt5 app will result in errors and the QPA platform will
need to be set manually to get it to work.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-22 16:06:07 +01:00
Javier Viguera b48f2806eb ccimx93: update graphics package for NXP release 6.1.36-2.1.0
Backport of graphics package for ccimx93 from NXP's Mickledore-based
6.1.36-2.1.0 release. Mainly copies and appends of graphics recipes
from the new release, and restricted to ccimx93 by changing the
COMPATIBLE_MACHINE, so it does not affect other platforms.

Notice, that the new version of weston used now by the ccimx93 requires
a different profile file (weston-socket.sh). This profile supercedes the
old 'weston.sh'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-21 18:23:26 +01:00
Javier Viguera 3aee8c39f7 ccimx93: update multimedia package for NXP release 6.1.36-2.1.0
Backport of multimedia package for ccimx93 from NXP's Mickledore-based
6.1.36-2.1.0 release. Mainly copies and appends of multimedia recipes
from the new release, and restricted to ccimx93 by changing the
COMPATIBLE_MACHINE, so it does not affect other platforms.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-21 18:23:26 +01:00
Javier Viguera 5794b18cd2 meson: backport version 1.0.1 from yocto 4.2
This is required to build the new version of gstreamer used by NXP for
the ccimx93 and integrated in following commits.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-21 18:23:26 +01:00
Javier Viguera 6a7fc990b0 build-github.sh: remove not supported platform ccimx8x_sbc_express
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-21 18:19:50 +01:00
Francisco Gil fea7e623d7 trustfence: fix building issue with trustfence enabled in cc8x
In commit 2fd1dbfed7, we accidentally removed some changes needed to
build imx-boot with Trustfence enabled, which were added in commit
1ce17da864.

This partially reverts commit 2fd1dbfed7

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-21 10:54:35 +01:00
Francisco Gil ba1cb7514d trustfence: fix building issue with trustfence enabled in cc8x
In commit 2fd1dbfed7, we accidentally removed some changes needed to
build imx-boot with Trustfence enabled, which were added in commit
1ce17da864.

This partially reverts commit 2fd1dbfed7

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-20 16:59:18 +01:00
Gabriel Valcazar 2a015f3f87 Add support for dey-image-lvgl images
LVGL is a free and open-source embedded graphics library that is able to run
in environments with limited resources.

This image includes a desktop environment and an LVGL widget demo (lvgl_demo)

https://onedigi.atlassian.net/browse/DEL-8740

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-16 11:39:03 +01:00
Gabriel Valcazar c0789c416b lvgl-demo-fb: generalize for any backend and add improvements
Rename the recipe to lvgl-demo to reflect the generalization and select the
most appropriate backend for each platform. Aside from making sure each backend
builds and runs fine, add some usability improvements:

    * Specify the mouse as the default evdev device instead of the touchscreen
    * Use common resolution variables to be able to configure the app's
      dimensions easily

https://onedigi.atlassian.net/browse/DEL-8740

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-16 11:38:56 +01:00
Gabriel Valcazar 33a93ccae4 Copy lvgl-demo-fb recipe from meta-openebedded master branch
https://onedigi.atlassian.net/browse/DEL-8740

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-14 14:24:46 +01:00
Francisco Gil 66af49ef9e update firmware: some improvements in update firmware script
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-13 17:23:06 +01:00
Francisco Gil 7c6967d5d6 dualboot: avoid the mount of alternative rootfs partition
In a dualboot system the alternative rootfs was mounted by default.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-13 17:23:06 +01:00
Francisco Gil 01c5b1f329 mount: remove dependencies from fw_getenv in mount script
https://onedigi.atlassian.net/browse/DEL-8582

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-13 17:23:06 +01:00
Arturo Buzarra f80b70bb72 ccmp1: add DT overlay for the DVK v2
This commit adds several overlays for DVK v2 and modifies the boot script to apply it
based on the board_version variable.

https://onedigi.atlassian.net/browse/DEL-8746

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-11-07 11:18:58 +01:00
Javier Viguera e9aeb051cf ccimx93: enable the build of A0 SOC revision bootloader
Implement support to program the correct bootloader on the different
installation scripts.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-03 14:03:25 +01:00
Javier Viguera 77755ac73c imx-boot: add makefile target to build imx93 A0 SOC revision
Also, set the build of A1 SOC revision by default for ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-02 18:59:06 +01:00
Javier Viguera a96d4fdc1d imx-atf: add support for imx93 A0 soc revision
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-11-02 18:58:36 +01:00
Francisco Gil 014667b41c udev: automount: add exception to mount loop and ram block devices
The nodes "/dev/ramX" and "/dev/loopX" are mounted on boot.
Each node calls the mount.sh script, but they are not mounted
because these nodes are blacklisted in the "blacklist.conf" file.

In the ccmp13 adding this modification in the rule saves
around 4 seconds per boot.
In the ccmp15 and ccimx6ul around 2 seconds are saved.

https://onedigi.atlassian.net/browse/DEL-8725

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-11-02 09:48:58 +01:00
Mike Engel df9b1cf329 ccmp1: add signed FIT image support
This commit adds signed FIT image support for the CCMP1
platforms when using Trustfence.

https://onedigi.atlassian.net/browse/DEL-8591

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-10-30 12:58:19 +01:00
Isaac Hermida 4c8bde2bc3 u-boot: ccimx93: add bootscript support for cpu rev A0
Add support to the bootscript to load the CPU overlay for the A0 rev.

https://onedigi.atlassian.net/browse/DEL-8743

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-26 16:11:28 +02:00
Hector Palacios 5a8d1fddae install_linux_fw: reset bootcount before resetting target
During firmware install, the target may be reset several times.
We don't want the bootcount to count these as boot attempts.

This was done in a791bb4463 for the ccmp1
but not for the rest of platforms.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit 961acf48de)
2023-10-23 14:04:21 +02:00
Hector Palacios 70476bb455 install_fw: [cosmetic] alphabetize script options
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit fb349b10f7)
2023-10-23 14:04:17 +02:00
Hector Palacios 648b555dbd tf-a-stm32mp: create symlinks on deploydir to TF-A and FIP binaries
These binaries are installed in subdirectories by default. The uuu
installer expects to find all binaries on the same folder where the script
is. By creating symlinks, the uuu installer can find all the binaries it
needs directly on the deploy folder.

NOTE: variables in 'for' clauses are intentionally without quotes to skip
whitespaces in them.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit 019deb6313)
2023-10-23 14:04:13 +02:00
Hector Palacios b75e88bbe0 boot scripts: print boot attempts only when bootcount mechanism active
Improve boot attempts message showing not only the current boot attempt
but also the limit:
	(boot attempt 1/3)

Print the message only when the bootcount mechanism is active, i.e. when
the bootlimit is defined (not zero), and when bootcount is > 0.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DUB-1056
(cherry picked from commit 918a9caf1d)
2023-10-23 14:04:08 +02:00
David Escalona 7bf452e85a swu: enable 'upgrade-available' flag on single systems and file updates
ConnectCore 6 based products require the use of the 'upgrade_available' environment flag to save the
bootcount value between resets. Extend the use of this U-Boot variable for single system updates and
updates based on files.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-10-20 16:33:27 +02:00
Hector Palacios bb36b04777 install_linux_fw: enable bootcount by setting bootlimit if dualboot enabled
Use the intention of installing dual boot firmware as a condition to set
bootlimit=3 so that the bootcount mechanism is enabled.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DUB-1058
2023-10-20 10:48:07 +02:00
Hector Palacios 961acf48de install_linux_fw: reset bootcount before resetting target
During firmware install, the target may be reset several times.
We don't want the bootcount to count these as boot attempts.

This was done in a791bb4463 for the ccmp1
but not for the rest of platforms.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-10-20 10:48:07 +02:00
Hector Palacios fb349b10f7 install_fw: [cosmetic] alphabetize script options
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-10-20 10:48:07 +02:00
Hector Palacios 019deb6313 tf-a-stm32mp: create symlinks on deploydir to TF-A and FIP binaries
These binaries are installed in subdirectories by default. The uuu
installer expects to find all binaries on the same folder where the script
is. By creating symlinks, the uuu installer can find all the binaries it
needs directly on the deploy folder.

NOTE: variables in 'for' clauses are intentionally without quotes to skip
whitespaces in them.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-10-20 10:48:07 +02:00
Hector Palacios 918a9caf1d boot scripts: print boot attempts only when bootcount mechanism active
Improve boot attempts message showing not only the current boot attempt
but also the limit:
	(boot attempt 1/3)

Print the message only when the bootcount mechanism is active, i.e. when
the bootlimit is defined (not zero), and when bootcount is > 0.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DUB-1056
2023-10-20 10:48:07 +02:00
Isaac Hermida db271b8c77 firmware-nxp-wifi: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-19 08:25:47 +02:00
Isaac Hermida 2b18573007 kernel-module-nxp: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-19 08:25:47 +02:00
Isaac Hermida 165c56cc1d linux-dey: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-10-19 08:25:47 +02:00
Tatiana Leon cb6b4fe67a cccs: increment the wait time to restart cccs services when they fail to start
This commits sets 30s between restart attempt after a failure.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-10-16 12:18:13 +02:00
Javier Viguera 90e8d43115 optee: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-11 12:10:10 +02:00
Javier Viguera d55dbce7ae imx-boot, imx-mkimage: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-11 12:10:10 +02:00
Javier Viguera 4f453efd89 imx-atf: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
New NXP's release is based on upstream v2.8. Use this only for ccimx93,
and keep using the previous Kirkstone release (based on upstream v2.6)
for the rest of the platforms.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-11 12:10:10 +02:00
Javier Viguera eb2f8d786f firmware-imx: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-11 12:10:10 +02:00
Javier Viguera 5bd6184799 firmware-sentinel: update to NXP's lf-6.1.36-2.1.0 release for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-11 12:10:10 +02:00
Arturo Buzarra e2ee631832 meta-digi: [cosmetic] alphabetize compatible machine string
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-10 14:58:58 +02:00
Javier Viguera c8a33e8de9 imx-boot: fix build of imx-boot artifacts
Recently, meta-freescale backported the support to build multiple boot
artifacts. This clashes with the changes in our imx-boot bbappend,
so update the bbappend to make it compatible with the latest changes
in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 2fd1dbfed7)
2023-10-10 14:13:37 +02:00
Gabriel Valcazar 3ccbcdec0f packagegroup-qt6-dey: remove qtquick3d-dev
This package was inadvertantly pulling in a lot of dependencies into our
images that make use of Qt6. Most of these packages consisted of *-dev
packages, which are only useful for development with the SDK.

Remove this package along with its dependencies to significantly reduce the
dey-image-qt rootfs image size.

Note that this change was already done in commit
8979331ef8, but it was accidentally reverted when
upgrading to Qt 6.5 in commit a5c6f2b795.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 0d6d6d219f)
2023-10-10 13:50:44 +02:00
Gabriel Valcazar 0d6d6d219f packagegroup-qt6-dey: remove qtquick3d-dev
This package was inadvertantly pulling in a lot of dependencies into our
images that make use of Qt6. Most of these packages consisted of *-dev
packages, which are only useful for development with the SDK.

Remove this package along with its dependencies to significantly reduce the
dey-image-qt rootfs image size.

Note that this change was already done in commit
8979331ef8, but it was accidentally reverted when
upgrading to Qt 6.5 in commit a5c6f2b795.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-10-10 13:23:57 +02:00
Javier Viguera 2fd1dbfed7 imx-boot: fix build of imx-boot artifacts
Recently, meta-freescale backported the support to build multiple boot
artifacts. This clashes with the changes in our imx-boot bbappend,
so update the bbappend to make it compatible with the latest changes
in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-10-09 18:42:14 +02:00
Arturo Buzarra 94a865cc0e build scripts: sync internal and Github build scripts
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-09 16:50:11 +02:00
Arturo Buzarra 5956782ac3 build.sh: support dey-image-webkit on ccimx6sbc/ccimx6qpsbc platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-09 16:50:06 +02:00
Arturo Buzarra 614c7c62c8 meta-digi-dey: bump distro version to 4.0-r5
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-10-09 15:47:41 +02:00
Hector Palacios 8fb4832433 ccmp1: don't build additional UBI/UBIFS images via meta-st-stm32mp layer
Through the inclusion of 'nand-4-256' in BOOTDEVICE_LABELS, the include
file 'st-machine-common-stm32mp.inc' adds strings to MULTIUBI_BUILD and
IMAGE_FSTYPES that result in building ubi and ubifs images.
These are redundant and not needed since meta-digi's
'image_types_digi.bbclass' already generates the needed ubifs images.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8714
2023-10-09 15:37:16 +02:00
Hector Palacios 54a4e5779d trustfence-stm-signtools: rework package so that the tools are accessible
The STM signtools are precompiled binaries with a fixed RPATH to look for
dynamic libraries.
When the binaries are installed to the regular ${bindir} (either native or
nativesdk), additional toolchain libraries in the regular ${libdir} folder
confuse the binaries, resulting in segmentation faults when running them
or missing symbols.

The package has been reworked to place the directory structure expected
by the binaries, in a subfolder "stm" within the ${bindir}.
Two wrapper scripts with the names of the binaries (STM32MP_KeyGen_CLI and
STM32MP_SigningTool_CLI) have been created to run the binaries in the new
subfolder.
Package version has been bumped to 1.1.

While on it, remove the 'do_install' from trustfence-stm-signtools.inc
which is not needed because the 'bin_package' class already provides the
same functionality.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8720
2023-10-09 15:36:58 +02:00