Commit Graph

313 Commits

Author SHA1 Message Date
Hector Palacios bf87d0df25 imx-system-manager: add patches to expose regulators to Linux
This series of patches expose a number of regulators of
the PMIC to the non-secure world, so that they can be
referenced and used by Linux drivers.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-10-13 18:05:43 +02:00
Javier Viguera 985e973d6e imx-system-manager: disable debug monitor by default
Disable the imx-system-manager debug monitor by default, as NXP's
documentation indicates that the debug monitor is not intended for use
in production images.

https://github.com/nxp-imx/imx-sm/blob/lf-6.6.52-2.2.1/sm/doc/dev.md#compiling-the-sm-guide_compile

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-10 11:26:36 +02:00
Javier Viguera ef6769b876 firmware-imx: remove 8.26.1 version recipes
They have been added to meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-09 17:42:34 +02:00
Arturo Buzarra c8757b7bf3 trustfence: add encrypted boot artifact support for STM platforms
This commit updates the secure boot support for STM platforms based on the
STM32 MPU Ecosystem v6.1.0. It introduces support for encrypted boot artifacts,
including TF-A and FIP, and enables this functionality for the ConnectCore MP2
platform.

This enhancement allows secure boot deployments with both authentication and
encryption for improved protection of critical boot components.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-06 17:15:17 +02:00
Arturo Buzarra d57fd84182 stm-st-stm32mp: m33projects-stm32mp2: Add custom sign-stm32mp bbclass to fix build issue
This commit imports the Digi custom version of sign-stm32mp bbclass to ensure
that the search_path() function does not raise a build exception if the signing
tool or keys are not present in the PATH before starting the build process.

In our case, we do not need to manually install the tools or generate the keys
beforehand, as this is automatically handled by Yocto in our DEY distribution.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-06 13:36:32 +02:00
Javier Viguera 87673b6299 imx-boot: add ccimx95 support and rework patch handling
Add support for the ccimx95 and reorganize the recipe so that all machine
patches are applied for the DEY distribution, regardless of the build
target.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Javier Viguera 1e225bb3f9 imx-atf: add missing upstream-status tag to one patch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Javier Viguera 20ab79040e optee-os: add ccimx95-dvk support
Add the ccimx95dvk flavor to OP-TEE, define the UART6 base and DDR
settings, and update the machine mappings using OPTEEMACHINE as the base
recipe does.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Javier Viguera 69a512aef1 imx-system-manager: add ccimx95-dvk support
Update machine config and add bbappend with ccimx95-dvk patches.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Javier Viguera 4cdc7020b6 imx-oei: add ccimx95 support
Add the ccimx95 platform cloned from mx95lp5. Provide DDR configuration,
configure the console on lpuart6, and update ccimx95-dvk.conf to select
the new board.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:48:40 +02:00
Javier Viguera 9140eabbd9 gcc-arm-none-eabi: bare-metal toolchain for building Cortex-M firmware
This matches the version used by NXP in rel_imx_6.6.52_2.2.1.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-29 12:52:13 +02:00
Mike Engel 7afc4a67de wayland: remove wl_shell and libweston patch
This commit removes the wl_shell and libweston patche, which
are now not necessary anymore. Becasue we have removed the
wayland backend for the LVGL image.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-09-18 12:44:35 +02:00
Hector Palacios 10e3803df5 imx-atf: add patch for cc95 console change
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-09-10 16:44:39 +02:00
Hector Palacios d1c0c7db5b optee-imx: reorder patches and apply independently of platform
The Digi commits on the optee-os repository are part of the
same branch and apply on top of each other since they do not
collide with each other.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-09-10 10:36:37 +02:00
Hector Palacios eb2b6d8314 optee-imx: remove duplicate clang patch
After the update of the recipe in meta-freescale this patch
(which exists in meta-freescale) does no longer need to
live in meta-digi.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-09-10 10:36:37 +02:00
Hector Palacios 59e02043bc imx-atf: reorder patches and apply independently of platform
The Digi commits on the imx-atf repository are now part of the
same branch and apply on top of each other since they do not
collide with each other.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-09-10 10:36:37 +02:00
Javier Viguera b12c17ac38 opencv: update/refresh for NXP's lf-6.6.52-2.2.1 release
https://onedigi.atlassian.net/browse/DEL-9748

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-09 11:43:36 +02:00
Javier Viguera e3d8b314b8 weston: update to 12.0.5.imx for i.MX8/9
This is the version used by NXP with lf-6.6.52-2.2.1.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-09 11:43:36 +02:00
Javier Viguera 770562a704 firmware: update binary packages for NXP's lf-6.6.52-2.2.1 release
https://onedigi.atlassian.net/browse/DEL-9748

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-09 11:24:55 +02:00
Javier Viguera 74753d8f99 imx-boot: update boot artifacts for NXP's lf-6.6.52-2.2.1 release
Also, refresh patches on top of new release.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-09 11:24:55 +02:00
Gabriel Valcazar 0ceb58fc57 stm: gstreamer1.0-plugins-bad: use strict assignment for default PACKAGECONFIG
A recent change in meta-st-x-linux-ai was completely overwriting our default
PACKAGECONFIG values, causing several plugins to be omitted (for example, the
wayland plugin). In turn, this was causing several build errors in many
packages that depend on said plugins.

Use a strict PACKAGECONFIG assignment to prevent this. As a side effect, this
removes the new "uvcsink" PACKAGECONFIG introduced by the recent change in
meta-st-x-linux-ai, so make sure to re-add it to avoid unexpected behavior when
building the brand new people-tracking-heatmap AI example.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-08-22 13:30:00 +02:00
Javier Viguera efe04967a2 firmware-ele-imx: remove wrong IMX_SRCREV_ABBREV and checksum
meta-freescale updated the base recipe for NXP's release 6.6.52_2.2.1,
so our overrides in the bbappend are no longer needed.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-08-20 11:30:08 +02:00
Arturo Buzarra d86857e804 stm-st-stm32mp: tf-a-stm32mp: Add custom export_binaries() to fix TF-A artifact deployment
This commit introduces a custom export_binaries() function to resolve a
deployment issue affecting the final TF-A artifact path. The issue occurs when
the SoC name does not match the TF-A device tree name.

This fix is required due to changes introduced in commit f0b4d0d02a
("ccmp15: enable secure_system_service for CCMP15"), which modified the TF-A
artifact generation process.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-29 14:12:36 +02:00
Arturo Buzarra ea5027e623 stm-st-stm32mp: fip/tf-a: sync .bbappend recipes with ST BSP v25.06.11 release
This commit updates the Digi custom .bbappend recipes for FIP and TF-A to align
with the latest ST BSP release, based on the openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11
tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-29 11:33:15 +02:00
Mike Engel 8d26062700 optee-client: fix default secure storage path
This commit fixes the default secure storage path
to /mnt/data/tee instead of /var/lib/tee. This will
store all secure storage keys in that path and will
keep them even during rootfs updates.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-07-29 11:16:39 +02:00
Mike Engel f0b4d0d02a ccmp15: enable secure_system_service for CCMP15
This commit enables the full OP-TEE support using the
secure_system_service profile.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-07-29 11:16:39 +02:00
Gonzalo Ruiz e2916408c3 kernel-module-nxp-wlan: fix automatic regulatory configuration
mwifiex driver is not able to automatically download the corresponding
rgpower binary after receiving CountryIE beacon information from country
XX, so we have to do it manually running "iw reg set XX".

However, the driver considers country XX is already configured and
ignores the rgpower download request.

Fix it by not processing the countryIE information in the driver by
adding a patch from NXP that will be integrated in their next
official release.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-07-25 10:58:59 +02:00
Gonzalo Ruiz b55f64207a kernel-module-nxp-wlan: add watch-regdomain service
Add service to automatically detect changes in the global regulatory
domain and force a PHY regulatory domain change.

This allows detecting regulatory domain changes based on beacon
information when 802.11d is enabled and instructing the wireless
driver to download the rgpower firmware file corresponding to the
selected country.

If the selected country is not one of the supported ones, Worldwide
rgpower_WW.bin file will be downloaded by default.

Run the check service every 5 seconds through a systemd timer.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-07-24 17:35:25 +02:00
Arturo Buzarra 2309293051 Merge tag 'dey-5.0-r2.2' into dey-5.0/master
Digi Embedded Yocto 5.0-r2.2

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-21 16:12:18 +02:00
Arturo Buzarra b2eb7a5825 meta-digi: update revisions for dey-5.0-r2.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-15 22:10:11 +02:00
Gonzalo Ruiz 822f38e1d0 kernel-module-nxp-wlan: cc9: select V2 TX power method
Set V2 TX power method for regulatory management on the iw612 init
and remove the 'txpwrlimit_cfg' and 'init_hostcmd_cfg' driver
parameters which are only used for V1 TX power method.

This allows the driver to load a specific rgpower_XX.bin binary file
contained in the rootfs whenever command "iw reg set XX" is executed,
updating the TX power settings and allowed frequencies list to those
contained in the file. 'XX' stands for the 2-character ISO3166-1
alpha-2 country code.

If the selected rgpower_XX.bin file does not exist, or no country is
selected, the driver will load rgpower_WW.bin (Worldwide) by default.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-07-09 10:10:13 +02:00
Arturo Buzarra 6858f8aa25 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-04 11:15:42 +02:00
Arturo Buzarra 15dee0005e meta-digi: update revisions for dey-5.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-04 11:15:37 +02:00
Hector Palacios 318374f11d dey-installer: add signed/encrypted bootloader to installer zip
On NXP platforms, the signed/encrypted bootloader images are not
included on the installer ZIP. This prevents from using the installer
when TrustFence is enabled.

This commit adds to the installer:
 - If encryption is enabled
   - encrypted bootloader
   - signed bootloader (for USB recovery boot)
 - If encryption is disabled
   - signed bootloader
 - If TrustFence is disabled
   - non-signed bootloader

It also treats the ccimx6ul special, as this has a dedicated file for
USB recovery boot.

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

https://onedigi.atlassian.net/browse/DEL-9698
2025-07-02 21:17:24 +02:00
Arturo Buzarra b460485771 Merge branch 'dey-5.0/master' into dey-5.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-02 12:53:57 +02:00
Hector Palacios 5d11be4d2b optee-client: change secure storage and TEE log paths
The default secure storage (/var/lib/tee) is a tmpfs and not persistent
across reboots. Change it to the data partition (/mnt/data/tee) when
TrustFence file system encryption enabled

For the log file, do use the /var/log/ directory instead of default
/data

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

https://onedigi.atlassian.net/browse/DEL-9683
2025-06-27 08:32:18 +02:00
Javier Viguera 2cbfe2ae0d tf-a-stm32mp: move TF-A symlink creation to do_deploy
Moved deploy_symlinks_atf from SYSROOT_PREPROCESS_FUNCS to do_deploy task
to ensure symlinks are created correctly even when rebuilding from the
shared state after a "bitbake -c clean tf-a-stm32mp".

Override do_deploy[sstate-outputdirs] from the original recipe to allow
installing both the deploy artifacts (binaries and symlinks) to the
package deploy directory.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-23 17:05:31 +02:00
Gonzalo Ruiz f3c9b3c57a weston-init: wait for a wayland socket before logging in
The login prompt appears before Wayland is fully initialized and
has created a wayland socket.

Logging in too early as root in this scenario caused the
WAYLAND_DISPLAY environment variable to be left empty. As a
consequence, gstreamer failed to use waylandsink to print contents
in the display.

Introduce a 10-seconds polling loop to wait for the wayland socket to
be available before proceeding with the login.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-06-20 10:19:17 +02:00
Javier Viguera 78a1e7864f meta-digi-arm: remove old WolfSSL FIPS support
* Delete custom wolfssl_5.4.0-fips.bb recipe and README.
* Removed WolfSSL dynamic layer registration.

FIPS support is now managed through the external meta-wolfssl layer,
making this implementation unnecessary in meta-digi.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-17 14:05:08 +02:00
Javier Viguera 93c6deb2d8 wolfcryptest: remove bbappend and FIPS patch
The new version in meta-wolfssl does build properly, so this append is
no longer needed.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-17 14:05:08 +02:00
Hector Palacios 5271924af7 Revert "tf-a-stm32mp: remove STM32MP_USB_PROGRAMMER support from NAND images"
We reverted the stub that didn't allow PM when serial boot
was enabled  on TF-A. Restore the part of the recipe that
includes USB boot support on NAND boot images.

This reverts commit 24aef482ef.

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

https://onedigi.atlassian.net/browse/DEL-9629
2025-06-10 16:17:45 +02:00
Hector Palacios 24aef482ef tf-a-stm32mp: remove STM32MP_USB_PROGRAMMER support from NAND images
Adding STM32MP_USB_PROGRAMMER=1 to TF-A NAND build allows the images to
boot from either NAND or USB (recovery) however, the source code of TF-A
disallows correct resuming from suspend when either STM32MP_USB_PROGRAMMER
or STM32MP_UART_PROGRAMMER are defined.

Remove this support so that the system can correctly resume from suspend.

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

https://onedigi.atlassian.net/browse/DEL-9629
2025-06-04 09:54:56 +02:00
Arturo Buzarra 8644348fed stm-st-stm32mp: optee-os: remove CFG_OTP_HUK for Trustfence
Starting with OP-TEE v4.0.0, the use of a test key is no longer supported.
The Hardware Unique Key (HUK) is now always derived from the programmed OTP bits.
As a result, the Digi custom `CFG_OTP_HUK` flag is obsolete and has been removed.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 09:48:00 +02:00
Gabriel Valcazar d4e1917f1c global: remove recipes related to outdated features
There are several recipes in meta-digi related to features that we haven't
tested in a long time and don't appear in the DEY 5.0 documentation. Remove
them to avoid unexpected behavior.

Said features are:
    * Coral TPU support (only supported in DEY 3.2)
    * AWS support (removed from default images and docs in DEY 4.0)
    * dey-image-tiny (hasn't been maintained since DEY 2.0)

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-15 15:58:06 +02:00
Hector Palacios fdec14adc9 tf-a-stm32mp: add USB boot support to 'opteemin' flavor of nand
OP-TEE comes in two flavors: optee and opteemin
For NAND-boot images, add support for USB boot as well,
so that the default tf-a image is valid for booting from
either NAND or USB.
We had this for 'optee' flavor but not for 'opteemin'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-13 08:38:50 +02:00
Javier Viguera 554ab9a536 firmware-ele-imx: update firmware to match NXP rel_imx_6.6.52_2.2.0
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:27:04 +02:00
Javier Viguera 63034bf86e imx-vpu-hantro: delete overlayed recipes
meta-freescale provides newer versions of those recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:26:51 +02:00
Arturo Buzarra 87aa304a2c tf-a-stm32mp: use MACHINE variable for final metadata binary symlink
Currently, the final metadata symlink is composed using the TF-A Device Tree
configuration, which includes memory variant details. However, these variants
are not relevant for the metadata binary.

To avoid generating multiple redundant metadata files or using confusing names,
this commit updates the symlink to be composed using the MACHINE variable
instead.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-06 09:02:10 +02:00
Gabriel Valcazar c728854f5c Revert "stm32mp: gstreamer1.0-plugins-bad: revert STM patch to fix .flv video playback"
After more in-depth testing, we discovered that the flv/ogv video issues on the
ccmp25-dvk don't happen when playing videos with standard resolutions. Since
the workaround consisted of reverting a patch backported from upstream
gstreamer, and it only fixed flv video playback anyway, revert said workaround
and test using videos with standard formats.

This reverts commit e09eff7e1a.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-05 12:47:31 +02:00
Hector Palacios e2f1b3cb64 tf-a-stm32mp: fix TF_A_CONFIG for nand
On the new BSP the configuration is called 'optee-nand' and the build
parameters have changed.
We do this override in meta-digi only to incorporate
 `STM32MP_USB_PROGRAMMER=1`
parameter, which allows to boot the nand image from USB, too.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00